r1 - 2015-09-29 - 00:37:18 - Main.ndjcYou are here: TWiki >  LinkedData Web > BestPractices > UseOfRDFDataTypes
This wiki: The development wiki is a work area where Jazz development teams plan and discuss technical designs and operations for the projects at Jazz.net. Work items often link to documents here. You are welcome to browse, follow along, and participate. Participation is what Jazz.net is all about! But please keep in mind that information here is "as is", unsupported, and may be outdated or inaccurate. For information on released products, consult IBM Knowledge Center, support tech notes, and the Jazz.net library. See also the Jazz.net Terms of Use.

Any documentation or reference material found in this wiki is not official product documentation, but it is primarily for the use of the development teams. For your end use, you should consult official product documentation (infocenters), IBM.com support artifacts (tech notes), and the jazz.net library as officially "stamped" resources.

Best Practice: Use of RDF data types

State: Draft

Contact: Nick Crossley


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


  • 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





  Example 1

See Also

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
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.