Skip to content

DiseaseOntology/SPARQLqueries

Repository files navigation

DO-KB SPARQL queries

This repository contains SPARQL (version 1.11) queries designed for the Disease Ontology Knowledgebase (DO-KB) SPARQL sandbox (online editor) and endpoint (programmatic access/federated query endpoint) and utilize the data in the Human Disease Ontology (DO) (disease-ontology.org / GitHub: HumanDiseaseOntology).

Each query file has a metadata header (# commented YAML) followed by the SPARQL query. All metadata headers start with the following fields:

  • id: A unique identifier in the format DOq[0-9]{3}.
  • description: A brief description of what the query returns
  • input: The source(s) that is/are queried.

Additional fields may also be included.

Additional information can be found on the SPARQL resources page of disease-ontology.org.

Code to list DO query IDs
grep -REh "[# ]id:" * | grep -Eo "DOq[0-9]{3}" | sort --reverse | uniq -c

Footnotes

  1. The SPARQL query language is designed "to query and manipulate RDF graph content on the Web or in an RDF store." Detailed information about SPARQL 1.1 is available from the W3C at https://www.w3.org/TR/2013/REC-sparql11-overview-20130321/.