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
c76a9c7f
Commit
c76a9c7f
authored
3 years ago
by
Aurélien Lamercerie
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug in CTS: compute domain/range for atom without instance
parent
3c6f9f99
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/transduction-schemes.ttl
+14
-6
14 additions, 6 deletions
config/transduction-schemes.ttl
prepare_work_data.py
+2
-0
2 additions, 0 deletions
prepare_work_data.py
with
16 additions
and
6 deletions
config/transduction-schemes.ttl
+
14
−
6
View file @
c76a9c7f
...
@@ -171,7 +171,9 @@ WHERE {
...
@@ -171,7 +171,9 @@ WHERE {
?net1 a net:Instance.
?net1 a net:Instance.
?net1 net:type net:relation.
?net1 net:type net:relation.
?net1 net:has_structure ?req.
?net1 net:has_structure ?req.
?net1 net:has_node ?uw1.
# -- Relation Object
?net1 net:has_relation ?relationObject.
?relationObject net:has_node ?uw1.
# Atom Net (net2): actor of net1
# Atom Net (net2): actor of net1
?net2 a net:Instance.
?net2 a net:Instance.
?net2 net:type net:atom.
?net2 net:type net:atom.
...
@@ -181,9 +183,11 @@ WHERE {
...
@@ -181,9 +183,11 @@ WHERE {
# condition: agt(net1, net2)
# condition: agt(net1, net2)
?uw1 unl:agt ?uw2.
?uw1 unl:agt ?uw2.
# Possible Domain
# Possible Domain
?sourceObject net:has_instance ?sourceInstance.
{ ?sourceObject net:has_concept ?domainClass. }
UNION
{ ?sourceObject net:has_instance ?sourceInstance.
?anySourceObject net:has_instance ?sourceInstance.
?anySourceObject net:has_instance ?sourceInstance.
?anySourceObject net:has_concept ?domainClass.
?anySourceObject net:has_concept ?domainClass.
}
}"""
;
}"""
;
sh:
order
2.4
2
;
sh:
order
2.4
2
;
.
.
...
@@ -212,7 +216,9 @@ WHERE {
...
@@ -212,7 +216,9 @@ WHERE {
?net1 a net:Instance.
?net1 a net:Instance.
?net1 net:type net:relation.
?net1 net:type net:relation.
?net1 net:has_structure ?req.
?net1 net:has_structure ?req.
?net1 net:has_node ?uw1.
# -- Relation Object
?net1 net:has_relation ?relationObject.
?relationObject net:has_node ?uw1.
# Atom Net (net2): target of net1
# Atom Net (net2): target of net1
?net2 a net:Instance.
?net2 a net:Instance.
?net2 net:type net:atom.
?net2 net:type net:atom.
...
@@ -222,9 +228,11 @@ WHERE {
...
@@ -222,9 +228,11 @@ WHERE {
# condition: agt(net1, net2)
# condition: agt(net1, net2)
?uw1 (unl:obj|unl:res) ?uw2.
?uw1 (unl:obj|unl:res) ?uw2.
# Possible Domain
# Possible Domain
?targetObject net:has_instance ?targetObjectInstance.
{ ?targetObject net:has_concept ?rangeClass. }
UNION
{ ?targetObject net:has_instance ?targetObjectInstance.
?allTargetObject net:has_instance ?targetObjectInstance.
?allTargetObject net:has_instance ?targetObjectInstance.
?allTargetObject net:has_concept ?rangeClass.
?allTargetObject net:has_concept ?rangeClass.
}
}"""
;
}"""
;
sh:
order
2.4
2
;
sh:
order
2.4
2
;
.
.
...
...
This diff is collapsed.
Click to expand it.
prepare_work_data.py
+
2
−
0
View file @
c76a9c7f
...
@@ -40,6 +40,7 @@ base_uri = "https://unsel.tetras-libre.fr/tenet/working"
...
@@ -40,6 +40,7 @@ base_uri = "https://unsel.tetras-libre.fr/tenet/working"
req_100
=
"
CCTP-SRSA-IP-20210831-R100/
"
req_100
=
"
CCTP-SRSA-IP-20210831-R100/
"
req_200
=
"
CCTP-SRSA-IP-20210831-R200/
"
req_200
=
"
CCTP-SRSA-IP-20210831-R200/
"
req_300
=
"
CCTP-SRSA-IP-20210831-R300/
"
req_300
=
"
CCTP-SRSA-IP-20210831-R300/
"
req_1100
=
"
CCTP-SRSA-IP-20210831-R1100/
"
corpus_40
=
"
CCTP-SRSA-IP-20210831/
"
corpus_40
=
"
CCTP-SRSA-IP-20210831/
"
corpus_ERTMS
=
"
ERTMS/
"
corpus_ERTMS
=
"
ERTMS/
"
corpus_PEV
=
"
PEV-RSE-Approach/
"
corpus_PEV
=
"
PEV-RSE-Approach/
"
...
@@ -212,6 +213,7 @@ if __name__ == '__main__':
...
@@ -212,6 +213,7 @@ if __name__ == '__main__':
run
(
req_100
,
'
R100f
'
,
target_ref
)
run
(
req_100
,
'
R100f
'
,
target_ref
)
run
(
req_200
,
'
R200f
'
,
target_ref
)
run
(
req_200
,
'
R200f
'
,
target_ref
)
run
(
req_300
,
'
R300f
'
,
target_ref
)
run
(
req_300
,
'
R300f
'
,
target_ref
)
run
(
req_1100
,
'
R1100f
'
,
target_ref
)
#run(corpus_40, 'Corpus-CCTP-40e', target_ref)
#run(corpus_40, 'Corpus-CCTP-40e', target_ref)
#run(corpus_ERTMS, 'Corpus-ERTMS', target_ref)
#run(corpus_ERTMS, 'Corpus-ERTMS', target_ref)
#run(corpus_PEV, 'Corpus-PEV', target_ref)
#run(corpus_PEV, 'Corpus-PEV', target_ref)
...
...
This diff is collapsed.
Click to expand it.
Aurélien Lamercerie
@alam
mentioned in issue
#31 (closed)
·
3 years ago
mentioned in issue
#31 (closed)
mentioned in issue #31
Toggle commit list
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