Skip to main content

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

From: Using Semantic Web technology to support icd-11 textual definitions authoring

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"))

  }