Skip to content

Commit 5cb242b

Browse files
matentznanitacaronAnita Caron
authored
Removing danging logical axioms on obsoleted relations and add QC (#751)
* Update ro-edit.owl * add QC for obsolete relations * remove logical axioms from obsolete relations * update_repo --------- Co-authored-by: Anita Caron <anitacaron@users.noreply.github.com> Co-authored-by: Anita Caron <anitac@ebi.ac.uk>
1 parent 8807f55 commit 5cb242b

4 files changed

Lines changed: 57 additions & 13 deletions

File tree

src/ontology/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ----------------------------------------
22
# Makefile for ro
33
# Generated using ontology-development-kit
4-
# ODK Version: v1.4
4+
# ODK Version: v1.4.1
55
# ----------------------------------------
66
# IMPORTANT: DO NOT EDIT THIS FILE. To override default make goals, use ro.Makefile instead
77

@@ -42,9 +42,9 @@ REPORT_FAIL_ON = ERROR
4242
REPORT_LABEL = -l true
4343
REPORT_PROFILE_OPTS = --profile $(ROBOT_PROFILE)
4444
OBO_FORMAT_OPTIONS =
45-
SPARQL_VALIDATION_CHECKS = owldef-self-reference iri-range label-with-iri multiple-replaced_by term-editor-uri dce
45+
SPARQL_VALIDATION_CHECKS = owldef-self-reference iri-range label-with-iri multiple-replaced_by term-editor-uri dce obsolete-relation
4646
SPARQL_EXPORTS = basic-report class-count-by-prefix edges xrefs obsoletes synonyms
47-
ODK_VERSION_MAKEFILE = v1.4
47+
ODK_VERSION_MAKEFILE = v1.4.1
4848

4949
TODAY ?= $(shell date +%Y-%m-%d)
5050
OBODATE ?= $(shell date +'%d:%m:%Y %H:%M')

src/ontology/ro-edit.owl

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,6 @@ AnnotationAssertion(cito:citesAsAuthority obo:RO_0000300 <http://www.ncbi.nlm.ni
13011301
AnnotationAssertion(rdfs:comment obo:RO_0000300 "Obsoleted as no longer a useful relationship (all neurons in an organism are in a neural circuit with each other).")
13021302
AnnotationAssertion(rdfs:label obo:RO_0000300 "obsolete in neural circuit with"@en)
13031303
AnnotationAssertion(owl:deprecated obo:RO_0000300 "true"^^xsd:boolean)
1304-
TransitiveObjectProperty(obo:RO_0000300)
13051304

13061305
# Object Property: obo:RO_0000301 (obsolete upstream in neural circuit with)
13071306

@@ -1313,7 +1312,6 @@ AnnotationAssertion(cito:citesAsAuthority obo:RO_0000301 <http://www.ncbi.nlm.ni
13131312
AnnotationAssertion(rdfs:comment obo:RO_0000301 "Obsoleted as no longer a useful relationship (all neurons in an organism are in a neural circuit with each other).")
13141313
AnnotationAssertion(rdfs:label obo:RO_0000301 "obsolete upstream in neural circuit with"@en)
13151314
AnnotationAssertion(owl:deprecated obo:RO_0000301 "true"^^xsd:boolean)
1316-
TransitiveObjectProperty(obo:RO_0000301)
13171315

13181316
# Object Property: obo:RO_0000302 (obsolete downstream in neural circuit with)
13191317

@@ -1325,23 +1323,17 @@ AnnotationAssertion(cito:citesAsAuthority obo:RO_0000302 <http://www.ncbi.nlm.ni
13251323
AnnotationAssertion(rdfs:comment obo:RO_0000302 "Obsoleted as no longer a useful relationship (all neurons in an organism are in a neural circuit with each other).")
13261324
AnnotationAssertion(rdfs:label obo:RO_0000302 "obsolete downstream in neural circuit with"@en)
13271325
AnnotationAssertion(owl:deprecated obo:RO_0000302 "true"^^xsd:boolean)
1328-
TransitiveObjectProperty(obo:RO_0000302)
13291326

13301327
# Object Property: obo:RO_0001018 (obsolete contained in)
13311328

13321329
AnnotationAssertion(obo:IAO_0000111 obo:RO_0001018 "contained in"@en)
13331330
AnnotationAssertion(obo:IAO_0000116 obo:RO_0001018 "Containment is location not involving parthood, and arises only where some immaterial continuant is involved.")
13341331
AnnotationAssertion(obo:IAO_0000116 obo:RO_0001018 "Containment obtains in each case between material and immaterial continuants, for instance: lung contained_in thoracic cavity; bladder contained_in pelvic cavity. Hence containment is not a transitive relation. If c part_of c1 at t then we have also, by our definition and by the axioms of mereology applied to spatial regions, c located_in c1 at t. Thus, many examples of instance-level location relations for continuants are in fact cases of instance-level parthood. For material continuants location and parthood coincide. Containment is location not involving parthood, and arises only where some immaterial continuant is involved. To understand this relation, we first define overlap for continuants as follows: c1 overlap c2 at t =def for some c, c part_of c1 at t and c part_of c2 at t. The containment relation on the instance level can then be defined (see definition):"@en)
1335-
AnnotationAssertion(obo:IAO_0000116 obo:RO_0001018 "Intended meaning:
1336-
domain: material entity
1337-
range: spatial region or site (immaterial continuant)
1338-
"@en)
13391332
AnnotationAssertion(obo:IAO_0000118 obo:RO_0001018 "contained_in"@en)
13401333
AnnotationAssertion(rdfs:label obo:RO_0001018 "obsolete contained in")
13411334
AnnotationAssertion(rdfs:seeAlso obo:RO_0001018 <https://github.com/oborel/obo-relations/issues/693>)
13421335
AnnotationAssertion(owl:deprecated obo:RO_0001018 "true"^^xsd:boolean)
1343-
ObjectPropertyDomain(obo:RO_0001018 obo:BFO_0000040)
1344-
ObjectPropertyRange(obo:RO_0001018 obo:BFO_0000004)
1336+
13451337

13461338
# Object Property: obo:RO_0001019 (obsolete contains)
13471339

@@ -6940,7 +6932,6 @@ SubObjectPropertyOf(ObjectPropertyChain(obo:BFO_0000054 obo:RO_0002404) obo:RO_0
69406932
SubObjectPropertyOf(Annotation(obo:RO_0002582 "true"^^xsd:boolean) ObjectPropertyChain(obo:RO_0000052 obo:BFO_0000050) obo:RO_0002314)
69416933
SubObjectPropertyOf(ObjectPropertyChain(obo:RO_0000052 obo:RO_0000058) obo:RO_0010001)
69426934
SubObjectPropertyOf(ObjectPropertyChain(obo:RO_0000059 obo:RO_0000053) obo:RO_0010002)
6943-
SubObjectPropertyOf(ObjectPropertyChain(obo:RO_0001025 obo:BFO_0000050) obo:RO_0001018)
69446935
SubObjectPropertyOf(ObjectPropertyChain(obo:RO_0001025 obo:BFO_0000050) obo:RO_0001025)
69456936
SubObjectPropertyOf(ObjectPropertyChain(obo:RO_0001025 ObjectInverseOf(obo:RO_0001025)) obo:RO_0002379)
69466937
SubObjectPropertyOf(ObjectPropertyChain(obo:RO_0002092 obo:BFO_0000063) obo:BFO_0000063)

src/ontology/ro-odk.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,4 @@ robot_report:
9191
- multiple-replaced_by
9292
- term-editor-uri
9393
- dce
94+
- obsolete-relation
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# # Obsolete relation with logical axioms
2+
#
3+
# **Problem:** A deprecated ObjectProperty with logical axioms. A deprecated property can be the child of another property (e.g., ObsoleteProperty), but it cannot have children or be used in blank nodes or equivalence statements. Additionally, a deprecated property should not have any equivalent properties.
4+
#
5+
# **Solution:** Remove the logical axioms.
6+
7+
PREFIX obo: <http://purl.obolibrary.org/obo/>
8+
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>
9+
PREFIX owl: <http://www.w3.org/2002/07/owl#>
10+
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
11+
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
12+
13+
SELECT DISTINCT ?entity ?property ?value WHERE {
14+
{
15+
VALUES ?property {
16+
owl:equivalentProperty
17+
rdfs:subPropertyOf
18+
owl:inverseOf
19+
rdfs:domain
20+
rdfs:range
21+
rdf:type
22+
}
23+
?entity a owl:ObjectProperty ;
24+
owl:deprecated true .
25+
?entity ?property ?value1 .
26+
FILTER (?value1 != owl:ObjectProperty)
27+
}
28+
UNION
29+
{
30+
VALUES ?property {
31+
owl:equivalentProperty
32+
rdfs:subPropertyOf
33+
}
34+
?entity a owl:DatatypeProperty ;
35+
owl:deprecated true .
36+
?entity ?property ?value1 .
37+
}
38+
UNION
39+
{
40+
?property owl:deprecated true .
41+
?value1 ?property ?entity .
42+
}
43+
UNION
44+
{
45+
?property owl:deprecated true .
46+
?entity ?x ?value1 .
47+
?value1 a owl:Restriction ;
48+
owl:onProperty ?property .
49+
}
50+
BIND (if(isIRI(?value1), ?value1, "blank node" ) as ?value)
51+
}
52+
ORDER BY ?entity

0 commit comments

Comments
 (0)