|
Hi, I have an ontology where Basically, I am doing this:
I am pretty sure, using Thanks. ~Codera |
|
How about
? |
|
Or to avoid the FILTER:
Or abbreviated:
Or abbreviated further:
Or SPARQL 1.1 bind:
I like the use of FILTER here, since I don't like repeating the URI. Mind you, many toolsets would let you just use ?x in your query and bind ?x to a URI when you do the query, and that's convenient. Including SPARQL 1.1. http://www.w3.org/TR/sparql11-query/#bind
The |
|
Duplicating my answer from StackOverflow: Assuming you want a purely exploratory query of the form "give me all the triples about a subject" it should look the following:
This will give you all predicate object pairs associated with the constant URI you pass in. If you are interesting in incoming as well as outgoing properties you could do the following instead:
|


Duplicated on http://stackoverflow.com/questions/9396623/how-to-query-an-rdf-individual-for-its-data-properties