Skip to content

DiseaseOntology/SPARQLqueries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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). All utilize the data in the Human Disease Ontology (DO) (https://disease-ontology.org / GitHub: HumanDiseaseOntology). Some are federated queries that access additional SPARQL endpoints.

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

Query File Information

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.

Code to list DO query IDs

All DOq Numeric IDs (with count)

find . -name "*.rq" -exec grep -Eh "[# ]id:" {} + | sort --reverse | uniq -c

Duplicated DOq IDs

find . -name "*.rq" -exec grep -Eh "[# ]id:" {} + | sort --reverse | uniq -c | grep -E "[^1] [# ]id:"

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/.

About

SPARQL queries for the DO-KB SPARQL sandbox and endpoint

Topics

Resources

License

Stars

Watchers

Forks

Contributors