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
4d4153c8
Commit
4d4153c8
authored
3 years ago
by
Aurélien Lamercerie
Browse files
Options
Downloads
Patches
Plain Diff
CTS update: fix bug about subclass not extracted (
#36
)
parent
8dc555f9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/transduction-schemes.ttl
+5
-1
5 additions, 1 deletion
config/transduction-schemes.ttl
prepare_work_data.py
+19
-6
19 additions, 6 deletions
prepare_work_data.py
with
24 additions
and
7 deletions
config/transduction-schemes.ttl
+
5
−
1
View file @
4d4153c8
...
...
@@ -273,6 +273,10 @@ cts:batch_execution
sh:
rule
cts:
update-net-extension-rules
;
sh:
rule
cts:
update-preprocessing-rules
;
.
cts:
batch_execution_1
rdf:
type
cts:
batch_execution
;
rdfs:
label
"batch execution 1"
;
.
cts:
bypass-reification
rdf:
type
sh:
SPARQLRule
;
sh:
construct
"""PREFIX owl: <http://www.w3.org/2002/07/owl#>
...
...
@@ -1045,7 +1049,7 @@ WHERE {
?net1 net:has_structure ?req.
?net1 net:has_parent ?parentObject.
?parentObject net:has_class_uri ?parentUri.
?parentObject net:has_instance_uri ?instanceUri.
# -- old ---
?parentObject net:has_instance_uri ?instanceUri.
?net1 net:has_item ?compositeObject.
?compositeObject net:has_class_uri ?newClassUri.
?compositeObject net:has_concept ?compositeConcept.
...
...
This diff is collapsed.
Click to expand it.
prepare_work_data.py
+
19
−
6
View file @
4d4153c8
...
...
@@ -36,12 +36,16 @@ cts_file = "transduction-schemes.ttl"
c_param_file
=
"
config-parameters.ttl
"
# Dev Tests
corpus_40
=
"
CCTP-SRSA-IP-20210831/
"
base_uri
=
"
https://unsel.tetras-libre.fr/tenet/working
"
req_100
=
"
CCTP-SRSA-IP-20210831-R100/
"
req_200
=
"
CCTP-SRSA-IP-20210831-R200/
"
req_300
=
"
CCTP-SRSA-IP-20210831-R300/
"
req_1100
=
"
CCTP-SRSA-IP-20210831-R1100/
"
corpus_40
=
"
CCTP-SRSA-IP-20210831/
"
corpus_comp
=
"
COMP/
"
req_f1
=
"
COMP/F1/
"
req_34
=
"
COMP/34/
"
req_50
=
"
COMP/50/
"
corpus_ERTMS
=
"
ERTMS/
"
corpus_PEV
=
"
PEV-RSE-Approach/
"
...
...
@@ -208,13 +212,22 @@ def run(corpus, source_ref, target_ref):
#==============================================================================
if
__name__
==
'
__main__
'
:
target_ref
=
"
system
"
#target_ref = "environment"
run
(
req_100
,
'
R100f
'
,
target_ref
)
run
(
req_200
,
'
R200f
'
,
target_ref
)
run
(
req_300
,
'
R300f
'
,
target_ref
)
run
(
req_1100
,
'
R1100f
'
,
target_ref
)
run
(
corpus_40
,
'
Corpus-CCTP-40f
'
,
target_ref
)
run
(
corpus_comp
,
'
COMP-01
'
,
target_ref
)
run
(
req_f1
,
'
C-F1
'
,
target_ref
)
run
(
req_50
,
'
C-50
'
,
target_ref
)
run
(
req_34
,
'
C-34
'
,
target_ref
)
#run(req_100, 'R100f', target_ref)
#run(req_200, 'R200f', target_ref)
#run(req_300, 'R300f', target_ref)
#run(req_1100, 'R1100f', target_ref)
#run(corpus_40, 'Corpus-CCTP-40f', target_ref)
#run(corpus_ERTMS, 'Corpus-ERTMS', target_ref)
#run(corpus_PEV, 'Corpus-PEV', target_ref)
...
...
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