Skip to content

Instantly share code, notes, and snippets.

@indeyets
Created March 14, 2012 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indeyets/2036239 to your computer and use it in GitHub Desktop.
Save indeyets/2036239 to your computer and use it in GitHub Desktop.
RDF Types hierarchy (based on XQuery, XPath specifications)
data_types: # child-values can be used "as-is" if parent-type is requested
"xs:anyType":
"xs:untyped": {}
"xs:anySimpleType":
"xs:anyAtomicType":
"xs:untypedAtomic": {}
"xs:dateTime": {}
"xs:date": {}
"xs:time": {}
"xs:duration":
"xs:yearMonthDuration": {}
"xs:dayTimeDuration": {}
"xs:float": {}
"xs:double": {}
"xs:decimal":
"xs:integer":
"xs:nonPositiveInteger":
"xs:negativeInteger": {}
"xs:long":
"xs:int":
"xs:short":
"xs:byte": {}
"xs:nonNegativeInteger":
"xs:unsignedLong":
"xs:unsignedInt":
"xs:unsignedShort":
"xs:unsignedByte": {}
"xs:positiveInteger": {}
"xs:string":
"xs:normalizedString":
"xs:token":
"xs:language": {}
"xs:NMTOKEN": {}
"xs:Name":
"xs:NCName":
"xs:id": {}
"xs:IDREF": {}
"xs:ENTITY": {}
"xs:gYearMonth": {}
"xs:gYear": {}
"xs:gMonthDay": {}
"xs:gDay": {}
"xs:gMonth": {}
"xs:boolean": {}
"xs:base64Binary": {}
"xs:hexBinary": {}
"xs:anyURI": {}
"xs:QName": {}
"xs:NOTATION": {}
promotions: # casting of values
"xs:double": ["xs:float", "xs:decimal"]
"xs:float": ["xs:decimal"]
"xs:string": ["xs:anyUri"]
metatypes: # values used "as-is"
numeric: ["xs:integer", "xs:decimal", "xs:float", "xs:double"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment