@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,915 @@
|
|
|
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 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 vann: <http://purl.org/vocab/vann/> .
|
|
9
|
+
@prefix cc: <http://creativecommons.org/ns#> .
|
|
10
|
+
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
|
11
|
+
|
|
12
|
+
@prefix arch: <https://meta.linked.archi/core#> .
|
|
13
|
+
@prefix skosxl: <http://www.w3.org/2008/05/skos-xl#> .
|
|
14
|
+
@prefix schema: <http://schema.org/> .
|
|
15
|
+
@prefix : <https://meta.linked.archi/core-shapes#> .
|
|
16
|
+
|
|
17
|
+
#################################################################
|
|
18
|
+
# Ontology Declaration
|
|
19
|
+
#################################################################
|
|
20
|
+
|
|
21
|
+
<https://meta.linked.archi/core-shapes#>
|
|
22
|
+
rdf:type owl:Ontology ;
|
|
23
|
+
owl:imports <https://meta.linked.archi/core#> ;
|
|
24
|
+
cc:license "http://creativecommons.org/licenses/by/4.0/" ;
|
|
25
|
+
vann:preferredNamespaceUri "https://meta.linked.archi/core-shapes#" ;
|
|
26
|
+
vann:preferredNamespacePrefix "archsh" ;
|
|
27
|
+
dcterms:creator "Kalin Maldzhanski"^^xsd:string ;
|
|
28
|
+
dcterms:title "Linked.Archi Core SHACL Shapes"@en ;
|
|
29
|
+
dcterms:description '''Base SHACL shapes for the Linked.Archi core ontology. These shapes
|
|
30
|
+
apply to all metamodels that extend the core. Metamodel-specific shapes (e.g., ArchiMate,
|
|
31
|
+
C4, Backstage) import this file and add type-specific constraints.
|
|
32
|
+
|
|
33
|
+
Label requirements are deliberately not here. arch:Element means "a node in a model", and
|
|
34
|
+
several notations have nodes that are legitimately unnamed — BPMN gateways and events,
|
|
35
|
+
ArchiMate junctions — so each metamodel states its own naming rule in its own shapes. See the
|
|
36
|
+
labelling contract in this file and DD-24.
|
|
37
|
+
|
|
38
|
+
Viewpoint conformance is here too: a View declares one viewpoint, its type and contents
|
|
39
|
+
match what that viewpoint admits, and a viewpoint says what it admits. The rules read
|
|
40
|
+
the viewpoint definitions from the loaded graph (arch:includesConcept, arch:viewType),
|
|
41
|
+
so they work for any viewpoint — a language's catalogue, a framework's, or your own.'''@en ;
|
|
42
|
+
skos:editorialNote '''Contains no label shape by design. See "WHERE THE LABEL RULE LIVES"
|
|
43
|
+
below: requiring skos:prefLabel on every arch:Element is not a sound cross-notation rule,
|
|
44
|
+
because routing and connector constructs are genuine elements that notations permit to be
|
|
45
|
+
unnamed. Naming rules are owned by each metamodel's shapes graph.'''@en ;
|
|
46
|
+
dcterms:created "2019-03-17"^^xsd:date ;
|
|
47
|
+
dcterms:modified "2026-11-27"^^xsd:date ;
|
|
48
|
+
dcterms:publisher "Linked.Archi"@en,
|
|
49
|
+
<https://linked.archi> ;
|
|
50
|
+
bibo:status "draft" ;
|
|
51
|
+
owl:versionIRI <https://meta.linked.archi/core-shapes/0.5.0#> ;
|
|
52
|
+
owl:versionInfo "0.5.0"@en ;
|
|
53
|
+
owl:priorVersion <https://meta.linked.archi/core-shapes/0.4.0#> ;
|
|
54
|
+
skos:historyNote '''0.2.0 — added archsh:InModelShape and archsh:InViewShape for the
|
|
55
|
+
membership properties introduced in core 0.4.0. Neither shape requires the property; both bound it.'''@en,
|
|
56
|
+
'''0.3.0 (2026-11-06) — the five viewpoint conformance shapes moved here
|
|
57
|
+
from the ArchiMate 3.2 and 4.0 viewpoint shapes, which had the same rules twice: a model that loads
|
|
58
|
+
both languages had every finding reported twice. They use no ArchiMate term, so core states them
|
|
59
|
+
once, under the 4.0 names (3.2 called two of them ViewMustDeclareViewpointShape and
|
|
60
|
+
ElementConformanceShape). The ArchiMate viewpoint shapes now import this file and add nothing.'''@en,
|
|
61
|
+
'''0.4.0 (2026-11-08) — names per presentation context (core 0.5.0's
|
|
62
|
+
arch:inPresentationContext on SKOS-XL labels): a name has one language-tagged literal form and is for at
|
|
63
|
+
most one context; a name for one context is a skosxl:altLabel, not a skosxl:prefLabel; an element has at
|
|
64
|
+
most one name per context and language; and, a warning, a name's literal form is also the element's
|
|
65
|
+
skos:altLabel, so that tools reading plain SKOS see it. Pictures likewise (arch:prefVisNotation,
|
|
66
|
+
arch:altVisNotation): a picture has at most one schema:contentUrl and one context, one for a context has
|
|
67
|
+
its schema:contentUrl, a canonical picture is for no single context, and an element has at most one
|
|
68
|
+
picture per context.'''@en,
|
|
69
|
+
'''0.5.0 (2026-11-27) — multiplicity on a relationship's ends (core 0.8.0's
|
|
70
|
+
arch:sourceMultiplicity and arch:targetMultiplicity, and a language's subproperties of them): a value is
|
|
71
|
+
n, *, n..m or n..*, in n..m m is not less than n, and an end has at most one. A language narrows these in
|
|
72
|
+
its own shapes. See DD-46.'''@en ;
|
|
73
|
+
sh:declare [
|
|
74
|
+
sh:prefix "arch" ;
|
|
75
|
+
sh:namespace "https://meta.linked.archi/core#"^^xsd:anyURI ;
|
|
76
|
+
] , [
|
|
77
|
+
sh:prefix "rdf" ;
|
|
78
|
+
sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ;
|
|
79
|
+
] , [
|
|
80
|
+
sh:prefix "rdfs" ;
|
|
81
|
+
sh:namespace "http://www.w3.org/2000/01/rdf-schema#"^^xsd:anyURI ;
|
|
82
|
+
] , [
|
|
83
|
+
sh:prefix "skos" ;
|
|
84
|
+
sh:namespace "http://www.w3.org/2004/02/skos/core#"^^xsd:anyURI ;
|
|
85
|
+
] , [
|
|
86
|
+
sh:prefix "skosxl" ;
|
|
87
|
+
sh:namespace "http://www.w3.org/2008/05/skos-xl#"^^xsd:anyURI ;
|
|
88
|
+
] , [
|
|
89
|
+
sh:prefix "schema" ;
|
|
90
|
+
sh:namespace "http://schema.org/"^^xsd:anyURI ;
|
|
91
|
+
] , [
|
|
92
|
+
sh:prefix "xsd" ;
|
|
93
|
+
sh:namespace "http://www.w3.org/2001/XMLSchema#"^^xsd:anyURI ;
|
|
94
|
+
] ;
|
|
95
|
+
.
|
|
96
|
+
|
|
97
|
+
#################################################################
|
|
98
|
+
# THE LABELLING CONTRACT — read this before writing a converter
|
|
99
|
+
#
|
|
100
|
+
# skos:prefLabel is the canonical human-readable label across every Linked.Archi
|
|
101
|
+
# metamodel. All tooling reads it: documentation generators, palette builders,
|
|
102
|
+
# deliverable templates, and SPARQL reporting. Two rules catch converter authors
|
|
103
|
+
# out:
|
|
104
|
+
#
|
|
105
|
+
# 1. The literal MUST carry a language tag. Notation shapes assert
|
|
106
|
+
# sh:datatype rdf:langString, so "Charge card" fails and "Charge card"@en
|
|
107
|
+
# passes. Use the source document's language where it declares one, "en"
|
|
108
|
+
# otherwise. This is the single most common cause of a converter's output
|
|
109
|
+
# failing validation while looking correct to the eye.
|
|
110
|
+
#
|
|
111
|
+
# 2. A notation's own name attribute does NOT satisfy the rule. Notation
|
|
112
|
+
# ontologies faithfully retain their source attributes — bpmn:name from BPMN
|
|
113
|
+
# XML, and the equivalent elsewhere — as plain xsd:string, for round-trip
|
|
114
|
+
# fidelity and because they also appear on classes that are not architecture
|
|
115
|
+
# elements. Those properties are serialization-level facts, not labels.
|
|
116
|
+
# Converters MUST emit both: the source attribute verbatim, and a
|
|
117
|
+
# language-tagged skos:prefLabel mirroring it.
|
|
118
|
+
#
|
|
119
|
+
# ex:t1 a bpmn:ServiceTask ;
|
|
120
|
+
# bpmn:name "Charge card" ; # source attribute, verbatim
|
|
121
|
+
# skos:prefLabel "Charge card"@en . # canonical label
|
|
122
|
+
#
|
|
123
|
+
# Do not try to bridge the two with rdfs:subPropertyOf. The entailed
|
|
124
|
+
# prefLabel inherits the plain xsd:string datatype, so a correctly named
|
|
125
|
+
# element still fails — the report merely moves from sh:MinCount to
|
|
126
|
+
# sh:Datatype, pointing away from the real problem.
|
|
127
|
+
#
|
|
128
|
+
# WHERE THE LABEL RULE LIVES — deliberately NOT here
|
|
129
|
+
#
|
|
130
|
+
# There is no core label shape. Requiring a label on every arch:Element is not a
|
|
131
|
+
# sound cross-notation rule, because arch:Element means "a node in a model" and
|
|
132
|
+
# several notations have nodes that are legitimately unnamed:
|
|
133
|
+
#
|
|
134
|
+
# BPMN Gateway and Event subtypes — routing and triggering constructs;
|
|
135
|
+
# the spec makes name optional and modellers leave it off.
|
|
136
|
+
# ArchiMate AndJunction / OrJunction — connectors drawn as dots or bars.
|
|
137
|
+
# BPMN TextAnnotation and Group carry bpmn:text, not a name at all.
|
|
138
|
+
# BPMNDI BPMNDiagram — the spec makes the diagram name optional, which is
|
|
139
|
+
# why there is no core arch:View label rule either.
|
|
140
|
+
#
|
|
141
|
+
# Those constructs are genuine elements: they have identity, they render on
|
|
142
|
+
# diagrams, they belong in element counts. Excluding them from arch:Element to
|
|
143
|
+
# satisfy a label rule would misstate the model. So each metamodel owns its own
|
|
144
|
+
# naming rule and states it in its own shapes, listing the classes that must be
|
|
145
|
+
# named with plain sh:targetClass:
|
|
146
|
+
#
|
|
147
|
+
# bpmnsh:RequiredNameShape BPMN 2.0.2
|
|
148
|
+
# bpmnls:*Shape BPMN Lite
|
|
149
|
+
# am4sh:ArchiMateElementShape ArchiMate 4.0
|
|
150
|
+
# amsh:ArchiMateElementShape ArchiMate 3.2
|
|
151
|
+
# c4sh: / bssh: / strsh: equivalents C4, Backstage, Structurizr
|
|
152
|
+
#
|
|
153
|
+
# A metamodel shape MUST NOT target arch:Element for this purpose. In a merged
|
|
154
|
+
# multi-notation graph that would apply one notation's naming policy to every
|
|
155
|
+
# other notation's elements. Target the metamodel's own classes — its abstract
|
|
156
|
+
# domain or layer roots are usually the concise way to do it.
|
|
157
|
+
#
|
|
158
|
+
# See doc/guide/design-decisions.md DD-24, and P-8 / P-9 in the same document.
|
|
159
|
+
#################################################################
|
|
160
|
+
|
|
161
|
+
#################################################################
|
|
162
|
+
# QualifiedRelationship — source + target contract
|
|
163
|
+
#################################################################
|
|
164
|
+
|
|
165
|
+
:QualifiedRelationshipShape
|
|
166
|
+
a sh:NodeShape ;
|
|
167
|
+
sh:targetClass arch:QualifiedRelationship ;
|
|
168
|
+
sh:property [
|
|
169
|
+
sh:path arch:source ;
|
|
170
|
+
sh:minCount 1 ;
|
|
171
|
+
sh:maxCount 1 ;
|
|
172
|
+
sh:class arch:ModelConcept ;
|
|
173
|
+
sh:message "Every QualifiedRelationship must have exactly one arch:source pointing to a ModelConcept."@en ;
|
|
174
|
+
] ;
|
|
175
|
+
sh:property [
|
|
176
|
+
sh:path arch:target ;
|
|
177
|
+
sh:minCount 1 ;
|
|
178
|
+
sh:maxCount 1 ;
|
|
179
|
+
sh:class arch:ModelConcept ;
|
|
180
|
+
sh:message "Every QualifiedRelationship must have exactly one arch:target pointing to a ModelConcept."@en ;
|
|
181
|
+
] ;
|
|
182
|
+
.
|
|
183
|
+
|
|
184
|
+
#################################################################
|
|
185
|
+
# QualifiedRelationship — multiplicity on each end
|
|
186
|
+
#
|
|
187
|
+
# The rules every language shares. The values of a language's own
|
|
188
|
+
# multiplicity properties are checked too: the SPARQL reads them as
|
|
189
|
+
# subproperties of the core's (rdfs:subPropertyOf*), from the metamodel
|
|
190
|
+
# loaded with the model, as the core questions do (DD-44). A language
|
|
191
|
+
# narrows the notation in its own shapes. What a multiplicity says about
|
|
192
|
+
# data conforming to the model is not checked here (DD-46).
|
|
193
|
+
#################################################################
|
|
194
|
+
|
|
195
|
+
:MultiplicityShape
|
|
196
|
+
a sh:NodeShape ;
|
|
197
|
+
skos:prefLabel "Relationship Multiplicity"@en ;
|
|
198
|
+
skos:definition '''A relationship's multiplicity on each end is n, a non-negative integer, *, n..m with m not
|
|
199
|
+
less than n, or n..*, a plain string; and an end has at most one.'''@en ;
|
|
200
|
+
sh:targetClass arch:QualifiedRelationship ;
|
|
201
|
+
sh:sparql [
|
|
202
|
+
sh:prefixes <https://meta.linked.archi/core-shapes#> ;
|
|
203
|
+
sh:message "A multiplicity is n, *, n..m or n..*, a plain string: {?value}."@en ;
|
|
204
|
+
sh:select """
|
|
205
|
+
SELECT DISTINCT $this ?path ?value WHERE {
|
|
206
|
+
{ ?path rdfs:subPropertyOf* arch:sourceMultiplicity }
|
|
207
|
+
UNION
|
|
208
|
+
{ ?path rdfs:subPropertyOf* arch:targetMultiplicity }
|
|
209
|
+
$this ?path ?value .
|
|
210
|
+
FILTER(!(isLiteral(?value) && DATATYPE(?value) = xsd:string
|
|
211
|
+
&& REGEX(STR(?value), "^([0-9]+|\\\\*|[0-9]+\\\\.\\\\.([0-9]+|\\\\*))$")))
|
|
212
|
+
}
|
|
213
|
+
""" ;
|
|
214
|
+
] , [
|
|
215
|
+
sh:prefixes <https://meta.linked.archi/core-shapes#> ;
|
|
216
|
+
sh:message "In a multiplicity n..m, m is not less than n: {?value}."@en ;
|
|
217
|
+
sh:select """
|
|
218
|
+
SELECT DISTINCT $this ?path ?value WHERE {
|
|
219
|
+
{ ?path rdfs:subPropertyOf* arch:sourceMultiplicity }
|
|
220
|
+
UNION
|
|
221
|
+
{ ?path rdfs:subPropertyOf* arch:targetMultiplicity }
|
|
222
|
+
$this ?path ?value .
|
|
223
|
+
FILTER(REGEX(STR(?value), "^[0-9]+\\\\.\\\\.[0-9]+$"))
|
|
224
|
+
FILTER(xsd:integer(STRAFTER(STR(?value), "..")) < xsd:integer(STRBEFORE(STR(?value), "..")))
|
|
225
|
+
}
|
|
226
|
+
""" ;
|
|
227
|
+
] , [
|
|
228
|
+
sh:prefixes <https://meta.linked.archi/core-shapes#> ;
|
|
229
|
+
sh:message "A relationship has at most one multiplicity on each end."@en ;
|
|
230
|
+
sh:select """
|
|
231
|
+
SELECT DISTINCT $this ?path WHERE {
|
|
232
|
+
{ BIND(arch:sourceMultiplicity AS ?path) } UNION { BIND(arch:targetMultiplicity AS ?path) }
|
|
233
|
+
?property rdfs:subPropertyOf* ?path .
|
|
234
|
+
?other rdfs:subPropertyOf* ?path .
|
|
235
|
+
$this ?property ?value ; ?other ?otherValue .
|
|
236
|
+
FILTER(!sameTerm(?value, ?otherValue))
|
|
237
|
+
}
|
|
238
|
+
""" ;
|
|
239
|
+
] ;
|
|
240
|
+
.
|
|
241
|
+
|
|
242
|
+
#################################################################
|
|
243
|
+
# Governance — conceptOwner must be a Stakeholder
|
|
244
|
+
#################################################################
|
|
245
|
+
|
|
246
|
+
:ConceptOwnerShape
|
|
247
|
+
a sh:NodeShape ;
|
|
248
|
+
sh:targetClass arch:ModelConcept ;
|
|
249
|
+
sh:property [
|
|
250
|
+
sh:path arch:conceptOwner ;
|
|
251
|
+
sh:maxCount 1 ;
|
|
252
|
+
sh:class arch:Stakeholder ;
|
|
253
|
+
sh:message "arch:conceptOwner must point to a Stakeholder."@en ;
|
|
254
|
+
] ;
|
|
255
|
+
.
|
|
256
|
+
#################################################################
|
|
257
|
+
# Governance — approval state
|
|
258
|
+
#
|
|
259
|
+
# Targets subjects of the property rather than a class, because
|
|
260
|
+
# arch:approvalState applies to model concepts and to whole models.
|
|
261
|
+
# Cardinality and range are asserted here rather than in OWL: per
|
|
262
|
+
# DD-23 an owl:FunctionalProperty would entail owl:sameAs between two
|
|
263
|
+
# state individuals instead of reporting the error, and owl:oneOf
|
|
264
|
+
# would close the vocabulary against downstream extension.
|
|
265
|
+
#
|
|
266
|
+
# The value set is intentionally NOT closed with sh:in — a consumer
|
|
267
|
+
# may add states its governance process needs (UnderReview,
|
|
268
|
+
# Delegated). Add sh:in in your own profile if you want it closed.
|
|
269
|
+
#################################################################
|
|
270
|
+
|
|
271
|
+
:ApprovalStateShape
|
|
272
|
+
a sh:NodeShape ;
|
|
273
|
+
sh:targetSubjectsOf arch:approvalState ;
|
|
274
|
+
sh:property [
|
|
275
|
+
sh:path arch:approvalState ;
|
|
276
|
+
sh:maxCount 1 ;
|
|
277
|
+
sh:nodeKind sh:IRI ;
|
|
278
|
+
sh:class arch:ApprovalState ;
|
|
279
|
+
sh:message '''A subject carries at most one arch:approvalState, and the value must be an
|
|
280
|
+
IRI typed arch:ApprovalState. Record approval history with prov:wasRevisionOf or
|
|
281
|
+
dcterms:modified — approvalState holds only the current standing.'''@en ;
|
|
282
|
+
sh:severity sh:Violation ;
|
|
283
|
+
] ;
|
|
284
|
+
.
|
|
285
|
+
|
|
286
|
+
#################################################################
|
|
287
|
+
# Membership — a concept belongs to exactly one Model
|
|
288
|
+
#
|
|
289
|
+
# Targets subjects of the property rather than arch:ModelConcept,
|
|
290
|
+
# for two reasons. A concept typed only in its notation's namespace
|
|
291
|
+
# is still constrained, which matters because emitting the core
|
|
292
|
+
# types is optional in several converters. And silence is not an
|
|
293
|
+
# error: a concept may legitimately carry no arch:inModel when it
|
|
294
|
+
# is read from a quad store where the named graph carries
|
|
295
|
+
# membership instead, so this shape bounds the property without
|
|
296
|
+
# requiring it. A metamodel that does want it mandatory states
|
|
297
|
+
# sh:minCount 1 against its own classes.
|
|
298
|
+
#
|
|
299
|
+
# The bound is SHACL rather than owl:FunctionalProperty for the
|
|
300
|
+
# reason DD-23 gives above: a functional property would entail
|
|
301
|
+
# owl:sameAs between the two Models rather than reporting the
|
|
302
|
+
# conflict.
|
|
303
|
+
#
|
|
304
|
+
# arch:inView is deliberately unconstrained here. It is
|
|
305
|
+
# many-valued by design, and a concept presented in no View at all
|
|
306
|
+
# is an ordinary state.
|
|
307
|
+
#################################################################
|
|
308
|
+
|
|
309
|
+
:InModelShape
|
|
310
|
+
a sh:NodeShape ;
|
|
311
|
+
sh:targetSubjectsOf arch:inModel ;
|
|
312
|
+
sh:property [
|
|
313
|
+
sh:path arch:inModel ;
|
|
314
|
+
sh:maxCount 1 ;
|
|
315
|
+
sh:nodeKind sh:IRI ;
|
|
316
|
+
sh:class arch:Model ;
|
|
317
|
+
sh:message '''A ModelConcept belongs to at most one Model, named by an IRI typed
|
|
318
|
+
arch:Model. Two values mean either two concepts that were merged in error, or one concept whose
|
|
319
|
+
IRI was minted outside the model namespace it is claimed to belong to.'''@en ;
|
|
320
|
+
sh:severity sh:Violation ;
|
|
321
|
+
] ;
|
|
322
|
+
.
|
|
323
|
+
|
|
324
|
+
#################################################################
|
|
325
|
+
# Membership — arch:inView points at a View
|
|
326
|
+
#
|
|
327
|
+
# Cardinality is deliberately absent: a concept may appear in any
|
|
328
|
+
# number of Views, including none. Only the range is checked, and
|
|
329
|
+
# only for subjects that use the property.
|
|
330
|
+
#################################################################
|
|
331
|
+
|
|
332
|
+
:InViewShape
|
|
333
|
+
a sh:NodeShape ;
|
|
334
|
+
sh:targetSubjectsOf arch:inView ;
|
|
335
|
+
sh:property [
|
|
336
|
+
sh:path arch:inView ;
|
|
337
|
+
sh:nodeKind sh:IRI ;
|
|
338
|
+
sh:class arch:View ;
|
|
339
|
+
sh:message '''arch:inView must point at an IRI typed arch:View — a Diagram, Catalog or
|
|
340
|
+
Matrix. Geometry belongs on an arch-vis:ArchNode, not here.'''@en ;
|
|
341
|
+
sh:severity sh:Violation ;
|
|
342
|
+
] ;
|
|
343
|
+
.
|
|
344
|
+
|
|
345
|
+
#################################################################
|
|
346
|
+
# Model questions — what makes a question well formed
|
|
347
|
+
#
|
|
348
|
+
# A question a tool can offer and a generator can ask: the question
|
|
349
|
+
# itself as its label, one query, a stage, and — for a finding — its
|
|
350
|
+
# severity and the column naming what each finding is about. Concerns, stakeholders and
|
|
351
|
+
# viewpoints are checked as IRIs only: they live in the viewpoint
|
|
352
|
+
# documents, which a question set does not import.
|
|
353
|
+
#################################################################
|
|
354
|
+
|
|
355
|
+
:ModelQuestionShape
|
|
356
|
+
a sh:NodeShape ;
|
|
357
|
+
sh:targetClass arch:ModelQuestion ;
|
|
358
|
+
sh:property [
|
|
359
|
+
sh:path skos:prefLabel ;
|
|
360
|
+
sh:minCount 1 ;
|
|
361
|
+
sh:datatype rdf:langString ;
|
|
362
|
+
sh:uniqueLang true ;
|
|
363
|
+
sh:pattern "\\?$" ;
|
|
364
|
+
sh:message '''A ModelQuestion is named by the question itself — one sentence ending in a question
|
|
365
|
+
mark, which is what tells it from a Concern's noun phrase — as a language-tagged skos:prefLabel.'''@en ;
|
|
366
|
+
] ;
|
|
367
|
+
sh:property [
|
|
368
|
+
sh:path sh:select ;
|
|
369
|
+
sh:maxCount 1 ;
|
|
370
|
+
sh:datatype xsd:string ;
|
|
371
|
+
] ;
|
|
372
|
+
sh:property [
|
|
373
|
+
sh:path sh:construct ;
|
|
374
|
+
sh:maxCount 1 ;
|
|
375
|
+
sh:datatype xsd:string ;
|
|
376
|
+
] ;
|
|
377
|
+
sh:property [
|
|
378
|
+
sh:path sh:ask ;
|
|
379
|
+
sh:maxCount 1 ;
|
|
380
|
+
sh:datatype xsd:string ;
|
|
381
|
+
] ;
|
|
382
|
+
sh:property [
|
|
383
|
+
sh:path sh:prefixes ;
|
|
384
|
+
sh:nodeKind sh:IRI ;
|
|
385
|
+
sh:message "sh:prefixes names the resource that declares the question's prefixes — normally its question set."@en ;
|
|
386
|
+
] ;
|
|
387
|
+
sh:property [
|
|
388
|
+
sh:path arch:questionStage ;
|
|
389
|
+
sh:minCount 1 ;
|
|
390
|
+
sh:maxCount 1 ;
|
|
391
|
+
sh:in ( arch:OrientationStage arch:ResolutionStage arch:DiscoveryStage arch:AnalysisStage
|
|
392
|
+
arch:EnrichmentStage arch:QualityStage arch:ViewsStage ) ;
|
|
393
|
+
sh:message "A ModelQuestion has one arch:questionStage from arch:QuestionStageScheme."@en ;
|
|
394
|
+
] ;
|
|
395
|
+
sh:property [
|
|
396
|
+
sh:path arch:resultIsFinding ;
|
|
397
|
+
sh:minCount 1 ;
|
|
398
|
+
sh:maxCount 1 ;
|
|
399
|
+
sh:datatype xsd:boolean ;
|
|
400
|
+
sh:message "A ModelQuestion says whether its rows are findings: arch:resultIsFinding true or false."@en ;
|
|
401
|
+
] ;
|
|
402
|
+
sh:property [
|
|
403
|
+
sh:path arch:findingSeverity ;
|
|
404
|
+
sh:maxCount 1 ;
|
|
405
|
+
sh:in ( sh:Info sh:Warning sh:Violation ) ;
|
|
406
|
+
] ;
|
|
407
|
+
sh:property [
|
|
408
|
+
sh:path arch:findingFocus ;
|
|
409
|
+
sh:maxCount 1 ;
|
|
410
|
+
sh:datatype xsd:string ;
|
|
411
|
+
sh:pattern "^[A-Za-z_][A-Za-z0-9_]*$" ;
|
|
412
|
+
sh:message "arch:findingFocus names a result variable, without its ?."@en ;
|
|
413
|
+
] ;
|
|
414
|
+
sh:property [
|
|
415
|
+
sh:path sh:parameter ;
|
|
416
|
+
sh:node :ModelQuestionParameterShape ;
|
|
417
|
+
] ;
|
|
418
|
+
sh:property [
|
|
419
|
+
sh:path arch:answers ;
|
|
420
|
+
sh:datatype rdf:langString ;
|
|
421
|
+
sh:uniqueLang true ;
|
|
422
|
+
] ;
|
|
423
|
+
sh:property [
|
|
424
|
+
sh:path arch:doesNotProve ;
|
|
425
|
+
sh:datatype rdf:langString ;
|
|
426
|
+
sh:uniqueLang true ;
|
|
427
|
+
] ;
|
|
428
|
+
sh:property [
|
|
429
|
+
sh:path arch:defaultLimit ;
|
|
430
|
+
sh:maxCount 1 ;
|
|
431
|
+
sh:datatype xsd:integer ;
|
|
432
|
+
sh:minInclusive 1 ;
|
|
433
|
+
] ;
|
|
434
|
+
sh:property [
|
|
435
|
+
sh:path arch:requiresDataset ;
|
|
436
|
+
sh:maxCount 1 ;
|
|
437
|
+
sh:in ( arch:ModelDataset arch:ModelAndMetamodelDataset ) ;
|
|
438
|
+
] ;
|
|
439
|
+
sh:property [
|
|
440
|
+
sh:path arch:requiresMetamodel ;
|
|
441
|
+
sh:nodeKind sh:IRI ;
|
|
442
|
+
] ;
|
|
443
|
+
sh:property [ sh:path arch:questionAddressesConcern ; sh:nodeKind sh:IRI ] ;
|
|
444
|
+
sh:property [ sh:path arch:questionTargetsStakeholder ; sh:nodeKind sh:IRI ] ;
|
|
445
|
+
sh:property [ sh:path arch:questionHasPurpose ; sh:nodeKind sh:IRI ] ;
|
|
446
|
+
sh:property [ sh:path arch:questionFitsViewpoint ; sh:nodeKind sh:IRI ] ;
|
|
447
|
+
sh:property [
|
|
448
|
+
sh:path arch:resultKey ;
|
|
449
|
+
sh:maxCount 1 ;
|
|
450
|
+
sh:datatype xsd:string ;
|
|
451
|
+
] ;
|
|
452
|
+
.
|
|
453
|
+
|
|
454
|
+
# One query, in one of the three forms. Written with sh:or rather than
|
|
455
|
+
# sh:xone, which RDF4J's validator does not evaluate.
|
|
456
|
+
:ModelQuestionQueryShape
|
|
457
|
+
a sh:NodeShape ;
|
|
458
|
+
sh:targetClass arch:ModelQuestion ;
|
|
459
|
+
sh:or (
|
|
460
|
+
[ sh:property [ sh:path sh:select ; sh:minCount 1 ] ;
|
|
461
|
+
sh:property [ sh:path sh:construct ; sh:maxCount 0 ] ;
|
|
462
|
+
sh:property [ sh:path sh:ask ; sh:maxCount 0 ] ]
|
|
463
|
+
[ sh:property [ sh:path sh:construct ; sh:minCount 1 ] ;
|
|
464
|
+
sh:property [ sh:path sh:select ; sh:maxCount 0 ] ;
|
|
465
|
+
sh:property [ sh:path sh:ask ; sh:maxCount 0 ] ]
|
|
466
|
+
[ sh:property [ sh:path sh:ask ; sh:minCount 1 ] ;
|
|
467
|
+
sh:property [ sh:path sh:select ; sh:maxCount 0 ] ;
|
|
468
|
+
sh:property [ sh:path sh:construct ; sh:maxCount 0 ] ]
|
|
469
|
+
) ;
|
|
470
|
+
sh:message "A ModelQuestion carries exactly one query: one of sh:select, sh:construct or sh:ask."@en ;
|
|
471
|
+
.
|
|
472
|
+
|
|
473
|
+
# A finding says how serious it is and which column names what it is about.
|
|
474
|
+
:ModelQuestionFindingShape
|
|
475
|
+
a sh:NodeShape ;
|
|
476
|
+
sh:targetClass arch:ModelQuestion ;
|
|
477
|
+
sh:or (
|
|
478
|
+
[ sh:property [ sh:path arch:resultIsFinding ; sh:hasValue false ] ]
|
|
479
|
+
[ sh:property [ sh:path arch:findingSeverity ; sh:minCount 1 ] ;
|
|
480
|
+
sh:property [ sh:path arch:findingFocus ; sh:minCount 1 ] ]
|
|
481
|
+
) ;
|
|
482
|
+
sh:message "A finding ModelQuestion (arch:resultIsFinding true) gives its arch:findingSeverity and its arch:findingFocus."@en ;
|
|
483
|
+
.
|
|
484
|
+
|
|
485
|
+
# Severity and focus belong to findings only; a listing carries neither.
|
|
486
|
+
:ModelQuestionListingShape
|
|
487
|
+
a sh:NodeShape ;
|
|
488
|
+
sh:targetClass arch:ModelQuestion ;
|
|
489
|
+
sh:or (
|
|
490
|
+
[ sh:property [ sh:path arch:resultIsFinding ; sh:hasValue true ] ]
|
|
491
|
+
[ sh:property [ sh:path arch:findingSeverity ; sh:maxCount 0 ] ;
|
|
492
|
+
sh:property [ sh:path arch:findingFocus ; sh:maxCount 0 ] ]
|
|
493
|
+
) ;
|
|
494
|
+
sh:message "arch:findingSeverity and arch:findingFocus describe findings: a ModelQuestion whose rows are not findings carries neither."@en ;
|
|
495
|
+
.
|
|
496
|
+
|
|
497
|
+
# Not targeted: what ModelQuestionShape requires of each sh:parameter.
|
|
498
|
+
:ModelQuestionParameterShape
|
|
499
|
+
a sh:NodeShape ;
|
|
500
|
+
sh:property [
|
|
501
|
+
sh:path sh:path ;
|
|
502
|
+
sh:minCount 1 ;
|
|
503
|
+
sh:maxCount 1 ;
|
|
504
|
+
sh:nodeKind sh:IRI ;
|
|
505
|
+
sh:message "A question parameter names the variable it binds with one sh:path: a parameter on arch:focus binds ?focus."@en ;
|
|
506
|
+
] ;
|
|
507
|
+
sh:property [
|
|
508
|
+
sh:path sh:optional ;
|
|
509
|
+
sh:maxCount 1 ;
|
|
510
|
+
sh:datatype xsd:boolean ;
|
|
511
|
+
] ;
|
|
512
|
+
sh:property [
|
|
513
|
+
sh:path sh:order ;
|
|
514
|
+
sh:maxCount 1 ;
|
|
515
|
+
] ;
|
|
516
|
+
.
|
|
517
|
+
|
|
518
|
+
#################################################################
|
|
519
|
+
# Question sets — the root of a question set document
|
|
520
|
+
#################################################################
|
|
521
|
+
|
|
522
|
+
:QuestionSetShape
|
|
523
|
+
a sh:NodeShape ;
|
|
524
|
+
sh:targetClass arch:QuestionSet ;
|
|
525
|
+
sh:property [
|
|
526
|
+
sh:path dcterms:title ;
|
|
527
|
+
sh:minCount 1 ;
|
|
528
|
+
sh:message "A question set carries its document's dcterms:title."@en ;
|
|
529
|
+
] ;
|
|
530
|
+
sh:property [
|
|
531
|
+
sh:path vann:preferredNamespaceUri ;
|
|
532
|
+
sh:minCount 1 ;
|
|
533
|
+
sh:maxCount 1 ;
|
|
534
|
+
] ;
|
|
535
|
+
sh:property [
|
|
536
|
+
sh:path vann:preferredNamespacePrefix ;
|
|
537
|
+
sh:minCount 1 ;
|
|
538
|
+
sh:maxCount 1 ;
|
|
539
|
+
] ;
|
|
540
|
+
sh:property [
|
|
541
|
+
sh:path sh:declare ;
|
|
542
|
+
sh:node [
|
|
543
|
+
sh:property [ sh:path sh:prefix ; sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string ] ;
|
|
544
|
+
sh:property [ sh:path sh:namespace ; sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:anyURI ] ;
|
|
545
|
+
] ;
|
|
546
|
+
sh:message "Each sh:declare entry pairs one sh:prefix with one sh:namespace (an xsd:anyURI)."@en ;
|
|
547
|
+
] ;
|
|
548
|
+
.
|
|
549
|
+
|
|
550
|
+
#################################################################
|
|
551
|
+
# Viewpoint conformance — views and the viewpoints they declare
|
|
552
|
+
#
|
|
553
|
+
# Five shapes, data-driven: they read each viewpoint's definition
|
|
554
|
+
# from the loaded graph (arch:includesConcept, arch:viewType) rather
|
|
555
|
+
# than naming any viewpoint, so they judge a language's catalogue, a
|
|
556
|
+
# framework's and an organisation's own viewpoints alike. They use
|
|
557
|
+
# no notation's terms, which is why they are here and stated once:
|
|
558
|
+
# the ArchiMate 3.2 and 4.0 viewpoint shapes each had a copy, and a
|
|
559
|
+
# model loading both languages had every finding twice.
|
|
560
|
+
#
|
|
561
|
+
# 1. ViewDeclaresViewpointShape sh:Warning
|
|
562
|
+
# 2. ViewTypeConformanceShape sh:Warning
|
|
563
|
+
# 3. ViewElementConformanceShape sh:Warning
|
|
564
|
+
# 4. RelationshipEndpointConformanceShape sh:Info
|
|
565
|
+
# 5. ViewpointCompletenessShape sh:Info
|
|
566
|
+
#
|
|
567
|
+
# Organisations may promote any of them.
|
|
568
|
+
#
|
|
569
|
+
# They target arch:View and arch:Viewpoint, superclasses of what a
|
|
570
|
+
# model types its views and viewpoints as, so core-onto.ttl must be
|
|
571
|
+
# in the shapes graph for sh:targetClass and sh:class to reach a
|
|
572
|
+
# Diagram. The SPARQL ones walk rdfs:subClassOf* in the data graph,
|
|
573
|
+
# so a language's ontology must be loaded as data for its element
|
|
574
|
+
# types to be recognised.
|
|
575
|
+
#
|
|
576
|
+
# sh:severity is repeated on property shapes. SHACL takes the
|
|
577
|
+
# severity of a result from the shape that declares the violated
|
|
578
|
+
# constraint, and a property shape does not inherit sh:severity
|
|
579
|
+
# from the node shape it is nested in — without its own it defaults
|
|
580
|
+
# to sh:Violation. The node-level declaration governs constraints
|
|
581
|
+
# stated on the node shape itself, sh:sparql among them, which is
|
|
582
|
+
# why shapes 2, 3 and 4 need nothing further.
|
|
583
|
+
#################################################################
|
|
584
|
+
|
|
585
|
+
#################################################################
|
|
586
|
+
# 1. Viewpoint declaration
|
|
587
|
+
#
|
|
588
|
+
# Every View declares exactly one viewpoint, as an arch:Viewpoint
|
|
589
|
+
# individual rather than a string.
|
|
590
|
+
#
|
|
591
|
+
# Targets arch:View, not arch:Diagram: arch:Catalog and arch:Matrix
|
|
592
|
+
# are Views too, and a viewpoint governs them as it governs a
|
|
593
|
+
# diagram.
|
|
594
|
+
#################################################################
|
|
595
|
+
|
|
596
|
+
:ViewDeclaresViewpointShape
|
|
597
|
+
a sh:NodeShape ;
|
|
598
|
+
sh:targetClass arch:View ;
|
|
599
|
+
sh:severity sh:Warning ;
|
|
600
|
+
sh:property [
|
|
601
|
+
sh:path arch:viewConformsToViewpoint ;
|
|
602
|
+
sh:minCount 1 ;
|
|
603
|
+
sh:maxCount 1 ;
|
|
604
|
+
sh:class arch:Viewpoint ;
|
|
605
|
+
sh:message "Every View must declare exactly one arch:viewConformsToViewpoint, and the value must be an arch:Viewpoint."@en ;
|
|
606
|
+
sh:severity sh:Warning ;
|
|
607
|
+
] ;
|
|
608
|
+
.
|
|
609
|
+
|
|
610
|
+
#################################################################
|
|
611
|
+
# 2. View type conformance
|
|
612
|
+
#
|
|
613
|
+
# A View's rdf:type must be compatible with its viewpoint's
|
|
614
|
+
# arch:viewType. A viewpoint declaring arch:viewType arch:Catalog
|
|
615
|
+
# is not satisfied by a Diagram.
|
|
616
|
+
#################################################################
|
|
617
|
+
|
|
618
|
+
:ViewTypeConformanceShape
|
|
619
|
+
a sh:NodeShape ;
|
|
620
|
+
sh:targetClass arch:View ;
|
|
621
|
+
sh:severity sh:Warning ;
|
|
622
|
+
sh:sparql [
|
|
623
|
+
sh:prefixes <https://meta.linked.archi/core-shapes#> ;
|
|
624
|
+
sh:message "View type {?viewType} does not match any arch:viewType declared by viewpoint {?vp}."@en ;
|
|
625
|
+
sh:select """
|
|
626
|
+
SELECT $this ?vp ?viewType
|
|
627
|
+
WHERE {
|
|
628
|
+
$this arch:viewConformsToViewpoint ?vp .
|
|
629
|
+
$this rdf:type ?viewType .
|
|
630
|
+
?viewType rdfs:subClassOf* arch:View .
|
|
631
|
+
FILTER(?viewType != arch:View)
|
|
632
|
+
FILTER NOT EXISTS {
|
|
633
|
+
?vp arch:viewType ?allowedType .
|
|
634
|
+
?viewType rdfs:subClassOf* ?allowedType .
|
|
635
|
+
}
|
|
636
|
+
FILTER EXISTS {
|
|
637
|
+
?vp arch:viewType ?anyType .
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
""" ;
|
|
641
|
+
] ;
|
|
642
|
+
.
|
|
643
|
+
|
|
644
|
+
#################################################################
|
|
645
|
+
# 3. Element conformance
|
|
646
|
+
#
|
|
647
|
+
# Elements presented in a View must be instances of types the
|
|
648
|
+
# viewpoint's arch:includesConcept allows. The type is walked
|
|
649
|
+
# through rdf:type/rdfs:subClassOf*, so a viewpoint may admit an
|
|
650
|
+
# abstract class and with it every type beneath.
|
|
651
|
+
#
|
|
652
|
+
# Keyed on arch:inView rather than the arch-vis: node layer
|
|
653
|
+
# (DD-30): a rule reading the visual graph would report nothing for
|
|
654
|
+
# a model published without views, or for a notation carrying no
|
|
655
|
+
# geometry.
|
|
656
|
+
#################################################################
|
|
657
|
+
|
|
658
|
+
:ViewElementConformanceShape
|
|
659
|
+
a sh:NodeShape ;
|
|
660
|
+
sh:targetClass arch:View ;
|
|
661
|
+
sh:severity sh:Warning ;
|
|
662
|
+
sh:sparql [
|
|
663
|
+
sh:prefixes <https://meta.linked.archi/core-shapes#> ;
|
|
664
|
+
sh:message "Element {?element} of type {?elementType} is not allowed in viewpoint {?vp} (not in arch:includesConcept)."@en ;
|
|
665
|
+
sh:select """
|
|
666
|
+
SELECT $this ?vp ?element ?elementType WHERE {
|
|
667
|
+
$this arch:viewConformsToViewpoint ?vp .
|
|
668
|
+
?element arch:inView $this .
|
|
669
|
+
?element rdf:type ?elementType .
|
|
670
|
+
?elementType rdfs:subClassOf* arch:Element .
|
|
671
|
+
FILTER(?elementType != arch:Element)
|
|
672
|
+
|
|
673
|
+
FILTER EXISTS { ?vp arch:includesConcept ?anyConcept . }
|
|
674
|
+
|
|
675
|
+
# MINUS, not FILTER NOT EXISTS: the same results (?element and ?vp are bound
|
|
676
|
+
# above), and much faster on a large model.
|
|
677
|
+
MINUS {
|
|
678
|
+
?element rdf:type/rdfs:subClassOf* ?allowedType .
|
|
679
|
+
?vp arch:includesConcept ?allowedType .
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
""" ;
|
|
683
|
+
] ;
|
|
684
|
+
.
|
|
685
|
+
|
|
686
|
+
#################################################################
|
|
687
|
+
# 4. Relationship endpoint conformance
|
|
688
|
+
#
|
|
689
|
+
# A qualified relationship presented in a View should connect
|
|
690
|
+
# elements the viewpoint itself allows. An endpoint outside the
|
|
691
|
+
# palette is suspicious rather than wrong — the relationship may be
|
|
692
|
+
# drawn to something the viewpoint tolerates as context — so this
|
|
693
|
+
# is sh:Info.
|
|
694
|
+
#################################################################
|
|
695
|
+
|
|
696
|
+
:RelationshipEndpointConformanceShape
|
|
697
|
+
a sh:NodeShape ;
|
|
698
|
+
sh:targetClass arch:View ;
|
|
699
|
+
sh:severity sh:Info ;
|
|
700
|
+
sh:sparql [
|
|
701
|
+
sh:prefixes <https://meta.linked.archi/core-shapes#> ;
|
|
702
|
+
sh:message "Relationship {?rel} in view has endpoint {?endpoint} of type {?endpointType} not in viewpoint {?vp} palette."@en ;
|
|
703
|
+
sh:select """
|
|
704
|
+
SELECT $this ?vp ?rel ?endpoint ?endpointType
|
|
705
|
+
WHERE {
|
|
706
|
+
$this arch:viewConformsToViewpoint ?vp .
|
|
707
|
+
?rel arch:inView $this .
|
|
708
|
+
?rel a/rdfs:subClassOf* arch:QualifiedRelationship .
|
|
709
|
+
|
|
710
|
+
{ ?rel arch:source ?endpoint . }
|
|
711
|
+
UNION
|
|
712
|
+
{ ?rel arch:target ?endpoint . }
|
|
713
|
+
|
|
714
|
+
?endpoint rdf:type ?endpointType .
|
|
715
|
+
?endpointType rdfs:subClassOf* arch:Element .
|
|
716
|
+
FILTER(?endpointType != arch:Element)
|
|
717
|
+
|
|
718
|
+
FILTER EXISTS { ?vp arch:includesConcept ?anyConcept . }
|
|
719
|
+
|
|
720
|
+
# MINUS, not FILTER NOT EXISTS: the same results (?endpoint and ?vp are bound
|
|
721
|
+
# above), and much faster on a large model.
|
|
722
|
+
MINUS {
|
|
723
|
+
?endpoint rdf:type/rdfs:subClassOf* ?allowedType .
|
|
724
|
+
?vp arch:includesConcept ?allowedType .
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
""" ;
|
|
728
|
+
] ;
|
|
729
|
+
.
|
|
730
|
+
|
|
731
|
+
#################################################################
|
|
732
|
+
# 5. Viewpoint completeness
|
|
733
|
+
#
|
|
734
|
+
# A viewpoint should say which concepts it admits, which concerns it
|
|
735
|
+
# frames and which kinds of view realise it. A viewpoint that frames
|
|
736
|
+
# no concern is not a viewpoint in the ISO 42010 sense. Not errors —
|
|
737
|
+
# an incomplete viewpoint definition, which is why this is sh:Info.
|
|
738
|
+
#################################################################
|
|
739
|
+
|
|
740
|
+
:ViewpointCompletenessShape
|
|
741
|
+
a sh:NodeShape ;
|
|
742
|
+
sh:targetClass arch:Viewpoint ;
|
|
743
|
+
sh:severity sh:Info ;
|
|
744
|
+
sh:property [
|
|
745
|
+
sh:path arch:includesConcept ;
|
|
746
|
+
sh:minCount 1 ;
|
|
747
|
+
sh:message "Viewpoint should declare at least one arch:includesConcept."@en ;
|
|
748
|
+
sh:severity sh:Info ;
|
|
749
|
+
] ;
|
|
750
|
+
sh:property [
|
|
751
|
+
sh:path arch:viewpointFramesConcern ;
|
|
752
|
+
sh:minCount 1 ;
|
|
753
|
+
sh:message "Viewpoint should declare at least one arch:viewpointFramesConcern."@en ;
|
|
754
|
+
sh:severity sh:Info ;
|
|
755
|
+
] ;
|
|
756
|
+
sh:property [
|
|
757
|
+
sh:path arch:viewType ;
|
|
758
|
+
sh:minCount 1 ;
|
|
759
|
+
sh:message "Viewpoint should declare at least one arch:viewType."@en ;
|
|
760
|
+
sh:severity sh:Info ;
|
|
761
|
+
] ;
|
|
762
|
+
.
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
#################################################################
|
|
766
|
+
# NAMES PER PRESENTATION CONTEXT (core 0.5.0)
|
|
767
|
+
#
|
|
768
|
+
# An element's canonical name is its skos:prefLabel (the labelling contract
|
|
769
|
+
# above). A name for one audience is a SKOS-XL label — a resource, so that it
|
|
770
|
+
# can say which presentation context it is for — given as skosxl:altLabel, its
|
|
771
|
+
# literal form also the element's skos:altLabel. See DD-34.
|
|
772
|
+
#################################################################
|
|
773
|
+
|
|
774
|
+
:PresentationNameShape
|
|
775
|
+
a sh:NodeShape ;
|
|
776
|
+
sh:targetClass skosxl:Label ;
|
|
777
|
+
sh:targetObjectsOf skosxl:altLabel ;
|
|
778
|
+
rdfs:label "Name for a presentation context shape"@en ;
|
|
779
|
+
sh:property [
|
|
780
|
+
sh:path skosxl:literalForm ;
|
|
781
|
+
sh:minCount 1 ;
|
|
782
|
+
sh:maxCount 1 ;
|
|
783
|
+
sh:datatype rdf:langString ;
|
|
784
|
+
sh:message "A SKOS-XL label has exactly one skosxl:literalForm, language tagged: \"pgw-svc\"@en."@en ;
|
|
785
|
+
] ;
|
|
786
|
+
sh:property [
|
|
787
|
+
sh:path arch:inPresentationContext ;
|
|
788
|
+
sh:maxCount 1 ;
|
|
789
|
+
sh:nodeKind sh:IRI ;
|
|
790
|
+
sh:message "A name is for at most one presentation context (arch:inPresentationContext); with none, for every one."@en ;
|
|
791
|
+
] ;
|
|
792
|
+
.
|
|
793
|
+
|
|
794
|
+
:CanonicalNameForEveryContextShape
|
|
795
|
+
a sh:NodeShape ;
|
|
796
|
+
sh:targetObjectsOf skosxl:prefLabel ;
|
|
797
|
+
rdfs:label "Preferred SKOS-XL label shape"@en ;
|
|
798
|
+
sh:property [
|
|
799
|
+
sh:path arch:inPresentationContext ;
|
|
800
|
+
sh:maxCount 0 ;
|
|
801
|
+
sh:message '''A name for one presentation context is a skosxl:altLabel. A skosxl:prefLabel is also the
|
|
802
|
+
element's skos:prefLabel — its canonical name, one per language — so it cannot be one audience's.'''@en ;
|
|
803
|
+
] ;
|
|
804
|
+
.
|
|
805
|
+
|
|
806
|
+
:OneNamePerContextShape
|
|
807
|
+
a sh:NodeShape ;
|
|
808
|
+
sh:targetSubjectsOf skosxl:altLabel ;
|
|
809
|
+
rdfs:label "One name per presentation context shape"@en ;
|
|
810
|
+
sh:sparql [
|
|
811
|
+
sh:prefixes <https://meta.linked.archi/core-shapes#> ;
|
|
812
|
+
sh:message "{$this} has {?count} names for presentation context {?context} in language \"{?language}\": it may have one."@en ;
|
|
813
|
+
sh:select """
|
|
814
|
+
SELECT $this ?context ?language (COUNT(DISTINCT ?name) AS ?count)
|
|
815
|
+
WHERE {
|
|
816
|
+
$this skosxl:altLabel ?name .
|
|
817
|
+
?name arch:inPresentationContext ?context ;
|
|
818
|
+
skosxl:literalForm ?form .
|
|
819
|
+
BIND(LANG(?form) AS ?language)
|
|
820
|
+
}
|
|
821
|
+
GROUP BY $this ?context ?language
|
|
822
|
+
HAVING (COUNT(DISTINCT ?name) > 1)
|
|
823
|
+
""" ;
|
|
824
|
+
] ;
|
|
825
|
+
.
|
|
826
|
+
|
|
827
|
+
:PresentationNameAlsoPlainShape
|
|
828
|
+
a sh:NodeShape ;
|
|
829
|
+
sh:targetSubjectsOf skosxl:altLabel ;
|
|
830
|
+
rdfs:label "Name also a plain SKOS label shape"@en ;
|
|
831
|
+
sh:severity sh:Warning ;
|
|
832
|
+
sh:sparql [
|
|
833
|
+
sh:prefixes <https://meta.linked.archi/core-shapes#> ;
|
|
834
|
+
sh:message "{$this}'s name {?form} is not also its skos:altLabel: tools that read plain SKOS do not see it."@en ;
|
|
835
|
+
sh:select """
|
|
836
|
+
SELECT $this ?form
|
|
837
|
+
WHERE {
|
|
838
|
+
$this skosxl:altLabel ?name .
|
|
839
|
+
?name skosxl:literalForm ?form .
|
|
840
|
+
FILTER NOT EXISTS { $this skos:altLabel ?form }
|
|
841
|
+
}
|
|
842
|
+
""" ;
|
|
843
|
+
] ;
|
|
844
|
+
.
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
#################################################################
|
|
848
|
+
# PICTURES PER PRESENTATION CONTEXT (core 0.5.0)
|
|
849
|
+
#
|
|
850
|
+
# An element's canonical picture is its arch:prefVisNotation; one for an
|
|
851
|
+
# audience is an arch:altVisNotation whose value is a schema:ImageObject with
|
|
852
|
+
# its schema:contentUrl and arch:inPresentationContext — as a name for an
|
|
853
|
+
# audience is a SKOS-XL label. See DD-34.
|
|
854
|
+
#################################################################
|
|
855
|
+
|
|
856
|
+
:PictureShape
|
|
857
|
+
a sh:NodeShape ;
|
|
858
|
+
sh:targetClass schema:ImageObject ;
|
|
859
|
+
sh:targetObjectsOf arch:altVisNotation ;
|
|
860
|
+
rdfs:label "Picture shape"@en ;
|
|
861
|
+
sh:property [
|
|
862
|
+
sh:path schema:contentUrl ;
|
|
863
|
+
sh:maxCount 1 ;
|
|
864
|
+
sh:datatype xsd:anyURI ;
|
|
865
|
+
sh:message "A picture has at most one schema:contentUrl, an xsd:anyURI: an http(s) URL or a data: URI of an image."@en ;
|
|
866
|
+
] ;
|
|
867
|
+
sh:property [
|
|
868
|
+
sh:path arch:inPresentationContext ;
|
|
869
|
+
sh:maxCount 1 ;
|
|
870
|
+
sh:nodeKind sh:IRI ;
|
|
871
|
+
sh:message "A picture is for at most one presentation context (arch:inPresentationContext); with none, for every one."@en ;
|
|
872
|
+
] ;
|
|
873
|
+
.
|
|
874
|
+
|
|
875
|
+
:CanonicalPictureShape
|
|
876
|
+
a sh:NodeShape ;
|
|
877
|
+
sh:targetObjectsOf arch:prefVisNotation ;
|
|
878
|
+
rdfs:label "Canonical picture shape"@en ;
|
|
879
|
+
sh:property [
|
|
880
|
+
sh:path arch:inPresentationContext ;
|
|
881
|
+
sh:maxCount 0 ;
|
|
882
|
+
sh:message "An element's arch:prefVisNotation is its picture for every audience; one for an audience is an arch:altVisNotation."@en ;
|
|
883
|
+
] ;
|
|
884
|
+
.
|
|
885
|
+
|
|
886
|
+
:PictureForAudienceShape
|
|
887
|
+
a sh:NodeShape ;
|
|
888
|
+
sh:targetSubjectsOf arch:altVisNotation ;
|
|
889
|
+
rdfs:label "Pictures per presentation context shape"@en ;
|
|
890
|
+
sh:sparql [
|
|
891
|
+
sh:prefixes <https://meta.linked.archi/core-shapes#> ;
|
|
892
|
+
sh:message "{$this}'s picture {?picture} is for presentation context {?context} but has no schema:contentUrl."@en ;
|
|
893
|
+
sh:select """
|
|
894
|
+
SELECT $this ?picture ?context
|
|
895
|
+
WHERE {
|
|
896
|
+
$this arch:altVisNotation ?picture .
|
|
897
|
+
?picture arch:inPresentationContext ?context .
|
|
898
|
+
FILTER NOT EXISTS { ?picture schema:contentUrl ?url }
|
|
899
|
+
}
|
|
900
|
+
""" ;
|
|
901
|
+
] ;
|
|
902
|
+
sh:sparql [
|
|
903
|
+
sh:prefixes <https://meta.linked.archi/core-shapes#> ;
|
|
904
|
+
sh:message "{$this} has {?count} pictures for presentation context {?context}: it may have one."@en ;
|
|
905
|
+
sh:select """
|
|
906
|
+
SELECT $this ?context (COUNT(DISTINCT ?picture) AS ?count)
|
|
907
|
+
WHERE {
|
|
908
|
+
$this arch:altVisNotation ?picture .
|
|
909
|
+
?picture arch:inPresentationContext ?context .
|
|
910
|
+
}
|
|
911
|
+
GROUP BY $this ?context
|
|
912
|
+
HAVING (COUNT(DISTINCT ?picture) > 1)
|
|
913
|
+
""" ;
|
|
914
|
+
] ;
|
|
915
|
+
.
|