Best Practice: Use of RDF data types

State: Draft

Contact: Nick Crossley

Scope

This Best Practice recommends appropriate usage of RDF data types, and considers the implications for query writers.

Discussion

  • An untyped literal (in Turtle, a literal in quotes) is the same as xsd:string
  • In Turtle, unquoted literals have an implicit type - true is the same as "'true"^^xsd:boolean, 42 is the same as "42"^^xsd:int, etc.
  • Comparison of typed literals varies between SPARQL implementations
    • xsd literals and type hierarchy
    • user-defined types extending xsd literals
    • other user-defined types
  • Types used by OSLC
  • Jena performs very strict validation of the contents of literals with type XMLLiteral

Recommendation

TBD

Examples

TBD

  Example 1

See Also

This topic: LinkedData > RwattsSandbox > BestPractices > UseOfRDFDataTypes
History: r1 - 2015-09-29 - 00:37:18 - Main.ndjc
 
This site is powered by the TWiki collaboration platformCopyright © by IBM and non-IBM contributing authors. All material on this collaboration platform is the property of the contributing authors.
Contributions are governed by our Terms of Use
Ideas, requests, problems regarding TWiki? Send feedback
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.