Class: EasyData::RDF::XSD
- Inherits:
-
Namespaces
- Object
- Namespaces
- EasyData::RDF::XSD
- Defined in:
- lib/data_models/namespaces/xsd.rb
Constant Summary collapse
- @@uri =
"http://www.w3.org/2001/XMLSchema#"
- @@properties =
{"NOTATION" => "", "QName" => "", "anyURI" => "", "base64Binary" => "", "boolean" => "", "date" => "", "dateTime" => "", "decimal" => "", "double" => "", "duration" => "", "float" => "", "gDay" => "", "gMonth" => "", "gMonthDay" => "", "gYear" => "", "gYearMonth" => "", "hexBinary" => "", "string" => "", "time" => "", "ENTITIES" => "", # XML Schema built-in derived types "ENTITY" => "", # @see http://www.w3.org/TR/xmlschema-2/#built-in-derived "ID" => "", "IDREF" => "", "IDREFS" => "", "NCName" => "", "NMTOKEN" => "", "NMTOKENS" => "", "Name" => "", "byte" => "", "int" => "", "integer" => "", "language" => "", "long" => "", "negativeInteger" => "", "nonNegativeInteger" => "", "nonPositiveInteger" => "", "normalizedString" => "", "positiveInteger" => "", "short" => "", "token" => "", "unsignedByte" => "", "unsignedInt" => "", "unsignedLong" => "", "unsignedShort" => "" }
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
54 55 56 |
# File 'lib/data_models/namespaces/xsd.rb', line 54 def self.get_uri @@uri end |
.properties ⇒ Object
Return a list of Namespace’s properties
64 65 66 |
# File 'lib/data_models/namespaces/xsd.rb', line 64 def self.properties @@properties.keys end |
.properties_form ⇒ Object
68 69 70 71 72 73 74 |
# File 'lib/data_models/namespaces/xsd.rb', line 68 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
59 60 61 |
# File 'lib/data_models/namespaces/xsd.rb', line 59 def self.to_s(property,uri,value) @@properties[property].gsub("%uri%",uri).gsub('%value%',value) end |