Hi there, I am just starting with Sparql and RDF. We are using a Virtuoso endpoint, and now I am trying to investigate the data, and I want to "find" more data, I want to find how items are related, but not just on the first level.
I will give you an example of what I want:
This will find me objects, two levels deep. I could easily extend this to find three levels, four levels, ... Then I read about
E.g. theoretically, the following query could replace the previous:
However, this query does not give me the same results as the first one. Is there a smart way to make this work? Or should I be looking at something like:
Which does not return any result, so I am still doing something wrong.
But anyway that approach seems like it could work, I should have to
So in short: what is the best way to find related items, indifferent of the specific type of the relation (and direction), and to preferable some levels deep?
Possible idea (not sure how to execute it): should I define an inference, a superclass of all possible relations (
Ok, I found my answer, after playing around with sparql the whole day, I was able to a transitive query in virtuoso to find all objects somehow "pointing" to my object.
answered 01 Feb, 11:34