@linked.archi/la-gram-git 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/NOTICE +2 -0
- package/README.md +214 -2
- package/assets/arch-decision/arch-decision-metamodel.ttl +44 -0
- package/assets/arch-decision/arch-decision-onto.ttl +1566 -0
- package/assets/arch-decision/arch-decision-shapes.ttl +582 -0
- package/assets/arch-decision/arch-decision-tax.ttl +129 -0
- package/assets/arch-processes/arch-processes-metamodel.ttl +42 -0
- package/assets/arch-processes/arch-processes-tax.ttl +136 -0
- package/assets/arch-processes/archProcesses-shapes.ttl +189 -0
- package/assets/arch-processes/archProcesses.ttl +953 -0
- package/assets/archimate3/archimate3.2-element-shapes.ttl +379 -0
- package/assets/archimate3/archimate3.2-metamodel.ttl +205 -0
- package/assets/archimate3/archimate3.2-notation.ttl +1503 -0
- package/assets/archimate3/archimate3.2-onto.ttl +1579 -0
- package/assets/archimate3/archimate3.2-presentation-contexts.ttl +90 -0
- package/assets/archimate3/archimate3.2-principle-shapes.ttl +923 -0
- package/assets/archimate3/archimate3.2-questions.ttl +1125 -0
- package/assets/archimate3/archimate3.2-reference-data.ttl +74 -0
- package/assets/archimate3/archimate3.2-relationship-shapes.ttl +30956 -0
- package/assets/archimate3/archimate3.2-relationship-tables.ttl +5992 -0
- package/assets/archimate3/archimate3.2-tax.ttl +724 -0
- package/assets/archimate3/archimate3.2-viewpoint-shapes.ttl +59 -0
- package/assets/archimate3/archimate3.2-viewpoints.ttl +793 -0
- package/assets/archimate3/icons/and-junction.svg +3 -0
- package/assets/archimate3/icons/application-collaboration.svg +22 -0
- package/assets/archimate3/icons/application-component.svg +18 -0
- package/assets/archimate3/icons/application-event.svg +15 -0
- package/assets/archimate3/icons/application-function.svg +14 -0
- package/assets/archimate3/icons/application-interaction.svg +17 -0
- package/assets/archimate3/icons/application-interface.svg +16 -0
- package/assets/archimate3/icons/application-process.svg +14 -0
- package/assets/archimate3/icons/application-service.svg +14 -0
- package/assets/archimate3/icons/artifact.svg +16 -0
- package/assets/archimate3/icons/assessment.svg +17 -0
- package/assets/archimate3/icons/business-actor.svg +22 -0
- package/assets/archimate3/icons/business-collaboration.svg +21 -0
- package/assets/archimate3/icons/business-event.svg +15 -0
- package/assets/archimate3/icons/business-function.svg +14 -0
- package/assets/archimate3/icons/business-interaction.svg +18 -0
- package/assets/archimate3/icons/business-interface.svg +16 -0
- package/assets/archimate3/icons/business-object.svg +14 -0
- package/assets/archimate3/icons/business-process.svg +15 -0
- package/assets/archimate3/icons/business-role.svg +16 -0
- package/assets/archimate3/icons/business-service.svg +14 -0
- package/assets/archimate3/icons/capability.svg +40 -0
- package/assets/archimate3/icons/communication-network.svg +18 -0
- package/assets/archimate3/icons/constraint.svg +18 -0
- package/assets/archimate3/icons/contract.svg +13 -0
- package/assets/archimate3/icons/course-of-action.svg +20 -0
- package/assets/archimate3/icons/data-object.svg +14 -0
- package/assets/archimate3/icons/deliverable.svg +11 -0
- package/assets/archimate3/icons/device.svg +18 -0
- package/assets/archimate3/icons/distribution-network.svg +19 -0
- package/assets/archimate3/icons/driver.svg +24 -0
- package/assets/archimate3/icons/equipment.svg +31 -0
- package/assets/archimate3/icons/facility.svg +16 -0
- package/assets/archimate3/icons/gap.svg +22 -0
- package/assets/archimate3/icons/glyphs/activity.svg +3 -0
- package/assets/archimate3/icons/glyphs/actor.svg +14 -0
- package/assets/archimate3/icons/glyphs/application-component.svg +12 -0
- package/assets/archimate3/icons/glyphs/artifact.svg +9 -0
- package/assets/archimate3/icons/glyphs/assessment.svg +9 -0
- package/assets/archimate3/icons/glyphs/capability.svg +32 -0
- package/assets/archimate3/icons/glyphs/cloud-gear.svg +3 -0
- package/assets/archimate3/icons/glyphs/collaboration.svg +15 -0
- package/assets/archimate3/icons/glyphs/communication-network.svg +12 -0
- package/assets/archimate3/icons/glyphs/constraint.svg +10 -0
- package/assets/archimate3/icons/glyphs/contract.svg +5 -0
- package/assets/archimate3/icons/glyphs/course-of-action.svg +12 -0
- package/assets/archimate3/icons/glyphs/data-object.svg +4 -0
- package/assets/archimate3/icons/glyphs/deliverable.svg +3 -0
- package/assets/archimate3/icons/glyphs/device.svg +10 -0
- package/assets/archimate3/icons/glyphs/distribution-network.svg +11 -0
- package/assets/archimate3/icons/glyphs/driver.svg +16 -0
- package/assets/archimate3/icons/glyphs/equipment.svg +22 -0
- package/assets/archimate3/icons/glyphs/event.svg +6 -0
- package/assets/archimate3/icons/glyphs/facility.svg +7 -0
- package/assets/archimate3/icons/glyphs/function.svg +6 -0
- package/assets/archimate3/icons/glyphs/gap.svg +14 -0
- package/assets/archimate3/icons/glyphs/goal.svg +10 -0
- package/assets/archimate3/icons/glyphs/grouping.svg +4 -0
- package/assets/archimate3/icons/glyphs/interaction.svg +10 -0
- package/assets/archimate3/icons/glyphs/interface.svg +8 -0
- package/assets/archimate3/icons/glyphs/location.svg +6 -0
- package/assets/archimate3/icons/glyphs/material.svg +12 -0
- package/assets/archimate3/icons/glyphs/meaning.svg +3 -0
- package/assets/archimate3/icons/glyphs/node.svg +8 -0
- package/assets/archimate3/icons/glyphs/object.svg +4 -0
- package/assets/archimate3/icons/glyphs/outcome.svg +16 -0
- package/assets/archimate3/icons/glyphs/path.svg +10 -0
- package/assets/archimate3/icons/glyphs/person-silhouette.svg +3 -0
- package/assets/archimate3/icons/glyphs/plateau.svg +8 -0
- package/assets/archimate3/icons/glyphs/principle.svg +12 -0
- package/assets/archimate3/icons/glyphs/process.svg +6 -0
- package/assets/archimate3/icons/glyphs/product.svg +4 -0
- package/assets/archimate3/icons/glyphs/representation.svg +4 -0
- package/assets/archimate3/icons/glyphs/requirement.svg +6 -0
- package/assets/archimate3/icons/glyphs/resource.svg +14 -0
- package/assets/archimate3/icons/glyphs/role.svg +6 -0
- package/assets/archimate3/icons/glyphs/service.svg +6 -0
- package/assets/archimate3/icons/glyphs/stakeholder.svg +6 -0
- package/assets/archimate3/icons/glyphs/system-software.svg +14 -0
- package/assets/archimate3/icons/glyphs/value-stream.svg +3 -0
- package/assets/archimate3/icons/glyphs/value.svg +3 -0
- package/assets/archimate3/icons/glyphs/work-package.svg +4 -0
- package/assets/archimate3/icons/goal.svg +18 -0
- package/assets/archimate3/icons/grouping.svg +12 -0
- package/assets/archimate3/icons/implementation-event.svg +15 -0
- package/assets/archimate3/icons/location.svg +14 -0
- package/assets/archimate3/icons/material.svg +21 -0
- package/assets/archimate3/icons/meaning.svg +11 -0
- package/assets/archimate3/icons/node.svg +14 -0
- package/assets/archimate3/icons/or-junction.svg +3 -0
- package/assets/archimate3/icons/outcome.svg +25 -0
- package/assets/archimate3/icons/path.svg +18 -0
- package/assets/archimate3/icons/plateau.svg +16 -0
- package/assets/archimate3/icons/principle.svg +21 -0
- package/assets/archimate3/icons/product.svg +12 -0
- package/assets/archimate3/icons/representation.svg +12 -0
- package/assets/archimate3/icons/requirement.svg +14 -0
- package/assets/archimate3/icons/resource.svg +23 -0
- package/assets/archimate3/icons/stakeholder.svg +15 -0
- package/assets/archimate3/icons/system-software.svg +22 -0
- package/assets/archimate3/icons/technology-collaboration.svg +22 -0
- package/assets/archimate3/icons/technology-event.svg +15 -0
- package/assets/archimate3/icons/technology-function.svg +14 -0
- package/assets/archimate3/icons/technology-interaction.svg +18 -0
- package/assets/archimate3/icons/technology-interface.svg +16 -0
- package/assets/archimate3/icons/technology-process.svg +14 -0
- package/assets/archimate3/icons/technology-service.svg +14 -0
- package/assets/archimate3/icons/value-stream.svg +11 -0
- package/assets/archimate3/icons/value.svg +11 -0
- package/assets/archimate3/icons/work-package.svg +12 -0
- package/assets/archimate4/archimate4-element-shapes.ttl +404 -0
- package/assets/archimate4/archimate4-metamodel.ttl +179 -0
- package/assets/archimate4/archimate4-notation.ttl +1147 -0
- package/assets/archimate4/archimate4-onto.ttl +1559 -0
- package/assets/archimate4/archimate4-presentation-contexts.ttl +60 -0
- package/assets/archimate4/archimate4-principle-shapes.ttl +893 -0
- package/assets/archimate4/archimate4-questions.ttl +1224 -0
- package/assets/archimate4/archimate4-reference-data.ttl +56 -0
- package/assets/archimate4/archimate4-relationship-shapes.ttl +16920 -0
- package/assets/archimate4/archimate4-relationship-tables.ttl +3200 -0
- package/assets/archimate4/archimate4-tax.ttl +749 -0
- package/assets/archimate4/archimate4-viewpoint-shapes.ttl +55 -0
- package/assets/archimate4/archimate4-viewpoints.ttl +777 -0
- package/assets/archimate4/icons/and-junction.svg +3 -0
- package/assets/archimate4/icons/application-component.svg +18 -0
- package/assets/archimate4/icons/application-interface.svg +16 -0
- package/assets/archimate4/icons/artifact.svg +16 -0
- package/assets/archimate4/icons/assessment.svg +17 -0
- package/assets/archimate4/icons/business-actor.svg +22 -0
- package/assets/archimate4/icons/business-interface.svg +16 -0
- package/assets/archimate4/icons/business-object.svg +14 -0
- package/assets/archimate4/icons/capability.svg +40 -0
- package/assets/archimate4/icons/collaboration.svg +21 -0
- package/assets/archimate4/icons/communication-network.svg +18 -0
- package/assets/archimate4/icons/course-of-action.svg +20 -0
- package/assets/archimate4/icons/data-object.svg +14 -0
- package/assets/archimate4/icons/deliverable.svg +11 -0
- package/assets/archimate4/icons/device.svg +18 -0
- package/assets/archimate4/icons/distribution-network.svg +19 -0
- package/assets/archimate4/icons/driver.svg +24 -0
- package/assets/archimate4/icons/equipment.svg +31 -0
- package/assets/archimate4/icons/event.svg +15 -0
- package/assets/archimate4/icons/facility.svg +16 -0
- package/assets/archimate4/icons/function.svg +13 -0
- package/assets/archimate4/icons/glyphs/activity.svg +3 -0
- package/assets/archimate4/icons/glyphs/actor.svg +14 -0
- package/assets/archimate4/icons/glyphs/application-component.svg +12 -0
- package/assets/archimate4/icons/glyphs/artifact.svg +9 -0
- package/assets/archimate4/icons/glyphs/assessment.svg +9 -0
- package/assets/archimate4/icons/glyphs/capability.svg +32 -0
- package/assets/archimate4/icons/glyphs/cloud-gear.svg +3 -0
- package/assets/archimate4/icons/glyphs/collaboration.svg +15 -0
- package/assets/archimate4/icons/glyphs/communication-network.svg +12 -0
- package/assets/archimate4/icons/glyphs/constraint.svg +10 -0
- package/assets/archimate4/icons/glyphs/contract.svg +5 -0
- package/assets/archimate4/icons/glyphs/course-of-action.svg +12 -0
- package/assets/archimate4/icons/glyphs/data-object.svg +4 -0
- package/assets/archimate4/icons/glyphs/deliverable.svg +3 -0
- package/assets/archimate4/icons/glyphs/device.svg +10 -0
- package/assets/archimate4/icons/glyphs/distribution-network.svg +11 -0
- package/assets/archimate4/icons/glyphs/driver.svg +16 -0
- package/assets/archimate4/icons/glyphs/equipment.svg +22 -0
- package/assets/archimate4/icons/glyphs/event.svg +6 -0
- package/assets/archimate4/icons/glyphs/facility.svg +7 -0
- package/assets/archimate4/icons/glyphs/function.svg +6 -0
- package/assets/archimate4/icons/glyphs/gap.svg +14 -0
- package/assets/archimate4/icons/glyphs/goal.svg +10 -0
- package/assets/archimate4/icons/glyphs/grouping.svg +4 -0
- package/assets/archimate4/icons/glyphs/interaction.svg +10 -0
- package/assets/archimate4/icons/glyphs/interface.svg +8 -0
- package/assets/archimate4/icons/glyphs/location.svg +6 -0
- package/assets/archimate4/icons/glyphs/material.svg +12 -0
- package/assets/archimate4/icons/glyphs/meaning.svg +3 -0
- package/assets/archimate4/icons/glyphs/node.svg +8 -0
- package/assets/archimate4/icons/glyphs/object.svg +4 -0
- package/assets/archimate4/icons/glyphs/outcome.svg +16 -0
- package/assets/archimate4/icons/glyphs/path.svg +10 -0
- package/assets/archimate4/icons/glyphs/person-silhouette.svg +3 -0
- package/assets/archimate4/icons/glyphs/plateau.svg +8 -0
- package/assets/archimate4/icons/glyphs/principle.svg +12 -0
- package/assets/archimate4/icons/glyphs/process.svg +6 -0
- package/assets/archimate4/icons/glyphs/product.svg +4 -0
- package/assets/archimate4/icons/glyphs/representation.svg +4 -0
- package/assets/archimate4/icons/glyphs/requirement.svg +6 -0
- package/assets/archimate4/icons/glyphs/resource.svg +14 -0
- package/assets/archimate4/icons/glyphs/role.svg +6 -0
- package/assets/archimate4/icons/glyphs/service.svg +6 -0
- package/assets/archimate4/icons/glyphs/stakeholder.svg +6 -0
- package/assets/archimate4/icons/glyphs/system-software.svg +14 -0
- package/assets/archimate4/icons/glyphs/value-stream.svg +3 -0
- package/assets/archimate4/icons/glyphs/value.svg +3 -0
- package/assets/archimate4/icons/glyphs/work-package.svg +4 -0
- package/assets/archimate4/icons/goal.svg +18 -0
- package/assets/archimate4/icons/grouping.svg +12 -0
- package/assets/archimate4/icons/location.svg +14 -0
- package/assets/archimate4/icons/material.svg +21 -0
- package/assets/archimate4/icons/meaning.svg +11 -0
- package/assets/archimate4/icons/node.svg +14 -0
- package/assets/archimate4/icons/or-junction.svg +3 -0
- package/assets/archimate4/icons/outcome.svg +25 -0
- package/assets/archimate4/icons/path.svg +18 -0
- package/assets/archimate4/icons/plateau.svg +16 -0
- package/assets/archimate4/icons/principle.svg +21 -0
- package/assets/archimate4/icons/process.svg +15 -0
- package/assets/archimate4/icons/product.svg +12 -0
- package/assets/archimate4/icons/requirement.svg +14 -0
- package/assets/archimate4/icons/resource.svg +23 -0
- package/assets/archimate4/icons/role.svg +16 -0
- package/assets/archimate4/icons/service.svg +13 -0
- package/assets/archimate4/icons/stakeholder.svg +15 -0
- package/assets/archimate4/icons/system-software.svg +22 -0
- package/assets/archimate4/icons/technology-interface.svg +16 -0
- package/assets/archimate4/icons/value-stream.svg +11 -0
- package/assets/archimate4/icons/value.svg +11 -0
- package/assets/archimate4/icons/work-package.svg +12 -0
- package/assets/basic/basic-metamodel.ttl +100 -0
- package/assets/basic/basic-notation-bubble.ttl +175 -0
- package/assets/basic/basic-notation.ttl +172 -0
- package/assets/basic/basic-onto.ttl +171 -0
- package/assets/basic/basic-presentation-contexts.ttl +70 -0
- package/assets/basic/basic-tax.ttl +130 -0
- package/assets/basic/icons/aggregation.svg +7 -0
- package/assets/basic/icons/association.svg +6 -0
- package/assets/basic/icons/element.svg +5 -0
- package/assets/basic/icons/glyphs/aggregation.svg +6 -0
- package/assets/basic/icons/glyphs/association.svg +5 -0
- package/assets/basic/icons/glyphs/element.svg +5 -0
- package/assets/basic/icons/glyphs/relationship.svg +5 -0
- package/assets/basic/icons/relationship.svg +7 -0
- package/assets/basic/notation-bubble/icons/aggregation.svg +7 -0
- package/assets/basic/notation-bubble/icons/association.svg +6 -0
- package/assets/basic/notation-bubble/icons/element.svg +5 -0
- package/assets/basic/notation-bubble/icons/glyphs/aggregation.svg +6 -0
- package/assets/basic/notation-bubble/icons/glyphs/association.svg +5 -0
- package/assets/basic/notation-bubble/icons/glyphs/element.svg +5 -0
- package/assets/basic/notation-bubble/icons/glyphs/relationship.svg +5 -0
- package/assets/basic/notation-bubble/icons/relationship.svg +7 -0
- package/assets/catalog.ttl +7302 -0
- package/assets/core/core-notation.ttl +131 -0
- package/assets/core/core-onto.ttl +2811 -0
- package/assets/core/core-questions.ttl +957 -0
- package/assets/core/core-shapes.ttl +915 -0
- package/assets/core/core-vis-onto.ttl +1408 -0
- package/assets/core/core-vis-shapes.ttl +840 -0
- package/assets/core-vis/markers/circle-dot.svg +3 -0
- package/assets/core-vis/markers/closed-arrowhead.svg +3 -0
- package/assets/core-vis/markers/filled-diamond.svg +3 -0
- package/assets/core-vis/markers/half-arrowhead.svg +3 -0
- package/assets/core-vis/markers/hollow-arrowhead.svg +3 -0
- package/assets/core-vis/markers/hollow-diamond.svg +3 -0
- package/assets/core-vis/markers/open-arrowhead.svg +3 -0
- package/ci/README.md +126 -0
- package/ci/github/la-gram-git.yml +30 -0
- package/ci/gitlab/la-gram-git.gitlab-ci.yml +20 -0
- package/dist/637.js +51 -0
- package/dist/637.js.map +1 -0
- package/dist/la-gram-git.js +22936 -0
- package/dist/la-gram-git.js.map +1 -0
- package/package.json +31 -4
|
@@ -0,0 +1,957 @@
|
|
|
1
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
2
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
3
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
4
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
5
|
+
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
|
|
6
|
+
@prefix dcterms: <http://purl.org/dc/terms/> .
|
|
7
|
+
@prefix bibo: <http://purl.org/ontology/bibo/> .
|
|
8
|
+
@prefix cc: <http://creativecommons.org/ns#> .
|
|
9
|
+
@prefix vann: <http://purl.org/vocab/vann/> .
|
|
10
|
+
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
|
11
|
+
@prefix arch: <https://meta.linked.archi/core#> .
|
|
12
|
+
@prefix archvp: <https://meta.linked.archi/core-viewpoints#> .
|
|
13
|
+
@prefix : <https://meta.linked.archi/core-questions#> .
|
|
14
|
+
|
|
15
|
+
#################################################################
|
|
16
|
+
# Linked.Archi Core Questions
|
|
17
|
+
#
|
|
18
|
+
# Questions any Linked.Archi model answers, whatever its language:
|
|
19
|
+
# model data in the default graph (arch:inModel, arch:inView,
|
|
20
|
+
# relationships as direct triples and as qualified relationships with
|
|
21
|
+
# arch:source and arch:target), the metamodel in the default graph or
|
|
22
|
+
# in one named graph per document.
|
|
23
|
+
#
|
|
24
|
+
# How they are written (see arch:ModelQuestion):
|
|
25
|
+
# - no PREFIX lines (sh:declare below) and no LIMIT (arch:defaultLimit);
|
|
26
|
+
# - parameters on the core parameter properties, pre-bound with VALUES;
|
|
27
|
+
# - a concept's type is its most specific one: the core classes and
|
|
28
|
+
# abstract classes are left out wherever a question reports or
|
|
29
|
+
# groups by type, so the answer is the same whether they are
|
|
30
|
+
# asserted, inferred or absent;
|
|
31
|
+
# - the metamodel is read in a sub-select, once per query or per branch
|
|
32
|
+
# of a union that needs it;
|
|
33
|
+
# - relationships are followed along their direct triples, which tell a
|
|
34
|
+
# relationship predicate by the arch:unqualifiedForm a relationship
|
|
35
|
+
# type declares, and a dependency by its rdfs:subPropertyOf
|
|
36
|
+
# arch:dependsOn or arch:dependencyOf (DD-44); a question about the
|
|
37
|
+
# relationship itself, its resource, reads the qualified relationship.
|
|
38
|
+
#
|
|
39
|
+
# dcterms:identifier names the question in the linked-archi-query
|
|
40
|
+
# catalogue; a template there with the same identifier asks the same
|
|
41
|
+
# question.
|
|
42
|
+
#################################################################
|
|
43
|
+
|
|
44
|
+
<https://meta.linked.archi/core-questions#>
|
|
45
|
+
a arch:QuestionSet ;
|
|
46
|
+
cc:license "http://creativecommons.org/licenses/by/4.0/" ;
|
|
47
|
+
vann:preferredNamespaceUri "https://meta.linked.archi/core-questions#" ;
|
|
48
|
+
vann:preferredNamespacePrefix "archq" ;
|
|
49
|
+
dcterms:creator "Kalin Maldzhanski"^^xsd:string ;
|
|
50
|
+
dcterms:title "Linked.Archi Core Questions"@en ;
|
|
51
|
+
dcterms:description '''The questions any Linked.Archi model answers, whatever its modelling language:
|
|
52
|
+
what it contains, what an element is related to, which views show what, and how sound the description
|
|
53
|
+
is. Each is executable SPARQL bound to the concerns it informs (see arch:ModelQuestion).'''@en ;
|
|
54
|
+
dcterms:created "2026-10-27"^^xsd:date ;
|
|
55
|
+
dcterms:modified "2026-11-22"^^xsd:date ;
|
|
56
|
+
dcterms:publisher "Linked.Archi"@en, <https://linked.archi> ;
|
|
57
|
+
bibo:status "draft" ;
|
|
58
|
+
owl:versionInfo "0.1.0" ;
|
|
59
|
+
sh:declare
|
|
60
|
+
[ sh:prefix "arch" ; sh:namespace "https://meta.linked.archi/core#"^^xsd:anyURI ],
|
|
61
|
+
[ sh:prefix "rdf" ; sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ],
|
|
62
|
+
[ sh:prefix "rdfs" ; sh:namespace "http://www.w3.org/2000/01/rdf-schema#"^^xsd:anyURI ],
|
|
63
|
+
[ sh:prefix "skos" ; sh:namespace "http://www.w3.org/2004/02/skos/core#"^^xsd:anyURI ] ;
|
|
64
|
+
.
|
|
65
|
+
|
|
66
|
+
# ── Orientation and resolution ──────────────────────────────────
|
|
67
|
+
|
|
68
|
+
:model-inventory
|
|
69
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
70
|
+
dcterms:identifier "core/model-inventory" ;
|
|
71
|
+
skos:prefLabel "What does the model contain?"@en ;
|
|
72
|
+
dcterms:description "The model's elements, relationships and views, counted by type."@en ;
|
|
73
|
+
arch:answers "One row per type: its kind (element, relationship, view) and how many of the model's concepts are of it."@en ;
|
|
74
|
+
arch:doesNotProve "That the model is complete. The counts describe what was modelled, not what exists in the enterprise."@en ;
|
|
75
|
+
arch:questionStage arch:OrientationStage ;
|
|
76
|
+
arch:resultIsFinding false ;
|
|
77
|
+
arch:requiresDataset arch:ModelDataset ;
|
|
78
|
+
arch:resultKey "inventory" ;
|
|
79
|
+
arch:defaultLimit 200 ;
|
|
80
|
+
sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 1 ;
|
|
81
|
+
sh:description "The model to count. A modelling tool binds the open model; a deliverable, the model it is produced from."@en ] ;
|
|
82
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
83
|
+
sh:select """
|
|
84
|
+
SELECT ?kind ?type (COUNT(DISTINCT ?concept) AS ?count)
|
|
85
|
+
WHERE {
|
|
86
|
+
?concept arch:inModel ?model ;
|
|
87
|
+
rdf:type ?type .
|
|
88
|
+
# The most specific type: neither a core class nor an abstract one.
|
|
89
|
+
FILTER(?type NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
|
|
90
|
+
MINUS { SELECT DISTINCT ?type WHERE { { ?type arch:isAbstractClass true }
|
|
91
|
+
UNION { GRAPH ?abstractClassGraph { ?type arch:isAbstractClass true } } } }
|
|
92
|
+
# A view by its own kind, not also as arch:View.
|
|
93
|
+
FILTER(?type != arch:View || NOT EXISTS { ?concept rdf:type ?viewKind . FILTER(?viewKind IN (arch:Diagram, arch:Catalog, arch:Matrix)) })
|
|
94
|
+
BIND(IF(EXISTS { ?concept arch:source ?anySource }, "relationship",
|
|
95
|
+
IF(EXISTS { ?concept rdf:type ?anyViewType . FILTER(?anyViewType IN (arch:View, arch:Diagram, arch:Catalog, arch:Matrix)) },
|
|
96
|
+
"view", "element")) AS ?kind)
|
|
97
|
+
}
|
|
98
|
+
GROUP BY ?kind ?type
|
|
99
|
+
ORDER BY ?kind DESC(?count) ?type
|
|
100
|
+
""" ;
|
|
101
|
+
.
|
|
102
|
+
|
|
103
|
+
:elements-of-type
|
|
104
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
105
|
+
dcterms:identifier "core/elements-by-type" ;
|
|
106
|
+
skos:prefLabel "Which elements are of this type?"@en ;
|
|
107
|
+
dcterms:description "The elements of one type (of every type when none is given), with their names and definitions."@en ;
|
|
108
|
+
arch:answers "One row per element, with its most specific type."@en ;
|
|
109
|
+
arch:doesNotProve "That no other element plays the part: an element of a specialisation is listed only where it is also typed with the type asked for."@en ;
|
|
110
|
+
arch:questionStage arch:ResolutionStage ;
|
|
111
|
+
arch:resultIsFinding false ;
|
|
112
|
+
arch:requiresDataset arch:ModelDataset ;
|
|
113
|
+
arch:resultKey "elements" ;
|
|
114
|
+
arch:defaultLimit 500 ;
|
|
115
|
+
sh:parameter [ sh:path arch:conceptType ; sh:name "concept type" ; sh:nodeKind sh:IRI ; sh:optional true ; sh:order 1 ;
|
|
116
|
+
sh:description "An element type, such as an application component."@en ] ;
|
|
117
|
+
sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 2 ;
|
|
118
|
+
sh:description "The model to look in. A modelling tool binds the open model; a deliverable, the model it is produced from."@en ] ;
|
|
119
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
120
|
+
sh:select """
|
|
121
|
+
SELECT DISTINCT ?element ?label ?type ?definition
|
|
122
|
+
WHERE {
|
|
123
|
+
?element arch:inModel ?model ;
|
|
124
|
+
rdf:type ?conceptType ;
|
|
125
|
+
rdf:type ?type .
|
|
126
|
+
FILTER(?type NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
|
|
127
|
+
MINUS { SELECT DISTINCT ?type WHERE { { ?type arch:isAbstractClass true }
|
|
128
|
+
UNION { GRAPH ?abstractClassGraph { ?type arch:isAbstractClass true } } } }
|
|
129
|
+
# Elements only: not relationships, views or folders.
|
|
130
|
+
FILTER NOT EXISTS { ?element arch:source ?anySource }
|
|
131
|
+
FILTER NOT EXISTS { ?element rdf:type ?notElement . FILTER(?notElement IN (arch:View, arch:Diagram, arch:Catalog, arch:Matrix, arch:Folder)) }
|
|
132
|
+
OPTIONAL { ?element skos:prefLabel ?label . FILTER(lang(?label) = "" || langMatches(lang(?label), "en")) }
|
|
133
|
+
OPTIONAL { ?element skos:definition ?definition . FILTER(lang(?definition) = "" || langMatches(lang(?definition), "en")) }
|
|
134
|
+
}
|
|
135
|
+
ORDER BY ?type ?label
|
|
136
|
+
""" ;
|
|
137
|
+
.
|
|
138
|
+
|
|
139
|
+
:element-detail
|
|
140
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
141
|
+
dcterms:identifier "core/element-detail" ;
|
|
142
|
+
skos:prefLabel "What is recorded about this element?"@en ;
|
|
143
|
+
dcterms:description "Every statement about one concept, with the name of each value that has one."@en ;
|
|
144
|
+
arch:answers "One row per property and value of the concept."@en ;
|
|
145
|
+
arch:doesNotProve "That an unrecorded property is false. The model records what was said, nothing about what was not."@en ;
|
|
146
|
+
arch:questionStage arch:ResolutionStage ;
|
|
147
|
+
arch:resultIsFinding false ;
|
|
148
|
+
arch:requiresDataset arch:ModelDataset ;
|
|
149
|
+
arch:resultKey "detail" ;
|
|
150
|
+
arch:defaultLimit 500 ;
|
|
151
|
+
sh:parameter [ sh:path arch:focus ; sh:name "focus" ; sh:nodeKind sh:IRI ; sh:optional false ; sh:order 1 ;
|
|
152
|
+
sh:description "The concept the question is about. A modelling tool binds the selected element."@en ] ;
|
|
153
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
154
|
+
sh:select """
|
|
155
|
+
SELECT DISTINCT ?property ?value ?valueLabel
|
|
156
|
+
WHERE {
|
|
157
|
+
?focus ?property ?value .
|
|
158
|
+
# Its own type: not the core or abstract classes it is also an instance of.
|
|
159
|
+
FILTER(?property != rdf:type || ?value NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
|
|
160
|
+
MINUS {
|
|
161
|
+
SELECT DISTINCT ?property ?value
|
|
162
|
+
WHERE {
|
|
163
|
+
BIND(rdf:type AS ?property)
|
|
164
|
+
{ ?value arch:isAbstractClass true } UNION { GRAPH ?abstractClassGraph { ?value arch:isAbstractClass true } }
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
# A value's name: a concept's from the model, a type's from its metamodel.
|
|
168
|
+
OPTIONAL {
|
|
169
|
+
{ ?value skos:prefLabel ?valueLabel } UNION { GRAPH ?labelGraph { ?value skos:prefLabel ?valueLabel } }
|
|
170
|
+
FILTER(lang(?valueLabel) = "" || langMatches(lang(?valueLabel), "en"))
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
ORDER BY ?property
|
|
174
|
+
""" ;
|
|
175
|
+
.
|
|
176
|
+
|
|
177
|
+
# ── Analysis ────────────────────────────────────────────────────
|
|
178
|
+
|
|
179
|
+
:neighbours
|
|
180
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
181
|
+
dcterms:identifier "core/neighbours" ;
|
|
182
|
+
skos:prefLabel "What is this element directly related to?"@en ;
|
|
183
|
+
dcterms:description "Every relationship that starts or ends at the element, read from its direct triple: a predicate a loaded metamodel declares the unqualified form of a relationship type."@en ;
|
|
184
|
+
arch:answers "One row per relationship: its direction seen from the element, its type and the concept at its other end."@en ;
|
|
185
|
+
arch:doesNotProve "A runtime dependency. A modelled relationship is a statement someone made, not an observed call."@en ;
|
|
186
|
+
arch:questionStage arch:AnalysisStage ;
|
|
187
|
+
arch:questionAddressesConcern archvp:DependencyConcern ;
|
|
188
|
+
arch:resultIsFinding false ;
|
|
189
|
+
arch:requiresDataset arch:ModelAndMetamodelDataset ;
|
|
190
|
+
arch:resultKey "neighbours" ;
|
|
191
|
+
arch:defaultLimit 500 ;
|
|
192
|
+
sh:parameter [ sh:path arch:focus ; sh:name "focus" ; sh:nodeKind sh:IRI ; sh:optional false ; sh:order 1 ;
|
|
193
|
+
sh:description "The element the question is about. A modelling tool binds the selected element."@en ] ;
|
|
194
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
195
|
+
sh:select """
|
|
196
|
+
SELECT DISTINCT ?direction ?relationshipType ?other ?otherLabel
|
|
197
|
+
WHERE {
|
|
198
|
+
# In each direction, the triples of the relationship predicates: each predicate with the most general
|
|
199
|
+
# type it is the unqualified form of, read from the metamodel in a sub-select.
|
|
200
|
+
{
|
|
201
|
+
{
|
|
202
|
+
SELECT DISTINCT ?predicate ?relationshipType
|
|
203
|
+
WHERE {
|
|
204
|
+
{ ?relationshipType arch:unqualifiedForm ?predicate ; rdfs:subClassOf+ arch:QualifiedRelationship }
|
|
205
|
+
UNION
|
|
206
|
+
{ GRAPH ?relationshipTypeGraph { ?relationshipType arch:unqualifiedForm ?predicate ; rdfs:subClassOf+ arch:QualifiedRelationship } }
|
|
207
|
+
FILTER NOT EXISTS {
|
|
208
|
+
{ ?relationshipType rdfs:subClassOf+ ?relationshipGeneral . ?relationshipGeneral arch:unqualifiedForm ?predicate }
|
|
209
|
+
UNION
|
|
210
|
+
{ GRAPH ?relationshipGeneralGraph { ?relationshipType rdfs:subClassOf+ ?relationshipGeneral . ?relationshipGeneral arch:unqualifiedForm ?predicate } }
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
?focus ?predicate ?other .
|
|
215
|
+
BIND("outgoing" AS ?direction)
|
|
216
|
+
}
|
|
217
|
+
UNION
|
|
218
|
+
{
|
|
219
|
+
{
|
|
220
|
+
SELECT DISTINCT ?predicate ?relationshipType
|
|
221
|
+
WHERE {
|
|
222
|
+
{ ?relationshipType arch:unqualifiedForm ?predicate ; rdfs:subClassOf+ arch:QualifiedRelationship }
|
|
223
|
+
UNION
|
|
224
|
+
{ GRAPH ?relationshipTypeGraph { ?relationshipType arch:unqualifiedForm ?predicate ; rdfs:subClassOf+ arch:QualifiedRelationship } }
|
|
225
|
+
FILTER NOT EXISTS {
|
|
226
|
+
{ ?relationshipType rdfs:subClassOf+ ?relationshipGeneral . ?relationshipGeneral arch:unqualifiedForm ?predicate }
|
|
227
|
+
UNION
|
|
228
|
+
{ GRAPH ?relationshipGeneralGraph { ?relationshipType rdfs:subClassOf+ ?relationshipGeneral . ?relationshipGeneral arch:unqualifiedForm ?predicate } }
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
?other ?predicate ?focus .
|
|
233
|
+
BIND("incoming" AS ?direction)
|
|
234
|
+
}
|
|
235
|
+
OPTIONAL { ?other skos:prefLabel ?otherLabel . FILTER(lang(?otherLabel) = "" || langMatches(lang(?otherLabel), "en")) }
|
|
236
|
+
}
|
|
237
|
+
ORDER BY ?direction ?relationshipType ?otherLabel
|
|
238
|
+
""" ;
|
|
239
|
+
.
|
|
240
|
+
|
|
241
|
+
:reaches-in-two-hops
|
|
242
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
243
|
+
dcterms:identifier "core/dependents" ;
|
|
244
|
+
skos:prefLabel "What reaches this element within two hops?"@en ;
|
|
245
|
+
dcterms:description "Concepts from which a path of one or two relationships, read from their direct triples, ends at the element, with the relationship types along the way."@en ;
|
|
246
|
+
arch:answers "One row per path: its length, the concept it starts from, the concept between, and the relationship types."@en ;
|
|
247
|
+
arch:doesNotProve "Impact. Reachability is not dependency: an assignment followed by an association does not make the last concept depend on the first. Read the types, and use a language's impact question where there is one."@en ;
|
|
248
|
+
arch:questionStage arch:AnalysisStage ;
|
|
249
|
+
arch:questionAddressesConcern archvp:DependencyConcern ;
|
|
250
|
+
arch:resultIsFinding false ;
|
|
251
|
+
arch:requiresDataset arch:ModelAndMetamodelDataset ;
|
|
252
|
+
arch:resultKey "reaches" ;
|
|
253
|
+
arch:defaultLimit 500 ;
|
|
254
|
+
sh:parameter [ sh:path arch:focus ; sh:name "focus" ; sh:nodeKind sh:IRI ; sh:optional false ; sh:order 1 ;
|
|
255
|
+
sh:description "The element the question is about. A modelling tool binds the selected element."@en ] ;
|
|
256
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
257
|
+
sh:select """
|
|
258
|
+
SELECT DISTINCT ?hops ?dependent ?dependentLabel ?firstType ?via ?secondType
|
|
259
|
+
WHERE {
|
|
260
|
+
# Each step along the triples of the relationship predicates: each predicate with the most general type it
|
|
261
|
+
# is the unqualified form of, read from the metamodel in a sub-select.
|
|
262
|
+
{
|
|
263
|
+
{
|
|
264
|
+
SELECT DISTINCT ?firstPredicate ?firstType
|
|
265
|
+
WHERE {
|
|
266
|
+
{ ?firstType arch:unqualifiedForm ?firstPredicate ; rdfs:subClassOf+ arch:QualifiedRelationship }
|
|
267
|
+
UNION
|
|
268
|
+
{ GRAPH ?firstTypeGraph { ?firstType arch:unqualifiedForm ?firstPredicate ; rdfs:subClassOf+ arch:QualifiedRelationship } }
|
|
269
|
+
FILTER NOT EXISTS {
|
|
270
|
+
{ ?firstType rdfs:subClassOf+ ?firstGeneral . ?firstGeneral arch:unqualifiedForm ?firstPredicate }
|
|
271
|
+
UNION
|
|
272
|
+
{ GRAPH ?firstGeneralGraph { ?firstType rdfs:subClassOf+ ?firstGeneral . ?firstGeneral arch:unqualifiedForm ?firstPredicate } }
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
?dependent ?firstPredicate ?focus .
|
|
277
|
+
BIND(1 AS ?hops)
|
|
278
|
+
}
|
|
279
|
+
UNION
|
|
280
|
+
{
|
|
281
|
+
{
|
|
282
|
+
SELECT DISTINCT ?firstPredicate ?firstType
|
|
283
|
+
WHERE {
|
|
284
|
+
{ ?firstType arch:unqualifiedForm ?firstPredicate ; rdfs:subClassOf+ arch:QualifiedRelationship }
|
|
285
|
+
UNION
|
|
286
|
+
{ GRAPH ?firstTypeGraph { ?firstType arch:unqualifiedForm ?firstPredicate ; rdfs:subClassOf+ arch:QualifiedRelationship } }
|
|
287
|
+
FILTER NOT EXISTS {
|
|
288
|
+
{ ?firstType rdfs:subClassOf+ ?firstGeneral . ?firstGeneral arch:unqualifiedForm ?firstPredicate }
|
|
289
|
+
UNION
|
|
290
|
+
{ GRAPH ?firstGeneralGraph { ?firstType rdfs:subClassOf+ ?firstGeneral . ?firstGeneral arch:unqualifiedForm ?firstPredicate } }
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
?via ?firstPredicate ?focus .
|
|
295
|
+
{
|
|
296
|
+
SELECT DISTINCT ?secondPredicate ?secondType
|
|
297
|
+
WHERE {
|
|
298
|
+
{ ?secondType arch:unqualifiedForm ?secondPredicate ; rdfs:subClassOf+ arch:QualifiedRelationship }
|
|
299
|
+
UNION
|
|
300
|
+
{ GRAPH ?secondTypeGraph { ?secondType arch:unqualifiedForm ?secondPredicate ; rdfs:subClassOf+ arch:QualifiedRelationship } }
|
|
301
|
+
FILTER NOT EXISTS {
|
|
302
|
+
{ ?secondType rdfs:subClassOf+ ?secondGeneral . ?secondGeneral arch:unqualifiedForm ?secondPredicate }
|
|
303
|
+
UNION
|
|
304
|
+
{ GRAPH ?secondGeneralGraph { ?secondType rdfs:subClassOf+ ?secondGeneral . ?secondGeneral arch:unqualifiedForm ?secondPredicate } }
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
?dependent ?secondPredicate ?via .
|
|
309
|
+
FILTER(?dependent != ?focus)
|
|
310
|
+
BIND(2 AS ?hops)
|
|
311
|
+
}
|
|
312
|
+
OPTIONAL { ?dependent skos:prefLabel ?dependentLabel . FILTER(lang(?dependentLabel) = "" || langMatches(lang(?dependentLabel), "en")) }
|
|
313
|
+
}
|
|
314
|
+
ORDER BY ?hops ?dependentLabel
|
|
315
|
+
""" ;
|
|
316
|
+
.
|
|
317
|
+
|
|
318
|
+
# A dependency step reads a predicate from the concept that needs to the one needed when the predicate is
|
|
319
|
+
# arch:dependsOn or a subproperty of it, and the other way when it is arch:dependencyOf or a subproperty of it, as
|
|
320
|
+
# ArchiMate's serving is (DD-44). Each step reads the predicates and their way from the metamodel in a sub-select,
|
|
321
|
+
# and matches its triple both ways, keeping the way the predicate reads.
|
|
322
|
+
|
|
323
|
+
:what-depends-on-it
|
|
324
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
325
|
+
dcterms:identifier "core/what-depends-on-it" ;
|
|
326
|
+
skos:prefLabel "What depends on this element?"@en ;
|
|
327
|
+
dcterms:description "Concepts that depend on the element, directly or through one concept between, along the dependencies the metamodels align with the core's: arch:dependsOn and its subproperties, and arch:dependencyOf and its subproperties read the other way, as ArchiMate's serving is."@en ;
|
|
328
|
+
arch:answers "One row per path: its length, the concept that depends on the element, the concept between, and the predicates followed."@en ;
|
|
329
|
+
arch:doesNotProve "That nothing else depends on the element. Only what the model states is followed, along the predicates a metamodel aligns with arch:dependsOn or arch:dependencyOf, two steps at most."@en ;
|
|
330
|
+
arch:questionStage arch:AnalysisStage ;
|
|
331
|
+
arch:questionAddressesConcern archvp:DependencyConcern ;
|
|
332
|
+
arch:resultIsFinding false ;
|
|
333
|
+
arch:requiresDataset arch:ModelAndMetamodelDataset ;
|
|
334
|
+
arch:resultKey "dependents" ;
|
|
335
|
+
arch:defaultLimit 500 ;
|
|
336
|
+
sh:parameter [ sh:path arch:focus ; sh:name "focus" ; sh:nodeKind sh:IRI ; sh:optional false ; sh:order 1 ;
|
|
337
|
+
sh:description "The element the question is about. A modelling tool binds the selected element."@en ] ;
|
|
338
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
339
|
+
sh:select """
|
|
340
|
+
SELECT DISTINCT ?hops ?dependent ?dependentLabel ?firstPredicate ?via ?secondPredicate
|
|
341
|
+
WHERE {
|
|
342
|
+
{
|
|
343
|
+
{
|
|
344
|
+
SELECT DISTINCT ?firstPredicate ?firstNeeds
|
|
345
|
+
WHERE {
|
|
346
|
+
{
|
|
347
|
+
{ ?firstPredicate rdfs:subPropertyOf* arch:dependsOn }
|
|
348
|
+
UNION
|
|
349
|
+
{ GRAPH ?firstNeedsGraph { ?firstPredicate rdfs:subPropertyOf* arch:dependsOn } }
|
|
350
|
+
BIND(true AS ?firstNeeds)
|
|
351
|
+
}
|
|
352
|
+
UNION
|
|
353
|
+
{
|
|
354
|
+
{ ?firstPredicate rdfs:subPropertyOf* arch:dependencyOf }
|
|
355
|
+
UNION
|
|
356
|
+
{ GRAPH ?firstNeededGraph { ?firstPredicate rdfs:subPropertyOf* arch:dependencyOf } }
|
|
357
|
+
BIND(false AS ?firstNeeds)
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
{ ?dependent ?firstPredicate ?focus . BIND(true AS ?firstRead) }
|
|
362
|
+
UNION
|
|
363
|
+
{ ?focus ?firstPredicate ?dependent . BIND(false AS ?firstRead) }
|
|
364
|
+
FILTER(?firstRead = ?firstNeeds)
|
|
365
|
+
BIND(1 AS ?hops)
|
|
366
|
+
}
|
|
367
|
+
UNION
|
|
368
|
+
{
|
|
369
|
+
{
|
|
370
|
+
SELECT DISTINCT ?firstPredicate ?firstNeeds
|
|
371
|
+
WHERE {
|
|
372
|
+
{
|
|
373
|
+
{ ?firstPredicate rdfs:subPropertyOf* arch:dependsOn }
|
|
374
|
+
UNION
|
|
375
|
+
{ GRAPH ?firstNeedsGraph { ?firstPredicate rdfs:subPropertyOf* arch:dependsOn } }
|
|
376
|
+
BIND(true AS ?firstNeeds)
|
|
377
|
+
}
|
|
378
|
+
UNION
|
|
379
|
+
{
|
|
380
|
+
{ ?firstPredicate rdfs:subPropertyOf* arch:dependencyOf }
|
|
381
|
+
UNION
|
|
382
|
+
{ GRAPH ?firstNeededGraph { ?firstPredicate rdfs:subPropertyOf* arch:dependencyOf } }
|
|
383
|
+
BIND(false AS ?firstNeeds)
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
{ ?via ?firstPredicate ?focus . BIND(true AS ?firstRead) }
|
|
388
|
+
UNION
|
|
389
|
+
{ ?focus ?firstPredicate ?via . BIND(false AS ?firstRead) }
|
|
390
|
+
FILTER(?firstRead = ?firstNeeds)
|
|
391
|
+
{
|
|
392
|
+
SELECT DISTINCT ?secondPredicate ?secondNeeds
|
|
393
|
+
WHERE {
|
|
394
|
+
{
|
|
395
|
+
{ ?secondPredicate rdfs:subPropertyOf* arch:dependsOn }
|
|
396
|
+
UNION
|
|
397
|
+
{ GRAPH ?secondNeedsGraph { ?secondPredicate rdfs:subPropertyOf* arch:dependsOn } }
|
|
398
|
+
BIND(true AS ?secondNeeds)
|
|
399
|
+
}
|
|
400
|
+
UNION
|
|
401
|
+
{
|
|
402
|
+
{ ?secondPredicate rdfs:subPropertyOf* arch:dependencyOf }
|
|
403
|
+
UNION
|
|
404
|
+
{ GRAPH ?secondNeededGraph { ?secondPredicate rdfs:subPropertyOf* arch:dependencyOf } }
|
|
405
|
+
BIND(false AS ?secondNeeds)
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
{ ?dependent ?secondPredicate ?via . BIND(true AS ?secondRead) }
|
|
410
|
+
UNION
|
|
411
|
+
{ ?via ?secondPredicate ?dependent . BIND(false AS ?secondRead) }
|
|
412
|
+
FILTER(?secondRead = ?secondNeeds)
|
|
413
|
+
FILTER(?dependent != ?focus)
|
|
414
|
+
BIND(2 AS ?hops)
|
|
415
|
+
}
|
|
416
|
+
OPTIONAL { ?dependent skos:prefLabel ?dependentLabel . FILTER(lang(?dependentLabel) = "" || langMatches(lang(?dependentLabel), "en")) }
|
|
417
|
+
}
|
|
418
|
+
ORDER BY ?hops ?dependentLabel
|
|
419
|
+
""" ;
|
|
420
|
+
.
|
|
421
|
+
|
|
422
|
+
:what-it-depends-on
|
|
423
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
424
|
+
dcterms:identifier "core/what-it-depends-on" ;
|
|
425
|
+
skos:prefLabel "What does this element depend on?"@en ;
|
|
426
|
+
dcterms:description "Concepts the element depends on, directly or through one concept between, along the dependencies the metamodels align with the core's: arch:dependsOn and its subproperties, and arch:dependencyOf and its subproperties read the other way, as ArchiMate's serving is."@en ;
|
|
427
|
+
arch:answers "One row per path: its length, the concept the element depends on, the concept between, and the predicates followed."@en ;
|
|
428
|
+
arch:doesNotProve "That the element needs nothing else. Only what the model states is followed, along the predicates a metamodel aligns with arch:dependsOn or arch:dependencyOf, two steps at most."@en ;
|
|
429
|
+
arch:questionStage arch:AnalysisStage ;
|
|
430
|
+
arch:questionAddressesConcern archvp:DependencyConcern ;
|
|
431
|
+
arch:resultIsFinding false ;
|
|
432
|
+
arch:requiresDataset arch:ModelAndMetamodelDataset ;
|
|
433
|
+
arch:resultKey "dependencies" ;
|
|
434
|
+
arch:defaultLimit 500 ;
|
|
435
|
+
sh:parameter [ sh:path arch:focus ; sh:name "focus" ; sh:nodeKind sh:IRI ; sh:optional false ; sh:order 1 ;
|
|
436
|
+
sh:description "The element the question is about. A modelling tool binds the selected element."@en ] ;
|
|
437
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
438
|
+
sh:select """
|
|
439
|
+
SELECT DISTINCT ?hops ?dependency ?dependencyLabel ?firstPredicate ?via ?secondPredicate
|
|
440
|
+
WHERE {
|
|
441
|
+
{
|
|
442
|
+
{
|
|
443
|
+
SELECT DISTINCT ?firstPredicate ?firstNeeds
|
|
444
|
+
WHERE {
|
|
445
|
+
{
|
|
446
|
+
{ ?firstPredicate rdfs:subPropertyOf* arch:dependsOn }
|
|
447
|
+
UNION
|
|
448
|
+
{ GRAPH ?firstNeedsGraph { ?firstPredicate rdfs:subPropertyOf* arch:dependsOn } }
|
|
449
|
+
BIND(true AS ?firstNeeds)
|
|
450
|
+
}
|
|
451
|
+
UNION
|
|
452
|
+
{
|
|
453
|
+
{ ?firstPredicate rdfs:subPropertyOf* arch:dependencyOf }
|
|
454
|
+
UNION
|
|
455
|
+
{ GRAPH ?firstNeededGraph { ?firstPredicate rdfs:subPropertyOf* arch:dependencyOf } }
|
|
456
|
+
BIND(false AS ?firstNeeds)
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
{ ?focus ?firstPredicate ?dependency . BIND(true AS ?firstRead) }
|
|
461
|
+
UNION
|
|
462
|
+
{ ?dependency ?firstPredicate ?focus . BIND(false AS ?firstRead) }
|
|
463
|
+
FILTER(?firstRead = ?firstNeeds)
|
|
464
|
+
BIND(1 AS ?hops)
|
|
465
|
+
}
|
|
466
|
+
UNION
|
|
467
|
+
{
|
|
468
|
+
{
|
|
469
|
+
SELECT DISTINCT ?firstPredicate ?firstNeeds
|
|
470
|
+
WHERE {
|
|
471
|
+
{
|
|
472
|
+
{ ?firstPredicate rdfs:subPropertyOf* arch:dependsOn }
|
|
473
|
+
UNION
|
|
474
|
+
{ GRAPH ?firstNeedsGraph { ?firstPredicate rdfs:subPropertyOf* arch:dependsOn } }
|
|
475
|
+
BIND(true AS ?firstNeeds)
|
|
476
|
+
}
|
|
477
|
+
UNION
|
|
478
|
+
{
|
|
479
|
+
{ ?firstPredicate rdfs:subPropertyOf* arch:dependencyOf }
|
|
480
|
+
UNION
|
|
481
|
+
{ GRAPH ?firstNeededGraph { ?firstPredicate rdfs:subPropertyOf* arch:dependencyOf } }
|
|
482
|
+
BIND(false AS ?firstNeeds)
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
{ ?focus ?firstPredicate ?via . BIND(true AS ?firstRead) }
|
|
487
|
+
UNION
|
|
488
|
+
{ ?via ?firstPredicate ?focus . BIND(false AS ?firstRead) }
|
|
489
|
+
FILTER(?firstRead = ?firstNeeds)
|
|
490
|
+
{
|
|
491
|
+
SELECT DISTINCT ?secondPredicate ?secondNeeds
|
|
492
|
+
WHERE {
|
|
493
|
+
{
|
|
494
|
+
{ ?secondPredicate rdfs:subPropertyOf* arch:dependsOn }
|
|
495
|
+
UNION
|
|
496
|
+
{ GRAPH ?secondNeedsGraph { ?secondPredicate rdfs:subPropertyOf* arch:dependsOn } }
|
|
497
|
+
BIND(true AS ?secondNeeds)
|
|
498
|
+
}
|
|
499
|
+
UNION
|
|
500
|
+
{
|
|
501
|
+
{ ?secondPredicate rdfs:subPropertyOf* arch:dependencyOf }
|
|
502
|
+
UNION
|
|
503
|
+
{ GRAPH ?secondNeededGraph { ?secondPredicate rdfs:subPropertyOf* arch:dependencyOf } }
|
|
504
|
+
BIND(false AS ?secondNeeds)
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
{ ?via ?secondPredicate ?dependency . BIND(true AS ?secondRead) }
|
|
509
|
+
UNION
|
|
510
|
+
{ ?dependency ?secondPredicate ?via . BIND(false AS ?secondRead) }
|
|
511
|
+
FILTER(?secondRead = ?secondNeeds)
|
|
512
|
+
FILTER(?dependency != ?focus)
|
|
513
|
+
BIND(2 AS ?hops)
|
|
514
|
+
}
|
|
515
|
+
OPTIONAL { ?dependency skos:prefLabel ?dependencyLabel . FILTER(lang(?dependencyLabel) = "" || langMatches(lang(?dependencyLabel), "en")) }
|
|
516
|
+
}
|
|
517
|
+
ORDER BY ?hops ?dependencyLabel
|
|
518
|
+
""" ;
|
|
519
|
+
.
|
|
520
|
+
|
|
521
|
+
# ── Quality ─────────────────────────────────────────────────────
|
|
522
|
+
|
|
523
|
+
:orphans
|
|
524
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
525
|
+
dcterms:identifier "core/orphans" ;
|
|
526
|
+
skos:prefLabel "Which elements take part in no relationship?"@en ;
|
|
527
|
+
dcterms:description "Elements that are neither the source nor the target of any relationship."@en ;
|
|
528
|
+
arch:answers "One row per unconnected element."@en ;
|
|
529
|
+
arch:doesNotProve "That the element is unused or safe to delete. It may be context drawn on a diagram, or its relationships may be in a model that is not loaded."@en ;
|
|
530
|
+
arch:questionStage arch:QualityStage ;
|
|
531
|
+
arch:questionAddressesConcern archvp:QualityConcern ;
|
|
532
|
+
arch:resultIsFinding true ;
|
|
533
|
+
arch:findingSeverity sh:Info ;
|
|
534
|
+
arch:findingFocus "element" ;
|
|
535
|
+
arch:requiresDataset arch:ModelDataset ;
|
|
536
|
+
arch:resultKey "orphans" ;
|
|
537
|
+
arch:defaultLimit 500 ;
|
|
538
|
+
sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 1 ;
|
|
539
|
+
sh:description "The model to look in. A modelling tool binds the open model; a deliverable, the model it is produced from."@en ] ;
|
|
540
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
541
|
+
sh:select """
|
|
542
|
+
SELECT ?element ?label ?type
|
|
543
|
+
WHERE {
|
|
544
|
+
?element arch:inModel ?model ;
|
|
545
|
+
rdf:type ?type .
|
|
546
|
+
FILTER(?type NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
|
|
547
|
+
MINUS { SELECT DISTINCT ?type WHERE { { ?type arch:isAbstractClass true }
|
|
548
|
+
UNION { GRAPH ?abstractClassGraph { ?type arch:isAbstractClass true } } } }
|
|
549
|
+
FILTER NOT EXISTS { ?element arch:source ?anySource }
|
|
550
|
+
FILTER NOT EXISTS { ?element rdf:type ?notElement . FILTER(?notElement IN (arch:View, arch:Diagram, arch:Catalog, arch:Matrix, arch:Folder)) }
|
|
551
|
+
FILTER NOT EXISTS { ?incoming arch:target ?element }
|
|
552
|
+
FILTER NOT EXISTS { ?outgoing arch:source ?element }
|
|
553
|
+
OPTIONAL { ?element skos:prefLabel ?label . FILTER(lang(?label) = "" || langMatches(lang(?label), "en")) }
|
|
554
|
+
}
|
|
555
|
+
ORDER BY ?type ?label
|
|
556
|
+
""" ;
|
|
557
|
+
.
|
|
558
|
+
|
|
559
|
+
:not-in-any-view
|
|
560
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
561
|
+
dcterms:identifier "core/unpresented" ;
|
|
562
|
+
skos:prefLabel "Which elements appear in no view?"@en ;
|
|
563
|
+
dcterms:description "Elements of the model that no diagram, catalogue or matrix presents."@en ;
|
|
564
|
+
arch:answers "One row per element without arch:inView."@en ;
|
|
565
|
+
arch:doesNotProve "That the element is irrelevant. Much of a model is only ever queried; this matters where a deliverable is read as complete."@en ;
|
|
566
|
+
arch:questionStage arch:QualityStage ;
|
|
567
|
+
arch:questionAddressesConcern archvp:QualityConcern ;
|
|
568
|
+
arch:resultIsFinding true ;
|
|
569
|
+
arch:findingSeverity sh:Info ;
|
|
570
|
+
arch:findingFocus "element" ;
|
|
571
|
+
arch:requiresDataset arch:ModelDataset ;
|
|
572
|
+
arch:resultKey "unpresented" ;
|
|
573
|
+
arch:defaultLimit 500 ;
|
|
574
|
+
sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 1 ;
|
|
575
|
+
sh:description "The model to look in. A modelling tool binds the open model; a deliverable, the model it is produced from."@en ] ;
|
|
576
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
577
|
+
sh:select """
|
|
578
|
+
SELECT ?element ?label ?type
|
|
579
|
+
WHERE {
|
|
580
|
+
?element arch:inModel ?model ;
|
|
581
|
+
rdf:type ?type .
|
|
582
|
+
FILTER(?type NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
|
|
583
|
+
MINUS { SELECT DISTINCT ?type WHERE { { ?type arch:isAbstractClass true }
|
|
584
|
+
UNION { GRAPH ?abstractClassGraph { ?type arch:isAbstractClass true } } } }
|
|
585
|
+
FILTER NOT EXISTS { ?element arch:source ?anySource }
|
|
586
|
+
FILTER NOT EXISTS { ?element rdf:type ?notElement . FILTER(?notElement IN (arch:View, arch:Diagram, arch:Catalog, arch:Matrix, arch:Folder)) }
|
|
587
|
+
FILTER NOT EXISTS { ?element arch:inView ?anyView }
|
|
588
|
+
OPTIONAL { ?element skos:prefLabel ?label . FILTER(lang(?label) = "" || langMatches(lang(?label), "en")) }
|
|
589
|
+
}
|
|
590
|
+
ORDER BY ?type ?label
|
|
591
|
+
""" ;
|
|
592
|
+
.
|
|
593
|
+
|
|
594
|
+
:missing-definitions
|
|
595
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
596
|
+
dcterms:identifier "core/missing-definitions" ;
|
|
597
|
+
skos:prefLabel "Which elements have no definition?"@en ;
|
|
598
|
+
dcterms:description "Elements, of one type or of any, with no skos:definition."@en ;
|
|
599
|
+
arch:answers "One row per element without a definition."@en ;
|
|
600
|
+
arch:doesNotProve "That the element is unclear to its readers. A self-explanatory name may need no definition."@en ;
|
|
601
|
+
arch:questionStage arch:QualityStage ;
|
|
602
|
+
arch:questionAddressesConcern archvp:QualityConcern ;
|
|
603
|
+
arch:resultIsFinding true ;
|
|
604
|
+
arch:findingSeverity sh:Info ;
|
|
605
|
+
arch:findingFocus "element" ;
|
|
606
|
+
arch:requiresDataset arch:ModelDataset ;
|
|
607
|
+
arch:resultKey "undefined" ;
|
|
608
|
+
arch:defaultLimit 500 ;
|
|
609
|
+
sh:parameter [ sh:path arch:conceptType ; sh:name "concept type" ; sh:nodeKind sh:IRI ; sh:optional true ; sh:order 1 ;
|
|
610
|
+
sh:description "An element type, such as an application component."@en ] ;
|
|
611
|
+
sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 2 ;
|
|
612
|
+
sh:description "The model to look in. A modelling tool binds the open model; a deliverable, the model it is produced from."@en ] ;
|
|
613
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
614
|
+
sh:select """
|
|
615
|
+
SELECT DISTINCT ?element ?label ?type
|
|
616
|
+
WHERE {
|
|
617
|
+
?element arch:inModel ?model ;
|
|
618
|
+
rdf:type ?conceptType ;
|
|
619
|
+
rdf:type ?type .
|
|
620
|
+
FILTER(?type NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
|
|
621
|
+
MINUS { SELECT DISTINCT ?type WHERE { { ?type arch:isAbstractClass true }
|
|
622
|
+
UNION { GRAPH ?abstractClassGraph { ?type arch:isAbstractClass true } } } }
|
|
623
|
+
FILTER NOT EXISTS { ?element arch:source ?anySource }
|
|
624
|
+
FILTER NOT EXISTS { ?element rdf:type ?notElement . FILTER(?notElement IN (arch:View, arch:Diagram, arch:Catalog, arch:Matrix, arch:Folder)) }
|
|
625
|
+
FILTER NOT EXISTS { ?element skos:definition ?anyDefinition }
|
|
626
|
+
OPTIONAL { ?element skos:prefLabel ?label . FILTER(lang(?label) = "" || langMatches(lang(?label), "en")) }
|
|
627
|
+
}
|
|
628
|
+
ORDER BY ?type ?label
|
|
629
|
+
""" ;
|
|
630
|
+
.
|
|
631
|
+
|
|
632
|
+
:duplicate-labels
|
|
633
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
634
|
+
dcterms:identifier "core/duplicate-labels" ;
|
|
635
|
+
skos:prefLabel "Which elements share a name with another of the same type?"@en ;
|
|
636
|
+
dcterms:description "Elements whose name, compared without regard to case, another element of the same most specific type also has, in any loaded model."@en ;
|
|
637
|
+
arch:answers "One row per element in a collision, with how many elements share the name."@en ;
|
|
638
|
+
arch:doesNotProve "That they are the same thing. A shared name makes two elements candidates for a person to compare, never a merge."@en ;
|
|
639
|
+
arch:questionStage arch:QualityStage ;
|
|
640
|
+
arch:questionAddressesConcern archvp:QualityConcern ;
|
|
641
|
+
arch:resultIsFinding true ;
|
|
642
|
+
arch:findingSeverity sh:Warning ;
|
|
643
|
+
arch:findingFocus "element" ;
|
|
644
|
+
arch:requiresDataset arch:ModelDataset ;
|
|
645
|
+
arch:resultKey "collisions" ;
|
|
646
|
+
arch:defaultLimit 500 ;
|
|
647
|
+
sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 1 ;
|
|
648
|
+
sh:description "The model whose elements are reported. A modelling tool binds the open model; a deliverable, the model it is produced from."@en ] ;
|
|
649
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
650
|
+
sh:select """
|
|
651
|
+
SELECT DISTINCT ?element ?label ?type ?sharedBy
|
|
652
|
+
WHERE {
|
|
653
|
+
{
|
|
654
|
+
SELECT ?type ?key (COUNT(DISTINCT ?candidate) AS ?sharedBy)
|
|
655
|
+
WHERE {
|
|
656
|
+
?candidate arch:inModel ?anyModel ;
|
|
657
|
+
rdf:type ?type ;
|
|
658
|
+
skos:prefLabel ?candidateLabel .
|
|
659
|
+
FILTER(?type NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
|
|
660
|
+
MINUS { SELECT DISTINCT ?type WHERE { { ?type arch:isAbstractClass true }
|
|
661
|
+
UNION { GRAPH ?abstractClassGraph { ?type arch:isAbstractClass true } } } }
|
|
662
|
+
FILTER NOT EXISTS { ?candidate arch:source ?anySource }
|
|
663
|
+
FILTER NOT EXISTS { ?candidate rdf:type ?notElement . FILTER(?notElement IN (arch:View, arch:Diagram, arch:Catalog, arch:Matrix, arch:Folder)) }
|
|
664
|
+
BIND(LCASE(STR(?candidateLabel)) AS ?key)
|
|
665
|
+
}
|
|
666
|
+
GROUP BY ?type ?key
|
|
667
|
+
HAVING (COUNT(DISTINCT ?candidate) > 1)
|
|
668
|
+
}
|
|
669
|
+
?element arch:inModel ?model ;
|
|
670
|
+
rdf:type ?type ;
|
|
671
|
+
skos:prefLabel ?label .
|
|
672
|
+
FILTER(LCASE(STR(?label)) = ?key)
|
|
673
|
+
}
|
|
674
|
+
ORDER BY ?key ?type
|
|
675
|
+
""" ;
|
|
676
|
+
.
|
|
677
|
+
|
|
678
|
+
:relationship-integrity
|
|
679
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
680
|
+
dcterms:identifier "core/reifies-audit" ;
|
|
681
|
+
skos:prefLabel "Which relationships are out of step with their direct triple?"@en ;
|
|
682
|
+
dcterms:description '''Qualified relationships whose type has an unqualified form (arch:unqualifiedForm) but whose
|
|
683
|
+
rdf:reifies triple term is missing or names other ends, or whose direct triple is not asserted though a qualified
|
|
684
|
+
predicate leads to them. A proposition is not in error: a resource that reifies its triple without asserting it,
|
|
685
|
+
and that nothing leads to, as a potential derivation is until it is confirmed. Needs RDF 1.2 triple terms.'''@en ;
|
|
686
|
+
arch:answers "One row per relationship in error, with what is wrong."@en ;
|
|
687
|
+
arch:doesNotProve "That a query over the direct triples is wrong everywhere: it misses or misreports exactly these relationships."@en ;
|
|
688
|
+
arch:questionStage arch:QualityStage ;
|
|
689
|
+
arch:questionAddressesConcern archvp:QualityConcern ;
|
|
690
|
+
arch:resultIsFinding true ;
|
|
691
|
+
arch:findingSeverity sh:Violation ;
|
|
692
|
+
arch:findingFocus "relationship" ;
|
|
693
|
+
arch:requiresDataset arch:ModelAndMetamodelDataset ;
|
|
694
|
+
arch:resultKey "integrity" ;
|
|
695
|
+
arch:defaultLimit 500 ;
|
|
696
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
697
|
+
sh:select """
|
|
698
|
+
SELECT DISTINCT ?relationship ?type ?source ?target ?problem
|
|
699
|
+
WHERE {
|
|
700
|
+
?relationship arch:source ?source ;
|
|
701
|
+
arch:target ?target ;
|
|
702
|
+
rdf:type ?type .
|
|
703
|
+
# Only types with an unqualified form carry the direct triple.
|
|
704
|
+
{ ?type arch:unqualifiedForm ?predicate }
|
|
705
|
+
UNION
|
|
706
|
+
{ GRAPH ?mappingGraph { ?type arch:unqualifiedForm ?predicate } }
|
|
707
|
+
FILTER NOT EXISTS {
|
|
708
|
+
?relationship rdf:reifies <<( ?source ?predicate ?target )>> .
|
|
709
|
+
?source ?predicate ?target .
|
|
710
|
+
}
|
|
711
|
+
# Nor a proposition: its triple not asserted, and nothing leading to it.
|
|
712
|
+
FILTER NOT EXISTS {
|
|
713
|
+
?relationship rdf:reifies <<( ?source ?predicate ?target )>> .
|
|
714
|
+
FILTER NOT EXISTS { ?source ?predicate ?target }
|
|
715
|
+
FILTER NOT EXISTS { ?source ?leads ?relationship }
|
|
716
|
+
}
|
|
717
|
+
BIND(IF(NOT EXISTS { ?relationship rdf:reifies ?anyTerm }, "no rdf:reifies",
|
|
718
|
+
IF(NOT EXISTS { ?source ?predicate ?target }, "direct triple not asserted",
|
|
719
|
+
"rdf:reifies names a different triple")) AS ?problem)
|
|
720
|
+
}
|
|
721
|
+
ORDER BY ?problem ?type
|
|
722
|
+
""" ;
|
|
723
|
+
.
|
|
724
|
+
|
|
725
|
+
# ── Views ───────────────────────────────────────────────────────
|
|
726
|
+
|
|
727
|
+
:views-showing
|
|
728
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
729
|
+
dcterms:identifier "core/view-usage-semantic" ;
|
|
730
|
+
skos:prefLabel "Which views show this element?"@en ;
|
|
731
|
+
dcterms:description "The views that present the element, with their viewpoints."@en ;
|
|
732
|
+
arch:answers "One row per view presenting the element."@en ;
|
|
733
|
+
arch:doesNotProve "That a view not listed leaves it out on purpose: a view drawn without arch:inView may still place it."@en ;
|
|
734
|
+
arch:questionStage arch:ViewsStage ;
|
|
735
|
+
arch:resultIsFinding false ;
|
|
736
|
+
arch:requiresDataset arch:ModelDataset ;
|
|
737
|
+
arch:resultKey "views" ;
|
|
738
|
+
arch:defaultLimit 200 ;
|
|
739
|
+
sh:parameter [ sh:path arch:focus ; sh:name "focus" ; sh:nodeKind sh:IRI ; sh:optional false ; sh:order 1 ;
|
|
740
|
+
sh:description "The element the question is about. A modelling tool binds the selected element."@en ] ;
|
|
741
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
742
|
+
sh:select """
|
|
743
|
+
SELECT ?view ?viewLabel ?viewpoint
|
|
744
|
+
WHERE {
|
|
745
|
+
?focus arch:inView ?view .
|
|
746
|
+
OPTIONAL { ?view skos:prefLabel ?viewLabel . FILTER(lang(?viewLabel) = "" || langMatches(lang(?viewLabel), "en")) }
|
|
747
|
+
OPTIONAL { ?view arch:viewConformsToViewpoint ?viewpoint }
|
|
748
|
+
}
|
|
749
|
+
ORDER BY ?viewLabel
|
|
750
|
+
""" ;
|
|
751
|
+
.
|
|
752
|
+
|
|
753
|
+
:view-contents
|
|
754
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
755
|
+
dcterms:identifier "core/view-contents-semantic" ;
|
|
756
|
+
skos:prefLabel "What does this view present?"@en ;
|
|
757
|
+
dcterms:description "The elements and relationships a view presents."@en ;
|
|
758
|
+
arch:answers "One row per presented concept, with its most specific type."@en ;
|
|
759
|
+
arch:doesNotProve "Layout or grouping: nesting on a diagram is geometry, not a relationship."@en ;
|
|
760
|
+
arch:questionStage arch:ViewsStage ;
|
|
761
|
+
arch:resultIsFinding false ;
|
|
762
|
+
arch:requiresDataset arch:ModelDataset ;
|
|
763
|
+
arch:resultKey "contents" ;
|
|
764
|
+
arch:defaultLimit 1000 ;
|
|
765
|
+
sh:parameter [ sh:path arch:view ; sh:name "view" ; sh:class arch:View ; sh:optional false ; sh:order 1 ;
|
|
766
|
+
sh:description "A view. A modelling tool binds the open view."@en ] ;
|
|
767
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
768
|
+
sh:select """
|
|
769
|
+
SELECT ?concept ?label ?type ?kind
|
|
770
|
+
WHERE {
|
|
771
|
+
?concept arch:inView ?view ;
|
|
772
|
+
rdf:type ?type .
|
|
773
|
+
FILTER(?type NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
|
|
774
|
+
MINUS { SELECT DISTINCT ?type WHERE { { ?type arch:isAbstractClass true }
|
|
775
|
+
UNION { GRAPH ?abstractClassGraph { ?type arch:isAbstractClass true } } } }
|
|
776
|
+
BIND(IF(EXISTS { ?concept arch:source ?anySource }, "relationship", "element") AS ?kind)
|
|
777
|
+
OPTIONAL { ?concept skos:prefLabel ?label . FILTER(lang(?label) = "" || langMatches(lang(?label), "en")) }
|
|
778
|
+
}
|
|
779
|
+
ORDER BY ?kind ?type ?label
|
|
780
|
+
""" ;
|
|
781
|
+
.
|
|
782
|
+
|
|
783
|
+
:viewpoint-conformance
|
|
784
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
785
|
+
dcterms:identifier "core/viewpoint-conformance" ;
|
|
786
|
+
skos:prefLabel "Which elements does their view's viewpoint not admit?"@en ;
|
|
787
|
+
dcterms:description '''Elements presented in a view whose viewpoint states the concepts it admits
|
|
788
|
+
(arch:includesConcept), and whose type is neither one of them nor a specialisation of one. Views whose
|
|
789
|
+
viewpoint the loaded metamodels do not define are the subject of "Which views follow a viewpoint the loaded
|
|
790
|
+
metamodels do not define?".'''@en ;
|
|
791
|
+
arch:answers "One row per element out of place: the view, its viewpoint, the element and its type."@en ;
|
|
792
|
+
arch:doesNotProve "That the view is wrong. A viewpoint is a convention; the finding is that the view departs from it, which may be deliberate."@en ;
|
|
793
|
+
arch:questionStage arch:ViewsStage ;
|
|
794
|
+
arch:questionAddressesConcern archvp:QualityConcern, archvp:GovernanceConcern ;
|
|
795
|
+
arch:resultIsFinding true ;
|
|
796
|
+
arch:findingSeverity sh:Warning ;
|
|
797
|
+
arch:findingFocus "element" ;
|
|
798
|
+
arch:requiresDataset arch:ModelAndMetamodelDataset ;
|
|
799
|
+
arch:resultKey "nonConforming" ;
|
|
800
|
+
arch:defaultLimit 500 ;
|
|
801
|
+
sh:parameter [ sh:path arch:view ; sh:name "view" ; sh:class arch:View ; sh:optional true ; sh:order 1 ;
|
|
802
|
+
sh:description "A view to check; every view when none is given. A modelling tool binds the open view."@en ] ;
|
|
803
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
804
|
+
sh:select """
|
|
805
|
+
SELECT DISTINCT ?view ?viewpoint ?element ?label ?type
|
|
806
|
+
WHERE {
|
|
807
|
+
?element arch:inView ?view ;
|
|
808
|
+
rdf:type ?type .
|
|
809
|
+
FILTER(?type NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
|
|
810
|
+
MINUS { SELECT DISTINCT ?type WHERE { { ?type arch:isAbstractClass true }
|
|
811
|
+
UNION { GRAPH ?abstractClassGraph { ?type arch:isAbstractClass true } } } }
|
|
812
|
+
FILTER NOT EXISTS { ?element arch:source ?anySource }
|
|
813
|
+
?view arch:viewConformsToViewpoint ?viewpoint .
|
|
814
|
+
# Only viewpoints that state what they admit are judged.
|
|
815
|
+
{ SELECT DISTINCT ?viewpoint WHERE { { ?viewpoint arch:includesConcept ?anyConcept }
|
|
816
|
+
UNION { GRAPH ?declaringGraph { ?viewpoint arch:includesConcept ?anyConcept } } } }
|
|
817
|
+
# What each admits: the types it names and their specialisations.
|
|
818
|
+
MINUS {
|
|
819
|
+
SELECT DISTINCT ?viewpoint ?type
|
|
820
|
+
WHERE {
|
|
821
|
+
{ ?viewpoint arch:includesConcept ?admitted }
|
|
822
|
+
UNION
|
|
823
|
+
{ GRAPH ?admittingGraph { ?viewpoint arch:includesConcept ?admitted } }
|
|
824
|
+
{ ?type rdfs:subClassOf* ?admitted }
|
|
825
|
+
UNION
|
|
826
|
+
{ GRAPH ?hierarchyGraph { ?type rdfs:subClassOf* ?admitted } }
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
OPTIONAL { ?element skos:prefLabel ?label . FILTER(lang(?label) = "" || langMatches(lang(?label), "en")) }
|
|
830
|
+
}
|
|
831
|
+
ORDER BY ?view ?type ?label
|
|
832
|
+
""" ;
|
|
833
|
+
.
|
|
834
|
+
|
|
835
|
+
:views-with-unknown-viewpoint
|
|
836
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
837
|
+
dcterms:identifier "core/unknown-viewpoints" ;
|
|
838
|
+
skos:prefLabel "Which views follow a viewpoint the loaded metamodels do not define?"@en ;
|
|
839
|
+
dcterms:description '''Views whose arch:viewConformsToViewpoint names a resource nothing loaded defines — a
|
|
840
|
+
misspelt or outdated viewpoint IRI, or a metamodel that is not loaded. Their conformance cannot be judged.'''@en ;
|
|
841
|
+
arch:answers "One row per view, with the viewpoint it names."@en ;
|
|
842
|
+
arch:doesNotProve "That the viewpoint does not exist: it may be defined in a metamodel that is not loaded."@en ;
|
|
843
|
+
arch:questionStage arch:ViewsStage ;
|
|
844
|
+
arch:questionAddressesConcern archvp:QualityConcern, archvp:GovernanceConcern ;
|
|
845
|
+
arch:resultIsFinding true ;
|
|
846
|
+
arch:findingSeverity sh:Warning ;
|
|
847
|
+
arch:findingFocus "view" ;
|
|
848
|
+
arch:requiresDataset arch:ModelAndMetamodelDataset ;
|
|
849
|
+
arch:resultKey "unknownViewpoints" ;
|
|
850
|
+
arch:defaultLimit 200 ;
|
|
851
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
852
|
+
sh:select """
|
|
853
|
+
SELECT ?view ?viewLabel ?viewpoint
|
|
854
|
+
WHERE {
|
|
855
|
+
?view arch:viewConformsToViewpoint ?viewpoint .
|
|
856
|
+
FILTER NOT EXISTS {
|
|
857
|
+
{ ?viewpoint rdf:type ?anyType }
|
|
858
|
+
UNION
|
|
859
|
+
{ GRAPH ?definingGraph { ?viewpoint rdf:type ?anyType } }
|
|
860
|
+
}
|
|
861
|
+
OPTIONAL { ?view skos:prefLabel ?viewLabel . FILTER(lang(?viewLabel) = "" || langMatches(lang(?viewLabel), "en")) }
|
|
862
|
+
}
|
|
863
|
+
ORDER BY ?viewLabel
|
|
864
|
+
""" ;
|
|
865
|
+
.
|
|
866
|
+
|
|
867
|
+
:viewpoint-scope
|
|
868
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
869
|
+
dcterms:identifier "core/viewpoint-scope" ;
|
|
870
|
+
skos:prefLabel "What in the model belongs in a view of this viewpoint?"@en ;
|
|
871
|
+
dcterms:description '''Elements whose type the viewpoint admits — a type it names or a specialisation of
|
|
872
|
+
one — each with its outgoing relationships summarised. The viewpoint is the one statement of what a view or a
|
|
873
|
+
deliverable section covers.'''@en ;
|
|
874
|
+
arch:answers "One row per element: name, type, definition and a \"relationship → target\" summary of what it points to."@en ;
|
|
875
|
+
arch:doesNotProve "That the elements belong in one diagram. A viewpoint says what may appear, not what should be drawn together."@en ;
|
|
876
|
+
arch:questionStage arch:ViewsStage ;
|
|
877
|
+
arch:resultIsFinding false ;
|
|
878
|
+
arch:requiresDataset arch:ModelAndMetamodelDataset ;
|
|
879
|
+
arch:resultKey "scope" ;
|
|
880
|
+
arch:defaultLimit 1000 ;
|
|
881
|
+
sh:parameter [ sh:path arch:viewpoint ; sh:name "viewpoint" ; sh:class arch:Viewpoint ; sh:optional false ; sh:order 1 ;
|
|
882
|
+
sh:description "A viewpoint. A modelling tool binds the open view's viewpoint; a deliverable, the section's."@en ] ;
|
|
883
|
+
sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 2 ;
|
|
884
|
+
sh:description "The model to look in. A modelling tool binds the open model; a deliverable, the model it is produced from."@en ] ;
|
|
885
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
886
|
+
sh:select """
|
|
887
|
+
SELECT ?element (SAMPLE(?anyLabel) AS ?label) ?type (SAMPLE(?anyDefinition) AS ?definition)
|
|
888
|
+
(GROUP_CONCAT(DISTINCT ?link; separator = "; ") AS ?outgoing)
|
|
889
|
+
WHERE {
|
|
890
|
+
# What each viewpoint admits: the types it names and their specialisations.
|
|
891
|
+
{
|
|
892
|
+
SELECT DISTINCT ?viewpoint ?type
|
|
893
|
+
WHERE {
|
|
894
|
+
{ ?viewpoint arch:includesConcept ?admitted }
|
|
895
|
+
UNION
|
|
896
|
+
{ GRAPH ?admittingGraph { ?viewpoint arch:includesConcept ?admitted } }
|
|
897
|
+
{ ?type rdfs:subClassOf* ?admitted }
|
|
898
|
+
UNION
|
|
899
|
+
{ GRAPH ?hierarchyGraph { ?type rdfs:subClassOf* ?admitted } }
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
?element rdf:type ?type ;
|
|
903
|
+
arch:inModel ?model .
|
|
904
|
+
FILTER NOT EXISTS { ?element arch:source ?anySource }
|
|
905
|
+
OPTIONAL { ?element skos:prefLabel ?anyLabel . FILTER(lang(?anyLabel) = "" || langMatches(lang(?anyLabel), "en")) }
|
|
906
|
+
OPTIONAL { ?element skos:definition ?anyDefinition . FILTER(lang(?anyDefinition) = "" || langMatches(lang(?anyDefinition), "en")) }
|
|
907
|
+
OPTIONAL {
|
|
908
|
+
?relationship arch:source ?element ;
|
|
909
|
+
arch:target ?other ;
|
|
910
|
+
rdf:type ?relationshipType .
|
|
911
|
+
FILTER(?relationshipType NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
|
|
912
|
+
MINUS { SELECT DISTINCT ?relationshipType WHERE { { ?relationshipType arch:isAbstractClass true }
|
|
913
|
+
UNION { GRAPH ?abstractClassGraph { ?relationshipType arch:isAbstractClass true } } } }
|
|
914
|
+
OPTIONAL { ?other skos:prefLabel ?otherLabel . FILTER(lang(?otherLabel) = "" || langMatches(lang(?otherLabel), "en")) }
|
|
915
|
+
BIND(CONCAT(REPLACE(STR(?relationshipType), "^.*[#/]", ""), " → ",
|
|
916
|
+
COALESCE(STR(?otherLabel), STR(?other))) AS ?link)
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
GROUP BY ?element ?type
|
|
920
|
+
ORDER BY ?type ?label
|
|
921
|
+
""" ;
|
|
922
|
+
.
|
|
923
|
+
|
|
924
|
+
# ── Enrichment ──────────────────────────────────────────────────
|
|
925
|
+
|
|
926
|
+
:architecture-state
|
|
927
|
+
a arch:ModelQuestion, sh:SPARQLSelectExecutable ;
|
|
928
|
+
dcterms:identifier "core/architecture-state" ;
|
|
929
|
+
skos:prefLabel "What is baseline, target or still awaiting approval?"@en ;
|
|
930
|
+
dcterms:description "Concepts with an architecture state (baseline, target, transitional) or an approval state (proposed, approved)."@en ;
|
|
931
|
+
arch:answers "One row per concept with either state recorded."@en ;
|
|
932
|
+
arch:doesNotProve "That a concept without a state is current. An unstated state is unknown."@en ;
|
|
933
|
+
arch:questionStage arch:EnrichmentStage ;
|
|
934
|
+
arch:questionAddressesConcern archvp:EvolutionConcern, archvp:GovernanceConcern ;
|
|
935
|
+
arch:resultIsFinding false ;
|
|
936
|
+
arch:requiresDataset arch:ModelDataset ;
|
|
937
|
+
arch:resultKey "states" ;
|
|
938
|
+
arch:defaultLimit 500 ;
|
|
939
|
+
sh:parameter [ sh:path arch:model ; sh:name "model" ; sh:class arch:Model ; sh:optional true ; sh:order 1 ;
|
|
940
|
+
sh:description "The model to look in. A modelling tool binds the open model; a deliverable, the model it is produced from."@en ] ;
|
|
941
|
+
sh:prefixes <https://meta.linked.archi/core-questions#> ;
|
|
942
|
+
sh:select """
|
|
943
|
+
SELECT ?element ?label ?type ?state ?approval
|
|
944
|
+
WHERE {
|
|
945
|
+
?element arch:inModel ?model ;
|
|
946
|
+
rdf:type ?type .
|
|
947
|
+
FILTER(?type NOT IN (arch:ModelConcept, arch:Element, arch:QualifiedRelationship))
|
|
948
|
+
MINUS { SELECT DISTINCT ?type WHERE { { ?type arch:isAbstractClass true }
|
|
949
|
+
UNION { GRAPH ?abstractClassGraph { ?type arch:isAbstractClass true } } } }
|
|
950
|
+
OPTIONAL { ?element arch:architectureState ?state }
|
|
951
|
+
OPTIONAL { ?element arch:approvalState ?approval }
|
|
952
|
+
FILTER(BOUND(?state) || BOUND(?approval))
|
|
953
|
+
OPTIONAL { ?element skos:prefLabel ?label . FILTER(lang(?label) = "" || langMatches(lang(?label), "en")) }
|
|
954
|
+
}
|
|
955
|
+
ORDER BY ?approval ?state ?type ?label
|
|
956
|
+
""" ;
|
|
957
|
+
.
|