-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add
def-not-only-xref-violation.sparql
(#2549)
This violation has results when a definition has other annotations than `oio:hasDbXref`. Only `oio:hasDbXref` is allowed in the definition. Co-authored-by: Anita Caron <[email protected]> Co-authored-by: CEastwood <[email protected]>
- Loading branch information
1 parent
300ce8a
commit 29b9465
Showing
3 changed files
with
21 additions
and
2 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
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,18 @@ | ||
PREFIX oio: <http://www.geneontology.org/formats/oboInOwl#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX definition: <http://purl.obolibrary.org/obo/IAO_0000115> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
|
||
SELECT ?cls ?annotation WHERE | ||
{ | ||
?cls definition: ?def . | ||
?ax a owl:Axiom; | ||
owl:annotatedSource ?cls; | ||
owl:annotatedProperty definition:; | ||
owl:annotatedTarget ?def; | ||
?annotation ?value . | ||
FILTER NOT EXISTS { ?cls owl:deprecated "true"^^xsd:boolean . } | ||
FILTER(isIRI(?cls) && STRSTARTS(str(?cls), "http://purl.obolibrary.org/obo/CL_") || STRSTARTS(str(?cls), "http://purl.obolibrary.org/obo/cl#")) | ||
FILTER (?annotation NOT IN (rdf:type, owl:annotatedSource, owl:annotatedProperty, owl:annotatedTarget, oio:hasDbXref)) | ||
} |