SHACL Shapes
https://meta.linked.archi/examples/cloudplatform/shapes#
Validation rules for the Cloud Platform Architecture metamodel.
| Property | Constraint | Value | Severity | Message |
|---|---|---|---|---|
containerImage |
minCount | 1 |
Violation | |
replicaCount |
datatype | integer | Violation | |
replicaCount |
minCount | 1 |
Violation |
SELECT $this WHERE {
$this <https://meta.linked.archi/examples/cloudplatform/onto#resilienceLevel> "critical" .
$this <https://meta.linked.archi/examples/cloudplatform/onto#serviceTier> ?tier .
FILTER(?tier != "tier-1")
}
| Property | Constraint | Value | Severity | Message |
|---|---|---|---|---|
source |
class | Container | Violation | |
target |
class | KubernetesCluster | Violation |
SELECT $this WHERE {
$this a <https://meta.linked.archi/examples/cloudplatform/onto#Microservice> .
FILTER NOT EXISTS {
?container <https://meta.linked.archi/archimate4/onto#assignedTo> $this .
?container a <https://meta.linked.archi/examples/cloudplatform/onto#Container> .
}
}
| Property | Constraint | Value | Severity | Message |
|---|---|---|---|---|
prefLabel |
minCount | 1 |
Violation | |
deploymentStrategy |
in | 5a3f870f0e0b2ac |
Violation | |
deploymentStrategy |
maxCount | 1 |
Violation | |
resilienceLevel |
in | 5a3f870f0e0b2a7 |
Violation | |
resilienceLevel |
minCount | 1 |
Violation | |
serviceTier |
in | 5a3f870f0e0b2b1 |
Violation | |
serviceTier |
maxCount | 1 |
Violation |
| Property | Constraint | Value | Severity | Message |
|---|---|---|---|---|
source |
class | Microservice | Violation | |
target |
class | EventTopic | Violation |
| Property | Constraint | Value | Severity | Message |
|---|---|---|---|---|
source |
class | Microservice | Violation | |
target |
class | EventTopic | Violation |