Skip to content

Commit

Permalink
Merge branch 'master' into release-2022-03-31
Browse files Browse the repository at this point in the history
  • Loading branch information
matentzn committed Apr 5, 2022
2 parents 96c3bc9 + 167a948 commit b3a7604
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 1 deletion.
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
SPARQL_VALIDATION_CHECKS = equivalent-classes owldef-self-reference illegal-annotation-property taxon-range orcid-contributor obsolete-replaced_by
SPARQL_EXPORTS = basic-report
ODK_VERSION_MAKEFILE = v1.3.0

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 @@ -99,6 +99,7 @@ robot_report:
- illegal-annotation-property
- taxon-range
- orcid-contributor
- obsolete-replaced_by
custom_sparql_exports:
- basic-report
owltools_memory: '20G'
Expand Down
67 changes: 67 additions & 0 deletions src/sparql/obsolete-replaced_by-violation.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX replaced_by: <http://purl.obolibrary.org/obo/IAO_0100001>

SELECT DISTINCT ?entity ?property ?value ?replaced_by WHERE {
{
VALUES ?property {
rdfs:subClassOf
}
?entity a owl:Class;
owl:deprecated true ;
?property ?value .
OPTIONAL { ?entity replaced_by: ?replaced_by }
FILTER ( ?value NOT IN (oboInOwl:ObsoleteClass, owl:Thing) )
}
UNION
{
VALUES ?property {
owl:equivalentClass
owl:disjointWith
}
?entity a owl:Class;
owl:deprecated true ;
?property ?value .
OPTIONAL { ?entity replaced_by: ?replaced_by }
}
UNION
{
VALUES ?property {
rdfs:subClassOf
owl:equivalentClass
owl:disjointWith
}
?entity a owl:Class;
owl:deprecated true .
?value ?property ?entity .
OPTIONAL { ?entity replaced_by: ?replaced_by }
}
UNION
{
VALUES ?property {
owl:ObjectProperty
owl:DataProperty
}
?entity a owl:Class ;
owl:deprecated true ;
?property ?value .
OPTIONAL { ?entity replaced_by: ?replaced_by }
}
UNION
{
VALUES ?property {
owl:someValuesFrom
owl:allValuesFrom
}
?value a owl:Class ;
owl:deprecated true .
?rest a owl:Restriction ;
?property ?value .
OPTIONAL { ?value replaced_by: ?replaced_by }
BIND("blank node" as ?entity)
}
}
ORDER BY ?entity

0 comments on commit b3a7604

Please sign in to comment.