Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[bioontology-support] transitive inference in sparql queries

Olivier Dameron olivier.dameron at univ-rennes1.fr
Mon Apr 7 15:15:41 PDT 2014


Hello,
   I have a need for transitive inference in sparql queries (e.g.
retrieving all the superclasses of a class). The classic path-based
approach (rdfs:subClassOf*) does not seem to work:

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX obol: <http://www.geneontology.org/formats/oboInOWL#>
PREFIX do: <http://purl.bioontology.org/ontology/DOID>
PREFIX omim: <http://purl.obolibrary.org/obo/OMIM_>

SELECT ?anc ?label
FROM <http://bioportal.bioontology.org/ontologies/DOID>
WHERE
{
    ?source obol:xref	omim:114500 .
    ?source rdfs:subClassOf* ?anc .
    ?anc rdfs:label ?label
}

However, a previous email by Ray suggests that this is possible:
http://lists.w3.org/Archives/Public/public-semweb-lifesci/2012Nov/0003.html

Am I missing something?
thank you
olivier


More information about the bioontology-support mailing list