Linked.Archi

Cloud Platform SHACL Shapes

SHACL Shapes

https://meta.linked.archi/examples/cloudplatform/shapes#

v0.1.0 cpsh: License

Validation rules for the Cloud Platform Architecture metamodel.

Contents

ContainerShape — target: Container

PropertyConstraintValueSeverityMessage
containerImage minCount 1 Violation
replicaCount datatype integer Violation
replicaCount minCount 1 Violation

CriticalServiceTierShape — target: Microservice

SPARQL constraint: Critical microservices should have tier-1 SLA. Warning
            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")
            }
        

DeploymentShape — target: Deployment

PropertyConstraintValueSeverityMessage
source class Container Violation
target class KubernetesCluster Violation

MicroserviceDeploymentShape — target: Microservice

SPARQL constraint: Microservice has no container deployment. Warning
            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> .
                }
            }
        

MicroserviceShape — target: Microservice

PropertyConstraintValueSeverityMessage
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

PublishingShape — target: Publishing

PropertyConstraintValueSeverityMessage
source class Microservice Violation
target class EventTopic Violation

SubscriptionShape — target: Subscription

PropertyConstraintValueSeverityMessage
source class Microservice Violation
target class EventTopic Violation