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 iri-range-advanced QC #2767

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion src/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ REPORT_FAIL_ON = ERROR
REPORT_LABEL =
REPORT_PROFILE_OPTS = --profile $(ROBOT_PROFILE)
OBO_FORMAT_OPTIONS =
SPARQL_VALIDATION_CHECKS = equivalent-classes owldef-self-reference illegal-annotation-property taxon-range orcid-contributor obsolete-replaced_by xrefs-mesh-pattern label-synonym-polysemy
SPARQL_VALIDATION_CHECKS = equivalent-classes owldef-self-reference illegal-annotation-property taxon-range orcid-contributor obsolete-replaced_by xrefs-mesh-pattern label-synonym-polysemy iri-range-advanced
SPARQL_EXPORTS = basic-report
ODK_VERSION_MAKEFILE = v1.3.1

Expand Down
1 change: 1 addition & 0 deletions src/ontology/uberon-odk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ robot_report:
- obsolete-replaced_by
- xrefs-mesh-pattern
- label-synonym-polysemy
- iri-range-advanced
custom_sparql_exports:
- basic-report
owltools_memory: '20G'
Expand Down
21 changes: 21 additions & 0 deletions src/sparql/iri-range-advanced-violation.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
PREFIX never_in_taxon: <http://purl.obolibrary.org/obo/RO_0002161>
PREFIX present_in_taxon: <http://purl.obolibrary.org/obo/RO_0002175>
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

SELECT ?term ?property ?value
WHERE {
VALUES ?property {
never_in_taxon:
present_in_taxon:
rdfs:seeAlso
foaf:depicted_by
oboInOwl:inSubset
dcterms:contributor }
?term ?property ?value .
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "http://purl.obolibrary.org/obo/UBERON_") || STRSTARTS(str(?term), "http://purl.obolibrary.org/obo/UBERON_") || STRSTARTS(str(?term), "http://purl.obolibrary.org/obo/uberon#") || STRSTARTS(str(?term), "http://purl.obolibrary.org/obo/UBPROP_") || STRSTARTS(str(?term), "http://purl.obolibrary.org/obo/uberon/core#")))
FILTER (!isIRI(?value))
}