Class: EasyData::RDF::OWL

Inherits:
Namespaces show all
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

Methods inherited from Namespaces

list, list_form

Class Method Details

.get_uriObject

Return Namespace URI



60
61
62
# File 'lib/data_models/namespaces/owl.rb', line 60

def self.get_uri
  @@uri
end

.propertiesObject

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_formObject



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