- From: Dave Beckett <dave.beckett@bristol.ac.uk>
- Date: Thu, 24 Oct 2002 11:44:28 +0100
- To: w3c-rdfcore-wg@w3.org
I discussed some of this with DanC, which might make things easier for
using these forms with CWM and N3 systems, in particular, the ^^ .form .
Dave
---
The N-Triples syntax for existing langstrings is changing from '-' to '@'
so now
"chat"-en-us
becomes
"chat"@en-us
and
"chat"-fr
becomes
"chat"@fr
Reason: easier to parse, prevents confusion with '-' inside the
language and there were some N3 problems confusing this with
arithmetic subtraction. It reads better too, I think :)
The N-Triples syntax for datatype values is:
"literal"^^<datatypeURI>
and with a language:
"literal"@en-us^^<datatypeURI>
examples:
"10"^^<http://www.w3.org/2001/XMLSchema#int>
"blue"@en^^<http://example.org/mycolourspace>
"bleu"@fr^^<http://example.org/mycolourspace>
Since I just took ages to find this, making URIs for W3C XML Schema
Datatypes is defined here:
[[For example, to address the int datatype, the URI is:
* http://www.w3.org/2001/XMLSchema#int
]]
-- http://www.w3.org/TR/xmlschema-2/#built-in-datatypes
so in RDF/XML, the namespace URI for xsd types would be
http://www.w3.org/2001/XMLSchema#
Some more, real non-XSD examples would be nice.
Changes to http://www.w3.org/TR/rdf-testcases/#ntrip_grammar
OLD:
literal ::= langstring | xmlString
langString ::= '"' string '"' ( '-' language )?
NEW:
literal ::= langstring | xmlString | datatypeString
langString ::= '"' string '"' ( '@' language )?
datatypeString ::= langString '^^' uriref
SHORT FORM - for documents only, not normative
"literal"^^qname
and with a language:
"literal"@en-us^^qname
examples:
"10"^^xsd:int
"blue"@en^^ex:mycolourspace
"bleu"@fr^^ex:mycolourspace
Received on Thursday, 24 October 2002 06:46:39 UTC