Class: LocalVocabulary

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

Class Method Summary collapse

Class Method Details

.answer_typeObject



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

.nameObject



8
9
10
# File 'lib/ontology/local_vocabulary.rb', line 8

def self.name
  uri_for('name')
end

.question_typeObject



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