prefix omim: prefix skos: prefix rdfs: prefix owl: prefix oboInOwl: prefix rdf: prefix xsd: prefix mondo: prefix mondoSparqlQcGeneral: prefix mondoSparqlQcMondo: prefix mondoPatterns: SELECT DISTINCT ?entity ?property ?value WHERE { ?entity rdfs:subClassOf ?parent . ?exp owl:annotatedSource ?entity ; owl:annotatedProperty oboInOwl:hasDbXref ; owl:annotatedTarget ?xref; oboInOwl:source ?source . ?exp_p owl:annotatedSource ?parent ; owl:annotatedProperty oboInOwl:hasDbXref ; owl:annotatedTarget ?xref_p; oboInOwl:source ?source_p . ?entity rdfs:label ?entity_label . FILTER NOT EXISTS { ?entity mondo:excluded_from_qc_check mondoSparqlQcMondo:qc-omim-subsumption.sparql . } FILTER (isIRI(?entity) && STRSTARTS(str(?entity), "http://purl.obolibrary.org/obo/MONDO_")) FILTER (isIRI(?parent) && STRSTARTS(str(?parent), "http://purl.obolibrary.org/obo/MONDO_")) FILTER(STRSTARTS(str(?xref), "OMIM:")) FILTER(STRSTARTS(str(?xref_p), "OMIM:")) FILTER(str(?source)="MONDO:equivalentTo") FILTER(str(?source_p)="MONDO:equivalentTo") BIND(rdfs:subClassOf as ?property) BIND(REPLACE(STR(?parent),"[<>]","") AS ?value) } ORDER BY ?entity