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
78937c74
Commit
78937c74
authored
3 years ago
by
Aurélien Lamercerie
Browse files
Options
Downloads
Patches
Plain Diff
CTS Update: use of computed URIs for the generation of composite elements
parent
e14a25a5
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
+35
-31
35 additions, 31 deletions
config/transduction-schemes.ttl
prepare_work_data.py
+1
-1
1 addition, 1 deletion
prepare_work_data.py
with
36 additions
and
32 deletions
config/transduction-schemes.ttl
+
35
−
31
View file @
78937c74
...
...
@@ -397,27 +397,28 @@ WHERE {
?net1 a net:Instance.
?net1 net:type net:list.
?net1 net:listOf net:composite.
# -- old --- ?net1 net:
entityClass ?entityClass.
?net1
net:has_parent ?parent
Object.
?
parentObject net:has_parent_class ?parentClass. # -- old --- ?entityClass
?
net1 net:has_item
?subEntity
Object
.
?subEntity
Object net:has_concept ?subEntity.
?
subEntity
Object net:has_feature ?featureObject.
# -- old --- ?net1 net:
has_parent ?parentObject.
# -- old --- ?parentObject
net:has_parent
_class
?parent
Class. # -- old --- ?entityClass
?
net1 net:has_item ?itemObject.
?
itemObject net:has_class_uri
?subEntity
Uri
.
# -- old --- ?item
Object net:has_concept ?subEntity.
?
item
Object net:has_feature ?featureObject.
# object: feature
?featureObject a net:Object.
?featureObject net:objectType sys:Feature.
?featureObject net:has_node ?FeatureUW.
?featureObject net:has_parent_class ?featureClass.
?featureObject net:has_concept ?featureConcept.
# URI: entity class
sys:Structure sys:has_frame_uri ?frameURI.
?featureObject net:has_class_uri ?featureUri.
# -- old --- ?featureObject net:objectType sys:Feature.
# -- old --- ?featureObject net:has_node ?featureUW.
# -- old --- ?featureObject net:has_parent_class ?featureClass.
# -- old --- ?featureObject net:has_concept ?featureConcept.
# -- old --- # URI: entity class
# -- old --- sys:Structure sys:has_frame_uri ?frameURI.
# -- old --- BIND (concat( ?frameURI, ?parentClass) AS ?c1).
BIND (concat(?frameURI, ?subEntity) AS ?c2). # -- old --- BIND (concat(?c1, '#', ?subEntity) AS ?c2).
BIND (uri(?c2) AS ?subEntityUri).
# URI: feature class
# -- old ---
BIND (concat(?frameURI, ?subEntity) AS ?c2). # -- old --- BIND (concat(?c1, '#', ?subEntity) AS ?c2).
# -- old ---
BIND (uri(?c2) AS ?subEntityUri).
#
-- old --- #
URI: feature class
# -- old --- BIND (concat( ?frameURI, ?featureClass) AS ?f1).
BIND (concat(?frameURI, ?featureConcept) AS ?f2).
# -- old --- BIND (concat(?f
1, '#'
, ?featureConcept) AS ?f2).
BIND (uri(?f2) AS ?featureUri).
# -- old --- BIND (concat(?f
rameURI
, ?featureConcept) AS ?f2).
# -- old ---
BIND (uri(?f2) AS ?featureUri).
}"""
;
sh:
order
3.3
;
.
...
...
@@ -1213,23 +1214,26 @@ WHERE {
?net1 net:listOf net:composite.
?net1 net:has_structure ?req.
?net1 net:has_parent ?parentObject.
# -- old --- ?parentObject net:has_mother_class ?motherClass.
?parentObject net:has_parent_class ?parentClass.
?parentObject net:has_concept ?parentConcept.
?parentObject net:has_class_uri ?parentUri.
?net1 net:has_item ?compositeObject.
?compositeObject net:has_class_uri ?newClassUri.
?compositeObject net:has_instance_uri ?instanceUri.
?compositeObject net:has_concept ?compositeConcept.
?compositeObject net:has_instance ?compositeInstance.
# -- old --- ?parentObject net:has_mother_class ?motherClass.
# -- old --- ?parentObject net:has_parent_class ?parentClass.
# -- old --- ?parentObject net:has_concept ?parentConcept.
# -- old --- ?compositeObject net:has_instance ?compositeInstance.
# Filter -- old --- FILTER NOT EXISTS { ?net2 net:has_subClass ?mainEntity}
# URI (for classes)
sys:Structure sys:has_frame_uri ?frameURI.
BIND (concat( ?frameURI, ?parentConcept) AS ?s2).
# -- old --- BIND (concat(
?s1, '#'
, ?parentConcept) AS ?s2).
BIND (concat( ?frameURI, ?compositeConcept) AS ?s3).
# -- old --- BIND (concat(
?s1, '#'
, ?compositeConcept) AS ?s3).
BIND (uri(?s2) AS ?parentUri).
BIND (uri(?s3) AS ?newClassUri).
# URI (for instance)
BIND (concat( ?frameURI, ?parentClass) AS ?s1).
BIND (concat(?s1, '#', ?compositeInstance) AS ?s4).
BIND (uri(?s4) AS ?instanceUri).
#
-- old --- #
URI (for classes)
# -- old ---
sys:Structure sys:has_frame_uri ?frameURI.
# -- old --- BIND (concat(
?frameURI
, ?parentConcept) AS ?s2).
# -- old --- BIND (concat(
?frameURI
, ?compositeConcept) AS ?s3).
# -- old ---
BIND (uri(?s2) AS ?parentUri).
# -- old ---
BIND (uri(?s3) AS ?newClassUri).
#
-- old --- #
URI (for instance)
# -- old ---
BIND (concat( ?frameURI, ?parentClass) AS ?s1).
# -- old ---
BIND (concat(?s1, '#', ?compositeInstance) AS ?s4).
# -- old ---
BIND (uri(?s4) AS ?instanceUri).
}"""
;
sh:
order
3.2
;
.
...
...
This diff is collapsed.
Click to expand it.
prepare_work_data.py
+
1
−
1
View file @
78937c74
...
...
@@ -207,7 +207,7 @@ if __name__ == '__main__':
#run(req_100, 'R100b', target_ref)
#run(req_200, 'R200b', target_ref)
run
(
req_300
,
'
R300b
'
,
target_ref
)
#
run(corpus_40, 'Corpus-CCTP-40
c
', target_ref)
run
(
corpus_40
,
'
Corpus-CCTP-40
a
'
,
target_ref
)
#run(corpus_ERTMS, 'Corpus-ERTMS', target_ref)
#run(corpus_PEV, 'Corpus-PEV', target_ref)
...
...
This diff is collapsed.
Click to expand it.
Aurélien Lamercerie
@alam
mentioned in issue
#9 (closed)
·
3 years ago
mentioned in issue
#9 (closed)
mentioned in issue #9
Toggle commit list
Aurélien Lamercerie
@alam
mentioned in issue
#8 (closed)
·
3 years ago
mentioned in issue
#8 (closed)
mentioned in issue #8
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