Class: Jena::Vocab::Namespace
- Inherits:
-
Object
- Object
- Jena::Vocab::Namespace
- Defined in:
- lib/jena_jruby/namespace.rb
Overview
A namespace is an object for resolving identifiers in scope denoted by a base URI to a full URI. For example,
rdfs = Namespace.new( "http://www.w3.org/2000/01/rdf-schema#" )
rdfs.comment # => "http://www.w3.org/2000/01/rdf-schema#comment"
There is no checking that the resolved name is known in the defined namespace (e.g. rdfs.commnet
will work without a warning)
Instance Attribute Summary collapse
-
#ns ⇒ Object
readonly
Returns the value of attribute ns.
Instance Method Summary collapse
-
#initialize(ns) ⇒ Namespace
constructor
Initialize this namespace with the given root URI.
- #method_missing(name, *args) ⇒ Object
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Attribute Details
#ns ⇒ Object (readonly)
Returns the value of attribute ns.
13 14 15 |
# File 'lib/jena_jruby/namespace.rb', line 13 def ns @ns end |