-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add report to WARN of newline chars in text
Prefer that no text contain newline characters. Works for CR and/or LF.
- Loading branch information
1 parent
8315f3b
commit 843b282
Showing
2 changed files
with
25 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,24 @@ | ||
# returns entities with text elements that have newline characters in them | ||
|
||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
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 { | ||
rdfs:label | ||
obo:IAO_00001115 | ||
oboInOwl:hasExactSynonym | ||
oboInOwl:hasBroadSynonym | ||
oboInOwl:hasNarrowSynonym | ||
oboInOwl:hasRelatedSynonym | ||
rdfs:comment | ||
} | ||
?entity ?property ?value . | ||
|
||
FILTER(REGEX(?value, "[\\r\\n]")) | ||
FILTER NOT EXISTS { ?entity owl:deprecated true } | ||
} |
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