Quantcast
Viewing latest article 18
Browse Latest Browse All 36

Federated SPARQL query using dbpedia

Hello,

I want to indicate that an entity in my dataset is a particular vaccine in dbpedia. After asserting the information, I'd like to infer the properties of the said vaccine from dbpedia. How should one write such a query?

I have tried the following but it doesn't appear to work:

PREFIX ns: <http://purl.org/net/ns/>
PREFIX dbpedia: <http://dbpedia.org/resource/>
PREFIX dbprop: <http://dbpedia.org/property/>

SELECT ?target
WHERE {
  SERVICE <http://dbpedia.org/sparql>{
    ns:Rotavirus a dbpedia:Rotavirus_vaccine.
    dbpedia:Rotavirus_vaccine dbpprop:target ?target.
  }
}

Viewing latest article 18
Browse Latest Browse All 36

Trending Articles