Skip to content

Commit eb1f1e9

Browse files
committed
reorganized bfo import
1 parent 00d120f commit eb1f1e9

8 files changed

Lines changed: 108 additions & 1400 deletions

File tree

src/ontology/Makefile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# More information: https://github.com/INCATools/ontology-development-kit/
1111

1212
# Fingerprint of the configuration file when this Makefile was last generated
13-
CONFIG_HASH= 01c9d9a87b41663a3121104770d09ee7f07ec7b2300026f3150df43365e26c89
13+
CONFIG_HASH= c15fe6b540abdbd6bcdf9d76309e332b7b3185ad3826bf31bea48acef629eabd
1414

1515

1616
# ----------------------------------------
@@ -422,15 +422,6 @@ $(IMPORTDIR)/%_import.owl: $(MIRRORDIR)/%.owl $(IMPORTDIR)/%_terms.txt \
422422

423423
.PRECIOUS: $(IMPORTDIR)/%_import.owl
424424

425-
## Module for ontology: bfo (mirror)
426-
$(IMPORTDIR)/bfo_import.owl: $(MIRRORDIR)/bfo.owl | all_robot_plugins
427-
$(ROBOT) annotate --input $< --remove-annotations \
428-
odk:normalize --base-iri https://w3id.org/lehrplan \
429-
--subset-decls true --synonym-decls true \
430-
--add-source true \
431-
repair --merge-axiom-annotations true \
432-
$(ANNOTATE_CONVERT_FILE)
433-
434425
## Module for ontology: qudt (slme)
435426
$(IMPORTDIR)/qudt_import.owl: $(MIRRORDIR)/qudt.owl $(IMPORTDIR)/qudt_terms.txt $(IMPORTSEED) | all_robot_plugins
436427
$(ROBOT) annotate --input $< --remove-annotations \

