Open community to develop schemas and tools to link object oriented programming with linked data & the semantic web.
OO-LD (Object-Oriented Linked Data) is a unified framework that combines JSON Schema and JSON-LD to enable object-oriented linked data modeling without reinventing the wheel. By embedding JSON-LD contexts within JSON Schema documents, OO-LD allows for the simultaneous definition of data structure and semantics in a single source.
- Standards-Based: Strictly adheres to W3C standards (JSON-LD 1.1, JSON-SCHEMA 2020-12) - no new language to learn
- Tool Compatibility: Works with all existing JSON-SCHEMA and JSON-LD tooling
- Web-Native: Schemas follow linked data principles, making them retrievable over the web for flexible composition
- Multi-Purpose: Use the same schema for validation, RDF generation, code generation, UI generation, and API definitions
- Developer-Friendly: Compatible with LLM APIs, OpenAPI, and modern development workflows
Here's a minimal OO-LD schema (Person.schema.json):
{
"@context": {
"schema": "http://schema.org/",
"name": "schema:name"
},
"$id": "Person.schema.json",
"title": "Person",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "First and Last name"
}
}
}This file is simultaneously a JSON Schema (defines structure) and a JSON-LD context (provides semantics). Notice how @context maps the name property to schema:name, enabling both validation and RDF generation from the same source.
Try it yourself:
- UI and RDF generation: OO-LD Playground - Interactive examples with UI and RDF generation
- Code and RDF generation: Python Playground - Advanced examples with code generation
- Full Tutorial - Step-by-step guide with working examples
- Research Data Management: OpenSemanticLab uses OO-LD for LIMS, ELN, and knowledge bases
- API Development: Generate OpenAPI specs with embedded semantic contexts
- LLM Integration: Use schemas directly for structured LLM output
- OO-LD Specification - Complete schema specification and examples
- oold-python - Python code generator and utilities
- Playground (YAML) - Interactive UI and RDF generation
- Playground (Python) - Try code generation online
- AWL Schema - Semantic workflow descriptions
- OpenSemanticLab - Research data management framework
- OpenSemanticWorld-Packages - Schema repository
- OpenSemanticWorld - Schema registry
- Battery Knowledge Graph - Scientific metadata using OO-LD
- OSW Chatbot - LLM integration examples
Start exploring: Try the interactive playground or check out the specification.