I'm trying to querying with SPARQL on a triplestore storing datasets (I speak about a specific group of data stored in a global graph of a triplestore dataset) with metadatas. The metadatas describe how the data are computed. Each datasets has his own metadatas described by two nodes types and two properties types.
##The triples I want :
#The dataset
eg:myDataSet a _:DataSet.
#The nodes
_:N1 a _:NodeAType .
_:N2 a _:NodeAType .
_:N4 a _:NodeAType .
_:N5 a _:NodeAType .
_:N3 a _:NodeBType .
_:N6 a _:NodeBType .
#The properties
_:N2 eg:hasSource _:N1 .
_:N4 eg:hasSource _:N3 .
_:N3 eg:from _:N2 .
_:N6 eg:from _:N4 .
_:N6 eg:from _:N5 .
#Some links to the Dataset
eg:myDataSet eg:hasNodeA _:N2 .
eg:myDataSet eg:hasNodeA _:N5 .
eg:myDataSet eg:hasNodeB _:N6 .
##Some triples I don't want :
eg:myDataSet2 a _:DataSet.
_:N7 a _:NodeAType .
_:N8 a _:NodeBType .
_:N8 eg:from _:N7 .
eg:myDataSet eg:hasNodeB _:N8 .
eg:myDataSet eg:hasNodeA _:N7 .
So I don't see how to query, with SPARQL, all the triples I want, who define my dataset metadatas, when I only know the URI eg:myDataSet
. Of course, I don't want the metadatas of the other graphs stored.
Any idea ?