src/ontology/components/bfo-edit.owl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ SubObjectPropertyOf(<https://w3id.org/lehrplan/ontology/LP_0000017> <http://purl
4545

4646
# Object Property: <https://w3id.org/lehrplan/ontology/LP_0000021> (endet mit Abschluss)
4747

48-
SubObjectPropertyOf(<https://w3id.org/lehrplan/ontology/LP_0000021> <http://purl.obolibrary.org/obo/BFO_0000117>)
48+
SubObjectPropertyOf(<https://w3id.org/lehrplan/ontology/LP_0000021> <http://purl.obolibrary.org/obo/BFO_0000051>)
4949
ObjectPropertyRange(<https://w3id.org/lehrplan/ontology/LP_0000021> <https://w3id.org/lehrplan/ontology/LP_0000019>)
5050

5151
# Object Property: <https://w3id.org/lehrplan/ontology/LP_0000024> (wird beschrieben von)

src/ontology/components/lehrplan-core.owl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -818,19 +818,19 @@ Bsp:
818818

819819
:schuleTreburSchulform1 a Schulartfunktion .
820820
:schuleTreburSchulform1 bfo:existsAt :someTimeIntervalUntilDateX .
821-
:schuleTreburSchulform1 :konkretisiertSchulform :Realschule .
821+
:schuleTreburSchulform1 :wirdBeschriebenVon :Realschule .
822822

823823
:schuleTreburSchulform2 a Schulartfunktion .
824824
:schuleTreburSchulform2 bfo:existsAt :someTimeIntervalUntilDateX .
825-
:schuleTreburSchulform2 :konkretisiertSchulform :Hauptschule .
825+
:schuleTreburSchulform2 :wirdBeschriebenVon :Hauptschule .
826826

827827
:schuleTreburSchulform3 a Schulartfunktion .
828-
:schuleTreburSchulform3 :konkretisiertSchulform :Gesamtschule
829828
:schuleTreburSchulform3 bfo:existsAt :someTimeIntervalFromDateY .
829+
:schuleTreburSchulform3 :wirdBeschriebenVon :Gesamtschule .
830830

831-
:schuleTrebur :hatSchulformfunktion :schuleTreburSchulform1 .
832-
:schuleTrebur :hatSchulformfunktion :schuleTreburSchulform2 .
833-
:schuleTrebur :hatSchulformfunktion :schuleTreburSchulform3 .
831+
:schuleTrebur :hatFunktion :schuleTreburSchulform1 .
832+
:schuleTrebur :hatFunktion :schuleTreburSchulform2 .
833+
:schuleTrebur :hatFunktion :schuleTreburSchulform3 .
834834

835835
:someTimeIntervalUntilDateX bfo:precedes :someTimeIntervalUntilDateY .")
836836

src/ontology/imports/bfo_import.owl

Lines changed: 62 additions & 599 deletions
Large diffs are not rendered by default.

src/ontology/imports/bfo_terms.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1+
http://purl.obolibrary.org/obo/BFO_0000031
2+
http://purl.obolibrary.org/obo/BFO_0000030
3+
http://purl.obolibrary.org/obo/BFO_0000040
4+
http://purl.obolibrary.org/obo/BFO_0000034
5+
http://purl.obolibrary.org/obo/BFO_0000023
6+
http://purl.obolibrary.org/obo/BFO_0000015
7+
http://purl.obolibrary.org/obo/BFO_0000035
18

9+
10+
http://purl.obolibrary.org/obo/BFO_0000051
11+
http://purl.obolibrary.org/obo/BFO_0000050

src/ontology/imports/ro_import.owl

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Annotation(owl:versionInfo "2026-01-07")
1414
Declaration(Class(<http://purl.obolibrary.org/obo/BFO_0000002>))
1515
Declaration(Class(<http://purl.obolibrary.org/obo/BFO_0000003>))
1616
Declaration(Class(<http://purl.obolibrary.org/obo/BFO_0000004>))
17-
Declaration(Class(<http://purl.obolibrary.org/obo/BFO_0000006>))
1817
Declaration(Class(<http://purl.obolibrary.org/obo/BFO_0000015>))
1918
Declaration(Class(<http://purl.obolibrary.org/obo/BFO_0000016>))
2019
Declaration(Class(<http://purl.obolibrary.org/obo/BFO_0000017>))
@@ -24,13 +23,8 @@ Declaration(Class(<http://purl.obolibrary.org/obo/BFO_0000023>))
2423
Declaration(Class(<http://purl.obolibrary.org/obo/BFO_0000031>))
2524
Declaration(Class(<http://purl.obolibrary.org/obo/BFO_0000034>))
2625
Declaration(Class(<http://purl.obolibrary.org/obo/BFO_0000040>))
27-
Declaration(Class(<http://purl.obolibrary.org/obo/BFO_0000141>))
2826
Declaration(ObjectProperty(<http://purl.obolibrary.org/obo/BFO_0000050>))
2927
Declaration(ObjectProperty(<http://purl.obolibrary.org/obo/BFO_0000051>))
30-
Declaration(ObjectProperty(<http://purl.obolibrary.org/obo/BFO_0000054>))
31-
Declaration(ObjectProperty(<http://purl.obolibrary.org/obo/BFO_0000055>))
32-
Declaration(ObjectProperty(<http://purl.obolibrary.org/obo/BFO_0000066>))
33-
Declaration(ObjectProperty(<http://purl.obolibrary.org/obo/BFO_0000067>))
3428
Declaration(ObjectProperty(<http://purl.obolibrary.org/obo/RO_0000052>))
3529
Declaration(ObjectProperty(<http://purl.obolibrary.org/obo/RO_0000053>))
3630
Declaration(ObjectProperty(<http://purl.obolibrary.org/obo/RO_0000056>))
@@ -53,7 +47,6 @@ Declaration(AnnotationProperty(<http://purl.obolibrary.org/obo/IAO_0000116>))
5347
Declaration(AnnotationProperty(<http://purl.obolibrary.org/obo/IAO_0000118>))
5448
Declaration(AnnotationProperty(<http://purl.obolibrary.org/obo/IAO_0000119>))
5549
Declaration(AnnotationProperty(<http://purl.obolibrary.org/obo/IAO_0000600>))
56-
Declaration(AnnotationProperty(<http://purl.org/dc/elements/1.1/license>))
5750
Declaration(AnnotationProperty(<http://purl.org/dc/elements/1.1/source>))
5851
Declaration(AnnotationProperty(<http://purl.org/dc/terms/license>))
5952

@@ -94,57 +87,6 @@ AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000118> <http://purl.ob
9487
AnnotationAssertion(rdfs:label <http://purl.obolibrary.org/obo/BFO_0000051> "has part"@en)
9588
TransitiveObjectProperty(<http://purl.obolibrary.org/obo/BFO_0000051>)
9689

97-
# Object Property: <http://purl.obolibrary.org/obo/BFO_0000054> (realized in)
98-
99-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000111> <http://purl.obolibrary.org/obo/BFO_0000054> "realized in"@en)
100-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000112> <http://purl.obolibrary.org/obo/BFO_0000054> "this disease is realized in this disease course"@en)
101-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000112> <http://purl.obolibrary.org/obo/BFO_0000054> "this fragility is realized in this shattering"@en)
102-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000112> <http://purl.obolibrary.org/obo/BFO_0000054> "this investigator role is realized in this investigation"@en)
103-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000118> <http://purl.obolibrary.org/obo/BFO_0000054> "is realized by"@en)
104-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000118> <http://purl.obolibrary.org/obo/BFO_0000054> "realized_in"@en)
105-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000600> <http://purl.obolibrary.org/obo/BFO_0000054> "[copied from inverse property 'realizes'] to say that b realizes c at t is to assert that there is some material entity d & b is a process which has participant d at t & c is a disposition or role of which d is bearer_of at t& the type instantiated by b is correlated with the type instantiated by c. (axiom label in BFO2 Reference: [059-003])"@en)
106-
AnnotationAssertion(rdfs:comment <http://purl.obolibrary.org/obo/BFO_0000054> "Paraphrase of elucidation: a relation between a realizable entity and a process, where there is some material entity that is bearer of the realizable entity and participates in the process, and the realizable entity comes to be realized in the course of the process")
107-
AnnotationAssertion(rdfs:isDefinedBy <http://purl.obolibrary.org/obo/BFO_0000054> <http://purl.obolibrary.org/obo/bfo.owl>)
108-
AnnotationAssertion(rdfs:label <http://purl.obolibrary.org/obo/BFO_0000054> "realized in"@en)
109-
InverseObjectProperties(<http://purl.obolibrary.org/obo/BFO_0000054> <http://purl.obolibrary.org/obo/BFO_0000055>)
110-
ObjectPropertyDomain(<http://purl.obolibrary.org/obo/BFO_0000054> <http://purl.obolibrary.org/obo/BFO_0000017>)
111-
ObjectPropertyRange(<http://purl.obolibrary.org/obo/BFO_0000054> <http://purl.obolibrary.org/obo/BFO_0000015>)
112-
113-
# Object Property: <http://purl.obolibrary.org/obo/BFO_0000055> (realizes)
114-
115-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000111> <http://purl.obolibrary.org/obo/BFO_0000055> "realizes"@en)
116-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000112> <http://purl.obolibrary.org/obo/BFO_0000055> "this disease course realizes this disease"@en)
117-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000112> <http://purl.obolibrary.org/obo/BFO_0000055> "this investigation realizes this investigator role"@en)
118-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000112> <http://purl.obolibrary.org/obo/BFO_0000055> "this shattering realizes this fragility"@en)
119-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000600> <http://purl.obolibrary.org/obo/BFO_0000055> "to say that b realizes c at t is to assert that there is some material entity d & b is a process which has participant d at t & c is a disposition or role of which d is bearer_of at t& the type instantiated by b is correlated with the type instantiated by c. (axiom label in BFO2 Reference: [059-003])"@en)
120-
AnnotationAssertion(rdfs:comment <http://purl.obolibrary.org/obo/BFO_0000055> "Paraphrase of elucidation: a relation between a process and a realizable entity, where there is some material entity that is bearer of the realizable entity and participates in the process, and the realizable entity comes to be realized in the course of the process")
121-
AnnotationAssertion(rdfs:isDefinedBy <http://purl.obolibrary.org/obo/BFO_0000055> <http://purl.obolibrary.org/obo/iao.owl>)
122-
AnnotationAssertion(rdfs:label <http://purl.obolibrary.org/obo/BFO_0000055> "realizes"@en)
123-
ObjectPropertyDomain(<http://purl.obolibrary.org/obo/BFO_0000055> <http://purl.obolibrary.org/obo/BFO_0000015>)
124-
ObjectPropertyRange(<http://purl.obolibrary.org/obo/BFO_0000055> <http://purl.obolibrary.org/obo/BFO_0000017>)
125-
126-
# Object Property: <http://purl.obolibrary.org/obo/BFO_0000066> (occurs in)
127-
128-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000111> <http://purl.obolibrary.org/obo/BFO_0000066> "occurs in"@en)
129-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000115> <http://purl.obolibrary.org/obo/BFO_0000066> "b occurs_in c =def b is a process and c is a material entity or immaterial entity& there exists a spatiotemporal region r and b occupies_spatiotemporal_region r.& forall(t) if b exists_at t then c exists_at t & there exist spatial regions s and s’ where & b spatially_projects_onto s at t& c is occupies_spatial_region s’ at t& s is a proper_continuant_part_of s’ at t"@en)
130-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000118> <http://purl.obolibrary.org/obo/BFO_0000066> "occurs_in"@en)
131-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000118> <http://purl.obolibrary.org/obo/BFO_0000066> "unfolds in"@en)
132-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000118> <http://purl.obolibrary.org/obo/BFO_0000066> "unfolds_in"@en)
133-
AnnotationAssertion(rdfs:comment <http://purl.obolibrary.org/obo/BFO_0000066> "Paraphrase of definition: a relation between a process and an independent continuant, in which the process takes place entirely within the independent continuant")
134-
AnnotationAssertion(rdfs:isDefinedBy <http://purl.obolibrary.org/obo/BFO_0000066> <http://purl.obolibrary.org/obo/bfo.owl>)
135-
AnnotationAssertion(rdfs:label <http://purl.obolibrary.org/obo/BFO_0000066> "occurs in"@en)
136-
InverseObjectProperties(<http://purl.obolibrary.org/obo/BFO_0000066> <http://purl.obolibrary.org/obo/BFO_0000067>)
137-
ObjectPropertyDomain(<http://purl.obolibrary.org/obo/BFO_0000066> <http://purl.obolibrary.org/obo/BFO_0000003>)
138-
ObjectPropertyRange(<http://purl.obolibrary.org/obo/BFO_0000066> <http://purl.obolibrary.org/obo/BFO_0000004>)
139-
140-
# Object Property: <http://purl.obolibrary.org/obo/BFO_0000067> (contains process)
141-
142-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000111> <http://purl.obolibrary.org/obo/BFO_0000067> "site of"@en)
143-
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000115> <http://purl.obolibrary.org/obo/BFO_0000067> "[copied from inverse property 'occurs in'] b occurs_in c =def b is a process and c is a material entity or immaterial entity& there exists a spatiotemporal region r and b occupies_spatiotemporal_region r.& forall(t) if b exists_at t then c exists_at t & there exist spatial regions s and s’ where & b spatially_projects_onto s at t& c is occupies_spatial_region s’ at t& s is a proper_continuant_part_of s’ at t"@en)
144-
AnnotationAssertion(rdfs:comment <http://purl.obolibrary.org/obo/BFO_0000067> "Paraphrase of definition: a relation between an independent continuant and a process, in which the process takes place entirely within the independent continuant")
145-
AnnotationAssertion(rdfs:isDefinedBy <http://purl.obolibrary.org/obo/BFO_0000067> <http://purl.obolibrary.org/obo/bfo.owl>)
146-
AnnotationAssertion(rdfs:label <http://purl.obolibrary.org/obo/BFO_0000067> "contains process"@en)
147-
14890
# Object Property: <http://purl.obolibrary.org/obo/RO_0000052> (characteristic of)
14991

15092
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000111> <http://purl.obolibrary.org/obo/RO_0000052> "inheres in"@en)
@@ -327,11 +269,6 @@ SubClassOf(<http://purl.obolibrary.org/obo/BFO_0000004> <http://purl.obolibrary.
327269
DisjointClasses(<http://purl.obolibrary.org/obo/BFO_0000004> <http://purl.obolibrary.org/obo/BFO_0000020>)
328270
DisjointClasses(<http://purl.obolibrary.org/obo/BFO_0000004> <http://purl.obolibrary.org/obo/BFO_0000031>)
329271

330-
# Class: <http://purl.obolibrary.org/obo/BFO_0000006> (spatial region)
331-
332-
AnnotationAssertion(rdfs:label <http://purl.obolibrary.org/obo/BFO_0000006> "spatial region"@en)
333-
SubClassOf(<http://purl.obolibrary.org/obo/BFO_0000006> <http://purl.obolibrary.org/obo/BFO_0000141>)
334-
335272
# Class: <http://purl.obolibrary.org/obo/BFO_0000015> (process)
336273

337274
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000115> <http://purl.obolibrary.org/obo/BFO_0000015> "p is a process = Def. p is an occurrent that has temporal proper parts and for some time t, p s-depends_on some material entity at t. (axiom label in BFO2 Reference: [083-003])"@en)
@@ -388,16 +325,8 @@ SubClassOf(<http://purl.obolibrary.org/obo/BFO_0000034> <http://purl.obolibrary.
388325
AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000115> <http://purl.obolibrary.org/obo/BFO_0000040> "An independent continuant that is spatially extended whose identity is independent of that of other entities and can be maintained through time."@en)
389326
AnnotationAssertion(rdfs:label <http://purl.obolibrary.org/obo/BFO_0000040> "material entity"@en)
390327
SubClassOf(<http://purl.obolibrary.org/obo/BFO_0000040> <http://purl.obolibrary.org/obo/BFO_0000004>)
391-
DisjointClasses(<http://purl.obolibrary.org/obo/BFO_0000040> <http://purl.obolibrary.org/obo/BFO_0000141>)
392-
393-
# Class: <http://purl.obolibrary.org/obo/BFO_0000141> (immaterial entity)
394-
395-
AnnotationAssertion(rdfs:label <http://purl.obolibrary.org/obo/BFO_0000141> "immaterial entity"@en)
396-
SubClassOf(<http://purl.obolibrary.org/obo/BFO_0000141> <http://purl.obolibrary.org/obo/BFO_0000004>)
397328

398329

399-
SubObjectPropertyOf(ObjectPropertyChain(<http://purl.obolibrary.org/obo/BFO_0000050> <http://purl.obolibrary.org/obo/BFO_0000066>) <http://purl.obolibrary.org/obo/BFO_0000066>)
400-
SubObjectPropertyOf(ObjectPropertyChain(<http://purl.obolibrary.org/obo/BFO_0000066> <http://purl.obolibrary.org/obo/BFO_0000050>) <http://purl.obolibrary.org/obo/BFO_0000066>)
401330
DLSafeRule(Body(ClassAtom(<http://purl.obolibrary.org/obo/BFO_0000016> Variable(<urn:swrl:var#d>)) ObjectPropertyAtom(<http://purl.obolibrary.org/obo/RO_0000053> Variable(<urn:swrl:var#e>) Variable(<urn:swrl:var#d>)))Head(ObjectPropertyAtom(<http://purl.obolibrary.org/obo/RO_0000091> Variable(<urn:swrl:var#e>) Variable(<urn:swrl:var#d>))))
402331
DLSafeRule(Body(ClassAtom(<http://purl.obolibrary.org/obo/BFO_0000019> Variable(<urn:swrl:var#d>)) ObjectPropertyAtom(<http://purl.obolibrary.org/obo/RO_0000053> Variable(<urn:swrl:var#e>) Variable(<urn:swrl:var#d>)))Head(ObjectPropertyAtom(<http://purl.obolibrary.org/obo/RO_0000086> Variable(<urn:swrl:var#e>) Variable(<urn:swrl:var#d>))))
403332
DLSafeRule(Body(ClassAtom(<http://purl.obolibrary.org/obo/BFO_0000023> Variable(<urn:swrl:var#d>)) ObjectPropertyAtom(<http://purl.obolibrary.org/obo/RO_0000053> Variable(<urn:swrl:var#e>) Variable(<urn:swrl:var#d>)))Head(ObjectPropertyAtom(<http://purl.obolibrary.org/obo/RO_0000087> Variable(<urn:swrl:var#e>) Variable(<urn:swrl:var#d>))))

src/ontology/lp.Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,22 @@ $(IMPORTDIR)/iao_import.owl: $(MIRRORDIR)/iao.owl $(IMPORTDIR)/iao_terms.txt
1515
$(ANNOTATE_CONVERT_FILE); fi
1616

1717

18+
$(IMPORTDIR)/bfo_import.owl: $(MIRRORDIR)/bfo.owl $(IMPORTDIR)/bfo_terms.txt \
19+
$(IMPORTSEED) | all_robot_plugins
20+
$(ROBOT) annotate --input $< --remove-annotations \
21+
odk:normalize --add-source true \
22+
extract --term-file $(IMPORTDIR)/bfo_terms.txt \
23+
--force true --copy-ontology-annotations true \
24+
--individuals include \
25+
--method BOT \
26+
remove $(foreach p, $(ANNOTATION_PROPERTIES), --term $(p)) \
27+
--term-file $(IMPORTDIR)/bfo_terms.txt $(T_IMPORTSEED) \
28+
--select complement --select annotation-properties \
29+
odk:normalize --base-iri https://w3id.org/lehrplan \
30+
--subset-decls true --synonym-decls true \
31+
repair --merge-axiom-annotations true \
32+
$(ANNOTATE_CONVERT_FILE)
33+
1834
CITATION="'Lehrplan Ontology. Version $(VERSION), https://w3id.org/lehrplan/ontology'"
1935

2036
ALL_ANNOTATIONS=--annotate-defined-by false \

0 commit comments

Comments
 (0)