- From: Dan Brickley <danbri@danbri.org>
- Date: Thu, 9 Jun 2011 11:11:54 +0200
- To: Richard Cyganiak <richard@cyganiak.de>
- Cc: RDF WG <public-rdf-wg@w3.org>
On 9 June 2011 10:49, Richard Cyganiak <richard@cyganiak.de> wrote: > Dan, > > On 8 Jun 2011, at 17:02, Dan Brickley wrote: >> This can be used in RDFa as so: <p>blah blah <span >> property="foaf:age">39</span> blah</p>. >> >> If we try to persuade publishers to put datatype="xsd:integer" >> alongside each age, ... we'll have a hard time. So is there anything >> we can do at the schema level? Mumble mumble range mumble... > > I see this mostly as a syntax problem, not a schema problem. I'm sympathetic to that. > Realistically, I think the correct answer is to bury RDF's datatypes under a mountain of syntactic sugar. Turtle does this quite a bit and it works well. With JSON we can do it to the same degree. RDFa didn't attempt it, but rather tried to align the surface syntax closely with the abstract syntax, which I think in hindsight (20/20 etc) was a lost opportunity. > > Speaking of microdata. They said: “Forget prefix mappings, we'll just use short URIs.” That's a winning formula. Two years from now, the rdf:, rdfs:, and xsd: namespace URIs with all that clutter inside will feel like they were designed by a deranged madman. We should pave the road so that a future WG can unify them as something like <http://w3.org/ns/rdf#> or even <http://rdf.w3.org/>. And to that. > To recap, if someone wants to state their age in RDFa, it is: > > ... > prefix="foaf: http://xmlns.com/foaf/0.1/ xsd: http://www.w3.org/2001/XMLSchema#" > ... > <span property="foaf:age" datatype="xsd:integer">39</span> > > But if the RDFa syntax had turned out a bit differently, and the FOAF project had chosen a different namespace URI, it could well have been (in HTML+RDFa): > > <span integer property=http://foaf.org/age>39</span> The foaf.org domain was gone by the time we started using the name. Regarding the '/foaf/0.1/', ... hindsight is a wonderful thing. Success snuck up on us slowly and there never felt like a 'right time' to switch. First rule of namespace URI design "you're more likely to regret things you included, than things you omitted". I do have 'foaf.tv' though, which is even shorter. It isn't being used for much that can't be moved. > Or perhaps the RDFa WG and the FOAF project can still make it so. At any rate, it doesn't look like a model problem to me. Well foaf:age does not currently have a datatype set, for the verbosity reasons you give. Perhaps datatype annotations can be added into RDFa 1.1 profiles? cheers, Dan
Received on Thursday, 9 June 2011 09:12:24 UTC