rdf - Restrict SPARQL query to a certain kind of Class -
rdf - Restrict SPARQL query to a certain kind of Class -
i have sparql query select resources has location "california" within dbpedia database:
select distinct ?subj { ?subj dbpprop:location dbpedia:california . } limit 100
now problem filter results, ?subj
sub-class of class, e.g. dbpedia:public_company
.
i tried sth. this:
select distinct ?subj { ?subj dbpedia:public_company . ?subj dbpprop:location dbpedia:california . } limit 100
but results in empty result set.
how can restrict ?subj
type of class?
your query right way restrict instances of class. if empty result set, means there no instances found. briefly looked around in dbpedia , didn't encounter instances of dbpedia:public_company
. perchance have typo in class name.
rdf sparql owl rdfs
Comments
Post a Comment