Schema: robos:HandsOnLab
Formal W3C SHACL constraint shape and OSLC JSON-LD specification for robos:HandsOnLab in the learning 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:HandsOnLab - Aliases / Target Classes:
robos:HandsOnLab - SHACL Shape ID:
urn:robos:shape:HandsOnLabShape - Governing Package: eLearning Curriculums (robos.learning) (
learning) - Namespace:
robos.learning - Schema.org Classification: https://schema.org/ExercisePlan
- Domain De Facto Standard: https://schema.org/ExercisePlan
- Upstream Schema Basis (Refers From): https://schema.org/ExercisePlan
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/ExercisePlan (100% interoperability with search engines, web indexers, and general AI reasoning)
- Specialized Domain Standard: https://schema.org/ExercisePlan (de facto standard for domain-specific ALM, BDD, or infrastructure operations)
- Canonical Reference: https://schema.org/ExercisePlan
- Agent Guidelines: When autonomous agents generate, expand, or validate instances of
robos:HandsOnLab, 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
Hands On Lab robos:HandsOnLab
Governed by W3C SHACL shape urn:robos:shape:HandsOnLabShape within the eLearning Curriculums (robos.learning) (robos.learning) package store.
dcterms:title robos:labFile robos:module Property Constraints & SHACL Rules
| Property Path | Name | Multiplicity | Data Type | Constraint Rule / Validation Message |
|---|---|---|---|---|
dcterms:title | Title / Display Name | 1..* | xsd:string | Hands-on Lab must have a title. |
robos:labFile | Hands-on Lab Guide File | 1..* | xsd:string | Hands-on Lab must specify lab guide file path. |
robos:module | Parent Learning Module | 1..* | URI (robos:LearningModule) | Hands-on Lab must link to parent learning module. |
Canonical OSLC JSON-LD Example
{
"@id": "urn:robos:learning:hands-on-lab-sample",
"@type": [
"robos:HandsOnLab",
"schema:ExercisePlan",
"oslc:Resource"
],
"dcterms:title": "Sample Hands On Lab",
"dcterms:description": "Canonical reference instance for robos:HandsOnLab.",
"robos:package": "learning",
"robos:namespace": "robos.learning",
"robos:labFile": "labs/sample-lab.md",
"robos:module": "urn:robos:module:sample-module",
"robos:schemaOrgType": "https://schema.org/ExercisePlan",
"robos:domainStandard": "https://schema.org/ExercisePlan",
"robos:refersFrom": "https://schema.org/ExercisePlan"
}
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:learning:hands-on-lab-sample",
"@type": [
"robos:HandsOnLab",
"schema:ExercisePlan",
"oslc:Resource"
],
"dcterms:title": "Sample Hands On Lab",
"dcterms:description": "Canonical reference instance for robos:HandsOnLab.",
"robos:package": "learning",
"robos:namespace": "robos.learning",
"robos:labFile": "labs/sample-lab.md",
"robos:module": "urn:robos:module:sample-module",
"robos:schemaOrgType": "https://schema.org/ExercisePlan",
"robos:domainStandard": "https://schema.org/ExercisePlan",
"robos:refersFrom": "https://schema.org/ExercisePlan"
}
],
}));
console.log("Conforms:", result.conforms); // Expected: true