Class: LocalVocabulary
- Inherits:
-
Object
- Object
- LocalVocabulary
- Defined in:
- lib/ontology/local_vocabulary.rb
Class Method Summary collapse
- .answer_type ⇒ Object
- .method_missing(name, *arguments, &block) ⇒ Object
- .name ⇒ Object
- .question_type ⇒ Object
- .uri_for(name) ⇒ Object
Class Method Details
.answer_type ⇒ Object
16 17 18 |
# File 'lib/ontology/local_vocabulary.rb', line 16 def self.answer_type uri_for('answer') end |
.method_missing(name, *arguments, &block) ⇒ Object
4 5 6 |
# File 'lib/ontology/local_vocabulary.rb', line 4 def self.method_missing(name, *arguments, &block) uri_for(name) end |
.name ⇒ Object
8 9 10 |
# File 'lib/ontology/local_vocabulary.rb', line 8 def self.name uri_for('name') end |
.question_type ⇒ Object
12 13 14 |
# File 'lib/ontology/local_vocabulary.rb', line 12 def self.question_type uri_for('question') end |
.uri_for(name) ⇒ Object
20 21 22 |
# File 'lib/ontology/local_vocabulary.rb', line 20 def self.uri_for(name) RDF::URI("http://matus.tomlein.org/case/#{name}") end |