Skip to content

Instantly share code, notes, and snippets.

@kozo2
Last active June 14, 2016 17:11
Show Gist options
  • Select an option

  • Save kozo2/23934284fb3419167e99945fd8746977 to your computer and use it in GitHub Desktop.

Select an option

Save kozo2/23934284fb3419167e99945fd8746977 to your computer and use it in GitHub Desktop.
bh16 sparqls
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX biopax3: <http://www.biopax.org/release/biopax-level3.owl#>
SELECT DISTINCT ?pathway ?pathwayname ?rea ?l ?r
WHERE
{
?pathway rdf:type biopax3:Pathway .
?pathway biopax3:displayName ?pathwayname .
?pathway biopax3:organism <http://identifiers.org/taxonomy/4932> .
?pathway biopax3:pathwayComponent ?rea .
?rea biopax3:left ?l .
?rea biopax3:right ?r .
}
LIMIT 100
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX biopax3: <http://www.biopax.org/release/biopax-level3.owl#>
SELECT DISTINCT ?pathway ?pathwayname
WHERE
{?pathway rdf:type biopax3:Pathway .
?pathway biopax3:displayName ?pathwayname .
?pathway biopax3:pathwayComponent ?reaction .
?reaction rdf:type biopax3:BiochemicalReaction .
{
{?reaction ?rel ?protein .}
UNION
{
?reaction ?rel ?complex .
?complex rdf:type biopax3:Complex .
?complex ?comp ?protein .
}}
?protein rdf:type biopax3:Protein .
?protein biopax3:entityReference <http://purl.uniprot.org/uniprot/P01308>
}
LIMIT 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment