report_queries.annotation_whitespace.rq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of robot-core Show documentation
Show all versions of robot-core Show documentation
Core library for ROBOT: Library for working with OWL ontologies, especially Open Biological and Biomedical Ontologes (OBO).
The newest version!
# # Annotation Whitespace
#
# **Problem:** An annotation has leading or trailing whitespace, usually a single space.
#
# **Solution:** Re-format the annotation to remove additional whitespace.
PREFIX owl:
PREFIX rdfs:
SELECT DISTINCT ?entity ?property ?value WHERE {
{?property a owl:AnnotationProperty .
?entity ?property ?value .
FILTER REGEX(str(?value), "[\\s\r\n]+$")
FILTER (!isBlank(?entity))}
UNION
{?property a owl:AnnotationProperty .
?entity ?property ?value .
FILTER REGEX(str(?value), "^[\\s\r\n]+")
FILTER (!isBlank(?entity))}
}
ORDER BY ?entity
© 2015 - 2025 Weber Informatics LLC | Privacy Policy