r1 - 2015-09-29 - 00:37:18 - NickCrossleyYou 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.

New product names: The CE/CLM products were renamed in version 7.0. For details on the name change, see Renaming the IBM Continuous Engineering Portfolio. Some content might continue to use the previous names or contain a combination of the previous and current names.

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

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 the 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