-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add obsolete report with replaced_by information (#2372)
* add sparql query * add sparql check config
- Loading branch information
Anita Caron
authored
Apr 4, 2022
1 parent
c1b5c5f
commit 167a948
Showing
3 changed files
with
69 additions
and
1 deletion.
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
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
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,67 @@ | ||
PREFIX obo: <http://purl.obolibrary.org/obo/> | ||
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX replaced_by: <http://purl.obolibrary.org/obo/IAO_0100001> | ||
|
||
SELECT DISTINCT ?entity ?property ?value ?replaced_by WHERE { | ||
{ | ||
VALUES ?property { | ||
rdfs:subClassOf | ||
} | ||
?entity a owl:Class; | ||
owl:deprecated true ; | ||
?property ?value . | ||
OPTIONAL { ?entity replaced_by: ?replaced_by } | ||
FILTER ( ?value NOT IN (oboInOwl:ObsoleteClass, owl:Thing) ) | ||
} | ||
UNION | ||
{ | ||
VALUES ?property { | ||
owl:equivalentClass | ||
owl:disjointWith | ||
} | ||
?entity a owl:Class; | ||
owl:deprecated true ; | ||
?property ?value . | ||
OPTIONAL { ?entity replaced_by: ?replaced_by } | ||
} | ||
UNION | ||
{ | ||
VALUES ?property { | ||
rdfs:subClassOf | ||
owl:equivalentClass | ||
owl:disjointWith | ||
} | ||
?entity a owl:Class; | ||
owl:deprecated true . | ||
?value ?property ?entity . | ||
OPTIONAL { ?entity replaced_by: ?replaced_by } | ||
} | ||
UNION | ||
{ | ||
VALUES ?property { | ||
owl:ObjectProperty | ||
owl:DataProperty | ||
} | ||
?entity a owl:Class ; | ||
owl:deprecated true ; | ||
?property ?value . | ||
OPTIONAL { ?entity replaced_by: ?replaced_by } | ||
} | ||
UNION | ||
{ | ||
VALUES ?property { | ||
owl:someValuesFrom | ||
owl:allValuesFrom | ||
} | ||
?value a owl:Class ; | ||
owl:deprecated true . | ||
?rest a owl:Restriction ; | ||
?property ?value . | ||
OPTIONAL { ?value replaced_by: ?replaced_by } | ||
BIND("blank node" as ?entity) | ||
} | ||
} | ||
ORDER BY ?entity |