Skip to content

Commit

Permalink
test refactor qc-multiple-gene-associations to account for mondo-base…
Browse files Browse the repository at this point in the history
… namespace
  • Loading branch information
twhetzel committed Nov 24, 2024
1 parent 24e9c01 commit b2381ff
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/sparql/qc/mondo/qc-multiple-gene-associations.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>
prefix mondoSparqlQcMondo: <http://purl.obolibrary.org/obo/mondo/sparql/qc/mondo/>
prefix mondo: <http://purl.obolibrary.org/obo/mondo#>
PREFIX mondoBase: <http://purl.obolibrary.org/obo/mondo/mondo-base#>
PREFIX mondo: <http://purl.obolibrary.org/obo/mondo#>
PREFIX mondoSparqlQcMondo: <http://purl.obolibrary.org/obo/mondo/sparql/qc/mondo/>

# Get classes that have more than 1 gene association (either subClassOf or equivalentClass) with RO:0004003 property

Expand All @@ -18,9 +18,14 @@ WHERE {
?restriction rdf:type owl:Restriction ;
owl:onProperty obo:RO_0004003 ;
owl:someValuesFrom ?geneIdentifier .

# Exclusion filter for mondo and mondo-base namespaces to account for qc checks after roundtrip
FILTER NOT EXISTS {
?entity mondo:excluded_from_qc_check mondoSparqlQcMondo:qc-multiple-gene-associations.sparql .
}
FILTER NOT EXISTS {
?entity mondoBase:excluded_from_qc_check mondoSparqlQcMondo:qc-multiple-gene-associations.sparql .
}
}
UNION
{
Expand All @@ -34,9 +39,13 @@ WHERE {
owl:onProperty obo:RO_0004003 ;
owl:someValuesFrom ?geneIdentifier .

# Exclusion filter for mondo and mondo-base namespaces to account for qc checks after roundtrip
FILTER NOT EXISTS {
?entity mondo:excluded_from_qc_check mondoSparqlQcMondo:qc-multiple-gene-associations.sparql .
}
FILTER NOT EXISTS {
?entity mondoBase:excluded_from_qc_check mondoSparqlQcMondo:qc-multiple-gene-associations.sparql .
}
}
}
GROUP BY ?entity ?label
Expand Down

0 comments on commit b2381ff

Please sign in to comment.