Class: DataFoodConsortium::Connector::SKOSConcept
- Inherits:
-
Object
- Object
- DataFoodConsortium::Connector::SKOSConcept
show all
- Includes:
- VirtualAssembly::Semantizer::SemanticObject
- Defined in:
- lib/datafoodconsortium/connector/skos_concept.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of SKOSConcept.
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# File 'lib/datafoodconsortium/connector/skos_concept.rb', line 37
def initialize()
super()
self.semanticType = "http://www.w3.org/2004/02/skos/core#Concept"
self.broaders = []
self.schemes = []
self.narrowers = []
self.prefLabels = []
registerSemanticProperty("http://www.w3.org/2004/02/skos/core#broader") { self.broaders }
registerSemanticProperty("http://www.w3.org/2004/02/skos/core#inScheme") { self.schemes }
registerSemanticProperty("http://www.w3.org/2004/02/skos/core#narrower") { self.narrowers }
registerSemanticProperty("http://www.w3.org/2004/02/skos/core#prefLabel") { self.prefLabels }
end
|
Instance Attribute Details
#broaders ⇒ Object
Returns the value of attribute broaders.
32
33
34
|
# File 'lib/datafoodconsortium/connector/skos_concept.rb', line 32
def broaders
@broaders
end
|
#narrowers ⇒ Object
Returns the value of attribute narrowers.
34
35
36
|
# File 'lib/datafoodconsortium/connector/skos_concept.rb', line 34
def narrowers
@narrowers
end
|
#prefLabels ⇒ Object
Returns the value of attribute prefLabels.
35
36
37
|
# File 'lib/datafoodconsortium/connector/skos_concept.rb', line 35
def prefLabels
@prefLabels
end
|
#schemes ⇒ Object
Returns the value of attribute schemes.
33
34
35
|
# File 'lib/datafoodconsortium/connector/skos_concept.rb', line 33
def schemes
@schemes
end
|
Instance Method Details
#addBroader(broader) ⇒ Object
52
53
54
|
# File 'lib/datafoodconsortium/connector/skos_concept.rb', line 52
def addBroader(broader)
self.broaders.push(broader)
end
|
#addNarrower(narrower) ⇒ Object
60
61
62
|
# File 'lib/datafoodconsortium/connector/skos_concept.rb', line 60
def addNarrower(narrower)
self.narrowers.push(narrower)
end
|
#addPrefLabel(prefLabel) ⇒ Object
64
65
66
|
# File 'lib/datafoodconsortium/connector/skos_concept.rb', line 64
def addPrefLabel(prefLabel)
self.prefLabels.push(prefLabel)
end
|
#addScheme(scheme) ⇒ Object
56
57
58
|
# File 'lib/datafoodconsortium/connector/skos_concept.rb', line 56
def addScheme(scheme)
self.schemes.push(scheme)
end
|
#removeBroader(broader) ⇒ Object
68
69
70
|
# File 'lib/datafoodconsortium/connector/skos_concept.rb', line 68
def removeBroader(broader)
raise "Not implemented"
end
|
#removeNarrower(narrower) ⇒ Object
76
77
78
|
# File 'lib/datafoodconsortium/connector/skos_concept.rb', line 76
def removeNarrower(narrower)
raise "Not implemented"
end
|
#removePrefLabel(prefLabel) ⇒ Object
80
81
82
|
# File 'lib/datafoodconsortium/connector/skos_concept.rb', line 80
def removePrefLabel(prefLabel)
raise "Not implemented"
end
|
#removeScheme(scheme) ⇒ Object
72
73
74
|
# File 'lib/datafoodconsortium/connector/skos_concept.rb', line 72
def removeScheme(scheme)
raise "Not implemented"
end
|