Skip to main content
. 2013 Apr 21;4:11. doi: 10.1186/2041-1480-4-11

Table 3.

A SPARQL query against the SPARQL endpoint of the DBpedia to extract the disease definition information in the language of English

SPARQL Query Note
SELECT DISTINCT ?label ?abstract ?meshId ?wikipediaLink
To extract the disease definition information in the language of English from Dbpedia
  WHERE {
      ?s a <http://dbpedia.org/ontology/Disease>.
      ?s rdfs:label ?label.
      ?s <http://dbpedia.org/ontology/abstract> ?abstract.
      ?s <http://dbpedia.org/ontology/meshId> ?meshId .
      ?wikipediaLink <http://xmlns:m.com/foaf/0.1/primaryTopic> ?s.
      FILTER (langMatches(lang(?label), "en") && langMatches(lang(?abstract), "en"))
  }