@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,582 @@
|
|
|
1
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
2
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
3
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
4
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
5
|
+
@prefix dcterms: <http://purl.org/dc/terms/> .
|
|
6
|
+
@prefix bibo: <http://purl.org/ontology/bibo/> .
|
|
7
|
+
@prefix vann: <http://purl.org/vocab/vann/> .
|
|
8
|
+
@prefix prov: <http://www.w3.org/ns/prov#> .
|
|
9
|
+
@prefix cc: <http://creativecommons.org/ns#> .
|
|
10
|
+
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
|
11
|
+
|
|
12
|
+
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
|
|
13
|
+
@prefix arch: <https://meta.linked.archi/core#> .
|
|
14
|
+
@prefix ad: <https://meta.linked.archi/arch-decision#> .
|
|
15
|
+
@prefix : <https://meta.linked.archi/arch-decision-shapes#> .
|
|
16
|
+
|
|
17
|
+
#################################################################
|
|
18
|
+
# Ontology Declaration
|
|
19
|
+
#################################################################
|
|
20
|
+
|
|
21
|
+
<https://meta.linked.archi/arch-decision-shapes#>
|
|
22
|
+
rdf:type owl:Ontology ;
|
|
23
|
+
owl:imports <https://meta.linked.archi/core#>,
|
|
24
|
+
<https://meta.linked.archi/arch-decision#> ;
|
|
25
|
+
cc:license "http://creativecommons.org/licenses/by/4.0/" ;
|
|
26
|
+
vann:preferredNamespaceUri "https://meta.linked.archi/arch-decision-shapes#" ;
|
|
27
|
+
vann:preferredNamespacePrefix "adsh" ;
|
|
28
|
+
dcterms:creator "Kalin Maldzhanski"^^xsd:string ;
|
|
29
|
+
dcterms:title "Linked.Archi Architecture Decision SHACL Shapes"@en ;
|
|
30
|
+
dcterms:description '''SHACL shapes for validating architecture decision records built with the
|
|
31
|
+
Linked.Archi architecture decision extension. Closes the decision state vocabulary,
|
|
32
|
+
enforces the structural contract between a Decision and its Issue, Options and Forces,
|
|
33
|
+
and checks the Quality Attribute Scenario structure on quality attribute requirements.
|
|
34
|
+
|
|
35
|
+
These shapes complement core-shapes: the core file already requires a label on every
|
|
36
|
+
arch:Element and a source and target on every arch:QualifiedRelationship, so those
|
|
37
|
+
constraints are not repeated here except where a tighter rule applies.'''@en ;
|
|
38
|
+
dcterms:created "2026-08-03"^^xsd:date ;
|
|
39
|
+
dcterms:modified "2026-08-20"^^xsd:date ;
|
|
40
|
+
dcterms:publisher "Linked.Archi"@en,
|
|
41
|
+
<https://linked.archi> ;
|
|
42
|
+
dcterms:source <https://adr.github.io/madr/>,
|
|
43
|
+
<https://resources.sei.cmu.edu/library/asset-view.cfm?assetID=8147> ;
|
|
44
|
+
prov:wasDerivedFrom <https://adr.github.io/madr/>,
|
|
45
|
+
<https://resources.sei.cmu.edu/library/asset-view.cfm?assetID=8147> ;
|
|
46
|
+
rdfs:seeAlso <https://meta.linked.archi/arch-decision#> ;
|
|
47
|
+
bibo:status "draft" ;
|
|
48
|
+
owl:versionIRI <https://meta.linked.archi/arch-decision-shapes/0.2.0#> ;
|
|
49
|
+
owl:versionInfo "0.2.0"@en ;
|
|
50
|
+
owl:priorVersion <https://meta.linked.archi/arch-decision-shapes/0.1.0#> ;
|
|
51
|
+
skos:editorialNote '''Severity conventions. sh:Violation marks a structural error — the record
|
|
52
|
+
is malformed and queries over it will produce wrong answers. sh:Warning marks an
|
|
53
|
+
incomplete record that is still well-formed. Engines that ignore sh:severity treat both
|
|
54
|
+
as failures, so keep this in mind when validating partially populated models.
|
|
55
|
+
|
|
56
|
+
Constructs deliberately avoided: sh:disjoint (not implemented by the RDF4J ShaclSail used
|
|
57
|
+
in this repository) and sh:sparql (requires advanced SHACL features that are not enabled).
|
|
58
|
+
Conditional rules are therefore expressed in SHACL Core as sh:or ( [ sh:not A ] [ B ] ),
|
|
59
|
+
which is the standard encoding of the implication A implies B.'''@en ,
|
|
60
|
+
|
|
61
|
+
'''2026-08-20 (0.2.0): AcceptedDecisionSelectionShape no longer fires on a decision
|
|
62
|
+
that records no candidate options. Reported by a Structurizr converter lifting an !adrs block:
|
|
63
|
+
a document-based ADR — MADR, Nygard, or Structurizr — is a title, a status, a date and a
|
|
64
|
+
Markdown body, so its options are prose under a heading and there is nothing in the graph for
|
|
65
|
+
ad:hasSelectedOption to point at. Every correctly converted accepted record reported one
|
|
66
|
+
violation with no action available, which trains people to ignore the shape set.
|
|
67
|
+
|
|
68
|
+
Two fixes were rejected. Lowering the severity to sh:Info drops the check for authored records
|
|
69
|
+
too, and sh:Info is reserved here for divergence that is genuinely ambiguous in the data.
|
|
70
|
+
Accepting ad:justificationDocument as an alternative to ad:hasSelectedOption under-fixes and
|
|
71
|
+
over-exempts at once: a body lifted into ad:justification as a literal still fails, while a
|
|
72
|
+
record that lists alternatives and names no outcome is silenced by attaching a design document.
|
|
73
|
+
Rationale is evidence of why; a selected option is what was decided. AcceptedDecisionRationaleShape
|
|
74
|
+
owns the first question and this shape owns the second.
|
|
75
|
+
|
|
76
|
+
Provenance of the lift is deliberately not part of the condition. A lift marker belongs in the
|
|
77
|
+
provenance graph (DD-15), where a validator run over the semantic graph cannot see it, so
|
|
78
|
+
conformance would depend on how a consumer assembled the graph; and gating a check on
|
|
79
|
+
"a converter produced this" lets any converter silence any check. A hand-authored record whose
|
|
80
|
+
options live in a linked document is the same artifact and is judged the same way. See DD-26.'''@en ;
|
|
81
|
+
.
|
|
82
|
+
|
|
83
|
+
#################################################################
|
|
84
|
+
# Decision — structural contract
|
|
85
|
+
#
|
|
86
|
+
# The state vocabulary is closed here rather than in OWL. See DD-23:
|
|
87
|
+
# ad:decisionState is a plain owl:ObjectProperty, so neither the
|
|
88
|
+
# cardinality nor the value set is asserted in the ontology. Under the
|
|
89
|
+
# Open World Assumption an owl:FunctionalProperty would entail
|
|
90
|
+
# owl:sameAs between two state individuals instead of reporting the
|
|
91
|
+
# error, and owl:oneOf would close the vocabulary against downstream
|
|
92
|
+
# extension. Both belong in a shape a consumer can replace.
|
|
93
|
+
#################################################################
|
|
94
|
+
|
|
95
|
+
:DecisionShape
|
|
96
|
+
a sh:NodeShape ;
|
|
97
|
+
sh:targetClass ad:Decision ;
|
|
98
|
+
skos:prefLabel "Decision Shape"@en ;
|
|
99
|
+
skos:definition "Validates the structural contract of an architecture decision record."@en ;
|
|
100
|
+
|
|
101
|
+
sh:property [
|
|
102
|
+
sh:path skos:prefLabel ;
|
|
103
|
+
sh:minCount 1 ;
|
|
104
|
+
sh:datatype rdf:langString ;
|
|
105
|
+
sh:message "Every Decision must have a language-tagged skos:prefLabel — conventionally the ADR title."@en ;
|
|
106
|
+
sh:severity sh:Violation ;
|
|
107
|
+
] ;
|
|
108
|
+
|
|
109
|
+
## DD-23 — at most one current state, drawn from the published vocabulary.
|
|
110
|
+
sh:property [
|
|
111
|
+
sh:path ad:decisionState ;
|
|
112
|
+
sh:maxCount 1 ;
|
|
113
|
+
sh:nodeKind sh:IRI ;
|
|
114
|
+
sh:in ( ad:Proposed ad:Accepted ad:Rejected ad:Deprecated ad:Superseded ) ;
|
|
115
|
+
sh:message '''A Decision must carry at most one ad:decisionState, and it must be one of
|
|
116
|
+
ad:Proposed, ad:Accepted, ad:Rejected, ad:Deprecated or ad:Superseded. Record transition
|
|
117
|
+
history with prov:wasRevisionOf or dcterms:modified — decisionState holds only the current value.'''@en ;
|
|
118
|
+
sh:severity sh:Violation ;
|
|
119
|
+
] ;
|
|
120
|
+
|
|
121
|
+
## One option is selected; the rest stay attached as alternatives.
|
|
122
|
+
sh:property [
|
|
123
|
+
sh:path ad:hasSelectedOption ;
|
|
124
|
+
sh:maxCount 1 ;
|
|
125
|
+
sh:class ad:Option ;
|
|
126
|
+
sh:message "A Decision selects at most one Option, and the value must be an ad:Option."@en ;
|
|
127
|
+
sh:severity sh:Violation ;
|
|
128
|
+
] ;
|
|
129
|
+
|
|
130
|
+
sh:property [
|
|
131
|
+
sh:path ad:hasAlternative ;
|
|
132
|
+
sh:class ad:Option ;
|
|
133
|
+
sh:message "Every value of ad:hasAlternative must be an ad:Option."@en ;
|
|
134
|
+
sh:severity sh:Violation ;
|
|
135
|
+
] ;
|
|
136
|
+
|
|
137
|
+
sh:property [
|
|
138
|
+
sh:path ad:hasIssue ;
|
|
139
|
+
sh:class ad:Issue ;
|
|
140
|
+
sh:message "Every value of ad:hasIssue must be an ad:Issue."@en ;
|
|
141
|
+
sh:severity sh:Violation ;
|
|
142
|
+
] ;
|
|
143
|
+
|
|
144
|
+
sh:property [
|
|
145
|
+
sh:path ad:replaces ;
|
|
146
|
+
sh:class ad:Decision ;
|
|
147
|
+
sh:message "ad:replaces must point to another Decision."@en ;
|
|
148
|
+
sh:severity sh:Violation ;
|
|
149
|
+
] ;
|
|
150
|
+
|
|
151
|
+
sh:property [
|
|
152
|
+
sh:path ad:supersededBy ;
|
|
153
|
+
sh:class ad:Decision ;
|
|
154
|
+
sh:message "ad:supersededBy must point to another Decision."@en ;
|
|
155
|
+
sh:severity sh:Violation ;
|
|
156
|
+
] ;
|
|
157
|
+
|
|
158
|
+
## Force and concept links are IRIs, not literals. sh:class is deliberately
|
|
159
|
+
## not used: ad:Force and arch:ModelConcept are abstract parents whose
|
|
160
|
+
## instances are typed with a subclass, and the concept side is typed by the
|
|
161
|
+
## modelling language (am:ApplicationComponent, c4:Container, ...) rather
|
|
162
|
+
## than by the core ontology.
|
|
163
|
+
sh:property [
|
|
164
|
+
sh:path ad:influencedByForce ;
|
|
165
|
+
sh:nodeKind sh:IRI ;
|
|
166
|
+
sh:message "ad:influencedByForce must reference a Force by IRI, not a literal."@en ;
|
|
167
|
+
sh:severity sh:Violation ;
|
|
168
|
+
] ;
|
|
169
|
+
|
|
170
|
+
sh:property [
|
|
171
|
+
sh:path ad:relatedConcept ;
|
|
172
|
+
sh:nodeKind sh:IRI ;
|
|
173
|
+
sh:message "ad:relatedConcept must reference a ModelConcept by IRI, not a literal."@en ;
|
|
174
|
+
sh:severity sh:Violation ;
|
|
175
|
+
] ;
|
|
176
|
+
|
|
177
|
+
sh:property [
|
|
178
|
+
sh:path ad:pertainsTo ;
|
|
179
|
+
sh:nodeKind sh:IRI ;
|
|
180
|
+
sh:message "ad:pertainsTo must reference an arch:Consideration by IRI, not a literal."@en ;
|
|
181
|
+
sh:severity sh:Violation ;
|
|
182
|
+
] ;
|
|
183
|
+
|
|
184
|
+
## ad:justification is rationale prose. The ontology declares rdfs:range
|
|
185
|
+
## xsd:string, but language-tagged rationale is both common and desirable,
|
|
186
|
+
## so the shape checks only that the value is a literal.
|
|
187
|
+
sh:property [
|
|
188
|
+
sh:path ad:justification ;
|
|
189
|
+
sh:nodeKind sh:Literal ;
|
|
190
|
+
sh:message "ad:justification must be a literal — use ad:justificationDocument to point at an external document."@en ;
|
|
191
|
+
sh:severity sh:Violation ;
|
|
192
|
+
] ;
|
|
193
|
+
.
|
|
194
|
+
|
|
195
|
+
#################################################################
|
|
196
|
+
# Decision state implications
|
|
197
|
+
#
|
|
198
|
+
# State is what separates an open deliberation from a settled record,
|
|
199
|
+
# so the obligations differ by state. A Proposed decision may have
|
|
200
|
+
# several live options and no selection; an Accepted one may not.
|
|
201
|
+
#################################################################
|
|
202
|
+
|
|
203
|
+
:AcceptedDecisionSelectionShape
|
|
204
|
+
a sh:NodeShape ;
|
|
205
|
+
sh:targetClass ad:Decision ;
|
|
206
|
+
skos:prefLabel "Accepted Decision Selection Shape"@en ;
|
|
207
|
+
skos:definition '''Requires that a Decision in state ad:Accepted which records candidate
|
|
208
|
+
options names the one it selected. While a decision is Proposed the options are still
|
|
209
|
+
candidates, so no selection is required; once accepted, a record that lists candidates and
|
|
210
|
+
no outcome does not say what was decided.
|
|
211
|
+
|
|
212
|
+
A record that lists no candidates at all is out of scope. That is what a document-based ADR
|
|
213
|
+
lifted from MADR, Nygard or a Structurizr !adrs block looks like: the options are prose inside
|
|
214
|
+
the body, and there is nothing in the graph to point ad:hasSelectedOption at. The absence is
|
|
215
|
+
then silence about whether options were weighed, not a claim that none were, and a converter
|
|
216
|
+
minting an ad:Option to satisfy this shape would be inventing model content. Rationale for such
|
|
217
|
+
a record is still required, by AcceptedDecisionRationaleShape.'''@en ;
|
|
218
|
+
sh:or (
|
|
219
|
+
[ sh:not [ sh:property [ sh:path ad:decisionState ; sh:hasValue ad:Accepted ] ] ]
|
|
220
|
+
[ sh:property [ sh:path ad:hasSelectedOption ; sh:minCount 1 ] ]
|
|
221
|
+
[ sh:property [ sh:path ad:hasAlternative ; sh:maxCount 0 ] ]
|
|
222
|
+
) ;
|
|
223
|
+
sh:message '''A Decision in state ad:Accepted that records candidate options with
|
|
224
|
+
ad:hasAlternative must name the chosen one with ad:hasSelectedOption.'''@en ;
|
|
225
|
+
sh:severity sh:Violation ;
|
|
226
|
+
.
|
|
227
|
+
|
|
228
|
+
:AcceptedDecisionRationaleShape
|
|
229
|
+
a sh:NodeShape ;
|
|
230
|
+
sh:targetClass ad:Decision ;
|
|
231
|
+
skos:prefLabel "Accepted Decision Rationale Shape"@en ;
|
|
232
|
+
skos:definition '''Requires that a Decision in state ad:Accepted records why the choice was
|
|
233
|
+
made, either as rationale prose (ad:justification) or as a reference to an external
|
|
234
|
+
document (ad:justificationDocument). A binding decision without recorded rationale is the
|
|
235
|
+
document-based ADR problem this extension exists to solve.'''@en ;
|
|
236
|
+
sh:or (
|
|
237
|
+
[ sh:not [ sh:property [ sh:path ad:decisionState ; sh:hasValue ad:Accepted ] ] ]
|
|
238
|
+
[ sh:property [ sh:path ad:justification ; sh:minCount 1 ] ]
|
|
239
|
+
[ sh:property [ sh:path ad:justificationDocument ; sh:minCount 1 ] ]
|
|
240
|
+
) ;
|
|
241
|
+
sh:message "A Decision in state ad:Accepted must record its rationale with ad:justification or ad:justificationDocument."@en ;
|
|
242
|
+
sh:severity sh:Violation ;
|
|
243
|
+
.
|
|
244
|
+
|
|
245
|
+
:SupersededDecisionShape
|
|
246
|
+
a sh:NodeShape ;
|
|
247
|
+
sh:targetClass ad:Decision ;
|
|
248
|
+
skos:prefLabel "Superseded Decision Shape"@en ;
|
|
249
|
+
skos:definition '''Requires that a Decision in state ad:Superseded names its replacement.
|
|
250
|
+
Superseded means "replaced by a later decision" — without the link, the state asserts that
|
|
251
|
+
a replacement exists but leaves it unfindable. Use ad:Deprecated for a decision that no
|
|
252
|
+
longer applies and has no replacement.'''@en ;
|
|
253
|
+
sh:or (
|
|
254
|
+
[ sh:not [ sh:property [ sh:path ad:decisionState ; sh:hasValue ad:Superseded ] ] ]
|
|
255
|
+
[ sh:property [ sh:path ad:supersededBy ; sh:minCount 1 ] ]
|
|
256
|
+
) ;
|
|
257
|
+
sh:message "A Decision in state ad:Superseded must name its replacement with ad:supersededBy, or use ad:Deprecated instead."@en ;
|
|
258
|
+
sh:severity sh:Violation ;
|
|
259
|
+
.
|
|
260
|
+
|
|
261
|
+
#################################################################
|
|
262
|
+
# Decision State — the published state individuals
|
|
263
|
+
#################################################################
|
|
264
|
+
|
|
265
|
+
:DecisionStateShape
|
|
266
|
+
a sh:NodeShape ;
|
|
267
|
+
sh:targetClass ad:DecisionState ;
|
|
268
|
+
skos:prefLabel "Decision State Shape"@en ;
|
|
269
|
+
skos:definition '''Validates the state individuals themselves. A state is a dereferenceable
|
|
270
|
+
IRI carrying its own labels and definition — that is the whole reason for preferring named
|
|
271
|
+
individuals over string literals (DD-23), so an undocumented state individual defeats the
|
|
272
|
+
pattern.'''@en ;
|
|
273
|
+
|
|
274
|
+
sh:property [
|
|
275
|
+
sh:path skos:prefLabel ;
|
|
276
|
+
sh:minCount 1 ;
|
|
277
|
+
sh:datatype rdf:langString ;
|
|
278
|
+
sh:message "Every DecisionState individual must have a language-tagged skos:prefLabel."@en ;
|
|
279
|
+
sh:severity sh:Violation ;
|
|
280
|
+
] ;
|
|
281
|
+
|
|
282
|
+
sh:property [
|
|
283
|
+
sh:path skos:definition ;
|
|
284
|
+
sh:minCount 1 ;
|
|
285
|
+
sh:datatype rdf:langString ;
|
|
286
|
+
sh:message "Every DecisionState individual must have a skos:definition explaining what the state means."@en ;
|
|
287
|
+
sh:severity sh:Violation ;
|
|
288
|
+
] ;
|
|
289
|
+
.
|
|
290
|
+
|
|
291
|
+
#################################################################
|
|
292
|
+
# Issue — the problem that triggers a decision
|
|
293
|
+
#################################################################
|
|
294
|
+
|
|
295
|
+
:IssueShape
|
|
296
|
+
a sh:NodeShape ;
|
|
297
|
+
sh:targetClass ad:Issue ;
|
|
298
|
+
skos:prefLabel "Issue Shape"@en ;
|
|
299
|
+
skos:definition "Validates that an Issue states its problem and identifies who owns it."@en ;
|
|
300
|
+
|
|
301
|
+
sh:property [
|
|
302
|
+
sh:path skos:prefLabel ;
|
|
303
|
+
sh:minCount 1 ;
|
|
304
|
+
sh:datatype rdf:langString ;
|
|
305
|
+
sh:message "Every Issue must have a language-tagged skos:prefLabel."@en ;
|
|
306
|
+
sh:severity sh:Violation ;
|
|
307
|
+
] ;
|
|
308
|
+
|
|
309
|
+
sh:property [
|
|
310
|
+
sh:path ad:problemStatement ;
|
|
311
|
+
sh:minCount 1 ;
|
|
312
|
+
sh:nodeKind sh:Literal ;
|
|
313
|
+
sh:message "An Issue should carry an ad:problemStatement describing the problem to be resolved."@en ;
|
|
314
|
+
sh:severity sh:Warning ;
|
|
315
|
+
] ;
|
|
316
|
+
|
|
317
|
+
sh:property [
|
|
318
|
+
sh:path ad:issueOwner ;
|
|
319
|
+
sh:maxCount 1 ;
|
|
320
|
+
sh:class arch:Stakeholder ;
|
|
321
|
+
sh:message "ad:issueOwner names at most one responsible Stakeholder."@en ;
|
|
322
|
+
sh:severity sh:Violation ;
|
|
323
|
+
] ;
|
|
324
|
+
|
|
325
|
+
sh:property [
|
|
326
|
+
sh:path ad:influencingForce ;
|
|
327
|
+
sh:nodeKind sh:IRI ;
|
|
328
|
+
sh:message "ad:influencingForce must reference a Force by IRI, not a literal."@en ;
|
|
329
|
+
sh:severity sh:Violation ;
|
|
330
|
+
] ;
|
|
331
|
+
|
|
332
|
+
sh:property [
|
|
333
|
+
sh:path ad:issueCausedBy ;
|
|
334
|
+
sh:nodeKind sh:IRI ;
|
|
335
|
+
sh:message "ad:issueCausedBy must reference an Element by IRI, not a literal."@en ;
|
|
336
|
+
sh:severity sh:Violation ;
|
|
337
|
+
] ;
|
|
338
|
+
|
|
339
|
+
sh:property [
|
|
340
|
+
sh:path ad:issueReportedBy ;
|
|
341
|
+
sh:nodeKind sh:IRI ;
|
|
342
|
+
sh:message "ad:issueReportedBy must reference an Element by IRI, not a literal."@en ;
|
|
343
|
+
sh:severity sh:Violation ;
|
|
344
|
+
] ;
|
|
345
|
+
.
|
|
346
|
+
|
|
347
|
+
#################################################################
|
|
348
|
+
# Option — a candidate solution
|
|
349
|
+
#################################################################
|
|
350
|
+
|
|
351
|
+
:OptionShape
|
|
352
|
+
a sh:NodeShape ;
|
|
353
|
+
sh:targetClass ad:Option ;
|
|
354
|
+
skos:prefLabel "Option Shape"@en ;
|
|
355
|
+
skos:definition '''Validates that an Option is labelled and connected to the forces it is
|
|
356
|
+
meant to satisfy. An option that addresses no force cannot be compared against its
|
|
357
|
+
alternatives, which is the point of recording options at all.'''@en ;
|
|
358
|
+
|
|
359
|
+
sh:property [
|
|
360
|
+
sh:path skos:prefLabel ;
|
|
361
|
+
sh:minCount 1 ;
|
|
362
|
+
sh:datatype rdf:langString ;
|
|
363
|
+
sh:message "Every Option must have a language-tagged skos:prefLabel."@en ;
|
|
364
|
+
sh:severity sh:Violation ;
|
|
365
|
+
] ;
|
|
366
|
+
|
|
367
|
+
sh:property [
|
|
368
|
+
sh:path ad:addressesForce ;
|
|
369
|
+
sh:minCount 1 ;
|
|
370
|
+
sh:nodeKind sh:IRI ;
|
|
371
|
+
sh:message "An Option should address at least one Force, otherwise it cannot be compared with the alternatives."@en ;
|
|
372
|
+
sh:severity sh:Warning ;
|
|
373
|
+
] ;
|
|
374
|
+
|
|
375
|
+
sh:property [
|
|
376
|
+
sh:path ad:includesConcept ;
|
|
377
|
+
sh:nodeKind sh:IRI ;
|
|
378
|
+
sh:message "ad:includesConcept must reference a ModelConcept by IRI, not a literal."@en ;
|
|
379
|
+
sh:severity sh:Violation ;
|
|
380
|
+
] ;
|
|
381
|
+
|
|
382
|
+
sh:property [
|
|
383
|
+
sh:path ad:affectsConcept ;
|
|
384
|
+
sh:nodeKind sh:IRI ;
|
|
385
|
+
sh:message "ad:affectsConcept and its sub-properties must reference a ModelConcept by IRI, not a literal."@en ;
|
|
386
|
+
sh:severity sh:Violation ;
|
|
387
|
+
] ;
|
|
388
|
+
|
|
389
|
+
sh:property [
|
|
390
|
+
sh:path ad:hasRisk ;
|
|
391
|
+
sh:nodeKind sh:IRI ;
|
|
392
|
+
sh:message "ad:hasRisk must reference the risk by IRI so it can carry its own description and measures."@en ;
|
|
393
|
+
sh:severity sh:Violation ;
|
|
394
|
+
] ;
|
|
395
|
+
.
|
|
396
|
+
|
|
397
|
+
#################################################################
|
|
398
|
+
# Force — anything that influences a decision
|
|
399
|
+
#################################################################
|
|
400
|
+
|
|
401
|
+
:ForceShape
|
|
402
|
+
a sh:NodeShape ;
|
|
403
|
+
sh:targetClass ad:Force ;
|
|
404
|
+
skos:prefLabel "Force Shape"@en ;
|
|
405
|
+
skos:definition "Validates that a Force is labelled and that its relations point at IRIs."@en ;
|
|
406
|
+
|
|
407
|
+
sh:property [
|
|
408
|
+
sh:path skos:prefLabel ;
|
|
409
|
+
sh:minCount 1 ;
|
|
410
|
+
sh:datatype rdf:langString ;
|
|
411
|
+
sh:message "Every Force must have a language-tagged skos:prefLabel."@en ;
|
|
412
|
+
sh:severity sh:Violation ;
|
|
413
|
+
] ;
|
|
414
|
+
|
|
415
|
+
sh:property [
|
|
416
|
+
sh:path ad:supportedByStakeholder ;
|
|
417
|
+
sh:class arch:Stakeholder ;
|
|
418
|
+
sh:message "ad:supportedByStakeholder must point to an arch:Stakeholder."@en ;
|
|
419
|
+
sh:severity sh:Violation ;
|
|
420
|
+
] ;
|
|
421
|
+
|
|
422
|
+
sh:property [
|
|
423
|
+
sh:path ad:opposingForce ;
|
|
424
|
+
sh:nodeKind sh:IRI ;
|
|
425
|
+
sh:message "ad:opposingForce must reference another Force by IRI."@en ;
|
|
426
|
+
sh:severity sh:Violation ;
|
|
427
|
+
] ;
|
|
428
|
+
|
|
429
|
+
sh:property [
|
|
430
|
+
sh:path ad:complementaryForce ;
|
|
431
|
+
sh:nodeKind sh:IRI ;
|
|
432
|
+
sh:message "ad:complementaryForce must reference another Force by IRI."@en ;
|
|
433
|
+
sh:severity sh:Violation ;
|
|
434
|
+
] ;
|
|
435
|
+
.
|
|
436
|
+
|
|
437
|
+
:RequirementShape
|
|
438
|
+
a sh:NodeShape ;
|
|
439
|
+
sh:targetClass ad:Requirement ;
|
|
440
|
+
skos:prefLabel "Requirement Shape"@en ;
|
|
441
|
+
skos:definition '''Validates the measures on a Requirement. Importance and difficulty are
|
|
442
|
+
single-valued: a requirement carrying two importance measures cannot be ranked against
|
|
443
|
+
the others when trading off options.'''@en ;
|
|
444
|
+
|
|
445
|
+
sh:property [
|
|
446
|
+
sh:path ad:hasImportanceMeasure ;
|
|
447
|
+
sh:maxCount 1 ;
|
|
448
|
+
sh:message "A Requirement carries at most one ad:hasImportanceMeasure."@en ;
|
|
449
|
+
sh:severity sh:Violation ;
|
|
450
|
+
] ;
|
|
451
|
+
|
|
452
|
+
sh:property [
|
|
453
|
+
sh:path ad:hasDifficultyMeasure ;
|
|
454
|
+
sh:maxCount 1 ;
|
|
455
|
+
sh:message "A Requirement carries at most one ad:hasDifficultyMeasure."@en ;
|
|
456
|
+
sh:severity sh:Violation ;
|
|
457
|
+
] ;
|
|
458
|
+
|
|
459
|
+
sh:property [
|
|
460
|
+
sh:path ad:requestedByStakeholder ;
|
|
461
|
+
sh:class arch:Stakeholder ;
|
|
462
|
+
sh:message "ad:requestedByStakeholder must point to an arch:Stakeholder."@en ;
|
|
463
|
+
sh:severity sh:Violation ;
|
|
464
|
+
] ;
|
|
465
|
+
.
|
|
466
|
+
|
|
467
|
+
#################################################################
|
|
468
|
+
# Quality Attribute Requirement — the QAS six-tuple
|
|
469
|
+
#
|
|
470
|
+
# Source of Stimulus, Stimulus, Environment, Artifact, Response,
|
|
471
|
+
# Response Measure (Bass, Clements, Kazman). A scenario missing a
|
|
472
|
+
# response measure is not testable, which is the usual failure mode.
|
|
473
|
+
#################################################################
|
|
474
|
+
|
|
475
|
+
:QualityAttributeRequirementShape
|
|
476
|
+
a sh:NodeShape ;
|
|
477
|
+
sh:targetClass ad:QualityAttributeRequirement ;
|
|
478
|
+
skos:prefLabel "Quality Attribute Requirement Shape"@en ;
|
|
479
|
+
skos:definition '''Validates that a quality attribute requirement names the quality attribute
|
|
480
|
+
it constrains and expresses it as a complete Quality Attribute Scenario.'''@en ;
|
|
481
|
+
|
|
482
|
+
sh:property [
|
|
483
|
+
sh:path ad:onQualityAttribute ;
|
|
484
|
+
sh:minCount 1 ;
|
|
485
|
+
sh:nodeKind sh:IRI ;
|
|
486
|
+
sh:message '''A QualityAttributeRequirement must name the quality attribute it constrains
|
|
487
|
+
with ad:onQualityAttribute — for example an ISO 25010 or ML quality attribute individual.'''@en ;
|
|
488
|
+
sh:severity sh:Violation ;
|
|
489
|
+
] ;
|
|
490
|
+
|
|
491
|
+
sh:property [
|
|
492
|
+
sh:path ad:qasSourceOfStimulus ;
|
|
493
|
+
sh:minCount 1 ;
|
|
494
|
+
sh:message "A complete Quality Attribute Scenario names the source of the stimulus."@en ;
|
|
495
|
+
sh:severity sh:Warning ;
|
|
496
|
+
] ;
|
|
497
|
+
|
|
498
|
+
sh:property [
|
|
499
|
+
sh:path ad:qasStimulus ;
|
|
500
|
+
sh:minCount 1 ;
|
|
501
|
+
sh:message "A complete Quality Attribute Scenario names the stimulus."@en ;
|
|
502
|
+
sh:severity sh:Warning ;
|
|
503
|
+
] ;
|
|
504
|
+
|
|
505
|
+
sh:property [
|
|
506
|
+
sh:path ad:qasEnvironment ;
|
|
507
|
+
sh:minCount 1 ;
|
|
508
|
+
sh:message "A complete Quality Attribute Scenario names the environment the stimulus occurs in."@en ;
|
|
509
|
+
sh:severity sh:Warning ;
|
|
510
|
+
] ;
|
|
511
|
+
|
|
512
|
+
sh:property [
|
|
513
|
+
sh:path ad:qasArtifact ;
|
|
514
|
+
sh:minCount 1 ;
|
|
515
|
+
sh:message "A complete Quality Attribute Scenario names the artifact that is stimulated."@en ;
|
|
516
|
+
sh:severity sh:Warning ;
|
|
517
|
+
] ;
|
|
518
|
+
|
|
519
|
+
sh:property [
|
|
520
|
+
sh:path ad:qasResponse ;
|
|
521
|
+
sh:minCount 1 ;
|
|
522
|
+
sh:message "A complete Quality Attribute Scenario names the response."@en ;
|
|
523
|
+
sh:severity sh:Warning ;
|
|
524
|
+
] ;
|
|
525
|
+
|
|
526
|
+
sh:property [
|
|
527
|
+
sh:path ad:qasResponseMeasure ;
|
|
528
|
+
sh:minCount 1 ;
|
|
529
|
+
sh:message "A Quality Attribute Scenario without a response measure is not testable — add ad:qasResponseMeasure."@en ;
|
|
530
|
+
sh:severity sh:Warning ;
|
|
531
|
+
] ;
|
|
532
|
+
.
|
|
533
|
+
|
|
534
|
+
#################################################################
|
|
535
|
+
# Force Influence — qualified Force-to-Decision relationship
|
|
536
|
+
#
|
|
537
|
+
# core-shapes already requires exactly one arch:source and one
|
|
538
|
+
# arch:target on every arch:QualifiedRelationship. Only the
|
|
539
|
+
# influence-specific measure is added here.
|
|
540
|
+
#################################################################
|
|
541
|
+
|
|
542
|
+
:ForceInfluenceShape
|
|
543
|
+
a sh:NodeShape ;
|
|
544
|
+
sh:targetClass ad:ForceInfluence ;
|
|
545
|
+
skos:prefLabel "Force Influence Shape"@en ;
|
|
546
|
+
skos:definition '''Validates the qualified relationship that records how strongly a Force
|
|
547
|
+
influenced a Decision.'''@en ;
|
|
548
|
+
|
|
549
|
+
sh:property [
|
|
550
|
+
sh:path ad:hasInfluenceMeasure ;
|
|
551
|
+
sh:maxCount 1 ;
|
|
552
|
+
sh:message "A ForceInfluence carries at most one ad:hasInfluenceMeasure."@en ;
|
|
553
|
+
sh:severity sh:Violation ;
|
|
554
|
+
] ;
|
|
555
|
+
.
|
|
556
|
+
|
|
557
|
+
#################################################################
|
|
558
|
+
# Iteration — ADD-style grouping of decisions
|
|
559
|
+
#################################################################
|
|
560
|
+
|
|
561
|
+
:IterationShape
|
|
562
|
+
a sh:NodeShape ;
|
|
563
|
+
sh:targetClass ad:Iteration ;
|
|
564
|
+
skos:prefLabel "Iteration Shape"@en ;
|
|
565
|
+
skos:definition "Validates that an ADD iteration is labelled and states its goal."@en ;
|
|
566
|
+
|
|
567
|
+
sh:property [
|
|
568
|
+
sh:path skos:prefLabel ;
|
|
569
|
+
sh:minCount 1 ;
|
|
570
|
+
sh:datatype rdf:langString ;
|
|
571
|
+
sh:message "Every Iteration must have a language-tagged skos:prefLabel."@en ;
|
|
572
|
+
sh:severity sh:Violation ;
|
|
573
|
+
] ;
|
|
574
|
+
|
|
575
|
+
sh:property [
|
|
576
|
+
sh:path ad:hasDecisionGoal ;
|
|
577
|
+
sh:minCount 1 ;
|
|
578
|
+
sh:nodeKind sh:IRI ;
|
|
579
|
+
sh:message "An Iteration should state its goal with ad:hasDecisionGoal."@en ;
|
|
580
|
+
sh:severity sh:Warning ;
|
|
581
|
+
] ;
|
|
582
|
+
.
|