class RDF::StrictVocabulary

Represents an RDF Vocabulary. The difference from {RDF::Vocabulary} is that that every concept in the vocabulary is required to be declared. To assist in this, an existing RDF representation of the vocabulary can be loaded as the basis for concepts being available

Public Class Methods

[](name) click to toggle source

Returns the URI for the term `property` in this vocabulary.

@param [#to_s] name @return [RDF::URI] @raise [KeyError] if property not defined in vocabulary

# File lib/rdf/vocabulary.rb, line 737
def [](name)
  props.fetch(name.to_sym)
rescue KeyError
  raise KeyError, "#{name} not found in vocabulary #{self.__name__}"
end
strict?() click to toggle source

Is this a strict vocabulary, or a liberal vocabulary allowing arbitrary properties?

# File lib/rdf/vocabulary.rb, line 729
def strict?; true; end