-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add INFO-level report test identifying URLs as xrefs
Primarily to identify where a definition source URL was accidentally added as an annotation on the class instead of an annotation on the definition.
- Loading branch information
1 parent
5e4c98c
commit c2a0b33
Showing
2 changed files
with
18 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
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,17 @@ | ||
# identifies definition xrefs (URLs) annotated on the class instead of | ||
# directly annotated on the definition | ||
|
||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX obo: <http://purl.obolibrary.org/obo/> | ||
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#> | ||
|
||
SELECT DISTINCT ?entity ?property ?value | ||
WHERE { | ||
VALUES ?property { oboInOwl:hasDbXref } | ||
?entity a owl:Class ; | ||
?property ?value . | ||
|
||
FILTER(REGEX(?value, "https?:")) | ||
FILTER NOT EXISTS { ?entity owl:deprecated "true"^^xsd:boolean } | ||
} |