-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add report for reviewing proxy merges (#8579)
I am merging this because its needed now and does not effect the pipeline in any way.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
prefix owl: <http://www.w3.org/2002/07/owl#> | ||
prefix oboInOwl: <http://www.geneontology.org/formats/oboInOwl#> | ||
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
|
||
#description: No two Mondo IDs should ever point to the same external ID | ||
|
||
SELECT DISTINCT ?entity ?label ?entity2 ?label2 ?xref WHERE { | ||
?entity oboInOwl:hasDbXref ?xref . | ||
?entity rdfs:label ?label . | ||
|
||
?entity2 oboInOwl:hasDbXref ?xref . | ||
?entity2 rdfs:label ?label2 . | ||
|
||
?xref_anno2 a owl:Axiom ; | ||
owl:annotatedSource ?entity ; | ||
owl:annotatedProperty oboInOwl:hasDbXref ; | ||
owl:annotatedTarget ?xref ; | ||
oboInOwl:source ?source1 . | ||
|
||
?xref_anno a owl:Axiom ; | ||
owl:annotatedSource ?entity2 ; | ||
owl:annotatedProperty oboInOwl:hasDbXref ; | ||
owl:annotatedTarget ?xref ; | ||
oboInOwl:source ?source2 . | ||
|
||
FILTER (?entity2!=?entity) | ||
FILTER ((str(?source1)="MONDO:equivalentTo") || (str(?source1)="MONDO:obsoleteEquivalent") || (str(?source1)="MONDO:equivalentObsolete") || (str(?source1)="MONDO:obsoleteEquivalentObsolete")) | ||
FILTER ((str(?source2)="MONDO:equivalentTo") || (str(?source2)="MONDO:obsoleteEquivalent") || (str(?source2)="MONDO:equivalentObsolete") || (str(?source2)="MONDO:obsoleteEquivalentObsolete")) | ||
FILTER (isIRI(?entity) && STRSTARTS(str(?entity), "http://purl.obolibrary.org/obo/MONDO_")) | ||
FILTER (isIRI(?entity2) && STRSTARTS(str(?entity2), "http://purl.obolibrary.org/obo/MONDO_")) | ||
BIND(IRI(CONCAT("http://mondo.source/", ?xref)) AS ?property) | ||
BIND(str(?entity2) as ?value) | ||
} | ||
ORDER BY ?entity |