All Downloads are FREE. Search and download functionalities are using the official Maven repository.

report_queries.annotation_whitespace.rq Maven / Gradle / Ivy

Go to download

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