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

report_queries.duplicate_label.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!
# # Duplicate Label
#
# **Problem:** Two different subjects have been assigned the same label. This causes ambiguity.
#
# **OBO Foundry Principle:** [12 - Naming Conventions](http://www.obofoundry.org/principles/fp-012-naming-conventions.html)
#
# **Solution:** Avoid ambiguity by assigning distinct labels to each subject.

PREFIX owl: 
PREFIX rdfs: 

SELECT DISTINCT ?entity ?property ?value WHERE {
  VALUES ?property {rdfs:label}
  ?entity ?property ?value .
  ?entity2 ?property ?value .
  FILTER (?entity != ?entity2)
  FILTER (!isBlank(?entity))
  FILTER (!isBlank(?entity2))
  FILTER NOT EXISTS { ?entity owl:deprecated true .
                      ?entity2 owl:deprecated true }
}
ORDER BY DESC(UCASE(str(?value)))




© 2015 - 2025 Weber Informatics LLC | Privacy Policy