From 3b779f5ed28b37a4bea79538df2556fe6e63ad87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Lamercerie?= <aurelien.lamercerie@laposte.net> Date: Tue, 28 Sep 2021 17:32:30 +0200 Subject: [PATCH] Update system ontology for ERTMS --- .gitignore | 1 + frame/system-ontology.ttl | 22 ++++++++++++++++++++++ prepare_work_data.py | 6 +++--- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index deab3047..e0eaa071 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ corpus/ERTMS* .project *.ttl.tbc output*.ttl +output/* diff --git a/frame/system-ontology.ttl b/frame/system-ontology.ttl index 730140b0..bca6b443 100644 --- a/frame/system-ontology.ttl +++ b/frame/system-ontology.ttl @@ -43,8 +43,18 @@ sys:Feature rdfs:label "caractéristique"@fr ; rdfs:label "feature"@en ; rdfs:subClassOf sys:Structure ; + sys:has_mother_class sys:Feature ; + sys:has_restriction "icl>how" ; sys:is_class "Feature" ; . +sys:Information + rdf:type owl:Class ; + rdfs:label "Information" ; + rdfs:subClassOf sys:Structure ; + sys:has_mother_class sys:Information ; + sys:has_restriction "icl>state" ; + sys:is_class "Information" ; +. sys:State_Property rdf:type owl:Class ; rdfs:label "Propriété d'état"@fr ; @@ -68,6 +78,7 @@ sys:abstract_thing rdfs:subClassOf sys:Abstraction ; sys:has_mother_class sys:Abstraction ; sys:has_restriction "icl>abstract_thing" ; + sys:has_restriction "icl>rate" ; sys:is_class "abstract_thing" ; . sys:action_verb @@ -97,6 +108,14 @@ sys:attributive_verb sys:has_restriction "icl>be" ; sys:is_class "attributive_verb" ; . +sys:change_of_state + rdf:type owl:Class ; + rdfs:label "change of state" ; + rdfs:subClassOf sys:Information ; + sys:has_mother_class sys:Information ; + sys:has_restriction "icl>change_of_state" ; + sys:is_class "sys:change_of_state" ; +. sys:classProperty rdf:type rdf:Property ; rdfs:label "System Property" ; @@ -211,7 +230,10 @@ sys:place rdfs:subClassOf sys:Feature ; sys:has_mother_class sys:Feature ; sys:has_restriction "icl>air_base_installation" ; + sys:has_restriction "icl>formation" ; sys:has_restriction "icl>place" ; + sys:has_restriction "icl>public_transport" ; + sys:has_restriction "trackside" ; sys:is_class "place" ; . sys:seedProperty diff --git a/prepare_work_data.py b/prepare_work_data.py index 0a3af744..f7cbb277 100644 --- a/prepare_work_data.py +++ b/prepare_work_data.py @@ -202,9 +202,9 @@ def run(corpus, output_ref, output_file): if __name__ == '__main__': #run(req_100, 'R100', 'output100.ttl') #run(req_200, 'R200', 'output200.ttl') - run(req_300, 'R300b', 'output300b.ttl') - run(corpus_40, 'Corpus-CCTP-40c', 'outputCCTP40c.ttl') - #run(corpus_ERTMS, 'Corpus-ERTMS', 'outputERTMS.ttl') + #run(req_300, 'R300b', 'output300b.ttl') + #run(corpus_40, 'Corpus-CCTP-40c', 'outputCCTP40c.ttl') + run(corpus_ERTMS, 'Corpus-ERTMSb', 'outputERTMSb.ttl') -- GitLab