SPARQL query for getting DBpedia triples when an entity is subject?

Bahadar Ali Source

I got the subjects of a resource e.g. Michael Jordan using below query:

SELECT ?subjects 
   <> dct:subject ?subjects .

Now I want to get all resources where the resource 'Michael Jordan' itself is subject. I'm using this query editor. Please help in this regard.



answered 7 months ago Erwarth #1

In DBpedia, 'subjects' that you are mentioning are represented with categories which are type of SKOS concepts. So you should first find the categories which might represent Michael Jordan, in this case, probably you should pose this query:

   ?s dct:subject <> .

comments powered by Disqus