diff --git a/config/transduction-schemes.ttl b/config/transduction-schemes.ttl index b761c4d672986de5261c017f3962600f0952bea3..e525383af907369c1d2aae95a5e1c112da8174ae 100644 --- a/config/transduction-schemes.ttl +++ b/config/transduction-schemes.ttl @@ -264,6 +264,7 @@ cts:batch_execution sh:rule cts:instantiate-composite-in-list-by-extension-1 ; sh:rule cts:instantiate-composite-in-list-by-extension-2 ; sh:rule cts:link-classes-by-relation-property ; + sh:rule cts:link-instances-by-relation-property ; sh:rule cts:link-to-scope-entry ; sh:rule cts:specify-axis-of-atom-list-net ; sh:rule cts:update-batch-execution-rules ; @@ -271,10 +272,6 @@ cts:batch_execution sh:rule cts:update-net-extension-rules ; sh:rule cts:update-preprocessing-rules ; . -cts:batch_execution_1 - rdf:type cts:batch_execution ; - rdfs:label "batch execution 1" ; -. cts:bypass-reification rdf:type sh:SPARQLRule ; sh:construct """PREFIX owl: <http://www.w3.org/2002/07/owl#> @@ -1111,7 +1108,7 @@ CONSTRUCT { ?newPropertyUri rdfs:subPropertyOf ?parentProperty. ?newPropertyUri rdfs:label ?relationConcept. ?newPropertyUri sys:from_structure ?req. - ?sourceInstanceUri ?newPropertyUri ?targetInstanceUri. + # -- old --- ?sourceInstanceUri ?newPropertyUri ?targetInstanceUri. } WHERE { # Relation Net (net1) @@ -1124,11 +1121,11 @@ WHERE { ?relationObject net:has_parent_property ?parentProperty. ?relationObject net:has_property_uri ?newPropertyUri. # -- Source Object - ?net1 net:has_source ?sourceObject. - ?sourceObject net:has_instance_uri ?sourceInstanceUri. + # -- old --- ?net1 net:has_source ?sourceObject. + # -- old --- ?sourceObject net:has_instance_uri ?sourceInstanceUri. # -- Target Object - ?net1 net:has_target ?targetObject. - ?targetObject net:has_instance_uri ?targetInstanceUri. + # -- old --- ?net1 net:has_target ?targetObject. + # -- old --- ?targetObject net:has_instance_uri ?targetInstanceUri. }""" ; sh:order 3.31 ; . @@ -1148,6 +1145,7 @@ cts:generation sh:rule cts:generate-event-class ; sh:rule cts:generate-relation-property ; sh:rule cts:link-classes-by-relation-property ; + sh:rule cts:link-instances-by-relation-property ; . cts:init-conjunctive-atom-list-net rdf:type sh:SPARQLRule ; @@ -1381,6 +1379,42 @@ WHERE { }""" ; sh:order 3.33 ; . +cts:link-instances-by-relation-property + rdf:type sh:SPARQLRule ; + rdfs:label "add-event" ; + sh:construct """PREFIX owl: <http://www.w3.org/2002/07/owl#> +PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> +PREFIX unl: <https://unl.tetras-libre.fr/rdf/schema#> +PREFIX net: <https://unsel.tetras-libre.fr/tenet/semantic-net#> +PREFIX cprm: <https://unsel.tetras-libre.fr/tenet/config/parameters#> +PREFIX req: <https://unsel.tetras-libre.fr/tenet/frame/requirement-ontology#> +PREFIX sys: <https://unsel.tetras-libre.fr/tenet/frame/system-ontology/> +PREFIX fprm: <https://unsel.tetras-libre.fr/tenet/frame/parameters#> + +CONSTRUCT { + ?sourceInstanceUri ?newPropertyUri ?targetInstanceUri. +} +WHERE { + # Relation Net (net1) + ?net1 a net:Instance. + ?net1 net:type net:relation. + ?net1 net:relationOf ?relationMother. + ?net1 net:has_structure ?req. + # -- Relation Object + ?net1 net:has_relation ?relationObject. + ?relationObject net:has_parent_property ?parentProperty. + ?relationObject net:has_property_uri ?newPropertyUri. + # -- Source Object + ?net1 net:has_source ?sourceObject. + ?sourceObject net:has_instance_uri ?sourceInstanceUri. + # -- Target Object + ?net1 net:has_target ?targetObject. + ?targetObject net:has_instance_uri ?targetInstanceUri. +}""" ; + sh:order 3.33 ; +. cts:link-to-scope-entry rdf:type sh:SPARQLRule ; sh:construct """PREFIX owl: <http://www.w3.org/2002/07/owl#>