Skip to content

Commit 589ae2e

Browse files
committed
work 20.11.2025
1 parent df40358 commit 589ae2e

8 files changed

Lines changed: 343 additions & 18 deletions

File tree

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ bin/
1818
/tto.obo
1919
/tto.json
2020
/tto.db
21+
/tto-base.*
22+
/tto-basic.*
23+
/tto-full.*
24+
/tto-simple.*
25+
/tto-simple-non-classified.*
2126
/mappings/
2227
/patterns/
2328
/reports/
@@ -70,3 +75,6 @@ docs/odk-workflows/RepositoryFileStructure.md
7075
/docs/odk-workflows
7176
/src/ontology/reports
7277
/src/ontology/tmp
78+
src/ontology/tmp/merged-tto-edit.ofn
79+
src/ontology/tmp/tto-preprocess.owl
80+
/src/ontology/tmp

src/ontology/Makefile

Lines changed: 29 additions & 3 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= d77eb61bd9c7297a6205cde171c4c0fb09911333d9ba28e1efe8d1f15001b298
13+
CONFIG_HASH= bb2f8a735b3caa7744c0e5024062bf5d7a0c187a3b19600be6beb77782c1eb90
1414

1515

1616
# ----------------------------------------
@@ -187,7 +187,7 @@ all_main: $(MAIN_FILES)
187187
# ----------------------------------------
188188

189189

190-
IMPORTS = pmdco
190+
IMPORTS = pmdco nfdicore
191191

192192
IMPORT_ROOTS = $(patsubst %, $(IMPORTDIR)/%_import, $(IMPORTS))
193193
IMPORT_OWL_FILES = $(foreach n,$(IMPORT_ROOTS), $(n).owl)
@@ -387,7 +387,7 @@ $(IMPORTSEED): $(PRESEED) | $(TMPDIR)
387387

388388
T_IMPORTSEED = --term-file $(IMPORTSEED)
389389

390-
ANNOTATION_PROPERTIES=rdfs:label IAO:0000115 OMO:0002000
390+
ANNOTATION_PROPERTIES=rdfs:label rdfs:comment IAO:0000119 IAO:0000115 IAO:0000116 IAO:0000112 skos:definition skos:example skos:comment
391391

392392
# ----------------------------------------
393393
# Import modules
@@ -426,6 +426,25 @@ $(IMPORTDIR)/pmdco_import.owl: $(MIRRORDIR)/pmdco.owl | all_robot_plugins
426426
repair --merge-axiom-annotations true \
427427
$(ANNOTATE_CONVERT_FILE)
428428

429+
## Module for ontology: nfdicore (slme)
430+
$(IMPORTDIR)/nfdicore_import.owl: $(MIRRORDIR)/nfdicore.owl $(IMPORTDIR)/nfdicore_terms.txt $(IMPORTSEED) | all_robot_plugins
431+
$(ROBOT) annotate --input $< --remove-annotations \
432+
odk:normalize --add-source true \
433+
extract --term-file $(IMPORTDIR)/nfdicore_terms.txt $(T_IMPORTSEED) \
434+
--copy-ontology-annotations true --force true \
435+
--individuals include \
436+
--method SUBSET \
437+
remove $(foreach p, $(ANNOTATION_PROPERTIES), --term $(p)) \
438+
--term rdfs:label \
439+
--term IAO:0000115 \
440+
--term OMO:0002000 \
441+
--term-file $(IMPORTDIR)/nfdicore_terms.txt $(T_IMPORTSEED) \
442+
--select complement --select annotation-properties \
443+
odk:normalize --base-iri https://w3id.org/pmd \
444+
--subset-decls true --synonym-decls true \
445+
repair --merge-axiom-annotations true \
446+
$(ANNOTATE_CONVERT_FILE)
447+
429448
endif # IMP=true
430449

