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" => "" }
- @@classes =
{}
Class Method Summary collapse
-
.classes ⇒ Object
Return a list of Namespace’s classes.
- .classes_form ⇒ Object
-
.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
.classes ⇒ Object
Return a list of Namespace’s classes
79 80 81 |
# File 'lib/data_models/namespaces/xsd.rb', line 79 def self.classes @@classes.keys end |
.classes_form ⇒ Object
83 84 85 86 87 88 89 |
# File 'lib/data_models/namespaces/xsd.rb', line 83 def self.classes_form list = {} @@classes.keys.each do |c| list[c] = c end list end |
.get_uri ⇒ Object
Return Namespace URI
56 57 58 |
# File 'lib/data_models/namespaces/xsd.rb', line 56 def self.get_uri @@uri end |
.properties ⇒ Object
Return a list of Namespace’s properties
66 67 68 |
# File 'lib/data_models/namespaces/xsd.rb', line 66 def self.properties @@properties.keys end |
.properties_form ⇒ Object
70 71 72 73 74 75 76 |
# File 'lib/data_models/namespaces/xsd.rb', line 70 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
61 62 63 |
# File 'lib/data_models/namespaces/xsd.rb', line 61 def self.to_s(property,uri,value) @@properties[property].gsub("%uri%",uri).gsub('%value%',value) end |