Open kaxelsen opened 10 months ago
Formatted query written in a way that can be run at ontobee or rhea-db
PREFIX CHEBI: <http://purl.obolibrary.org/obo/CHEBI_>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?chebi ?label ?comment
FROM <http://sparql.rhea-db.org/chebi>
FROM <http://purl.obolibrary.org/obo/merged/CHEBI>
WHERE {
?chebi <http://purl.obolibrary.org/obo/IAO_0000115> ?comment .
FILTER(CONTAINS(?comment, "mixture"))
OPTIONAL {
?chebi rdfs:subClassOf* CHEBI:60004 .
BIND(true AS ?isMixture)
}
FILTER(!BOUND(?isMixture))
FILTER(?chebi != CHEBI:60004)
?chebi rdfs:label ?label .
}
This query is slightly different and shows 90 result at this time. This one materializes the full "is_a" hierarchy, that I thought was already materialized in the data sources.
Hi Adnan,
Jerven from our development team identified a range of compounds which in their definitions were described as mixtures without being linked to 'mixture ' in the ontology.
He has generated a list which is currently available at this URL: https://tinyurl.com/ypxjhtl2
If it expires you can generate the list at sparql.rhea-db.org using this query: SELECT ?chebi ?label ?comment WHERE { GRAPH < http://sparql.rhea-db.org/chebi> { ?chebi < http://purl.obolibrary.org/obo/IAO_0000115> ?comment . FILTER(CONTAINS(?comment, "mixture")) OPTIONAL { ?chebi rdfs:subClassOf CHEBI:60004 . BIND(true AS ?isMixture) } FILTER(!BOUND(?isMixture)) FILTER(?chebi != CHEBI:60004) ?chebi rdfs:label ?label . } }
Best, Kristian