431450
.PHONY: refresh-imports
@@ -466,6 +485,13 @@ mirror-pmdco: | $(TMPDIR)
466485
$(ROBOT) convert -I https://w3id.org/pmd/co/3.0.0-alpha4 -o $(TMPDIR)/$@.owl
467486

468487

488+
## ONTOLOGY: nfdicore
489+
.PHONY: mirror-nfdicore
490+
.PRECIOUS: $(MIRRORDIR)/nfdicore.owl
491+
mirror-nfdicore: | $(TMPDIR)
492+
$(ROBOT) convert -I https://nfdi.fiz-karlsruhe.de/ontology -o $(TMPDIR)/$@.owl
493+
494+
469495
$(MIRRORDIR)/%.owl: mirror-% | $(MIRRORDIR)
470496
if [ -f $(TMPDIR)/mirror-$*.owl ]; then if cmp -s $(TMPDIR)/mirror-$*.owl $@ ; then echo "Mirror identical, ignoring."; else echo "Mirrors different, updating." &&\
471497
cp $(TMPDIR)/mirror-$*.owl $@; fi; fi

src/ontology/catalog-v001.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">
33
<group id="odk-managed-catalog" prefer="public">
44
<uri name="https://w3id.org/pmd/tto/imports/pmdco_import.owl" uri="imports/pmdco_import.owl" />
5+
<uri name="https://w3id.org/pmd/tto/imports/nfdicore_import.owl" uri="imports/nfdicore_import.owl" />
56
</group>
67
</catalog>

src/ontology/imports/nfdicore_import.owl

Lines changed: 264 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
https://nfdi.fiz-karlsruhe.de/ontology/NFDI_0000139 # funding organization role
2+

src/ontology/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=3.0.0-alpha4
1+
VERSION=3.0.0
22
PRIOR_VERSION=2.0.1
33
ONTBASE=https://w3id.org/pmd/tto/
44
ANNOTATE_ONTOLOGY_VERSION="annotate -V $ONTBASE$VERSION/\$@ --annotation owl:versionInfo $VERSION"

src/ontology/tto-edit.owl

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Prefix(dcterms:=<http://purl.org/dc/terms/>)
1010

1111

1212
Ontology(<https://w3id.org/pmd/tto/>
13+
Import(<https://w3id.org/pmd/tto/imports/nfdicore_import.owl>)
1314
Import(<https://w3id.org/pmd/tto/imports/pmdco_import.owl>)
1415
Annotation(dcterms:contributor "https://orcid.org/0000-0003-1649-6832")
1516
Annotation(dcterms:creator <https://orcid.org/0000-0001-7192-7143>)
@@ -26,6 +27,9 @@ The TTO was developed in the frame of the PMD project. The TTO provides conceptu
2627
Annotation(dcterms:license <http://creativecommons.org/licenses/by/4.0/>)
2728
Annotation(dcterms:title "Tensile Test Ontology (TTO)")
2829

30+
Declaration(Class(<https://w3id.org/pmd/TTO_0000000>))
31+
Declaration(Class(<https://w3id.org/pmd/TTO_0000001>))
32+
Declaration(Class(<https://w3id.org/pmd/TTO_0000002>))
2933
Declaration(Class(:TTO_0000000))
3034
Declaration(Class(:TTO_0000001))
3135
Declaration(Class(:TTO_0000002))
@@ -79,7 +83,6 @@ Declaration(Class(:TTO_0000051))
7983
Declaration(Class(:TTO_0000052))
8084
Declaration(Class(:TTO_0000053))
8185
Declaration(Class(:TTO_0000054))
82-
Declaration(Class(:TTO_0000055))
8386
Declaration(Class(:TTO_0000056))
8487
Declaration(Class(:TTO_0000057))
8588
Declaration(Class(:TTO_0000058))
@@ -101,6 +104,32 @@ Declaration(AnnotationProperty(pmd:symbol))
101104
# Classes
102105
############################
103106

107+
# Class: <https://w3id.org/pmd/TTO_0000000> (broken tested piece role)
108+
109+
AnnotationAssertion(rdfs:label <https://w3id.org/pmd/TTO_0000000> "broken tested piece role"@en)
110+
SubClassOf(<https://w3id.org/pmd/TTO_0000000> pmd:PMD_0000975)
111+
SubClassOf(<https://w3id.org/pmd/TTO_0000000> ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/OBI_0000312> pmd:PMD_0000974))
112+
113+
# Class: <https://w3id.org/pmd/TTO_0000001> (unbroken tested piece role)
114+
115+
AnnotationAssertion(rdfs:label <https://w3id.org/pmd/TTO_0000001> "unbroken tested piece role"@en)
116+
SubClassOf(<https://w3id.org/pmd/TTO_0000001> pmd:PMD_0000975)
117+
SubClassOf(<https://w3id.org/pmd/TTO_0000001> ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/OBI_0000312> pmd:PMD_0000974))
118+
119+
# Class: <https://w3id.org/pmd/TTO_0000002> (tensile test result)
120+
121+
AnnotationAssertion(rdfs:label <https://w3id.org/pmd/TTO_0000002> "tensile test result"@en)
122+
SubClassOf(<https://w3id.org/pmd/TTO_0000002> <http://purl.obolibrary.org/obo/IAO_0000027>)
123+
SubClassOf(<https://w3id.org/pmd/TTO_0000002> ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/BFO_0000051> ObjectIntersectionOf(<http://purl.obolibrary.org/obo/IAO_0000109> ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/IAO_0000136> ObjectIntersectionOf(pmd:PMD_0000618 ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/RO_0000080> ObjectIntersectionOf(<http://purl.obolibrary.org/obo/BFO_0000030> ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/RO_0000087> ObjectUnionOf(<https://w3id.org/pmd/TTO_0000000> <https://w3id.org/pmd/TTO_0000001>)))))))))
124+
125+
# Class: pmd:PMD_0000974 (Zugprüfverfahren)
126+
127+
SubClassOf(pmd:PMD_0000974 ObjectIntersectionOf(ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/OBI_0000299> <http://purl.obolibrary.org/obo/BFO_0000030>) ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/RO_0000087> ObjectUnionOf(<https://w3id.org/pmd/TTO_0000000> <https://w3id.org/pmd/TTO_0000001>))))
128+
SubClassOf(pmd:PMD_0000974 ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/BFO_0000055> pmd:PMD_0000975))
129+
SubClassOf(pmd:PMD_0000974 ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/OBI_0000293> ObjectIntersectionOf(<http://purl.obolibrary.org/obo/BFO_0000030> ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/RO_0000087> pmd:PMD_0000975))))
130+
SubClassOf(pmd:PMD_0000974 ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/OBI_0000299> <https://w3id.org/pmd/TTO_0000002>))
131+
SubClassOf(pmd:PMD_0000974 ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/RO_0000057> pmd:PMD_0000973))
132+
104133
# Class: :TTO_0000000 (funder role)
105134

106135
AnnotationAssertion(rdfs:label :TTO_0000000 "Förderungsrolle"@de)
@@ -260,7 +289,7 @@ AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> :TTO_000001
260289
AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> :TTO_0000015 "The length of a straight line through the center of an object (tensile test piece) as measured after a fracture occured during a test."@en)
261290
SubClassOf(:TTO_0000015 :TTO_0000002)
262291

263-
# Class: :TTO_0000016 (Abgeschätzte Dehngeschwindigkeit Über Die Parallele Länge)
292+
# Class: :TTO_0000016 (estimated strain rate over the parallel length)
264293

265294
AnnotationAssertion(rdfs:isDefinedBy :TTO_0000016 <https://w3id.org/pmd/tto>)
266295
AnnotationAssertion(rdfs:label :TTO_0000016 "Abgeschätzte Dehngeschwindigkeit Über Die Parallele Länge"@de)
@@ -763,17 +792,6 @@ AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> :TTO_000005
763792
AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> :TTO_0000054 "Eine Zugversuchsmethode ist eine Planspezifikation, die die Durchführung eines kontrollierten Versuchs zur Bestimmung der mechanischen Eigenschaften eines Materials unter einachsiger Zugbelastung vorschreibt. Der Plan legt Verfahrensschritte, Bedingungen und Messkriterien fest, um Eigenschaften wie die Zugfestigkeit, die Streckgrenze und die Bruchdehnung zu bestimmen."@de)
764793
SubClassOf(:TTO_0000054 <http://purl.obolibrary.org/obo/IAO_0000104>)
765794

766-
# Class: :TTO_0000055 (test piece)
767-
768-
AnnotationAssertion(rdfs:isDefinedBy :TTO_0000055 <https://w3id.org/pmd/tto>)
769-
AnnotationAssertion(rdfs:label :TTO_0000055 "Prüfkörper"@de)
770-
AnnotationAssertion(rdfs:label :TTO_0000055 "test piece"@en)
771-
AnnotationAssertion(rdfs:seeAlso :TTO_0000055 <https://w3id.org/pmd/co/2.0.8/TestPiece>)
772-
AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> :TTO_0000055 "Part of a sample with specified dimensions, machined or un-machined, brought to a required condition for submission to a given test."@en)
773-
AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> :TTO_0000055 "Teil einer Probe mit bestimmten Dimensionen, bearbeitet oder unbearbeitet, der in einen erforderlichen Zustand gebracht wird, um einer bestimmten Prüfung unterzogen zu werden."@de)
774-
AnnotationAssertion(pmd:definitionSource :TTO_0000055 "EN 10021:2006-12 (European standardization committee: CEN/TC 459/SC 12/WG 4)")
775-
SubClassOf(:TTO_0000055 ObjectIntersectionOf(<http://purl.obolibrary.org/obo/BFO_0000030> ObjectSomeValuesFrom(<http://purl.obolibrary.org/obo/BFO_0000196> pmd:PMD_0000975)))
776-
777795
# Class: :TTO_0000056 (thickness after fracture)
778796

779797
AnnotationAssertion(rdfs:isDefinedBy :TTO_0000056 <https://w3id.org/pmd/tto>)
@@ -794,7 +812,7 @@ AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> :TTO_000005
794812
AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> :TTO_0000057 "This entity describes a single point at which a transition from one condition or state to another occurs, e.g. the point at which different phases of matter are capable of existing together in equilibrium (also called inversion point) or if process parameters are changed that will lead to a transition of the process during its execution."@en)
795813
SubClassOf(:TTO_0000057 pmd:PMD_0000008)
796814

797-
# Class: :TTO_0000058 (transition point testing rate)
815+
# Class: :TTO_0000058 (Umschaltpunkt der Prüfgeschwindigkeit)
798816

799817
AnnotationAssertion(rdfs:isDefinedBy :TTO_0000058 <https://w3id.org/pmd/tto>)
800818
AnnotationAssertion(rdfs:label :TTO_0000058 "Umschaltpunkt der Prüfgeschwindigkeit"@de)

src/ontology/tto-odk.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ export_formats:
1717
remove_owl_nothing: true
1818

1919
import_group:
20+
annotation_properties: ['rdfs:label','rdfs:comment', 'IAO:0000119','IAO:0000115', 'IAO:0000116', 'IAO:0000112', 'skos:definition', 'skos:example', 'skos:comment' ]
2021
products:
2122
- id: pmdco
2223
mirror_from: https://w3id.org/pmd/co/3.0.0-alpha4
2324
module_type: mirror
25+
- id: nfdicore
26+
mirror_from: https://nfdi.fiz-karlsruhe.de/ontology
27+
module_type: slme
28+
module_type_slme: SUBSET
29+
use_base: true

0 commit comments

Comments
 (0)