Class: Model::HttpVocabulary
- Inherits:
-
Object
- Object
- Model::HttpVocabulary
- Defined in:
- lib/ontology/http_vocabulary.rb
Class Method Summary collapse
- .method_missing(name, *arguments, &block) ⇒ Object
- .method_name ⇒ Object
- .request_uri ⇒ Object
- .uri_for(name) ⇒ Object
Class Method Details
.method_missing(name, *arguments, &block) ⇒ Object
3 4 5 |
# File 'lib/ontology/http_vocabulary.rb', line 3 def self.method_missing(name, *arguments, &block) uri_for(name) end |
.method_name ⇒ Object
7 8 9 |
# File 'lib/ontology/http_vocabulary.rb', line 7 def self.method_name uri_for('methodName') end |
.request_uri ⇒ Object
11 12 13 |
# File 'lib/ontology/http_vocabulary.rb', line 11 def self.request_uri uri_for('requestURI') end |
.uri_for(name) ⇒ Object
15 16 17 |
# File 'lib/ontology/http_vocabulary.rb', line 15 def self.uri_for(name) RDF::URI("http://www.w3.org/2011/http##{name}") end |