diff --git a/CHANGELOG b/CHANGELOG index 5850a79cb404bdd54f5c4d1b60626341253e1926..a67e95a91f572f44187eb94d8ed1e194f42bc1d8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -10,11 +10,10 @@ All notable changes to this project will be documented in this file. ### Added - Trandusction Schemes to extract Entity classes and instances - Transduction Schemes to extract Feature classes -- +- Net object to refine the inclusion of class relations ### Changed - Renaming and update script to prepare extraction data -- Net object to refine the inclusion of class relations ## [0.1.1] - 2021-08-26 diff --git a/config/transduction-schemes.ttl b/config/transduction-schemes.ttl index 97bd462697776eaa42fabd003279ad70422079cb..82bd2bfc27ca014841604673bb09233e7ca6b8bd 100644 --- a/config/transduction-schemes.ttl +++ b/config/transduction-schemes.ttl @@ -96,7 +96,7 @@ WHERE { BIND (concat(?s1, '_', ?mainInstance) AS ?s6). BIND (uri(?s6) AS ?mainInstanceUri). }""" ; - sh:order 513.2 ; + sh:order 3.4 ; . cts:add-disjunctive-entity-classes rdf:type sh:SPARQLRule ; @@ -170,7 +170,7 @@ WHERE { BIND (concat(?s1, '_', ?mainInstance) AS ?s6). BIND (uri(?s6) AS ?mainInstanceUri). }""" ; - sh:order 513.1 ; + sh:order 3.4 ; . cts:add-entity-classes rdf:type sh:SPARQLRule ; @@ -220,7 +220,7 @@ WHERE { BIND (concat(?s1, '_', ?mainInstance) AS ?s3). BIND (uri(?s3) AS ?mainInstanceUri). }""" ; - sh:order "511"^^xsd:decimal ; + sh:order 3.1 ; . cts:add-feature-classes rdf:type sh:SPARQLRule ; @@ -261,7 +261,7 @@ WHERE { BIND (uri( ?s1) AS ?featureUri). BIND (uri(?s2) AS ?subFeatureUri). }""" ; - sh:order "501"^^xsd:decimal ; + sh:order 3.1 ; . cts:add-list-of-entity-classes rdf:type sh:SPARQLRule ; @@ -315,7 +315,7 @@ WHERE { BIND (concat(?s1, '_', ?mainInstance) AS ?s4). BIND (uri(?s4) AS ?mainInstanceUri). }""" ; - sh:order 512.1 ; + sh:order 3.2 ; . cts:batch_execution rdf:type owl:Class ; @@ -370,7 +370,7 @@ WHERE { ?rel unl:has_target ?node2. ?rel a ?unlRel. } """ ; - sh:order "001"^^xsd:decimal ; + sh:order 1.1 ; . cts:complement-list-of-entity-classes rdf:type sh:SPARQLRule ; @@ -415,7 +415,7 @@ WHERE { BIND (concat(?f1, '_', ?featureConcept) AS ?f2). BIND (uri(?f2) AS ?featureUri). }""" ; - sh:order 512.2 ; + sh:order 3.3 ; . cts:compose-entity-modlist-1 rdf:type sh:SPARQLRule ; @@ -525,7 +525,7 @@ WHERE { BIND (concat(?n1, ?uw1Id, '-', ?uw2Id) AS ?n2). BIND (uri(?n2) AS ?newNet). }""" ; - sh:order "221"^^xsd:decimal ; + sh:order 2.6 ; . cts:compose-entity-modlist-2 rdf:type sh:SPARQLRule ; @@ -636,7 +636,7 @@ WHERE { BIND (concat(?n1, ?uw1Id, '-', ?uw2Id) AS ?n2). BIND (uri(?n2) AS ?newNet). }""" ; - sh:order "222"^^xsd:decimal ; + sh:order 2.6 ; . cts:compose-entity-modlist-3 rdf:type sh:SPARQLRule ; @@ -727,7 +727,7 @@ WHERE { BIND (concat(?s1, ?uw1Id, '-', ?uw2Id) AS ?s2). BIND (uri(?s2) AS ?newNet). }""" ; - sh:order "223"^^xsd:decimal ; + sh:order 2.6 ; . cts:create-entity-net rdf:type sh:SPARQLRule ; @@ -784,7 +784,7 @@ WHERE { BIND (concat(?n1, ?uw1Id) AS ?n2). BIND (uri(?n2) AS ?newNet). }""" ; - sh:order "201"^^xsd:decimal ; + sh:order 2.1 ; . cts:create-feature-net rdf:type sh:SPARQLRule ; @@ -828,7 +828,7 @@ WHERE { # Filter FILTER ( regex(str(?uw1Label),str(?featureRestriction)) ). }""" ; - sh:order "101"^^xsd:decimal ; + sh:order 2.1 ; . cts:define-uw-id rdf:type sh:SPARQLRule ; @@ -858,7 +858,7 @@ WHERE { BIND (strafter(str(?uw1), \"---\") AS ?numOcc). BIND (concat( ?reqId, '_', ?concept1, ?numOcc) AS ?uwId). } """ ; - sh:order "003"^^xsd:decimal ; + sh:order 1.3 ; . cts:dev_schemes rdf:type owl:Class ; @@ -919,7 +919,7 @@ WHERE { BIND (strbefore(?uw1Label, '(') AS ?concept1) BIND (strbefore(?uw2Label, '(') AS ?concept2) }""" ; - sh:order "212"^^xsd:decimal ; + sh:order 2.4 ; . cts:feature_extraction rdf:type owl:Class ; @@ -981,7 +981,7 @@ WHERE { BIND (concat(?s1, ?uw1Id) AS ?s2). BIND (uri(?s2) AS ?semNet). }""" ; - sh:order "211"^^xsd:decimal ; + sh:order 2.3 ; . cts:instantiate-classlist-by-extension-1 rdf:type sh:SPARQLRule ; @@ -1020,7 +1020,7 @@ WHERE { # Filter FILTER NOT EXISTS { ?subObject2 net:entityInstance ?instanceName2 } . }""" ; - sh:order "224"^^xsd:decimal ; + sh:order 2.7 ; . cts:instantiate-classlist-by-extension-2 rdf:type sh:SPARQLRule ; @@ -1059,7 +1059,7 @@ WHERE { # Filter FILTER NOT EXISTS { ?subObject2 net:entityInstance ?instanceName2 } . }""" ; - sh:order "225"^^xsd:decimal ; + sh:order 2.8 ; . cts:instantiate-entity-net rdf:type sh:SPARQLRule ; @@ -1098,7 +1098,7 @@ WHERE { ?uw1 unl:has_id ?uw1Id. BIND (?uw1Id AS ?instanceName). }""" ; - sh:order "202"^^xsd:decimal ; + sh:order 2.2 ; . cts:link-to-scope-entry rdf:type sh:SPARQLRule ; @@ -1127,7 +1127,7 @@ WHERE { ?node2Occ unl:has_attribute \".@entry\". ?rel a ?unlRel. } """ ; - sh:order "002"^^xsd:decimal ; + sh:order 1.2 ; . cts:net_extension rdf:type owl:Class ; @@ -1186,7 +1186,7 @@ WHERE { # Filter FILTER ( regex(str(?uw1Label),str(?entityRestriction)) ). }""" ; - sh:order "213"^^xsd:decimal ; + sh:order 2.5 ; . cts:typify-modlist-feature rdf:type sh:SPARQLRule ; @@ -1224,5 +1224,5 @@ WHERE { # Filter FILTER ( regex(str(?uw1Label),str(?featureRestriction)) ). }""" ; - sh:order "214"^^xsd:decimal ; + sh:order 2.5 ; . diff --git a/frame/ontology-parameters.ttl b/frame/ontology-parameters.ttl index 3a12cdfcd262a3b2cc2c1e4d6b4ef9fef6a20b87..3680c0cea327af6392e925b99a5a6888d10f1853 100644 --- a/frame/ontology-parameters.ttl +++ b/frame/ontology-parameters.ttl @@ -15,6 +15,12 @@ fprm:Frame_Parameters rdfs:comment "Parameters related to frame ontologies used in transduction queries." ; rdfs:label "Frame Parameters" ; . +fprm:System_Abstraction + rdf:type owl:Class ; + rdfs:comment "Parameters related to Abstraction (System Ontology)." ; + rdfs:label "Abstraction" ; + rdfs:subClassOf fprm:System_Ontology ; +. fprm:System_Entity rdf:type owl:Class ; rdfs:comment "Parameters related to Entity (System Ontology)." ; @@ -23,7 +29,7 @@ fprm:System_Entity . fprm:System_Feature rdf:type owl:Class ; - rdfs:comment "Feature of entity" ; + rdfs:comment "Parameters related to Feature (System Ontology)." ; rdfs:label "feature" ; rdfs:subClassOf fprm:System_Ontology ; . @@ -34,12 +40,17 @@ fprm:System_Ontology rdfs:subClassOf fprm:Frame_Parameters ; fprm:frameURI "https://unsel.tetras-libre.fr/tenet/frame/system-ontology#" ; . -fprm:System_Property +fprm:System_Verb rdf:type owl:Class ; - rdfs:comment "Parameters related to Property (System Ontology)." ; - rdfs:label "property" ; + rdfs:comment "Parameters related to Verb (System Ontology)." ; + rdfs:label "verb" ; rdfs:subClassOf fprm:System_Ontology ; . +fprm:abstract_thing + rdf:type fprm:System_Abstraction ; + rdfs:label "abstractThing" ; + fprm:restriction "icl>abstract_thing" ; +. fprm:class rdf:type rdf:Property ; rdfs:domain fprm:Frame_Parameters ; @@ -65,6 +76,12 @@ fprm:restriction rdfs:range xsd:string ; rdfs:subPropertyOf fprm:frameParamProperty ; . +fprm:system_action_verb + rdf:type fprm:System_Verb ; + rdfs:label "actionVerb" ; + fprm:restriction "icl>make(icl>do)" ; + fprm:restriction "icl>set(icl>do)" ; +. fprm:system_agent rdf:type fprm:System_Entity ; rdfs:label "agent" ; @@ -72,6 +89,11 @@ fprm:system_agent fprm:restriction "icl>administrator" ; fprm:restriction "icl>person" ; . +fprm:system_attributive_verb + rdf:type fprm:System_Verb ; + rdfs:label "attributiveVerb" ; + fprm:restriction "icl>be" ; +. fprm:system_component rdf:type fprm:System_Entity ; rdfs:label "component" ; @@ -81,11 +103,6 @@ fprm:system_component fprm:restriction "icl>instrumentality" ; fprm:restriction "icl>position" ; . -fprm:system_event - rdf:type fprm:System_Property ; - rdfs:label "systemEvent" ; - fprm:restriction "icl>do" ; -. fprm:system_message rdf:type fprm:System_Entity ; rdfs:label "message" ; @@ -100,8 +117,3 @@ fprm:system_place fprm:restriction "icl>air_base_installation" ; fprm:restriction "icl>place" ; . -fprm:system_state - rdf:type fprm:System_Property ; - rdfs:label "systemState" ; - fprm:restriction "icl>property" ; -. diff --git a/frame/system-ontology.ttl b/frame/system-ontology.ttl index afd5ad5bec30a372f2feff9a0cae3184a02ce2a2..b2b3232fe2a48d77471e0a25570f0bcf2f623f2c 100644 --- a/frame/system-ontology.ttl +++ b/frame/system-ontology.ttl @@ -10,6 +10,12 @@ <https://unsel.tetras-libre.fr/tenet/frame/system-ontology> rdf:type owl:Ontology ; . +sys:Abstraction + rdf:type owl:Class ; + rdfs:label "Abstraction"@en ; + rdfs:label "Abstraction"@fr ; + rdfs:subClassOf sys:Structure ; +. sys:Entity rdf:type owl:Class ; rdfs:label "entity"@en ; @@ -38,12 +44,33 @@ sys:Structure rdf:type owl:Class ; rdfs:label "System Ontology Structure" ; . +sys:Verb + rdf:type owl:Class ; + rdfs:label "Verb" ; + rdfs:subClassOf sys:Structure ; +. +sys:abstract_thing + rdf:type owl:Class ; + rdfs:label "abstract thing"@en ; + rdfs:label "élément abstrait"@fr ; + rdfs:subClassOf sys:Abstraction ; +. +sys:action_verb + rdf:type owl:Class ; + rdfs:label "action verb" ; + rdfs:subClassOf sys:Verb ; +. sys:agent rdf:type owl:Class ; rdfs:label "agent"@en ; rdfs:label "agent"@fr ; rdfs:subClassOf sys:Entity ; . +sys:attributive_verb + rdf:type owl:Class ; + rdfs:label "attributive verb" ; + rdfs:subClassOf sys:Verb ; +. sys:component rdf:type owl:Class ; rdfs:label "component"@en ; @@ -101,3 +128,13 @@ sys:property rdf:type rdf:Property ; rdfs:label "System Property" ; . +sys:verbProperty + rdf:type rdf:Property ; + rdfs:label "verb property" ; + rdfs:subPropertyOf sys:property ; +. +sys:verbType + rdf:type rdf:Property ; + rdfs:label "verb type" ; + rdfs:subPropertyOf sys:verbProperty ; +.