W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > May 2006

Blank node treatment is unclear [resent]

From: Simon Gibbs <simon.gibbs@cantorva.com>
Date: Wed, 3 May 2006 10:47:12 +0100 (BST)
Message-ID: <1545.>
To: public-rdf-dawg-comments@w3.org


Following on from a chat on #swig I have a test case for discussion
purposes. See http://cantorva.com/2006NS/Section0214BlankNodesTestCase.rdf
for test data and commentry.

I've implemented a SPARQL engine which implements blank nodes per
section 2.8.3 which gives blank node labels query scope. Section 2.5.4
seems to contradict this giving labels a scope specific to the basic
graph pattern. One contributor on #swig understood 2.5.4 to be the case.

See notes in the linked RDF/XML file for the differences I estimate
this will cause in the result sets. Essentially, given the linked
data, ?category is bound to a value less frequently under the regime
given by 2.8.3 since all patterns must match the same subject node
rather than matching only on the variable ?mailbox.

PREFIX ex: <http://example.org/exNS/>
SELECT ?mailbox ?category
    _:a     ex:sender ?mailbox ;
            ex:recipient <mailto:alice@example.com> .
        _:a ex:sender ?mailbox;
            ex:category ?category .

The wording in the spec that seems to be at the root of this confusion is:

2.5.4: "the scope of the blank node label being the basic graph pattern"
2.8.3: "Blank nodes have labels which are scoped to the query."

both from http://www.w3.org/TR/rdf-sparql-query/

My questions are, is this a conflict or am I missing something? If so,
what is that? Otherwise, can the WG please clarify the conflict?

Finally, thanks to all for the all of great work going into SPARQL.

Simon Gibbs

PS please forgive possible duplicate
Received on Wednesday, 3 May 2006 19:28:49 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:52:07 UTC