Class: EasyData::RDF::OWL
- Inherits:
-
Namespaces
- Object
- Namespaces
- EasyData::RDF::OWL
- Defined in:
- lib/data_models/namespaces/owl.rb
Constant Summary collapse
- @@uri =
"http://www.w3.org/2002/07/owl#"
- @@properties =
{"allValuesFrom" => "", "annotatedProperty" => "", "annotatedSource" => "", "annotatedTarget" => "", "assertionProperty" => "", "backwardCompatibleWith" => "", "bottomDataProperty" => "", "bottomObjectProperty" => "", "cardinality" => "", "complementOf" => "", "datatypeComplementOf" => "", "deprecated" => "", "differentFrom" => "", "disjointUnionOf" => "", "disjointWith" => "", "distinctMembers" => "", "equivalentClass" => "", "equivalentProperty" => "", "hasKey" => "", "hasSelf" => "", "hasValue" => "", "imports" => "", "incompatibleWith" => "", "intersectionOf" => "", "inverseOf" => "", "maxCardinality" => "", "maxQualifiedCardinality" => "", "members" => "", "minCardinality" => "", "minQualifiedCardinality" => "", "onClass" => "", "onDataRange" => "", "onDatatype" => "", "onProperties" => "", "onProperty" => "", "oneOf" => "", "priorVersion" => "", "propertyChainAxiom" => "", "propertyDisjointWith" => "", "qualifiedCardinality" => "", "sameAs" => "", "someValuesFrom" => "", "sourceIndividual" => "", "targetIndividual" => "", "targetValue" => "", "topDataProperty" => "", "topObjectProperty" => "", "unionOf" => "", "versionIRI" => "", "versionInfo" => "", "withRestrictions" => "" }
Class Method Summary collapse
-
.get_uri ⇒ Object
Return Namespace URI.
-
.properties ⇒ Object
Return a list of Namespace’s properties.
- .properties_form ⇒ Object
-
.to_s(property, uri, value) ⇒ Object
Return tag to rdf doc.
Methods inherited from Namespaces
Class Method Details
.get_uri ⇒ Object
Return Namespace URI
60 61 62 |
# File 'lib/data_models/namespaces/owl.rb', line 60 def self.get_uri @@uri end |
.properties ⇒ Object
Return a list of Namespace’s properties
70 71 72 |
# File 'lib/data_models/namespaces/owl.rb', line 70 def self.properties @@properties.keys end |
.properties_form ⇒ Object
74 75 76 77 78 79 80 |
# File 'lib/data_models/namespaces/owl.rb', line 74 def self.properties_form list = {} @@properties.keys.each do |property| list[property] = property end list end |
.to_s(property, uri, value) ⇒ Object
Return tag to rdf doc
65 66 67 |
# File 'lib/data_models/namespaces/owl.rb', line 65 def self.to_s(property,uri,value) @@properties[property].gsub("%uri%",uri).gsub('%value%',value) end |