Cloud Platform SHACL Shapes
Validation rules for the Cloud Platform Architecture metamodel.
Every Microservice must have a name (skos:prefLabel).
Microservice must have a resilienceLevel: critical, high, medium, or low.
deploymentStrategy must be: blue-green, canary, rolling, or recreate.
serviceTier must be: tier-1, tier-2, or tier-3.
Every Container must have a containerImage.
replicaCount must be a positive integer.
Publishing source must be a Microservice.
Publishing target must be an EventTopic.
Subscription source must be a Microservice.
Subscription target must be an EventTopic.
Deployment source must be a Container.
Deployment target must be a KubernetesCluster.
Critical microservices should have tier-1 SLA.
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") }
Microservice has no container deployment.
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> . } }