Schema: robos:ProtobufContract
Formal W3C SHACL constraint shape and OSLC JSON-LD specification for robos:ProtobufContract in the services 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:ProtobufContract - Aliases / Target Classes:
robos:ProtobufContract,robos:GRPCContract - SHACL Shape ID:
urn:robos:shape:ProtobufContractShape - Governing Package: Services & Contracts (robos.services) (
services) - Namespace:
robos.services - Schema.org Classification: https://schema.org/DigitalDocument
- Domain De Facto Standard: https://protobuf.dev/
- Upstream Schema Basis (Refers From): http://open-services.net/ns/am#Resource
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/DigitalDocument (100% interoperability with search engines, web indexers, and general AI reasoning)
- Specialized Domain Standard: https://protobuf.dev/ (de facto standard for domain-specific ALM, BDD, or infrastructure operations)
- Canonical Reference: http://open-services.net/ns/am#Resource
- Agent Guidelines: When autonomous agents generate, expand, or validate instances of
robos:ProtobufContract, 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
Protobuf Contract robos:ProtobufContract
Governed by W3C SHACL shape urn:robos:shape:ProtobufContractShape within the Services & Contracts (robos.services) (robos.services) package store.
dcterms:title robos:specFile robos:packageName robos:rpcMethods Property Constraints & SHACL Rules
| Property Path | Name | Multiplicity | Data Type | Constraint Rule / Validation Message |
|---|---|---|---|---|
dcterms:title | Title / Display Name | 1..* | xsd:string | Protobuf Contract must have a title. |
robos:specFile | Specification File | 1..* | xsd:string | Protobuf Contract must specify .proto file path. |
robos:packageName | packageName | 1..* | xsd:string | Protobuf Contract must specify protobuf package name. |
robos:rpcMethods | rpcMethods | 1..* | xsd:string | Protobuf Contract must declare RPC methods. |
Canonical OSLC JSON-LD Example
{
"@id": "urn:robos:contract:orders-grpc",
"@type": [
"robos:Contract",
"robos:ProtobufContract",
"robos:GRPCContract",
"schema:DigitalDocument"
],
"dcterms:title": "Acme Orders gRPC Protobuf Contract",
"dcterms:description": "High-performance binary gRPC interface definition for transactional order lifecycle.",
"robos:protocol": "grpc-protobuf",
"robos:specFile": "proto/orders/v1/orders.proto",
"robos:packageName": "acme.orders.v1",
"robos:rpcMethods": [
"CreateOrder",
"GetOrderStatus",
"CancelOrder",
"StreamOrderEvents"
],
"robos:package": "services",
"robos:namespace": "robos.services",
"robos:schemaOrgType": "https://schema.org/DigitalDocument",
"robos:domainStandard": "http://open-services.net/ns/am#Resource"
}
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:contract:orders-grpc",
"@type": [
"robos:Contract",
"robos:ProtobufContract",
"robos:GRPCContract",
"schema:DigitalDocument"
],
"dcterms:title": "Acme Orders gRPC Protobuf Contract",
"dcterms:description": "High-performance binary gRPC interface definition for transactional order lifecycle.",
"robos:protocol": "grpc-protobuf",
"robos:specFile": "proto/orders/v1/orders.proto",
"robos:packageName": "acme.orders.v1",
"robos:rpcMethods": [
"CreateOrder",
"GetOrderStatus",
"CancelOrder",
"StreamOrderEvents"
],
"robos:package": "services",
"robos:namespace": "robos.services",
"robos:schemaOrgType": "https://schema.org/DigitalDocument",
"robos:domainStandard": "http://open-services.net/ns/am#Resource"
}
],
}));
console.log("Conforms:", result.conforms); // Expected: true