How can one extract rdf:about or rdf:ID properties from triples using SPARQL?

Posted by lennyks on Stack Overflow See other posts from Stack Overflow or by lennyks
Published on 2010-05-03T20:12:49Z Indexed on 2010/05/03 22:08 UTC
Read the original article Hit count: 299

Filed under:
|
|
|
|

It seemed a trivial matter at the beginning but so far I have not managed to get the unique identifier for a given resource using SPARQL. What I mean is given, e.g., rdf:Description rdf:about="http://..." and then some properties identifying this resource, what I want to do is to first find this very resource and then retrieve all the triples given some URI.

I have tried naïve approaches by writing statements in a WHERE clause such as:

?x rdf:about ?y and ?x rdfs:about ?y

I hope I am being precise.

© Stack Overflow or respective owner

Related posts about java

Related posts about semantic-web