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

Shapes refactoring and cts update (preprocessing rules to dispatch shaclRule)

parent aef85938
No related branches found
No related tags found
No related merge requests found
......@@ -24,12 +24,6 @@ cts:Transduction_Schemes
rdfs:label "Transduction Schemes" ;
rdfs:subClassOf owl:Thing ;
.
cts:abstraction_extraction
rdf:type owl:Class ;
rdf:type sh:NodeShape ;
rdfs:label "abstraction extension" ;
rdfs:subClassOf cts:net_extension ;
.
cts:add-conjunctive-classes-from-list-net
rdf:type sh:SPARQLRule ;
rdfs:label "add-conjunctive-entity-classes" ;
......@@ -272,6 +266,10 @@ cts:batch_execution
sh:rule cts:link-classes-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 ;
sh:rule cts:update-generation-rules ;
sh:rule cts:update-net-extension-rules ;
sh:rule cts:update-preprocessing-rules ;
.
cts:batch_execution_1
rdf:type cts:batch_execution ;
......@@ -523,7 +521,7 @@ VALUES ?objectType {
net:atom
net:composite
}""" ;
sh:order 3.01 ;
sh:order 2.91 ;
.
cts:compute-domain-of-relation-property
rdf:type sh:SPARQLRule ;
......@@ -594,7 +592,7 @@ WHERE {
BIND (concat(?s1, '#', ?objectInstance) AS ?s2).
BIND (uri(?s2) AS ?objectInstanceUri).
}""" ;
sh:order 3.02 ;
sh:order 2.92 ;
.
cts:compute-property-uri-of-relation-object
rdf:type sh:SPARQLRule ;
......@@ -631,7 +629,7 @@ WHERE {
VALUES ?objectType {
net:relation
}""" ;
sh:order 3.01 ;
sh:order 2.91 ;
.
cts:compute-range-of-relation-property
rdf:type sh:SPARQLRule ;
......@@ -893,26 +891,6 @@ cts:dev_schemes
sh:rule cts:old_compute-domain-range-of-event-object-properties ;
sh:rule cts:old_compute-domain-range-of-state-property-object-properties ;
.
cts:entity_extraction
rdf:type owl:Class ;
rdf:type sh:NodeShape ;
rdfs:label "entity extraction" ;
rdfs:subClassOf cts:net_extension ;
sh:rule cts:compose-atom-with-list-by-mod-1 ;
sh:rule cts:compose-atom-with-list-by-mod-2 ;
sh:rule cts:create-atom-net ;
sh:rule cts:extend-atom-list-net ;
sh:rule cts:init-conjunctive-atom-list-net ;
sh:rule cts:instantiate-atom-net ;
sh:rule cts:instantiate-composite-in-list-by-extension-2 ;
.
cts:event_extraction
rdf:type owl:Class ;
rdf:type sh:NodeShape ;
rdfs:label "event extraction" ;
rdfs:subClassOf cts:net_extension ;
sh:rule cts:old_compose-agt-verb-obj-as-simple-event ;
.
cts:extend-atom-list-net
rdf:type sh:SPARQLRule ;
sh:construct """PREFIX owl: <http://www.w3.org/2002/07/owl#>
......@@ -950,12 +928,6 @@ WHERE {
}""" ;
sh:order 2.22 ;
.
cts:feature_extraction
rdf:type owl:Class ;
rdf:type sh:NodeShape ;
rdfs:label "feature extraction" ;
rdfs:subClassOf cts:net_extension ;
.
cts:generate-atom-class
rdf:type sh:SPARQLRule ;
rdfs:label "add-entity-classes" ;
......@@ -1443,6 +1415,23 @@ cts:net_extension
rdf:type sh:NodeShape ;
rdfs:label "net extension" ;
rdfs:subClassOf cts:Transduction_Schemes ;
sh:rule cts:append-domain-to-relation-net ;
sh:rule cts:append-range-to-relation-net ;
sh:rule cts:compose-atom-with-list-by-mod-1 ;
sh:rule cts:compose-atom-with-list-by-mod-2 ;
sh:rule cts:compute-class-uri-of-net-object ;
sh:rule cts:compute-instance-uri-of-net-object ;
sh:rule cts:compute-property-uri-of-relation-object ;
sh:rule cts:create-atom-net ;
sh:rule cts:create-relation-net ;
sh:rule cts:create-unary-atom-list-net ;
sh:rule cts:extend-atom-list-net ;
sh:rule cts:init-conjunctive-atom-list-net ;
sh:rule cts:init-disjunctive-atom-list-net ;
sh:rule cts:instantiate-atom-net ;
sh:rule cts:instantiate-composite-in-list-by-extension-1 ;
sh:rule cts:instantiate-composite-in-list-by-extension-2 ;
sh:rule cts:specify-axis-of-atom-list-net ;
.
cts:old_add-event
rdf:type sh:SPARQLRule ;
......@@ -1834,11 +1823,6 @@ WHERE {
}""" ;
sh:order 0.332 ;
.
cts:postprocessing
rdf:type owl:Class ;
rdf:type sh:NodeShape ;
rdfs:subClassOf cts:Transduction_Schemes ;
.
cts:preprocessing
rdf:type owl:Class ;
rdf:type sh:NodeShape ;
......@@ -1847,6 +1831,10 @@ cts:preprocessing
sh:rule cts:bypass-reification ;
sh:rule cts:define-uw-id ;
sh:rule cts:link-to-scope-entry ;
sh:rule cts:update-batch-execution-rules ;
sh:rule cts:update-generation-rules ;
sh:rule cts:update-net-extension-rules ;
sh:rule cts:update-preprocessing-rules ;
.
cts:specify-axis-of-atom-list-net
rdf:type sh:SPARQLRule ;
......@@ -1881,16 +1869,70 @@ WHERE {
}""" ;
sh:order 2.23 ;
.
cts:state_property_extraction
rdf:type owl:Class ;
rdf:type sh:NodeShape ;
rdfs:label "state property extraction" ;
rdfs:subClassOf cts:net_extension ;
sh:rule cts:old_compose-aoj-verb-obj-as-simple-state-property ;
cts:update-batch-execution-rules
rdf:type sh:SPARQLRule ;
sh:construct """PREFIX cts: <https://unsel.tetras-libre.fr/tenet/transduction-schemes#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX sh: <http://www.w3.org/ns/shacl#>
CONSTRUCT {
cts:batch_execution sh:rule ?rule.
}
WHERE {
?nodeShapes sh:rule ?rule.
}
VALUES ?nodeShapes {
cts:preprocessing
cts:net_extension
cts:generation
}""" ;
sh:order 1.09 ;
.
cts:verb_extraction
rdf:type owl:Class ;
rdf:type sh:NodeShape ;
rdfs:label "verb extraction" ;
rdfs:subClassOf cts:net_extension ;
cts:update-generation-rules
rdf:type sh:SPARQLRule ;
sh:construct """PREFIX cts: <https://unsel.tetras-libre.fr/tenet/transduction-schemes#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX sh: <http://www.w3.org/ns/shacl#>
CONSTRUCT {
cts:generation sh:rule ?rule.
}
WHERE {
?rule rdf:type sh:SPARQLRule.
?rule sh:order ?order.
FILTER ( strStarts(str(?order),\"3.\") ).
}""" ;
sh:order 1.03 ;
.
cts:update-net-extension-rules
rdf:type sh:SPARQLRule ;
sh:construct """PREFIX cts: <https://unsel.tetras-libre.fr/tenet/transduction-schemes#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX sh: <http://www.w3.org/ns/shacl#>
CONSTRUCT {
cts:net_extension sh:rule ?rule.
}
WHERE {
?rule rdf:type sh:SPARQLRule.
?rule sh:order ?order.
FILTER ( strStarts(str(?order),\"2.\") ).
}""" ;
sh:order 1.02 ;
.
cts:update-preprocessing-rules
rdf:type sh:SPARQLRule ;
sh:construct """PREFIX cts: <https://unsel.tetras-libre.fr/tenet/transduction-schemes#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX sh: <http://www.w3.org/ns/shacl#>
CONSTRUCT {
cts:preprocessing sh:rule ?rule.
}
WHERE {
?rule rdf:type sh:SPARQLRule.
?rule sh:order ?order.
FILTER ( strStarts(str(?order),\"1.\") ).
}""" ;
sh:order 1.01 ;
.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment