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
b5d41cda
Commit
b5d41cda
authored
3 years ago
by
Aurélien Lamercerie
Browse files
Options
Downloads
Patches
Plain Diff
Add relation between classes/instances and requirements (relation sys:from_structure)
parent
122f46a8
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
+12
-0
12 additions, 0 deletions
config/transduction-schemes.ttl
frame/system-ontology.ttl
+5
-0
5 additions, 0 deletions
frame/system-ontology.ttl
with
17 additions
and
0 deletions
config/transduction-schemes.ttl
+
12
−
0
View file @
b5d41cda
...
...
@@ -43,6 +43,7 @@ CONSTRUCT {
# Classification
?subEntity23Uri rdfs:subClassOf ?mainEntityUri.
?subEntity23Uri rdfs:label ?subEntity23.
?subEntity23Uri sys:from_structure ?req.
?subEntity23Uri
owl:equivalentClass [ a owl:Class ;
owl:intersectionOf ( ?subEntity2Uri ?subEntity3Uri ) ] .
...
...
@@ -53,6 +54,7 @@ WHERE {
# net1: entity class list
?net1 a net:Instance.
?net1 net:type net:entity_class_list.
?net1 net:has_structure ?req.
?net1 net:entityClass ?entityClass.
?net1 net:has_node ?uw2, ?uw3.
?net1 net:has_mainClass ?mainEntityObject.
...
...
@@ -115,6 +117,7 @@ CONSTRUCT {
# Classification
?subEntity23Uri rdfs:subClassOf ?mainEntityUri.
?subEntity23Uri rdfs:label ?subEntity23.
?subEntity23Uri sys:from_structure ?req.
?subEntity23Uri
owl:equivalentClass [ a owl:Class ;
owl:unionOf ( ?subEntity2Uri ?subEntity3Uri ) ] .
...
...
@@ -125,6 +128,7 @@ WHERE {
# net1: entity class list
?net1 a net:Instance.
?net1 net:type net:entity_class_list.
?net1 net:has_structure ?req.
?net1 net:entityClass ?entityClass.
?net1 net:has_node ?uw2, ?uw3.
?net1 net:has_mainClass ?mainEntityObject.
...
...
@@ -187,14 +191,17 @@ CONSTRUCT {
# Classification
?mainEntityUri rdfs:subClassOf ?entityUri.
?mainEntityUri rdfs:label ?mainEntity.
?mainEntityUri sys:from_structure ?req.
# Instantiation
?mainInstanceUri a ?mainEntityUri.
?mainInstanceUri rdfs:label ?mainInstance.
?mainInstanceUri sys:from_structure ?req.
}
WHERE {
# net1: entity
?net1 a net:Instance.
?net1 net:type net:entity.
?net1 net:has_structure ?req.
?net1 net:has_entity ?entityObject1.
?entityObject1 net:entityClass ?entityClass.
?entityObject1 net:concept ?mainEntity.
...
...
@@ -234,12 +241,14 @@ CONSTRUCT {
# Classification
?subFeatureUri rdfs:subClassOf ?featureUri.
?subFeatureUri rdfs:label ?featureConcept.
?subFeatureUri sys:from_structure ?req.
# Instantiation: no instance for feature
}
WHERE {
# net1: feature
?net1 a net:Instance.
?net1 net:type net:feature.
?net1 net:has_structure ?req.
?net1 net:featureClass ?featureClass.
?net1 net:concept ?featureConcept.
# Filter: entity not present in a class list
...
...
@@ -272,15 +281,18 @@ CONSTRUCT {
# Classification
?subEntityUri rdfs:subClassOf ?mainEntityUri.
?subEntityUri rdfs:label ?subEntity.
?subEntityUri sys:from_structure ?req.
# -- old --- ?mainEntityUri rdfs:subClassOf ?entityUri.
# -- old --- ?mainEntityUri rdfs:label ?mainEntity.
# Instantiation (extension)
?mainInstanceUri rdf:type ?subEntityUri.
?mainInstanceUri sys:from_structure ?req.
}
WHERE {
# net1: entity class list
?net1 a net:Instance.
?net1 net:type net:entity_class_list.
?net1 net:has_structure ?req.
?net1 net:entityClass ?entityClass.
?net1 net:has_mainClass ?mainEntityObject.
?mainEntityObject net:concept ?mainEntity.
...
...
This diff is collapsed.
Click to expand it.
frame/system-ontology.ttl
+
5
−
0
View file @
b5d41cda
...
...
@@ -60,6 +60,11 @@ sys:eventProperty
rdfs:
label
"event property"
;
rdfs:
subPropertyOf
sys:
property
;
.
sys:
from_structure
rdf:
type
rdf:
Property
;
rdfs:
label
"from structure"
;
rdfs:
subPropertyOf
sys:
property
;
.
sys:
has_actor
rdf:
type
rdf:
Property
;
rdfs:
label
"has actor"
;
...
...
This diff is collapsed.
Click to expand it.
Aurélien Lamercerie
@alam
mentioned in issue
#6 (closed)
·
3 years ago
mentioned in issue
#6 (closed)
mentioned in issue #6
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