Skip to content

Instantly share code, notes, and snippets.

@jctoledo
Created February 19, 2014 23:50
Show Gist options
  • Save jctoledo/9104054 to your computer and use it in GitHub Desktop.
Save jctoledo/9104054 to your computer and use it in GitHub Desktop.
findall bioassays that have as target uniprot:Q15835 #chemblquery
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 cco: <http://rdf.ebi.ac.uk/terms/chembl#>
select ?assay
where{
?assay rdf:type <http://rdf.ebi.ac.uk/terms/chembl#Assay>.
?assay <http://rdf.ebi.ac.uk/terms/chembl#hasTarget> ?atarget.
?atarget <http://rdf.ebi.ac.uk/terms/chembl#hasTargetComponent> ?atarget_component.
?atarget_component <http://www.w3.org/2004/02/skos/core#exactMatch> <http://purl.uniprot.org/uniprot/Q15835>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment