W3C home > Mailing lists > Public > public-rdf-comments@w3.org > July 2012

Re: in...of syntax Re: Turtle Last Call: Request for Review

From: Dan Brickley <danbri@danbri.org>
Date: Mon, 16 Jul 2012 22:11:06 +0100
Message-ID: <CAFfrAFriitpFv4qRS_Y7os79-YavMa_aP2ukgXyB49Ek4rxnsA@mail.gmail.com>
To: Tim Berners-Lee <timbl@w3.org>
Cc: public-rdf-comments@w3.org, David Wood <david@3roundstones.com>, Sandro Hawke <sandro@w3.org>
On 16 July 2012 21:36, Tim Berners-Lee <timbl@w3.org> wrote:
> I would like to formalize the request I have made at intervals
> to include the     is ... of syntax as in N3 in Turtle.
> Motivations:
> - It is convenient for human Turtle writers.
>         Example:
>         foaf:Person is rdf:type of :Alice, :Bob, :Charlie, :David, :Elisa .


foo:TechnicalPerson is rdfs:subClassOf foaf:Person .

giving us

foaf:Person is rdfs:subClassOf of foo:TechnicalPerson .


bar:copyeditor rdfs:subPropertyOf dc:contributor .

giving us

dc:contributor is rdfs:subPropertyOf of bar:copyeditor .

Cutting out the namespaces and reading the English, we get

"Person is subClassOf of TechnicalPerson", and "contributor is
subPropertyOf of copyeditor".

The repetitition of 'of' here reminds me unhappily of


Ultimately I think the old RDFS WG takes the blame here; we should
have called these 'superProperty' and 'superClass': "Person is
superClass of TechnicalPerson" is just fine.

You might argue that there are a handful of properties (those with
'of' in the name, mostly) for which this shortcut is really bad, but
perhaps it's still useful.

I am entirely sat on the fence. I don't feel comfortable turning
Turtle (and SPARQL too?) into more of a pseudo-English thing. On the
other hand ...

> - By allowing a predicate to be used in either direction, it decreases
> the motivation for the antipattern define both p and inverse of p for all p.
> In other words, of you can write   "is child of" you don't need
> to define a separate "parent" property.

...this is quite persuasive, though note that RDF vocabulary authors
take more into account than Turtle: if 'rev=' is not considered
deployable in HTML5+RDFa, they'll still include the inverses.


Received on Monday, 16 July 2012 21:11:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:59:30 UTC