Skip to content

Instantly share code, notes, and snippets.

@jctoledo
Created February 19, 2014 23:30
Show Gist options
  • Save jctoledo/9103820 to your computer and use it in GitHub Desktop.
Save jctoledo/9103820 to your computer and use it in GitHub Desktop.
get all assay uris that contain "kinase" in their descriptions
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 *
where{
?assay rdf:type <http://rdf.ebi.ac.uk/terms/chembl#Assay>.
?assay <http://purl.org/dc/terms/description> ?aDesc.
FILTER regex(str(?aDesc), "kinase", "i")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment