Schema: robos:KubernetesCluster
Formal W3C SHACL constraint shape and OSLC JSON-LD specification for robos:KubernetesCluster in the devops package store.
Table of contents
- Specification Metadata
- Upstream Schema Basis (Refers From) & Global Standards Provenance
- Entity Relationship & Schema Context
- Property Constraints & SHACL Rules
- Canonical OSLC JSON-LD Example
- Programmatic SHACL Validation
Specification Metadata
- RDF / OWL Class:
robos:KubernetesCluster - Aliases / Target Classes:
robos:KubernetesCluster,robos:K8sCluster - SHACL Shape ID:
urn:robos:shape:KubernetesClusterShape - Governing Package: DevOps & Cloud (robos.devops) (
devops) - Namespace:
robos.devops - Schema.org Classification: https://schema.org/ComputerPlatform
- Domain De Facto Standard: https://kubernetes.io/docs/concepts/overview/
- Upstream Schema Basis (Refers From): https://schema.org/ComputerPlatform
Upstream Schema Basis (Refers From) & Global Standards Provenance
This RobOS schema is modeled after and directly aligns with two levels of global standards:
- Universal Schema.org Class: https://schema.org/ComputerPlatform (100% interoperability with search engines, web indexers, and general AI reasoning)
- Specialized Domain Standard: https://kubernetes.io/docs/concepts/overview/ (de facto standard for domain-specific ALM, BDD, or infrastructure operations)
- Canonical Reference: https://schema.org/ComputerPlatform
- Agent Guidelines: When autonomous agents generate, expand, or validate instances of
robos:KubernetesCluster, they MUST adhere to and base their output on this referred schema object and universal Schema.org parent class, extending it with RobOS SDLC properties.
Entity Relationship & Schema Context
Kubernetes Cluster robos:KubernetesCluster
Governed by W3C SHACL shape urn:robos:shape:KubernetesClusterShape within the DevOps & Cloud (robos.devops) (robos.devops) package store.
dcterms:title robos:provider robos:apiEndpoint robos:clusterContext Property Constraints & SHACL Rules
| Property Path | Name | Multiplicity | Data Type | Constraint Rule / Validation Message |
|---|---|---|---|---|
dcterms:title | Title / Display Name | 1..* | xsd:string | Kubernetes Cluster must have a title or display name. |
robos:provider | Backend Provider | 1..* | xsd:string | Kubernetes Cluster must declare provider (eks, gke, aks, minikube, k3s, on-prem). |
robos:apiEndpoint | apiEndpoint | 1..* | xsd:string | Kubernetes Cluster must specify API server endpoint URL. |
robos:clusterContext | clusterContext | 1..* | xsd:string | Kubernetes Cluster must specify kubeconfig context name. |
Canonical OSLC JSON-LD Example
{
"@id": "urn:robos:cluster:prod-us-east-eks",
"@type": [
"c4:DeploymentNode",
"robos:KubernetesCluster",
"robos:K8sCluster",
"schema:ComputerPlatform"
],
"dcterms:title": "Production US-East AWS EKS Cluster",
"dcterms:description": "Primary Kubernetes multi-tenant production cluster in AWS us-east-1.",
"robos:provider": "eks",
"robos:apiEndpoint": "https://k8s-api.us-east-1.eks.amazonaws.com",
"robos:clusterContext": "arn:aws:eks:us-east-1:123456789012:cluster/prod-us-east",
"robos:namespaces": [
"production",
"ingress",
"monitoring"
],
"robos:inEnvironment": "urn:robos:env:production",
"robos:package": "devops",
"robos:namespace": "robos.devops",
"robos:schemaOrgType": "https://schema.org/ComputerPlatform",
"robos:domainStandard": "https://kubernetes.io/docs/concepts/overview/"
}
Programmatic SHACL Validation
const { SHACLValidator } = require('/usr/local/share/robos/robos-graph/lib/shacl-validator');
const { OSLCGraphParser, OSLC_CONTEXT } = require('/usr/local/share/robos/robos-graph/lib/oslc-parser');
const validator = new SHACLValidator();
const result = validator.validateGraph(new OSLCGraphParser({
"@context": OSLC_CONTEXT,
"robos:nodes": [
{
"@id": "urn:robos:cluster:prod-us-east-eks",
"@type": [
"c4:DeploymentNode",
"robos:KubernetesCluster",
"robos:K8sCluster",
"schema:ComputerPlatform"
],
"dcterms:title": "Production US-East AWS EKS Cluster",
"dcterms:description": "Primary Kubernetes multi-tenant production cluster in AWS us-east-1.",
"robos:provider": "eks",
"robos:apiEndpoint": "https://k8s-api.us-east-1.eks.amazonaws.com",
"robos:clusterContext": "arn:aws:eks:us-east-1:123456789012:cluster/prod-us-east",
"robos:namespaces": [
"production",
"ingress",
"monitoring"
],
"robos:inEnvironment": "urn:robos:env:production",
"robos:package": "devops",
"robos:namespace": "robos.devops",
"robos:schemaOrgType": "https://schema.org/ComputerPlatform",
"robos:domainStandard": "https://kubernetes.io/docs/concepts/overview/"
}
],
}));
console.log("Conforms:", result.conforms); // Expected: true