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

9.1 Property Path Syntax

From: Nicholas Humfrey <nicholas.humfrey@bbc.co.uk>
Date: Mon, 13 Aug 2012 11:09:33 +0100
To: <public-rdf-dawg-comments@w3.org>
Message-ID: <CC4E90ED.7D57C%nicholas.humfrey@bbc.co.uk>
Hello,

I am looking at implementing a small subset of the SPARQL 1.1 Property Path
syntax in EasyRdf. Although it doesn't support SPARQL querying internally,
the property path syntax is useful for fetching values like this:
$names = $person->all('foaf:knows/foaf:name');


However I am finding the Property Path Syntax for an IRI is slightly
confusing:
"iri is either an IRI written in full or abbreviated by a prefixed name"

How should implementers distinguish between an IRI and a property path?
Shouldn't a full IRI be enclosed in angle brackets?
<http://xmlns.com/foaf/0.1/knows>

Hence property paths can only be used with prefixed names? I think an
example might help.


Thanks,

nick.


http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
					
Received on Monday, 13 August 2012 10:10:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 13 August 2012 10:10:12 GMT