W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > April to June 2009

Re: Constructing containers and collections

From: <Olivier.Corby@sophia.inria.fr>
Date: Fri, 10 Apr 2009 21:26:50 +0200 (CEST)
Cc: Olivier.Corby@sophia.inria.fr
Message-ID: <40769.82.252.5.11.1239391610.squirrel@imap-sop.inria.fr>
To: public-rdf-dawg@w3.org

>>There are no current SPARQL implementations that provide a mechanism
>>that do this, to my knowledge. Does anyone on the list know differently?


In Corese we can construct a list as shown below.

a) search the elements of a list using a regular path expression and bind
the path to a $path variable (3).
b) enumerate the arcs of the path using a (special overloaded) graph
pattern on the $path variable (4).
c) group the results according to the first element of the list (6)
d) construct an arc for each arc found in the $path (1)


(1) construct { ?a ?p ?b }
(2) where {
(3)   ?x  rdf:rest*/rdf:first :: $path ?y
(4)   graph $path { ?a ?p ?b }
(5) }
(6) group by ?x

Reference:
http://www.inria.fr/sophia/edelweiss/software/corese

Best regards,

Olivier
Received on Friday, 10 April 2009 19:27:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:00:54 UTC