Class: HttpVocabulary

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

Class Method Summary collapse

Class Method Details

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



2
3
4
# File 'lib/ontology/http_vocabulary.rb', line 2

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

.method_nameObject



6
7
8
# File 'lib/ontology/http_vocabulary.rb', line 6

def self.method_name
  uri_for('methodName')
end

.request_uriObject



10
11
12
# File 'lib/ontology/http_vocabulary.rb', line 10

def self.request_uri
  uri_for('requestURI')
end

.uri_for(name) ⇒ Object



14
15
16
# File 'lib/ontology/http_vocabulary.rb', line 14

def self.uri_for(name)
  RDF::URI("http://www.w3.org/2011/http##{name}")
end