Skip to content
Snippets Groups Projects
Commit b5d41cda authored by Aurélien Lamercerie's avatar Aurélien Lamercerie
Browse files

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
...@@ -43,6 +43,7 @@ CONSTRUCT { ...@@ -43,6 +43,7 @@ CONSTRUCT {
# Classification # Classification
?subEntity23Uri rdfs:subClassOf ?mainEntityUri. ?subEntity23Uri rdfs:subClassOf ?mainEntityUri.
?subEntity23Uri rdfs:label ?subEntity23. ?subEntity23Uri rdfs:label ?subEntity23.
?subEntity23Uri sys:from_structure ?req.
?subEntity23Uri ?subEntity23Uri
owl:equivalentClass [ a owl:Class ; owl:equivalentClass [ a owl:Class ;
owl:intersectionOf ( ?subEntity2Uri ?subEntity3Uri ) ] . owl:intersectionOf ( ?subEntity2Uri ?subEntity3Uri ) ] .
...@@ -53,6 +54,7 @@ WHERE { ...@@ -53,6 +54,7 @@ WHERE {
# net1: entity class list # net1: entity class list
?net1 a net:Instance. ?net1 a net:Instance.
?net1 net:type net:entity_class_list. ?net1 net:type net:entity_class_list.
?net1 net:has_structure ?req.
?net1 net:entityClass ?entityClass. ?net1 net:entityClass ?entityClass.
?net1 net:has_node ?uw2, ?uw3. ?net1 net:has_node ?uw2, ?uw3.
?net1 net:has_mainClass ?mainEntityObject. ?net1 net:has_mainClass ?mainEntityObject.
...@@ -115,6 +117,7 @@ CONSTRUCT { ...@@ -115,6 +117,7 @@ CONSTRUCT {
# Classification # Classification
?subEntity23Uri rdfs:subClassOf ?mainEntityUri. ?subEntity23Uri rdfs:subClassOf ?mainEntityUri.
?subEntity23Uri rdfs:label ?subEntity23. ?subEntity23Uri rdfs:label ?subEntity23.
?subEntity23Uri sys:from_structure ?req.
?subEntity23Uri ?subEntity23Uri
owl:equivalentClass [ a owl:Class ; owl:equivalentClass [ a owl:Class ;
owl:unionOf ( ?subEntity2Uri ?subEntity3Uri ) ] . owl:unionOf ( ?subEntity2Uri ?subEntity3Uri ) ] .
...@@ -125,6 +128,7 @@ WHERE { ...@@ -125,6 +128,7 @@ WHERE {
# net1: entity class list # net1: entity class list
?net1 a net:Instance. ?net1 a net:Instance.
?net1 net:type net:entity_class_list. ?net1 net:type net:entity_class_list.
?net1 net:has_structure ?req.
?net1 net:entityClass ?entityClass. ?net1 net:entityClass ?entityClass.
?net1 net:has_node ?uw2, ?uw3. ?net1 net:has_node ?uw2, ?uw3.
?net1 net:has_mainClass ?mainEntityObject. ?net1 net:has_mainClass ?mainEntityObject.
...@@ -187,14 +191,17 @@ CONSTRUCT { ...@@ -187,14 +191,17 @@ CONSTRUCT {
# Classification # Classification
?mainEntityUri rdfs:subClassOf ?entityUri. ?mainEntityUri rdfs:subClassOf ?entityUri.
?mainEntityUri rdfs:label ?mainEntity. ?mainEntityUri rdfs:label ?mainEntity.
?mainEntityUri sys:from_structure ?req.
# Instantiation # Instantiation
?mainInstanceUri a ?mainEntityUri. ?mainInstanceUri a ?mainEntityUri.
?mainInstanceUri rdfs:label ?mainInstance. ?mainInstanceUri rdfs:label ?mainInstance.
?mainInstanceUri sys:from_structure ?req.
} }
WHERE { 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:has_structure ?req.
?net1 net:has_entity ?entityObject1. ?net1 net:has_entity ?entityObject1.
?entityObject1 net:entityClass ?entityClass. ?entityObject1 net:entityClass ?entityClass.
?entityObject1 net:concept ?mainEntity. ?entityObject1 net:concept ?mainEntity.
...@@ -234,12 +241,14 @@ CONSTRUCT { ...@@ -234,12 +241,14 @@ CONSTRUCT {
# Classification # Classification
?subFeatureUri rdfs:subClassOf ?featureUri. ?subFeatureUri rdfs:subClassOf ?featureUri.
?subFeatureUri rdfs:label ?featureConcept. ?subFeatureUri rdfs:label ?featureConcept.
?subFeatureUri sys:from_structure ?req.
# Instantiation: no instance for feature # Instantiation: no instance for feature
} }
WHERE { WHERE {
# net1: feature # net1: feature
?net1 a net:Instance. ?net1 a net:Instance.
?net1 net:type net:feature. ?net1 net:type net:feature.
?net1 net:has_structure ?req.
?net1 net:featureClass ?featureClass. ?net1 net:featureClass ?featureClass.
?net1 net:concept ?featureConcept. ?net1 net:concept ?featureConcept.
# Filter: entity not present in a class list # Filter: entity not present in a class list
...@@ -272,15 +281,18 @@ CONSTRUCT { ...@@ -272,15 +281,18 @@ CONSTRUCT {
# Classification # Classification
?subEntityUri rdfs:subClassOf ?mainEntityUri. ?subEntityUri rdfs:subClassOf ?mainEntityUri.
?subEntityUri rdfs:label ?subEntity. ?subEntityUri rdfs:label ?subEntity.
?subEntityUri sys:from_structure ?req.
# -- old --- ?mainEntityUri rdfs:subClassOf ?entityUri. # -- old --- ?mainEntityUri rdfs:subClassOf ?entityUri.
# -- old --- ?mainEntityUri rdfs:label ?mainEntity. # -- old --- ?mainEntityUri rdfs:label ?mainEntity.
# Instantiation (extension) # Instantiation (extension)
?mainInstanceUri rdf:type ?subEntityUri. ?mainInstanceUri rdf:type ?subEntityUri.
?mainInstanceUri sys:from_structure ?req.
} }
WHERE { WHERE {
# net1: entity class list # net1: entity class list
?net1 a net:Instance. ?net1 a net:Instance.
?net1 net:type net:entity_class_list. ?net1 net:type net:entity_class_list.
?net1 net:has_structure ?req.
?net1 net:entityClass ?entityClass. ?net1 net:entityClass ?entityClass.
?net1 net:has_mainClass ?mainEntityObject. ?net1 net:has_mainClass ?mainEntityObject.
?mainEntityObject net:concept ?mainEntity. ?mainEntityObject net:concept ?mainEntity.
......
...@@ -60,6 +60,11 @@ sys:eventProperty ...@@ -60,6 +60,11 @@ sys:eventProperty
rdfs:label "event property" ; rdfs:label "event property" ;
rdfs:subPropertyOf sys:property ; rdfs:subPropertyOf sys:property ;
. .
sys:from_structure
rdf:type rdf:Property ;
rdfs:label "from structure" ;
rdfs:subPropertyOf sys:property ;
.
sys:has_actor sys:has_actor
rdf:type rdf:Property ; rdf:type rdf:Property ;
rdfs:label "has actor" ; rdfs:label "has actor" ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment