Skip to content
Snippets Groups Projects
Commit 38794edb authored by Aurélien Lamercerie's avatar Aurélien Lamercerie
Browse files

Generic CTS to create mod list nets

parent 002d116f
No related branches found
No related tags found
No related merge requests found
...@@ -30,11 +30,6 @@ net:Type ...@@ -30,11 +30,6 @@ net:Type
rdfs:label "Semantic Net Type" ; rdfs:label "Semantic Net Type" ;
rdfs:subClassOf net:Structure ; rdfs:subClassOf net:Structure ;
. .
net:abstraction
rdf:type owl:Class ;
rdfs:label "abstraction" ;
rdfs:subClassOf net:Type ;
.
net:abstractionClass net:abstractionClass
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "abstraction class" ; rdfs:label "abstraction class" ;
...@@ -48,7 +43,7 @@ net:atom ...@@ -48,7 +43,7 @@ net:atom
net:atomOf net:atomOf
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "atom of" ; rdfs:label "atom of" ;
rdfs:subPropertyOf net:type ; rdfs:subPropertyOf net:typeProperty ;
. .
net:atomType net:atomType
rdf:type rdf:Property ; rdf:type rdf:Property ;
...@@ -70,20 +65,20 @@ net:class_list ...@@ -70,20 +65,20 @@ net:class_list
rdfs:label "classList" ; rdfs:label "classList" ;
rdfs:subClassOf net:Type ; rdfs:subClassOf net:Type ;
. .
net:complement net:composite
rdf:type owl:Class ; rdf:type owl:Class ;
rdfs:label "complement" ; rdfs:label "composite" ;
rdfs:subClassOf net:Type ; rdfs:subClassOf net:Type ;
. .
net:complement_mod_list net:conjunctive_list
rdf:type owl:Class ; rdf:type owl:Class ;
rdfs:label "complement mod list" ; rdfs:label "conjunctive-list" ;
rdfs:subClassOf net:mod_list ; rdfs:subClassOf net:list ;
. .
net:entity net:disjunctive_list
rdf:type owl:Class ; rdf:type owl:Class ;
rdfs:label "entity" ; rdfs:label "disjunctive-list" ;
rdfs:subClassOf net:Type ; rdfs:subClassOf net:list ;
. .
net:entityClass net:entityClass
rdf:type rdf:Property ; rdf:type rdf:Property ;
...@@ -95,21 +90,11 @@ net:entity_class_list ...@@ -95,21 +90,11 @@ net:entity_class_list
rdfs:label "entityClassList" ; rdfs:label "entityClassList" ;
rdfs:subClassOf net:class_list ; rdfs:subClassOf net:class_list ;
. .
net:entity_mod_list
rdf:type owl:Class ;
rdfs:label "entity mod list" ;
rdfs:subClassOf net:mod_list ;
.
net:event net:event
rdf:type owl:Class ; rdf:type owl:Class ;
rdfs:label "event" ; rdfs:label "event" ;
rdfs:subClassOf net:Type ; rdfs:subClassOf net:Type ;
. .
net:feature
rdf:type owl:Class ;
rdfs:label "feature" ;
rdfs:subClassOf net:Type ;
.
net:featureClass net:featureClass
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "feature class" ; rdfs:label "feature class" ;
...@@ -118,7 +103,7 @@ net:featureClass ...@@ -118,7 +103,7 @@ net:featureClass
net:has_actor net:has_actor
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "has actor" ; rdfs:label "has actor" ;
rdfs:subPropertyOf net:has_object ; rdfs:subPropertyOf net:has_atom ;
. .
net:has_atom net:has_atom
rdf:type rdf:Property ; rdf:type rdf:Property ;
...@@ -158,12 +143,12 @@ net:has_mother_class ...@@ -158,12 +143,12 @@ net:has_mother_class
net:has_node net:has_node
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "UNL Node" ; rdfs:label "UNL Node" ;
rdfs:subPropertyOf net:property ; rdfs:subPropertyOf net:netProperty ;
. .
net:has_object net:has_object
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "relation" ; rdfs:label "relation" ;
rdfs:subPropertyOf net:property ; rdfs:subPropertyOf net:netProperty ;
. .
net:has_parent_class net:has_parent_class
rdf:type rdf:Property ; rdf:type rdf:Property ;
...@@ -183,7 +168,7 @@ net:has_possible_range ...@@ -183,7 +168,7 @@ net:has_possible_range
net:has_structure net:has_structure
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "Linguistic Structure (in UNL Document)" ; rdfs:label "Linguistic Structure (in UNL Document)" ;
rdfs:subPropertyOf net:property ; rdfs:subPropertyOf net:netProperty ;
. .
net:has_subClass net:has_subClass
rdf:type rdf:Property ; rdf:type rdf:Property ;
...@@ -193,23 +178,38 @@ net:has_subClass ...@@ -193,23 +178,38 @@ net:has_subClass
net:has_target net:has_target
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "has target" ; rdfs:label "has target" ;
rdfs:subPropertyOf net:has_object ; rdfs:subPropertyOf net:has_atom ;
. .
net:has_verb net:has_verb
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "has verb" ; rdfs:label "has verb" ;
rdfs:subPropertyOf net:has_object ; rdfs:subPropertyOf net:has_atom ;
. .
net:instanceUri net:instanceUri
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "instance uri" ; rdfs:label "instance uri" ;
rdfs:subPropertyOf net:objectValue ; rdfs:subPropertyOf net:objectValue ;
. .
net:list
rdf:type owl:Class ;
rdfs:label "list" ;
rdfs:subClassOf net:Type ;
.
net:listBy
rdf:type rdf:Property ;
rdfs:label "list by" ;
rdfs:subPropertyOf net:typeProperty ;
.
net:listGuiding net:listGuiding
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "Guiding connector of a list (or, and)" ; rdfs:label "Guiding connector of a list (or, and)" ;
rdfs:subPropertyOf net:objectValue ; rdfs:subPropertyOf net:objectValue ;
. .
net:listOf
rdf:type rdf:Property ;
rdfs:label "list of" ;
rdfs:subPropertyOf net:typeProperty ;
.
net:modCat1 net:modCat1
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "Modality Category (level 1)" ; rdfs:label "Modality Category (level 1)" ;
...@@ -220,34 +220,29 @@ net:modCat2 ...@@ -220,34 +220,29 @@ net:modCat2
rdfs:label "Modality Category (level 2)" ; rdfs:label "Modality Category (level 2)" ;
rdfs:subPropertyOf net:objectValue ; rdfs:subPropertyOf net:objectValue ;
. .
net:mod_list net:netProperty
rdf:type owl:Class ; rdf:type rdf:Property ;
rdfs:label "modList" ; rdfs:label "netProperty" ;
rdfs:subClassOf net:Type ;
. .
net:objectAttribute net:objectProperty
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "object attribute" ; rdfs:label "object attribute" ;
. .
net:objectType net:objectType
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "object type" ; rdfs:label "object type" ;
rdfs:subPropertyOf net:objectAttribute ; rdfs:subPropertyOf net:objectProperty ;
. .
net:objectValue net:objectValue
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "valuations"@fr ; rdfs:label "valuations"@fr ;
rdfs:subPropertyOf net:objectAttribute ; rdfs:subPropertyOf net:objectProperty ;
. .
net:parentClassUri net:parentClassUri
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "parent class uri" ; rdfs:label "parent class uri" ;
rdfs:subPropertyOf net:objectValue ; rdfs:subPropertyOf net:objectValue ;
. .
net:property
rdf:type rdf:Property ;
rdfs:label "netProperty" ;
.
net:state_property net:state_property
rdf:type owl:Class ; rdf:type owl:Class ;
rdfs:label "stateProperty" ; rdfs:label "stateProperty" ;
...@@ -256,12 +251,16 @@ net:state_property ...@@ -256,12 +251,16 @@ net:state_property
net:type net:type
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "type "@fr ; rdfs:label "type "@fr ;
rdfs:subPropertyOf net:property ; rdfs:subPropertyOf net:netProperty ;
. .
net:verb net:typeProperty
rdf:type rdf:Property ;
rdfs:label "type property" ;
.
net:unary_list
rdf:type owl:Class ; rdf:type owl:Class ;
rdfs:label "verb" ; rdfs:label "unary-list" ;
rdfs:subClassOf net:Type ; rdfs:subClassOf net:list ;
. .
net:verbClass net:verbClass
rdf:type rdf:Property ; rdf:type rdf:Property ;
......
This diff is collapsed.
...@@ -205,11 +205,11 @@ def run(corpus, source_ref, target_ref): ...@@ -205,11 +205,11 @@ def run(corpus, source_ref, target_ref):
if __name__ == '__main__': if __name__ == '__main__':
target_ref = "system" target_ref = "system"
run(req_100, 'R100', target_ref) run(req_100, 'R100b', target_ref)
run(req_200, 'R200', target_ref) run(req_200, 'R200b', target_ref)
run(req_300, 'R300a', target_ref) run(req_300, 'R300b', target_ref)
run(corpus_40, 'Corpus-CCTP-40c', target_ref) #run(corpus_40, 'Corpus-CCTP-40c', target_ref)
run(corpus_ERTMS, 'Corpus-ERTMS', target_ref) #run(corpus_ERTMS, 'Corpus-ERTMS', target_ref)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment