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

Extraction of event as ObjectProperty

parent fb255184
Branches
Tags
No related merge requests found
...@@ -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 ?s1). BIND (concat( ?frameURI, ?eventClass) AS ?c1).
BIND (concat(?s1, '_', ?eventLabel) AS ?s2). BIND (concat(?c1, '_', ?eventLabel) AS ?c2).
BIND (uri( ?s1) AS ?eventClassUri). BIND (uri( ?c1) AS ?eventClassUri).
BIND (uri(?s2) AS ?newEventUri). BIND (uri(?c2) 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 ;
. .
...@@ -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 ;
......
...@@ -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:entityClassProperty
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "entity property" ; rdfs:label "entity property" ;
rdfs:subPropertyOf sys:property ; rdfs:subPropertyOf sys:classProperty ;
. .
sys:eventProperty sys:eventClassProperty
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:property ; rdfs:subPropertyOf sys:classProperty ;
. .
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:eventClassProperty ;
. .
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:entityClassProperty ;
. .
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:eventClassProperty ;
. .
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:eventClassProperty ;
. .
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:property ; rdfs:subPropertyOf sys:classProperty ;
. .
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:verbClassProperty ;
. .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment