-
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.
- Loading branch information
Showing
1 changed file
with
12 additions
and
10 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 |
---|---|---|
@@ -1,14 +1,16 @@ | ||
# home: hp | ||
prefix hasDbXref: <http://www.geneontology.org/formats/oboInOwl#hasDbXref> | ||
prefix oio: <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#> | ||
# # Invalid Xref | ||
# | ||
# **Problem:** A database_cross_reference is not in CURIE format. | ||
# | ||
# **Solution:** Replace the reference with a [CURIE](https://www.w3.org/TR/2010/NOTE-curie-20101216/). | ||
|
||
SELECT DISTINCT ?entity ?property ?value WHERE | ||
{ | ||
?entity hasDbXref: ?x . | ||
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
|
||
FILTER( regex(STR(?x), " ") || regex(STR(?x), ";") || STR(?x) = "" ) | ||
BIND(hasDbXref: AS ?property) | ||
SELECT DISTINCT ?entity ?property ?value WHERE { | ||
VALUES ?property {oboInOwl:hasDbXref} | ||
?entity ?property ?value . | ||
FILTER (!regex(?value, "^[A-Za-z_][A-Za-z0-9_.-]*[A-Za-z0-9_]:[^\\s]+$")) | ||
FILTER (!isBlank(?entity)) | ||
} | ||
ORDER BY ?entity |