Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add QC check to look for excluded subclassof axioms which are asserted #8291

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/sparql/qc/general/qc-excluded-subclass.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
prefix oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>


# Tests if an animal disease made it into the rare disease subset
# Tests if an excluded subclass of axiom is asserted between a Mondo class
# and a non-Mondo class, or between a Mondo class and a class expression

SELECT DISTINCT ?entity ?property ?value WHERE
{
Expand Down
3 changes: 2 additions & 1 deletion src/sparql/qc/general/qc-provenance-missing.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
prefix oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>


# Tests if an animal disease made it into the rare disease subset
# Tests if an excluded subclass of axiom exists which does not have
# at least 1 ORCID as provenance

SELECT DISTINCT ?entity ?property ?value WHERE
{
Expand Down
15 changes: 15 additions & 0 deletions src/sparql/qc/mondo/qc-excluded-subclass-is-asserted.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>

# Tests if an excluded-subclass-of axiom is asserted

SELECT DISTINCT ?entity ?property ?value
WHERE
{
VALUES ?property { <http://purl.obolibrary.org/obo/mondo#excluded_subClassOf> }
?entity ?property ?value .

?entity rdfs:subClassOf ?value .
}
ORDER BY ?entity
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ prefix mondo: <http://purl.obolibrary.org/obo/mondo#>
prefix mondoSparqlQcGeneral: <http://purl.obolibrary.org/obo/mondo/sparql/qc/general/>
prefix mondoSparqlQcMondo: <http://purl.obolibrary.org/obo/mondo/sparql/qc/mondo/>

# Tests if an excluded-subclass-of axiom can be inferred

SELECT DISTINCT ?entity ?property ?value
WHERE
{
Expand Down
Loading