- From: Antoine Zimmermann <antoine.zimmermann@emse.fr>
- Date: Wed, 27 Feb 2013 11:02:29 +0100
- To: Peter Patel-Schneider <pfpschneider@gmail.com>
- CC: RDF WG <public-rdf-wg@w3.org>
Hmm, reading the concept of simple literals again, I find it strange. It seems to me that simple literals is something that exists at an abstract level, as a simple literal can be concretely serialised in many ways, yet the spec says that it only exists in concrete syntaxes. in Turtle, simple literals are serialised as "blabla", while in RDF/XML, it can be either: <ex:prop>blabla</ex:prop> or <ex:Something ex:prop="blabla"/> So, maybe it should be said that concrete syntaxes MAY write literals of type xsd:string in a way that does not indicate the datatype. But then it's true for any datatype, e.g., Turtle's xsd:integer: ex:subject ex:pred 3 . or Turtle's xsd:decimal ex:subject ex:pred 3.1425 . So, maybe we should not say anything about simple literals in concepts, and let the concrete syntaxes specify what syntactic sugar they use for literals, whatever their types. AZ Le 26/02/2013 20:56, Peter Patel-Schneider a écrit : > Concepts currently says that simple literals are xsd:string. Is this > the case for all RDF syntaxes, i.e., are there RDF syntaxes that allow > simple literals that mean integers or decimals or floats. > > Concepts currently says that simple literals consist of a lexical form > only. This appears to permit simple literals not to have enclosing quotes. > > Wouldn't it be better to just say, that concrete RDF syntaxes may > support simple literals, which do have an explicit datatype. The > concrete syntax must provide a mapping from simple literals to either > literals or language-tagged strings as defined in Concepts. For > example, 100 might map to the literal with lexical form "100" and > datatype xsd:integer or "100" might map to ... or "100"@en might map to .... > > peter > -- Antoine Zimmermann ISCOD / LSTI - Institut Henri Fayol École Nationale Supérieure des Mines de Saint-Étienne 158 cours Fauriel 42023 Saint-Étienne Cedex 2 France Tél:+33(0)4 77 42 66 03 Fax:+33(0)4 77 42 66 66 http://zimmer.aprilfoolsreview.com/
Received on Wednesday, 27 February 2013 10:03:52 UTC