Class: Model::RDFVocabulary

Inherits:
Object
  • Object
show all
Defined in:
lib/ontology/rdf_vocabulary.rb

Class Method Summary collapse

Class Method Details

.method_missing(name, *arguments, &block) ⇒ Object



3
4
5
# File 'lib/ontology/rdf_vocabulary.rb', line 3

def self.method_missing(name, *arguments, &block)
  uri_for(name)
end

.uri_for(name) ⇒ Object



7
8
9
# File 'lib/ontology/rdf_vocabulary.rb', line 7

def self.uri_for(name)
  RDF::URI("http://www.w3.org/1999/02/22-rdf-syntax-ns##{name}")
end