updates based on @swartik helpful notes

This commit is contained in:
John Beverley
2024-09-11 12:17:12 -04:00
parent e477dd06d7
commit 084b2f9db9
5 changed files with 6 additions and 6 deletions

View File

@@ -8,12 +8,12 @@
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?element ?property ?value
SELECT DISTINCT ?element ?property ?value ?error
WHERE {
?property a owl:AnnotationProperty .
?element ?property ?value .
FILTER (!isBlank(?element) && (REGEX(str(?value), "^[\\s\r\n]+") || REGEX(str(?value), "[\\s\r\n]+$")))
BIND (concat("ERROR: The following annotation values have leading or trailing whitespace ", str(?element)) AS ?error)
BIND (concat("ERROR: The following annotation value has leading or trailing whitespace ", str(?element)) AS ?error)
}
ORDER BY ?element

View File

@@ -7,7 +7,7 @@
PREFIX cco: <http://www.ontologyrepository.com/CommonCoreOntologies/>
SELECT DISTINCT ?element ?value
SELECT DISTINCT ?element ?value ?error
WHERE {
?element cco:definition ?value .
FILTER (!isBlank(?element) && (REGEX(str(?value), "^[\\s\r\n]+") || REGEX(str(?value), "[\\s\r\n]+$")))

View File

@@ -7,7 +7,7 @@
PREFIX cco: <http://www.ontologyrepository.com/CommonCoreOntologies/>
SELECT DISTINCT ?element ?definition
SELECT DISTINCT ?element ?definition ?error
WHERE {
?element cco:definition ?definition .
?element2 cco:definition ?definition .

View File

@@ -7,7 +7,7 @@
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?error ?property1 ?property2
SELECT ?property1 ?property2 ?error
WHERE
{
{

View File

@@ -7,7 +7,7 @@
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?error ?class
SELECT DISTINCT ?class ?error
WHERE
{
?class rdfs:subClassOf+ ?class .