Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tenet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tetras MARS
tenet
Commits
b73afaef
Commit
b73afaef
authored
3 years ago
by
Aurélien Lamercerie
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/transduction-schemes.ttl
+93
-51
93 additions, 51 deletions
config/transduction-schemes.ttl
with
93 additions
and
51 deletions
config/transduction-schemes.ttl
+
93
−
51
View file @
b73afaef
...
@@ -24,12 +24,6 @@ cts:Transduction_Schemes
...
@@ -24,12 +24,6 @@ cts:Transduction_Schemes
rdfs:
label
"Transduction Schemes"
;
rdfs:
label
"Transduction Schemes"
;
rdfs:
subClassOf
owl:
Thing
;
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
cts:
add-conjunctive-classes-from-list-net
rdf:
type
sh:
SPARQLRule
;
rdf:
type
sh:
SPARQLRule
;
rdfs:
label
"add-conjunctive-entity-classes"
;
rdfs:
label
"add-conjunctive-entity-classes"
;
...
@@ -272,6 +266,10 @@ cts:batch_execution
...
@@ -272,6 +266,10 @@ cts:batch_execution
sh:
rule
cts:
link-classes-by-relation-property
;
sh:
rule
cts:
link-classes-by-relation-property
;
sh:
rule
cts:
link-to-scope-entry
;
sh:
rule
cts:
link-to-scope-entry
;
sh:
rule
cts:
specify-axis-of-atom-list-net
;
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
cts:
batch_execution_1
rdf:
type
cts:
batch_execution
;
rdf:
type
cts:
batch_execution
;
...
@@ -523,7 +521,7 @@ VALUES ?objectType {
...
@@ -523,7 +521,7 @@ VALUES ?objectType {
net:atom
net:atom
net:composite
net:composite
}"""
;
}"""
;
sh:
order
3.0
1
;
sh:
order
2.9
1
;
.
.
cts:
compute-domain-of-relation-property
cts:
compute-domain-of-relation-property
rdf:
type
sh:
SPARQLRule
;
rdf:
type
sh:
SPARQLRule
;
...
@@ -594,7 +592,7 @@ WHERE {
...
@@ -594,7 +592,7 @@ WHERE {
BIND (concat(?s1, '#', ?objectInstance) AS ?s2).
BIND (concat(?s1, '#', ?objectInstance) AS ?s2).
BIND (uri(?s2) AS ?objectInstanceUri).
BIND (uri(?s2) AS ?objectInstanceUri).
}"""
;
}"""
;
sh:
order
3.0
2
;
sh:
order
2.9
2
;
.
.
cts:
compute-property-uri-of-relation-object
cts:
compute-property-uri-of-relation-object
rdf:
type
sh:
SPARQLRule
;
rdf:
type
sh:
SPARQLRule
;
...
@@ -631,7 +629,7 @@ WHERE {
...
@@ -631,7 +629,7 @@ WHERE {
VALUES ?objectType {
VALUES ?objectType {
net:relation
net:relation
}"""
;
}"""
;
sh:
order
3.0
1
;
sh:
order
2.9
1
;
.
.
cts:
compute-range-of-relation-property
cts:
compute-range-of-relation-property
rdf:
type
sh:
SPARQLRule
;
rdf:
type
sh:
SPARQLRule
;
...
@@ -893,26 +891,6 @@ cts:dev_schemes
...
@@ -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-event-object-properties
;
sh:
rule
cts:
old_compute-domain-range-of-state-property-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
cts:
extend-atom-list-net
rdf:
type
sh:
SPARQLRule
;
rdf:
type
sh:
SPARQLRule
;
sh:
construct
"""PREFIX owl: <http://www.w3.org/2002/07/owl#>
sh:
construct
"""PREFIX owl: <http://www.w3.org/2002/07/owl#>
...
@@ -950,12 +928,6 @@ WHERE {
...
@@ -950,12 +928,6 @@ WHERE {
}"""
;
}"""
;
sh:
order
2.2
2
;
sh:
order
2.2
2
;
.
.
cts:
feature_extraction
rdf:
type
owl:
Class
;
rdf:
type
sh:
NodeShape
;
rdfs:
label
"feature extraction"
;
rdfs:
subClassOf
cts:
net_extension
;
.
cts:
generate-atom-class
cts:
generate-atom-class
rdf:
type
sh:
SPARQLRule
;
rdf:
type
sh:
SPARQLRule
;
rdfs:
label
"add-entity-classes"
;
rdfs:
label
"add-entity-classes"
;
...
@@ -1443,6 +1415,23 @@ cts:net_extension
...
@@ -1443,6 +1415,23 @@ cts:net_extension
rdf:
type
sh:
NodeShape
;
rdf:
type
sh:
NodeShape
;
rdfs:
label
"net extension"
;
rdfs:
label
"net extension"
;
rdfs:
subClassOf
cts:
Transduction_Schemes
;
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
cts:
old_add-event
rdf:
type
sh:
SPARQLRule
;
rdf:
type
sh:
SPARQLRule
;
...
@@ -1834,11 +1823,6 @@ WHERE {
...
@@ -1834,11 +1823,6 @@ WHERE {
}"""
;
}"""
;
sh:
order
0.3
32
;
sh:
order
0.3
32
;
.
.
cts:
postprocessing
rdf:
type
owl:
Class
;
rdf:
type
sh:
NodeShape
;
rdfs:
subClassOf
cts:
Transduction_Schemes
;
.
cts:
preprocessing
cts:
preprocessing
rdf:
type
owl:
Class
;
rdf:
type
owl:
Class
;
rdf:
type
sh:
NodeShape
;
rdf:
type
sh:
NodeShape
;
...
@@ -1847,6 +1831,10 @@ cts:preprocessing
...
@@ -1847,6 +1831,10 @@ cts:preprocessing
sh:
rule
cts:
bypass-reification
;
sh:
rule
cts:
bypass-reification
;
sh:
rule
cts:
define-uw-id
;
sh:
rule
cts:
define-uw-id
;
sh:
rule
cts:
link-to-scope-entry
;
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
cts:
specify-axis-of-atom-list-net
rdf:
type
sh:
SPARQLRule
;
rdf:
type
sh:
SPARQLRule
;
...
@@ -1881,16 +1869,70 @@ WHERE {
...
@@ -1881,16 +1869,70 @@ WHERE {
}"""
;
}"""
;
sh:
order
2.2
3
;
sh:
order
2.2
3
;
.
.
cts:
state_property_extraction
cts:
update-batch-execution-rules
rdf:
type
owl:
Class
;
rdf:
type
sh:
SPARQLRule
;
rdf:
type
sh:
NodeShape
;
sh:
construct
"""PREFIX cts: <https://unsel.tetras-libre.fr/tenet/transduction-schemes#>
rdfs:
label
"state property extraction"
;
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
rdfs:
subClassOf
cts:
net_extension
;
PREFIX sh: <http://www.w3.org/ns/shacl#>
sh:
rule
cts:
old_compose-aoj-verb-obj-as-simple-state-property
;
CONSTRUCT {
cts:batch_execution sh:rule ?rule.
}
WHERE {
?nodeShapes sh:rule ?rule.
}
VALUES ?nodeShapes {
cts:preprocessing
cts:net_extension
cts:generation
}"""
;
sh:
order
1.0
9
;
.
.
cts:
verb_extraction
cts:
update-generation-rules
rdf:
type
owl:
Class
;
rdf:
type
sh:
SPARQLRule
;
rdf:
type
sh:
NodeShape
;
sh:
construct
"""PREFIX cts: <https://unsel.tetras-libre.fr/tenet/transduction-schemes#>
rdfs:
label
"verb extraction"
;
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
rdfs:
subClassOf
cts:
net_extension
;
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.0
3
;
.
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.0
2
;
.
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.0
1
;
.
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment