Skip to content

Commit 1b1c0ce

Browse files
RalphBlnAlexU75ChristophB
authored
48 situation module (#57)
* Add situation module * Add situation module * change prefix * Fix namespaces * add gfo-core module * add gfo-situation-simple pattern * update gfo-situation-simple pattern * update update gfo-situation-simple pattern * add gfo-situation-object pattern * add gfo-situation-object-extended pattern * Update gfo-core module * update gfo-core module * add gfo-presentic module * add gfo-presentic module * update gfo-core module * add gfo-timeExtended module * add gfo-connector-presentic-timeExtended module * delete gfo-base * Add situation patterns+examples from JAO paper * Corrections * Add new files to CI workflow * Fix import resolution * Remove CI test step for deleted ontology * Specify profile for reasoning tests * Update documentation * Replace robot `reason` calls with `report` * Disable report for gfo-light.owl again This file will be replaced in another pull request * Add some labels * Update import statement of gfo.owl * Add gfo.owl to tested files * Remove unnecessary prefixes * Merge imports of some modules before reporting * Add labels to examples * Add rdfs:labels to individuals * Correct auto generated labels that start with a number * Remove module files from PR * Remove module tests from PR * Temporarily reinstitute gfo-base.owl * Fix import * replace gfo-core by gfo-base * replace risk_sit_1_timespan by 10_months_timespan --------- Co-authored-by: auciteli <auciteli@imise.uni-leipzig.de> Co-authored-by: AlexU75 <65653151+AlexU75@users.noreply.github.com> Co-authored-by: Christoph Beger <ChristophB@users.noreply.github.com>
1 parent 4b85f3b commit 1b1c0ce

22 files changed

+3836
-8
lines changed

.github/workflows/test.yml

+45-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,51 @@ jobs:
2626
steps:
2727
- uses: actions/checkout@v4
2828

29+
- run: check-rdfxml gfo.owl
2930
- run: check-rdfxml gfo-light.owl
30-
- run: check-rdfxml modules/gfo-base.owl
31+
# - run: check-rdfxml modules/gfo-core.ttl
32+
# - run: check-rdfxml modules/gfo-presentic.ttl
33+
# - run: check-rdfxml modules/gfo-timeExtended.ttl
34+
# - run: check-rdfxml modules/gfo-connector-presentic-timeExtended.ttl
35+
- run: check-rdfxml modules/situation/gfo-situation.ttl
36+
- run: check-rdfxml modules/situation/gfo-situation-object-extended.ttl
37+
- run: check-rdfxml modules/situation/gfo-situation-object.ttl
38+
- run: check-rdfxml modules/situation/gfo-situation-presentic-object-reified-presentic-attributives.ttl
39+
- run: check-rdfxml modules/situation/gfo-situation-presentic-object-reified-presentic-objects.ttl
40+
- run: check-rdfxml modules/situation/gfo-situation-presentic-object.ttl
41+
- run: check-rdfxml modules/situation/gfo-situation-presentic-simple.ttl
42+
- run: check-rdfxml modules/situation/gfo-situation-simple.ttl
43+
- run: check-rdfxml modules/situation/gfo-situation-time-extended.ttl
44+
- run: check-rdfxml modules/situation/examples/gfo-situation-object-example.ttl
45+
- run: check-rdfxml modules/situation/examples/gfo-situation-object-extended-example.ttl
46+
- run: check-rdfxml modules/situation/examples/gfo-situation-presentic-object-example.ttl
47+
- run: check-rdfxml modules/situation/examples/gfo-situation-presentic-object-reified-presentic-attributives-example.ttl
48+
- run: check-rdfxml modules/situation/examples/gfo-situation-presentic-object-reified-presentic-objects-example.ttl
49+
- run: check-rdfxml modules/situation/examples/gfo-situation-presentic-simple-example.ttl
50+
- run: check-rdfxml modules/situation/examples/gfo-situation-simple-example.ttl
51+
- run: check-rdfxml modules/situation/examples/gfo-situation-time-extended-example.ttl
3152

32-
- run: robot reason --input gfo-light.owl
33-
- run: robot reason --input modules/gfo-base.owl
53+
- run: robot report --profile qc_report/profile.txt -i gfo.owl
54+
# - run: robot report --profile qc_report/profile.txt -i gfo-light.owl
55+
# - run: robot report --profile qc_report/profile.txt -i modules/gfo-core.ttl
56+
# - run: robot report --profile qc_report/profile.txt -i modules/gfo-presentic.ttl
57+
# - run: robot report --profile qc_report/profile.txt -i modules/gfo-timeExtended.ttl
58+
- run: robot report --profile qc_report/profile.txt -i modules/situation/gfo-situation.ttl
59+
- run: robot report --profile qc_report/profile.txt -i modules/situation/gfo-situation-object-extended.ttl
60+
- run: robot report --profile qc_report/profile.txt -i modules/situation/gfo-situation-object.ttl
61+
- run: robot report --profile qc_report/profile.txt -i modules/situation/gfo-situation-presentic-object-reified-presentic-attributives.ttl
62+
- run: robot report --profile qc_report/profile.txt -i modules/situation/gfo-situation-presentic-object-reified-presentic-objects.ttl
63+
- run: robot report --profile qc_report/profile.txt -i modules/situation/gfo-situation-presentic-object.ttl
64+
- run: robot report --profile qc_report/profile.txt -i modules/situation/gfo-situation-presentic-simple.ttl
65+
- run: robot report --profile qc_report/profile.txt -i modules/situation/gfo-situation-simple.ttl
66+
- run: robot report --profile qc_report/profile.txt -i modules/situation/gfo-situation-time-extended.ttl
3467

35-
# - run: robot report --input gfo-light.owl --profile qc_report/profile.txt
36-
- run: robot report --input modules/gfo-base.owl --profile qc_report/profile.txt
68+
# - run: robot merge --collapse-import-closure true -i modules/gfo-connector-presentic-timeExtended.ttl report --profile qc_report/profile.txt
69+
- run: robot merge --collapse-import-closure true -i modules/situation/examples/gfo-situation-object-example.ttl report --profile qc_report/profile.txt
70+
- run: robot merge --collapse-import-closure true -i modules/situation/examples/gfo-situation-object-extended-example.ttl report --profile qc_report/profile.txt
71+
- run: robot merge --collapse-import-closure true -i modules/situation/examples/gfo-situation-presentic-object-example.ttl report --profile qc_report/profile.txt
72+
- run: robot merge --collapse-import-closure true -i modules/situation/examples/gfo-situation-presentic-object-reified-presentic-attributives-example.ttl report --profile qc_report/profile.txt
73+
- run: robot merge --collapse-import-closure true -i modules/situation/examples/gfo-situation-presentic-object-reified-presentic-objects-example.ttl report --profile qc_report/profile.txt
74+
- run: robot merge --collapse-import-closure true -i modules/situation/examples/gfo-situation-presentic-simple-example.ttl report --profile qc_report/profile.txt
75+
- run: robot merge --collapse-import-closure true -i modules/situation/examples/gfo-situation-simple-example.ttl report --profile qc_report/profile.txt
76+
- run: robot merge --collapse-import-closure true -i modules/situation/examples/gfo-situation-time-extended-example.ttl report --profile qc_report/profile.txt

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ If you want to contribute changes, please do so by:
2424
Edit the ontology files using a suitable ontology editor or text editor.
2525
Adhere to the GFO's existing coding style and conventions.
2626
Ensure your changes are well-documented and understandable.
27-
You can run the following command with docker to check your changes locally (in this case `modules/gfo-base.owl` is checked):
27+
You can run the following command with docker to check your changes locally (in this case `modules/gfo-core.owl` is checked):
2828

29-
docker run -it -v .:/gfo -w /gfo obolibrary/odklite robot report --input modules/gfo-base.owl --profile qc_report/profile.txt
29+
docker run -it -v .:/gfo -w /gfo obolibrary/odklite robot report --input modules/gfo-core.owl --profile qc_report/profile.txt
3030

3131
4. Commit and push all changes.
3232
5. Create a [pull request](https://github.com/Onto-Med/GFO/pulls).

catalog-v001.xml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
3+
<uri id="gfo-core" name="https://w3id.org/gfo/core/" uri="modules/gfo-core.ttl"/>
4+
</catalog>

gfo.owl

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<owl:versionInfo rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2024-11-18</owl:versionInfo>
1818
<owl:versionIRI rdf:resource="https://w3id.org/gfo/release/2024-11-18" />
1919
<owl:priorVersion rdf:resource="https://w3id.org/gfo/release/2024-07-05" />
20-
<owl:imports rdf:resource="https://w3id.org/gfo/base/" />
20+
<owl:imports rdf:resource="https://w3id.org/gfo/base" />
2121
<dc:title xml:lang="en">General Formal Ontology (GFO)</dc:title>
2222
<rdfs:label xml:lang="en">General Formal Ontology (GFO)</rdfs:label>
2323
<dc:description xml:lang="en">The General Formal Ontology is a top-level ontology for conceptual
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
3+
<uri id="Imports Wizard Entry" name="https://w3id.org/gfo/pattern/situation/simple" uri="../gfo-situation-simple.ttl"/>
4+
<uri id="Imports Wizard Entry" name="https://w3id.org/gfo/pattern/situation/time-extended" uri="../gfo-situation-time-extended.ttl"/>
5+
<uri id="Imports Wizard Entry" name="https://w3id.org/gfo/pattern/situation/object" uri="../gfo-situation-object.ttl"/>
6+
<uri id="Imports Wizard Entry" name="https://w3id.org/gfo/pattern/situation/object-extended" uri="../gfo-situation-object-extended.ttl"/>
7+
<uri id="Imports Wizard Entry" name="https://w3id.org/gfo/pattern/situation/presentic-simple" uri="../gfo-situation-presentic-simple.ttl"/>
8+
<uri id="Imports Wizard Entry" name="https://w3id.org/gfo/pattern/situation/presentic-object" uri="../gfo-situation-presentic-object.ttl"/>
9+
<uri id="Imports Wizard Entry" name="https://w3id.org/gfo/pattern/situation/presentic-object-reified-presentic-attributives" uri="../gfo-situation-presentic-object-reified-presentic-attributives.ttl"/>
10+
<uri id="Imports Wizard Entry" name="https://w3id.org/gfo/pattern/situation/presentic-object-reified-presentic-objects" uri="../gfo-situation-presentic-object-reified-presentic-objects.ttl"/>
11+
<uri id="Imports Wizard Entry" name="https://w3id.org/gfo/pattern/situation/simple-example" uri="gfo-situation-simple-example.ttl"/>
12+
<uri id="Imports Wizard Entry" name="https://w3id.org/gfo/pattern/situation/time-extended-example" uri="gfo-situation-time-extended-example.ttl"/>
13+
<uri id="Imports Wizard Entry" name="https://w3id.org/gfo/pattern/situation/object-example" uri="gfo-situation-object-example.ttl"/>
14+
<uri id="Imports Wizard Entry" name="https://w3id.org/gfo/pattern/situation/object-extended-example" uri="gfo-situation-object-extended-example.ttl"/>
15+
<uri id="Imports Wizard Entry" name="https://w3id.org/gfo/pattern/situation/presentic-simple-example" uri="gfo-situation-presentic-simple-example.ttl"/>
16+
<uri id="Imports Wizard Entry" name="https://w3id.org/gfo/pattern/situation/presentic-object-example" uri="gfo-situation-presentic-object-example.ttl"/>
17+
<uri id="Imports Wizard Entry" name="https://w3id.org/gfo/pattern/situation/presentic-object-reified-presentic-attributives-example" uri="gfo-situation-presentic-object-reified-presentic-attributives-example.ttl"/>
18+
<uri id="Imports Wizard Entry" name="https://w3id.org/gfo/pattern/situation/presentic-object-reified-presentic-objects-example" uri="gfo-situation-presentic-object-reified-presentic-objects-example.ttl"/>
19+
<group id="Folder Repository, directory=, recursive=true, Auto-Update=true, version=2" prefer="public" xml:base=""/>
20+
</catalog>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
@prefix : <https://w3id.org/gfo/situation/> .
2+
@prefix dc: <http://purl.org/dc/elements/1.1/> .
3+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
4+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
5+
@prefix rio: <https://w3id.org/rio/> .
6+
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
7+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
8+
@prefix bibo: <http://purl.org/ontology/bibo/> .
9+
@prefix doap: <http://usefulinc.com/ns/doap#> .
10+
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
11+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
12+
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
13+
@prefix vann: <http://purl.org/vocab/vann/> .
14+
@prefix terms: <http://purl.org/dc/terms/> .
15+
@prefix rio-ex: <https://w3id.org/rio/example/> .
16+
@prefix gfo-core: <https://w3id.org/gfo/core/> .
17+
@base <https://w3id.org/gfo/situation/> .
18+
19+
<https://w3id.org/gfo/pattern/situation/object-example> rdf:type owl:Ontology ;
20+
owl:versionIRI <https://w3id.org/gfo/pattern/situation/object-example/release/2024-12-19> ;
21+
owl:imports <https://w3id.org/gfo/pattern/situation/object> ;
22+
dc:created "2024-12-11" ;
23+
dc:creator "Alexandr Uciteli" ,
24+
"Christoph Beger" ,
25+
"Frank Löbe" ,
26+
"Franz Matthies" ,
27+
"Heinrich Herre" ,
28+
"Konrad Höffner" ,
29+
"Patryk Burek" ,
30+
"Ralph Schäfermeier" ;
31+
dc:description "GFO-object-situation-example is an example for the object design pattern for modeling object situations."@en ;
32+
dc:modified "2024-12-11" ;
33+
dc:title "General Formal Ontology (object situation pattern example)"@en ;
34+
terms:license <http://creativecommons.org/licenses/by/4.0/> ;
35+
bibo:doi <https://zenodo.org/doi/10.5281/zenodo.5205419> ;
36+
vann:preferredNamespacePrefix "gfo-object-situation-example" ;
37+
vann:preferredNamespaceURI "https://w3id.org/gfo/pattern/situation/object-example" ;
38+
doap:repository <https://github.com/Onto-Med/GFO> ;
39+
rdfs:label "GFO object situation pattern example"@en ;
40+
owl:versionInfo "2024-12-11" ;
41+
foaf:homepage "https://github.com/Onto-Med/GFO" .
42+
43+
#################################################################
44+
# Annotation properties
45+
#################################################################
46+
47+
### http://purl.org/dc/elements/1.1/created
48+
dc:created rdf:type owl:AnnotationProperty .
49+
50+
51+
### http://purl.org/dc/elements/1.1/creator
52+
dc:creator rdf:type owl:AnnotationProperty .
53+
54+
55+
### http://purl.org/dc/elements/1.1/description
56+
dc:description rdf:type owl:AnnotationProperty .
57+
58+
59+
### http://purl.org/dc/elements/1.1/modified
60+
dc:modified rdf:type owl:AnnotationProperty .
61+
62+
63+
### http://purl.org/dc/elements/1.1/title
64+
dc:title rdf:type owl:AnnotationProperty .
65+
66+
67+
### http://purl.org/dc/terms/license
68+
terms:license rdf:type owl:AnnotationProperty .
69+
70+
71+
### http://purl.org/ontology/bibo/doi
72+
bibo:doi rdf:type owl:AnnotationProperty .
73+
74+
75+
### http://purl.org/vocab/vann/preferredNamespacePrefix
76+
vann:preferredNamespacePrefix rdf:type owl:AnnotationProperty .
77+
78+
79+
### http://purl.org/vocab/vann/preferredNamespaceURI
80+
vann:preferredNamespaceURI rdf:type owl:AnnotationProperty .
81+
82+
83+
### http://usefulinc.com/ns/doap#repository
84+
doap:repository rdf:type owl:AnnotationProperty .
85+
86+
87+
### http://www.w3.org/2000/01/rdf-schema#comment
88+
rdfs:comment rdf:type owl:AnnotationProperty .
89+
90+
91+
### http://www.w3.org/2002/07/owl#versionInfo
92+
owl:versionInfo rdf:type owl:AnnotationProperty .
93+
94+
95+
### http://www.w3.org/2004/02/skos/core#altLabel
96+
skos:altLabel rdf:type owl:AnnotationProperty .
97+
98+
99+
### http://www.w3.org/2004/02/skos/core#definition
100+
skos:definition rdf:type owl:AnnotationProperty .
101+
102+
103+
### http://www.w3.org/2004/02/skos/core#example
104+
skos:example rdf:type owl:AnnotationProperty .
105+
106+
107+
### http://xmlns.com/foaf/0.1/homepage
108+
foaf:homepage rdf:type owl:AnnotationProperty .
109+
110+
111+
#################################################################
112+
# Classes
113+
#################################################################
114+
115+
### https://w3id.org/rio/Patient
116+
rio:Patient rdf:type owl:Class ;
117+
rdfs:subClassOf gfo-core:Object ,
118+
[ rdf:type owl:Restriction ;
119+
owl:onProperty gfo-core:hasQuality ;
120+
owl:someValuesFrom rio:PatientAge
121+
] ,
122+
[ rdf:type owl:Restriction ;
123+
owl:onProperty gfo-core:participatesIn ;
124+
owl:someValuesFrom rio:RiskSituation
125+
] ;
126+
rdfs:label "Patient"@en .
127+
128+
129+
### https://w3id.org/rio/PatientAge
130+
rio:PatientAge rdf:type owl:Class ;
131+
rdfs:subClassOf gfo-core:Quality ;
132+
rdfs:label "Patient age"@en .
133+
134+
135+
### https://w3id.org/rio/RiskSeverity
136+
rio:RiskSeverity rdf:type owl:Class ;
137+
rdfs:subClassOf gfo-core:Quality ;
138+
rdfs:label "Risk severity"@en .
139+
140+
141+
### https://w3id.org/rio/RiskSituation
142+
rio:RiskSituation rdf:type owl:Class ;
143+
rdfs:subClassOf :Situation ,
144+
[ rdf:type owl:Restriction ;
145+
owl:onProperty gfo-core:hasParticipantQuality ;
146+
owl:someValuesFrom rio:PatientAge
147+
] ;
148+
rdfs:label "Risk situation"@en .
149+
150+
151+
#################################################################
152+
# Individuals
153+
#################################################################
154+
155+
### https://w3id.org/rio/example/highly_severe
156+
rio-ex:highly_severe rdf:type owl:NamedIndividual ,
157+
rio:RiskSeverity ;
158+
rdfs:label "highly_severe"@en .
159+
160+
161+
### https://w3id.org/rio/example/patient_1
162+
rio-ex:patient_1 rdf:type owl:NamedIndividual ,
163+
rio:Patient ;
164+
gfo-core:hasQuality <https://w3id.org/rio/example/10_months> ;
165+
gfo-core:participatesIn rio-ex:risk_sit1 ;
166+
rdfs:label "patient_1"@en .
167+
168+
169+
### https://w3id.org/rio/example/risk_sit1
170+
rio-ex:risk_sit1 rdf:type owl:NamedIndividual ,
171+
rio:RiskSituation ;
172+
gfo-core:hasParticipantQuality <https://w3id.org/rio/example/10_months> ;
173+
gfo-core:hasQuality rio-ex:highly_severe ;
174+
rdfs:label "risk_sit1"@en .
175+
176+
177+
### https://w3id.org/rio/example/10_months
178+
<https://w3id.org/rio/example/10_months> rdf:type owl:NamedIndividual ,
179+
rio:PatientAge ;
180+
rdfs:label "10_months"@en .
181+
182+
183+
### Generated by the OWL API (version 4.5.29.2024-05-13T12:11:03Z) https://github.com/owlcs/owlapi

0 commit comments

Comments
 (0)