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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tetras MARS
tenet
Commits
79ae3bb4
Commit
79ae3bb4
authored
3 years ago
by
Aurélien Lamercerie
Browse files
Options
Downloads
Patches
Plain Diff
Extraction of event as ObjectProperty
parent
fb255184
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/transduction-schemes.ttl
+50
-27
50 additions, 27 deletions
config/transduction-schemes.ttl
frame/ontology-parameters.ttl
+8
-0
8 additions, 0 deletions
frame/ontology-parameters.ttl
frame/system-ontology.ttl
+25
-16
25 additions, 16 deletions
frame/system-ontology.ttl
with
83 additions
and
43 deletions
config/transduction-schemes.ttl
+
50
−
27
View file @
79ae3bb4
...
@@ -31,9 +31,9 @@ cts:abstraction_extraction
...
@@ -31,9 +31,9 @@ cts:abstraction_extraction
rdfs:
subClassOf
cts:
net_extension
;
rdfs:
subClassOf
cts:
net_extension
;
sh:
rule
cts:
create-abstraction-net
;
sh:
rule
cts:
create-abstraction-net
;
.
.
cts:
add-abstraction
-classes
cts:
add-abstraction
rdf:
type
sh:
SPARQLRule
;
rdf:
type
sh:
SPARQLRule
;
rdfs:
label
"add
abstraction
classes
"
;
rdfs:
label
"add
-
abstraction"
;
sh:
construct
"""PREFIX owl: <http://www.w3.org/2002/07/owl#>
sh:
construct
"""PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
...
@@ -220,9 +220,9 @@ WHERE {
...
@@ -220,9 +220,9 @@ WHERE {
}"""
;
}"""
;
sh:
order
3.4
;
sh:
order
3.4
;
.
.
cts:
add-entity
-classes
cts:
add-entity
rdf:
type
sh:
SPARQLRule
;
rdf:
type
sh:
SPARQLRule
;
rdfs:
label
"add-entity
-classes
"
;
rdfs:
label
"add-entity"
;
sh:
construct
"""PREFIX owl: <http://www.w3.org/2002/07/owl#>
sh:
construct
"""PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
...
@@ -270,9 +270,9 @@ WHERE {
...
@@ -270,9 +270,9 @@ WHERE {
}"""
;
}"""
;
sh:
order
3.1
;
sh:
order
3.1
;
.
.
cts:
add-event
-classes
cts:
add-event
rdf:
type
sh:
SPARQLRule
;
rdf:
type
sh:
SPARQLRule
;
rdfs:
label
"add-event
-classes
"
;
rdfs:
label
"add-event"
;
sh:
construct
"""PREFIX owl: <http://www.w3.org/2002/07/owl#>
sh:
construct
"""PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
...
@@ -294,6 +294,12 @@ CONSTRUCT {
...
@@ -294,6 +294,12 @@ CONSTRUCT {
# -- old --- ?mainInstanceUri a ?newEventUri.
# -- old --- ?mainInstanceUri a ?newEventUri.
# -- old --- ?mainInstanceUri rdfs:label ?mainInstance.
# -- old --- ?mainInstanceUri rdfs:label ?mainInstance.
# -- old --- ?mainInstanceUri sys:from_structure ?req.
# -- old --- ?mainInstanceUri sys:from_structure ?req.
# Object Property
?newEventObjectPropertyUri a owl:ObjectProperty.
?newEventObjectPropertyUri rdfs:subPropertyOf ?eventObjectPropertyUri.
?newEventObjectPropertyUri rdfs:domain ?actorClassUri.
?newEventObjectPropertyUri rdfs:range ?targetClassUri.
?actorUri ?newEventObjectPropertyUri ?targetUri.
}
}
WHERE {
WHERE {
# net1: entity
# net1: entity
...
@@ -315,17 +321,34 @@ WHERE {
...
@@ -315,17 +321,34 @@ WHERE {
# URI (for classes)
# URI (for classes)
fprm:System_Ontology fprm:frameURI ?frameURI.
fprm:System_Ontology fprm:frameURI ?frameURI.
fprm:System_Event fprm:class ?eventClass.
fprm:System_Event fprm:class ?eventClass.
BIND (concat( ?frameURI, ?eventClass) AS ?
s
1).
BIND (concat( ?frameURI, ?eventClass) AS ?
c
1).
BIND (concat(?
s
1, '_', ?eventLabel) AS ?
s
2).
BIND (concat(?
c
1, '_', ?eventLabel) AS ?
c
2).
BIND (uri( ?
s
1) AS ?eventClassUri).
BIND (uri( ?
c
1) AS ?eventClassUri).
BIND (uri(?
s
2) AS ?newEventUri).
BIND (uri(?
c
2) AS ?newEventUri).
# URI (for instance)
# URI (for instance)
# -- old --- BIND (concat(?s1, '_', ?mainInstance) AS ?s3).
# -- old --- BIND (concat( ?frameURI, ?eventClass) AS ?i1).
# -- old --- BIND (uri(?s3) AS ?mainInstanceUri).
# -- old --- BIND (concat(?i1, '_', ?mainInstance) AS ?i2).
# -- old --- BIND (uri(?i2) AS ?mainInstanceUri).
# URI (for object property)
fprm:System_Event fprm:objectProperty ?eventObjectProperty.
BIND (concat( ?frameURI, ?eventObjectProperty) AS ?o1).
BIND (concat(?o1, '_', ?verbConcept) AS ?o2).
BIND (uri( ?o1) AS ?eventObjectPropertyUri).
BIND (uri( ?o2) AS ?newEventObjectPropertyUri).
# URI (for Entity classes)
fprm:System_Ontology fprm:frameURI ?frameURI.
BIND (concat( ?frameURI, ?actorClass) AS ?e1a).
BIND (concat(?e1a, '_', ?actorConcept) AS ?e1b).
BIND (uri(?e1a) AS ?actorClassUri).
BIND (uri(?e1b) AS ?actorUri).
BIND (concat( ?frameURI, ?targetClass) AS ?e2a).
BIND (concat(?e2a, '_', ?targetConcept) AS ?e2b).
BIND (uri(?e2a) AS ?targetClassUri).
BIND (uri(?e2b) AS ?targetUri).
}"""
;
}"""
;
sh:
order
3.1
;
sh:
order
3.1
;
.
.
cts:
add-feature
-classes
cts:
add-feature
rdf:
type
sh:
SPARQLRule
;
rdf:
type
sh:
SPARQLRule
;
rdfs:
label
"add-entity-classes"
;
rdfs:
label
"add-entity-classes"
;
sh:
construct
"""PREFIX owl: <http://www.w3.org/2002/07/owl#>
sh:
construct
"""PREFIX owl: <http://www.w3.org/2002/07/owl#>
...
@@ -420,9 +443,9 @@ WHERE {
...
@@ -420,9 +443,9 @@ WHERE {
}"""
;
}"""
;
sh:
order
3.2
;
sh:
order
3.2
;
.
.
cts:
add-verb
-classes
cts:
add-verb
rdf:
type
sh:
SPARQLRule
;
rdf:
type
sh:
SPARQLRule
;
rdfs:
label
"add-verb
-classes
"
;
rdfs:
label
"add-verb"
;
sh:
construct
"""PREFIX owl: <http://www.w3.org/2002/07/owl#>
sh:
construct
"""PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
...
@@ -476,14 +499,14 @@ cts:batch_execution
...
@@ -476,14 +499,14 @@ cts:batch_execution
rdf:
type
sh:
NodeShape
;
rdf:
type
sh:
NodeShape
;
rdfs:
label
"batch execution"
;
rdfs:
label
"batch execution"
;
rdfs:
subClassOf
cts:
Transduction_Schemes
;
rdfs:
subClassOf
cts:
Transduction_Schemes
;
sh:
rule
cts:
add-abstraction
-classes
;
sh:
rule
cts:
add-abstraction
;
sh:
rule
cts:
add-conjunctive-entity-classes
;
sh:
rule
cts:
add-conjunctive-entity-classes
;
sh:
rule
cts:
add-disjunctive-entity-classes
;
sh:
rule
cts:
add-disjunctive-entity-classes
;
sh:
rule
cts:
add-entity
-classes
;
sh:
rule
cts:
add-entity
;
sh:
rule
cts:
add-event
-classes
;
sh:
rule
cts:
add-event
;
sh:
rule
cts:
add-feature
-classes
;
sh:
rule
cts:
add-feature
;
sh:
rule
cts:
add-list-of-entity-classes
;
sh:
rule
cts:
add-list-of-entity-classes
;
sh:
rule
cts:
add-verb
-classes
;
sh:
rule
cts:
add-verb
;
sh:
rule
cts:
bypass-reification
;
sh:
rule
cts:
bypass-reification
;
sh:
rule
cts:
complement-list-of-entity-classes
;
sh:
rule
cts:
complement-list-of-entity-classes
;
sh:
rule
cts:
compose-agt-verb-obj-as-event
;
sh:
rule
cts:
compose-agt-verb-obj-as-event
;
...
@@ -622,7 +645,7 @@ WHERE {
...
@@ -622,7 +645,7 @@ WHERE {
?net3 net:has_entity ?targetObject.
?net3 net:has_entity ?targetObject.
# condition: agt(net1, net2) et obj(net1, net3)
# condition: agt(net1, net2) et obj(net1, net3)
?uw1 unl:agt ?uw2.
?uw1 unl:agt ?uw2.
?uw1 unl:obj ?uw3.
?uw1
(
unl:obj
|unl:res)
?uw3.
# Label: Id
# Label: Id
?uw1 unl:has_id ?uw1Id.
?uw1 unl:has_id ?uw1Id.
?uw2 unl:has_id ?uw2Id.
?uw2 unl:has_id ?uw2Id.
...
@@ -1260,14 +1283,14 @@ cts:generation
...
@@ -1260,14 +1283,14 @@ cts:generation
rdf:
type
sh:
NodeShape
;
rdf:
type
sh:
NodeShape
;
rdfs:
label
"generation"
;
rdfs:
label
"generation"
;
rdfs:
subClassOf
cts:
Transduction_Schemes
;
rdfs:
subClassOf
cts:
Transduction_Schemes
;
sh:
rule
cts:
add-abstraction
-classes
;
sh:
rule
cts:
add-abstraction
;
sh:
rule
cts:
add-conjunctive-entity-classes
;
sh:
rule
cts:
add-conjunctive-entity-classes
;
sh:
rule
cts:
add-disjunctive-entity-classes
;
sh:
rule
cts:
add-disjunctive-entity-classes
;
sh:
rule
cts:
add-entity
-classes
;
sh:
rule
cts:
add-entity
;
sh:
rule
cts:
add-event
-classes
;
sh:
rule
cts:
add-event
;
sh:
rule
cts:
add-feature
-classes
;
sh:
rule
cts:
add-feature
;
sh:
rule
cts:
add-list-of-entity-classes
;
sh:
rule
cts:
add-list-of-entity-classes
;
sh:
rule
cts:
add-verb
-classes
;
sh:
rule
cts:
add-verb
;
sh:
rule
cts:
complement-list-of-entity-classes
;
sh:
rule
cts:
complement-list-of-entity-classes
;
.
.
cts:
init-mod-list
cts:
init-mod-list
...
@@ -1555,5 +1578,5 @@ cts:verb_extraction
...
@@ -1555,5 +1578,5 @@ cts:verb_extraction
rdf:
type
sh:
NodeShape
;
rdf:
type
sh:
NodeShape
;
rdfs:
label
"verb extraction"
;
rdfs:
label
"verb extraction"
;
rdfs:
subClassOf
cts:
net_extension
;
rdfs:
subClassOf
cts:
net_extension
;
sh:
rule
cts:
add-verb
-classes
;
sh:
rule
cts:
add-verb
;
.
.
This diff is collapsed.
Click to expand it.
frame/ontology-parameters.ttl
+
8
−
0
View file @
79ae3bb4
...
@@ -35,6 +35,7 @@ fprm:System_Event
...
@@ -35,6 +35,7 @@ fprm:System_Event
rdfs:
label
"event"
;
rdfs:
label
"event"
;
rdfs:
subClassOf
fprm:
System_Ontology
;
rdfs:
subClassOf
fprm:
System_Ontology
;
fprm:
class
"Event"
;
fprm:
class
"Event"
;
fprm:
objectProperty
"eventObjectProperty"
;
.
.
fprm:
System_Feature
fprm:
System_Feature
rdf:
type
owl:
Class
;
rdf:
type
owl:
Class
;
...
@@ -81,6 +82,13 @@ fprm:frameURI
...
@@ -81,6 +82,13 @@ fprm:frameURI
rdfs:
range
xsd:
string
;
rdfs:
range
xsd:
string
;
rdfs:
subPropertyOf
fprm:
frameParamProperty
;
rdfs:
subPropertyOf
fprm:
frameParamProperty
;
.
.
fprm:
objectProperty
rdf:
type
rdf:
Property
;
rdfs:
domain
fprm:
Frame_Parameters
;
rdfs:
label
"objectProperty"
;
rdfs:
range
xsd:
string
;
rdfs:
subPropertyOf
fprm:
frameParamProperty
;
.
fprm:
restriction
fprm:
restriction
rdf:
type
rdf:
Property
;
rdf:
type
rdf:
Property
;
rdfs:
domain
fprm:
Frame_Parameters
;
rdfs:
domain
fprm:
Frame_Parameters
;
...
...
This diff is collapsed.
Click to expand it.
frame/system-ontology.ttl
+
25
−
16
View file @
79ae3bb4
...
@@ -71,46 +71,55 @@ sys:attributive_verb
...
@@ -71,46 +71,55 @@ sys:attributive_verb
rdfs:
label
"attributive verb"
;
rdfs:
label
"attributive verb"
;
rdfs:
subClassOf
sys:
Verb
;
rdfs:
subClassOf
sys:
Verb
;
.
.
sys:
classProperty
rdf:
type
rdf:
Property
;
rdfs:
label
"System Property"
;
.
sys:
component
sys:
component
rdf:
type
owl:
Class
;
rdf:
type
owl:
Class
;
rdfs:
label
"component"
@en
;
rdfs:
label
"component"
@en
;
rdfs:
label
"composant"
@fr
;
rdfs:
label
"composant"
@fr
;
rdfs:
subClassOf
sys:
Entity
;
rdfs:
subClassOf
sys:
Entity
;
.
.
sys:
entityProperty
sys:
entity
Class
Property
rdf:
type
rdf:
Property
;
rdf:
type
rdf:
Property
;
rdfs:
label
"entity property"
;
rdfs:
label
"entity property"
;
rdfs:
subPropertyOf
sys:
p
roperty
;
rdfs:
subPropertyOf
sys:
classP
roperty
;
.
.
sys:
eventProperty
sys:
event
Class
Property
rdf:
type
rdf:
Property
;
rdf:
type
rdf:
Property
;
rdfs:
label
"event property"
;
rdfs:
label
"event property"
;
rdfs:
subPropertyOf
sys:
property
;
rdfs:
subPropertyOf
sys:
classProperty
;
.
sys:
eventObjectProperty
rdf:
type
rdf:
Property
;
rdfs:
label
"event object property"
;
rdfs:
subPropertyOf
sys:
objectProperty
;
.
.
sys:
from_structure
sys:
from_structure
rdf:
type
rdf:
Property
;
rdf:
type
rdf:
Property
;
rdfs:
label
"from structure"
;
rdfs:
label
"from structure"
;
rdfs:
subPropertyOf
sys:
p
roperty
;
rdfs:
subPropertyOf
sys:
classP
roperty
;
.
.
sys:
has_actor
sys:
has_actor
rdf:
type
rdf:
Property
;
rdf:
type
rdf:
Property
;
rdfs:
label
"has actor"
;
rdfs:
label
"has actor"
;
rdfs:
subPropertyOf
sys:
eventProperty
;
rdfs:
subPropertyOf
sys:
event
Class
Property
;
.
.
sys:
has_feature
sys:
has_feature
rdf:
type
rdf:
Property
;
rdf:
type
rdf:
Property
;
rdfs:
label
"feature"
;
rdfs:
label
"feature"
;
rdfs:
subPropertyOf
sys:
entityProperty
;
rdfs:
subPropertyOf
sys:
entity
Class
Property
;
.
.
sys:
has_target
sys:
has_target
rdf:
type
rdf:
Property
;
rdf:
type
rdf:
Property
;
rdfs:
label
"has target"
;
rdfs:
label
"has target"
;
rdfs:
subPropertyOf
sys:
eventProperty
;
rdfs:
subPropertyOf
sys:
event
Class
Property
;
.
.
sys:
has_verb
sys:
has_verb
rdf:
type
rdf:
Property
;
rdf:
type
rdf:
Property
;
rdfs:
label
"has verb"
;
rdfs:
label
"has verb"
;
rdfs:
subPropertyOf
sys:
eventProperty
;
rdfs:
subPropertyOf
sys:
event
Class
Property
;
.
.
sys:
message
sys:
message
rdf:
type
owl:
Class
;
rdf:
type
owl:
Class
;
...
@@ -118,23 +127,23 @@ sys:message
...
@@ -118,23 +127,23 @@ sys:message
rdfs:
label
"message"
@fr
;
rdfs:
label
"message"
@fr
;
rdfs:
subClassOf
sys:
Entity
;
rdfs:
subClassOf
sys:
Entity
;
.
.
sys:
objectProperty
rdf:
type
rdf:
Property
;
rdfs:
label
"object property"
;
.
sys:
place
sys:
place
rdf:
type
owl:
Class
;
rdf:
type
owl:
Class
;
rdfs:
label
"lieu"
@fr
;
rdfs:
label
"lieu"
@fr
;
rdfs:
label
"place"
@en
;
rdfs:
label
"place"
@en
;
rdfs:
subClassOf
sys:
Feature
;
rdfs:
subClassOf
sys:
Feature
;
.
.
sys:
property
sys:
verbClassProperty
rdf:
type
rdf:
Property
;
rdfs:
label
"System Property"
;
.
sys:
verbProperty
rdf:
type
rdf:
Property
;
rdf:
type
rdf:
Property
;
rdfs:
label
"verb property"
;
rdfs:
label
"verb property"
;
rdfs:
subPropertyOf
sys:
p
roperty
;
rdfs:
subPropertyOf
sys:
classP
roperty
;
.
.
sys:
verbType
sys:
verbType
rdf:
type
rdf:
Property
;
rdf:
type
rdf:
Property
;
rdfs:
label
"verb type"
;
rdfs:
label
"verb type"
;
rdfs:
subPropertyOf
sys:
verbProperty
;
rdfs:
subPropertyOf
sys:
verb
Class
Property
;
.
.
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