How to query items of a Sequence ?

Hi everyone,

We are using sequences in our project and we are having difficulties finding
a way to query our ontology to get all items of a sequence using SPARQL.

The sequence in our ontology looks like this :

<rdf:Seq rdf:about="http://www.url.com/someonto.owl#1317<http://www.datashaper.org/owl/2009/10/generic.owl#GENERIC_1317>
"/>

<rdf:Seq rdf:about="http://www.url.com/someonto.owl#1317<http://www.datashaper.org/owl/2009/10/generic.owl#GENERIC_1317>
"/>
    <rdf:_1 rdf:resource="http://www.url.com/someonto.owl#<http://www.datashaper.org/owl/2009/10/generic.owl#GENERIC_1317>
314 <http://www.datashaper.org/owl/2009/10/generic.owl#GENERIC_314>"/>
</rdf:Description>

<rdf:Seq rdf:about="http://www.url.com/someonto.owl#1317<http://www.datashaper.org/owl/2009/10/generic.owl#GENERIC_1317>
"/>
    <rdf:_2 rdf:resource="http://www.url.com/someonto.owl#<http://www.datashaper.org/owl/2009/10/generic.owl#GENERIC_1317>
194 <http://www.datashaper.org/owl/2009/10/generic.owl#GENERIC_194>"/>
</rdf:Description>

<rdf:Seq rdf:about="http://www.url.com/someonto.owl#1317<http://www.datashaper.org/owl/2009/10/generic.owl#GENERIC_1317>
"/>
    <rdf:_3 rdf:resource="http://www.url.com/someonto.owl#<http://www.datashaper.org/owl/2009/10/generic.owl#GENERIC_1317>
GENERIC_113 <http://www.datashaper.org/owl/2009/10/generic.owl#GENERIC_113>
"/>
</rdf:Description>

We are able to find the sequence
"http://www.url.com/someonto.owl#1317<http://www.datashaper.org/owl/2009/10/generic.owl#GENERIC_1317>"
with the following query :
SELECT ?sequence WHERE { ?sequence <" + RDF.TYPE + "> <" + RDF.SEQ + "> }

But is there a way to have a query that will return the items _1, _2 and _3
directly ?

Thank you,

Etienne Morency-Bachand

Received on Wednesday, 4 November 2009 23:55:08 UTC