This document is also available in these non-normative formats: Turtle RDF document (text/turtle) and Javascript specification code (application/javascript)
This document is licensed under a Creative Commons Attribution 4.0 License.
This document describes the implementation of a custom datatype that can be supported on the fly.
See this link for the useful resources for paper "Supporting Arbitrary Custom Datatypes in RDF and SPARQL", published at ESWC'2016 (see paper).
This document is draft of a potential specification. It has no official standing of any kind and does not represent the support or consensus of any standards organization.
This document is a HTML representation of custom datatypes with URI starting with https://w3id.org/lindt/v1/custom_datatypes#
. The following files are accessible:
https://w3id.org/lindt/v1/custom_datatypes
with HTTP Accept header containing text/html or application/xhtml+xml;https://w3id.org/lindt/v1/custom_datatypes.html
.https://w3id.org/lindt/v1/custom_datatypes
with HTTP Accept header containing text/turtle;https://w3id.org/lindt/v1/custom_datatypes.ttl
.https://w3id.org/lindt/v1/custom_datatypes
with HTTP Accept header containing application/javascript;https://w3id.org/lindt/v1/custom_datatypes.js
.This section is non-normative.
Datatype datatype is identified by IRI https://w3id.org/lindt/v1/custom_datatypes
, abbreviated as cdt1:length
.
Its lexical space is the concatenation of the lexical form of an xsd:decimal
, an optional space, and a unit that can be either a metric length unit, or an imperial length unit, in abbreviated form or as full words, in singular or plural form. The value space correspond to the set of lengths, as defined by the International Systems of Quantities, i.e., any quantity with dimension distance. The lexical-to-value mapping maps lexical forms with units in the metric system to their corresponding length according to the International Systems of Quantities, while the forms with an imperial unit are mapped to their equivalent length according to the International yard and pound agreement.
For example, all literals below are well formed and share the same value.
"1 mile"^^cdt1:length "5280 ft"^^cdt1:length "63360 inches"^^cdt1:length "1.609344 km"^^cdt1:length "1609.344 metre"^^cdt1:length "1.609344E+6 mm"^^cdt1:length