In RDF 1.1 “Simple literals are syntactic sugar for abstract syntax literals <https://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#dfn-literal> with the datatype IRI <https://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#dfn-datatype-iri> http://www.w3.org/2001/XMLSchema#string” https://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#section-Graph-Literal
On Fri, 16 Jul 2021 at 09.35, Laura Morales <[email protected]> wrote: > When I insert new triples into a Jena/Fuseki store, are *all* the quoted > literals treated as strings by default unless I specify the type explicitly > (eg. xsd:dateTime)? Or does Jena use duck typing to determine the best type > fit for storing the value? > What about numbers instead? Will Jena store 42 as an xsd:integer and 42.99 > as xsd:double if I don't explicitly write the type? > > How can I specify a set of constraints in Fuseki for all the properties of > my model? For example "this property is a double, with range [1.0 .. 2.0]" > (the same way that I can specify constraints on Postgres for example)? >
