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
13282653
Commit
13282653
authored
3 years ago
by
Aurélien Lamercerie
Browse files
Options
Downloads
Patches
Plain Diff
Linguistic Structure Property and fix minor bug
parent
da26b1e1
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/semantic-net.ttl
+26
-2
26 additions, 2 deletions
config/semantic-net.ttl
config/transduction-schemes.ttl
+21
-11
21 additions, 11 deletions
config/transduction-schemes.ttl
with
47 additions
and
13 deletions
config/semantic-net.ttl
+
26
−
2
View file @
13282653
...
@@ -12,7 +12,12 @@
...
@@ -12,7 +12,12 @@
.
.
net:
Instance
net:
Instance
rdf:
type
owl:
Class
;
rdf:
type
owl:
Class
;
rdfs:
label
"Semantic Net"
;
rdfs:
label
"Semantic Net Instance"
;
rdfs:
subClassOf
net:
Structure
;
.
net:
Object
rdf:
type
owl:
Class
;
rdfs:
label
"Object using in semantic net instance"
;
rdfs:
subClassOf
net:
Structure
;
rdfs:
subClassOf
net:
Structure
;
.
.
net:
Structure
net:
Structure
...
@@ -112,13 +117,32 @@ net:mod_list
...
@@ -112,13 +117,32 @@ net:mod_list
.
.
net:
node
net:
node
rdf:
type
rdf:
Property
;
rdf:
type
rdf:
Property
;
rdfs:
label
"
node "
@fr
;
rdfs:
label
"
UNL Node"
;
rdfs:
subPropertyOf
net:
property
;
rdfs:
subPropertyOf
net:
property
;
.
.
net:
objLS
rdf:
type
rdf:
Property
;
rdfs:
label
"Object Linguistic Structure"
;
rdfs:
subPropertyOf
net:
objectAttribute
;
.
net:
objUW
rdf:
type
rdf:
Property
;
rdfs:
label
"Object Universal Word"
;
rdfs:
subPropertyOf
net:
objectAttribute
;
.
net:
objectAttribute
rdf:
type
rdf:
Property
;
rdfs:
label
"object attribute"
;
.
net:
property
net:
property
rdf:
type
rdf:
Property
;
rdf:
type
rdf:
Property
;
rdfs:
label
"netProperty"
;
rdfs:
label
"netProperty"
;
.
.
net:
structure
rdf:
type
rdf:
Property
;
rdfs:
label
"Linguistic Structure (in UNL Document)"
;
rdfs:
subPropertyOf
net:
property
;
.
net:
type
net:
type
rdf:
type
rdf:
Property
;
rdf:
type
rdf:
Property
;
rdfs:
label
"type "
@fr
;
rdfs:
label
"type "
@fr
;
...
...
This diff is collapsed.
Click to expand it.
config/transduction-schemes.ttl
+
21
−
11
View file @
13282653
...
@@ -69,7 +69,7 @@ WHERE {
...
@@ -69,7 +69,7 @@ WHERE {
# -- old --- BIND (concat(?concept2, '_', ?mainEntity) AS ?subEntity2).
# -- old --- BIND (concat(?concept2, '_', ?mainEntity) AS ?subEntity2).
# -- old --- BIND (concat(?concept3, '_', ?mainEntity) AS ?subEntity3).
# -- old --- BIND (concat(?concept3, '_', ?mainEntity) AS ?subEntity3).
BIND (concat(?concept23, '_', ?mainEntity) AS ?subEntity23).
BIND (concat(?concept23, '_', ?mainEntity) AS ?subEntity23).
cprm:Config_Parameters cprm:baseURI ?baseURI.
# -- old ---
cprm:Config_Parameters cprm:baseURI ?baseURI.
fprm:System_Ontology fprm:frameURI ?frameURI.
fprm:System_Ontology fprm:frameURI ?frameURI.
BIND (concat( ?frameURI, ?entityClass) AS ?s1).
BIND (concat( ?frameURI, ?entityClass) AS ?s1).
BIND (concat(?s1, '_', ?mainEntity) AS ?s2).
BIND (concat(?s1, '_', ?mainEntity) AS ?s2).
...
@@ -130,7 +130,7 @@ WHERE {
...
@@ -130,7 +130,7 @@ WHERE {
# -- old --- BIND (concat(?concept2, '_', ?mainEntity) AS ?subEntity2).
# -- old --- BIND (concat(?concept2, '_', ?mainEntity) AS ?subEntity2).
# -- old --- BIND (concat(?concept3, '_', ?mainEntity) AS ?subEntity3).
# -- old --- BIND (concat(?concept3, '_', ?mainEntity) AS ?subEntity3).
BIND (concat(?concept23, '_', ?mainEntity) AS ?subEntity23).
BIND (concat(?concept23, '_', ?mainEntity) AS ?subEntity23).
cprm:Config_Parameters cprm:baseURI ?baseURI.
# -- old ---
cprm:Config_Parameters cprm:baseURI ?baseURI.
fprm:System_Ontology fprm:frameURI ?frameURI.
fprm:System_Ontology fprm:frameURI ?frameURI.
BIND (concat( ?frameURI, ?entityClass) AS ?s1).
BIND (concat( ?frameURI, ?entityClass) AS ?s1).
BIND (concat(?s1, '_', ?mainEntity) AS ?s2).
BIND (concat(?s1, '_', ?mainEntity) AS ?s2).
...
@@ -242,7 +242,7 @@ WHERE {
...
@@ -242,7 +242,7 @@ WHERE {
BIND (uri( ?s1) AS ?entityUri).
BIND (uri( ?s1) AS ?entityUri).
BIND (uri(?s2) AS ?mainEntityUri).
BIND (uri(?s2) AS ?mainEntityUri).
# Filter: entity not present in a class list
# Filter: entity not present in a class list
FILTER NOT EXISTS { ?net2
(net:class1|
net:class2
)
?mainEntity}
FILTER NOT EXISTS { ?net2 net:class2 ?mainEntity}
}"""
;
}"""
;
sh:
order
"201"
^^
xsd:
decimal
;
sh:
order
"201"
^^
xsd:
decimal
;
.
.
...
@@ -261,9 +261,9 @@ PREFIX fprm: <https://unsel.tetras-libre.fr/tenet/frame/parameters#>
...
@@ -261,9 +261,9 @@ PREFIX fprm: <https://unsel.tetras-libre.fr/tenet/frame/parameters#>
# -- Add Entity classes in System Ontology
# -- Add Entity classes in System Ontology
CONSTRUCT {
CONSTRUCT {
?mainEntityUri rdfs:subClassOf ?entityUri.
# -- old ---
?mainEntityUri rdfs:subClassOf ?entityUri.
?subEntityUri rdfs:subClassOf ?mainEntityUri.
?subEntityUri rdfs:subClassOf ?mainEntityUri.
?mainEntityUri rdfs:label ?mainEntity.
# -- old ---
?mainEntityUri rdfs:label ?mainEntity.
?subEntityUri rdfs:label ?subEntity.
?subEntityUri rdfs:label ?subEntity.
}
}
WHERE {
WHERE {
...
@@ -275,15 +275,16 @@ WHERE {
...
@@ -275,15 +275,16 @@ WHERE {
?net1 net:class2 ?subEntity.
?net1 net:class2 ?subEntity.
# Label(s) / URI
# Label(s) / URI
# -- old --- BIND (concat(?concept2, '_', ?mainEntity) AS ?subEntity).
# -- old --- BIND (concat(?concept2, '_', ?mainEntity) AS ?subEntity).
cprm:Config_Parameters cprm:baseURI ?baseURI.
# -- old ---
cprm:Config_Parameters cprm:baseURI ?baseURI.
fprm:System_Ontology fprm:frameURI ?frameURI.
fprm:System_Ontology fprm:frameURI ?frameURI.
fprm:System_Entity rdfs:label ?entityLabel.
fprm:System_Entity rdfs:label ?entityLabel.
BIND (concat( ?frameURI, ?entityClass) AS ?s1).
BIND (concat( ?frameURI, ?entityClass) AS ?s1).
BIND (concat(?s1, '_', ?mainEntity) AS ?s2).
BIND (concat(?s1, '_', ?mainEntity) AS ?s2).
BIND (concat(?s1, '_', ?subEntity) AS ?s3).
BIND (concat(?s1, '_', ?subEntity) AS ?s3).
BIND (uri( ?s1) AS ?entityUri).
# -- old ---
BIND (uri( ?s1) AS ?entityUri).
BIND (uri(?s2) AS ?mainEntityUri).
BIND (uri(?s2) AS ?mainEntityUri).
BIND (uri(?s3) AS ?subEntityUri).
BIND (uri(?s3) AS ?subEntityUri).
# Filter
# -- old --- FILTER NOT EXISTS { ?net2 net:class2 ?mainEntity}
# -- old --- FILTER NOT EXISTS { ?net2 net:class2 ?mainEntity}
}"""
;
}"""
;
sh:
order
"202"
^^
xsd:
decimal
;
sh:
order
"202"
^^
xsd:
decimal
;
...
@@ -329,6 +330,7 @@ PREFIX fprm: <https://unsel.tetras-libre.fr/tenet/frame/parameters#>
...
@@ -329,6 +330,7 @@ PREFIX fprm: <https://unsel.tetras-libre.fr/tenet/frame/parameters#>
CONSTRUCT {
CONSTRUCT {
?newNet a net:Instance.
?newNet a net:Instance.
?newNet net:type net:entity_class_list.
?newNet net:type net:entity_class_list.
?newNet net:structure ?req.
?newNet net:node ?uw1.
?newNet net:node ?uw1.
?newNet net:node ?uw2.
?newNet net:node ?uw2.
?newNet net:node ?uw3.
?newNet net:node ?uw3.
...
@@ -342,12 +344,14 @@ WHERE {
...
@@ -342,12 +344,14 @@ WHERE {
# net1: entity
# net1: entity
?net1 a net:Instance.
?net1 a net:Instance.
?net1 net:type net:entity.
?net1 net:type net:entity.
?net1 net:structure ?req.
?net1 net:node ?uw1.
?net1 net:node ?uw1.
?net1 net:entityClass ?entityClass.
?net1 net:entityClass ?entityClass.
?net1 net:concept ?mainEntity.
?net1 net:concept ?mainEntity.
# net2: complement modList
# net2: complement modList
?net2 a net:Instance.
?net2 a net:Instance.
?net2 net:type net:complement_mod_list.
?net2 net:type net:complement_mod_list.
?net2 net:structure ?req.
?net2 net:node ?uw2.
?net2 net:node ?uw2.
?net2 net:node ?uw3.
?net2 net:node ?uw3.
?net2 net:modCat2 ?featureClass.
?net2 net:modCat2 ?featureClass.
...
@@ -395,6 +399,7 @@ PREFIX fprm: <https://unsel.tetras-libre.fr/tenet/frame/parameters#>
...
@@ -395,6 +399,7 @@ PREFIX fprm: <https://unsel.tetras-libre.fr/tenet/frame/parameters#>
CONSTRUCT {
CONSTRUCT {
?newNet a net:Instance.
?newNet a net:Instance.
?newNet net:type net:entity_class_list.
?newNet net:type net:entity_class_list.
?newNet net:structure ?req.
?newNet net:node ?uw1.
?newNet net:node ?uw1.
?newNet net:node ?uw2.
?newNet net:node ?uw2.
?newNet net:node ?uw3.
?newNet net:node ?uw3.
...
@@ -408,6 +413,7 @@ WHERE {
...
@@ -408,6 +413,7 @@ WHERE {
# net1: agent
# net1: agent
?net1 a net:Instance.
?net1 a net:Instance.
?net1 net:type net:entity.
?net1 net:type net:entity.
?net1 net:structure ?req.
?net1 net:node ?uw1.
?net1 net:node ?uw1.
?net1 net:entityClass ?entityClass1.
?net1 net:entityClass ?entityClass1.
?net1 net:concept ?mainEntity.
?net1 net:concept ?mainEntity.
...
@@ -416,6 +422,7 @@ WHERE {
...
@@ -416,6 +422,7 @@ WHERE {
?net2 net:type net:entity_mod_list.
?net2 net:type net:entity_mod_list.
?net2 net:modCat1 fprm:System_Entity.
?net2 net:modCat1 fprm:System_Entity.
?net2 net:modCat2 ?entityClass2.
?net2 net:modCat2 ?entityClass2.
?net2 net:structure ?req.
?net2 net:node ?uw2.
?net2 net:node ?uw2.
?net2 net:node ?uw3.
?net2 net:node ?uw3.
# --old --- ?net2 net:concept ?subConcept.
# --old --- ?net2 net:concept ?subConcept.
...
@@ -464,6 +471,7 @@ PREFIX fprm: <https://unsel.tetras-libre.fr/tenet/frame/parameters#>
...
@@ -464,6 +471,7 @@ PREFIX fprm: <https://unsel.tetras-libre.fr/tenet/frame/parameters#>
CONSTRUCT {
CONSTRUCT {
?newNet a net:Instance.
?newNet a net:Instance.
?newNet net:type net:entity_class_list.
?newNet net:type net:entity_class_list.
?newNet net:structure ?req.
?newNet net:node ?uw1.
?newNet net:node ?uw1.
?newNet net:node ?uw2.
?newNet net:node ?uw2.
?newNet net:node ?uw3.
?newNet net:node ?uw3.
...
@@ -477,6 +485,7 @@ WHERE {
...
@@ -477,6 +485,7 @@ WHERE {
# net1: agent
# net1: agent
?net1 a net:Instance.
?net1 a net:Instance.
?net1 net:type net:entity.
?net1 net:type net:entity.
?net1 net:structure ?req.
?net1 net:node ?uw1.
?net1 net:node ?uw1.
?net1 net:entityClass ?entityClass1.
?net1 net:entityClass ?entityClass1.
?net1 net:concept ?mainEntity.
?net1 net:concept ?mainEntity.
...
@@ -485,6 +494,7 @@ WHERE {
...
@@ -485,6 +494,7 @@ WHERE {
?net2 net:type net:entity_mod_list.
?net2 net:type net:entity_mod_list.
?net2 net:modCat1 fprm:System_Entity.
?net2 net:modCat1 fprm:System_Entity.
?net2 net:modCat2 ?entityClass2.
?net2 net:modCat2 ?entityClass2.
?net2 net:structure ?req.
?net2 net:node ?uw2.
?net2 net:node ?uw2.
?net2 net:node ?uw3.
?net2 net:node ?uw3.
# --old --- ?net2 net:concept ?subConcept.
# --old --- ?net2 net:concept ?subConcept.
...
@@ -530,6 +540,7 @@ PREFIX fprm: <https://unsel.tetras-libre.fr/tenet/frame/parameters#>
...
@@ -530,6 +540,7 @@ PREFIX fprm: <https://unsel.tetras-libre.fr/tenet/frame/parameters#>
CONSTRUCT {
CONSTRUCT {
?semNet a net:Instance.
?semNet a net:Instance.
?semNet net:type net:entity.
?semNet net:type net:entity.
?semNet net:structure ?req.
?semNet net:node ?uw1.
?semNet net:node ?uw1.
?semNet net:entityClass ?entityClass.
?semNet net:entityClass ?entityClass.
?semNet net:concept ?concept1.
?semNet net:concept ?concept1.
...
@@ -560,8 +571,6 @@ cts:dev_schemes
...
@@ -560,8 +571,6 @@ cts:dev_schemes
rdf:
type
sh:
NodeShape
;
rdf:
type
sh:
NodeShape
;
rdfs:
label
"dev schemes"
;
rdfs:
label
"dev schemes"
;
rdfs:
subClassOf
cts:
Transduction_Schemes
;
rdfs:
subClassOf
cts:
Transduction_Schemes
;
sh:
rule
cts:
add-disjunctive-entity-classes-2--old
;
sh:
rule
cts:
extend-list-of-entity-classes--old
;
.
.
cts:
entity_extraction
cts:
entity_extraction
rdf:
type
owl:
Class
;
rdf:
type
owl:
Class
;
...
@@ -698,6 +707,7 @@ PREFIX fprm: <https://unsel.tetras-libre.fr/tenet/frame/parameters#>
...
@@ -698,6 +707,7 @@ PREFIX fprm: <https://unsel.tetras-libre.fr/tenet/frame/parameters#>
CONSTRUCT {
CONSTRUCT {
?semNet a net:Instance.
?semNet a net:Instance.
?semNet net:type net:mod_list.
?semNet net:type net:mod_list.
?semNet net:structure ?req.
?semNet net:node ?uw1.
?semNet net:node ?uw1.
?semNet net:concept ?concept1.
?semNet net:concept ?concept1.
}
}
...
...
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