Skip to main content

CELINE Ontology

Semantic artifacts and mapping tools for the CELINE project, supporting:

  • semantic interoperability across datasets
  • Digital Twins (WP3)
  • Demonstrators, KPIs, and evaluation (WP5)
  • mapping from tabular data to RDF / JSON-LD

The CELINE ontology is a unified ontology profile — not a standalone domain ontology — that connects PECO, SAREF, SOSA/SSN into a coherent semantic target for the CELINE ecosystem. Since v0.5, KPI semantics are defined natively via a generic KPIDefinition / KPICatalog layer, with alignment to external vocabularies expressed through SKOS annotations rather than OWL imports.

Namespace: https://w3id.org/celine-eu#

Documentation: https://celine-eu.github.io/ontologies/


Repository structure

specs/          Ontology source artifacts (versioned)
  current/      → latest version (v0.5)
  v0.5/
    celine.ttl           OWL/RDF definition (Turtle)
    celine.shacl.ttl     SHACL validation shapes
    celine.jsonld        JSON-LD context
    celine.schema.json   JSON Schema for API validation
    examples/            JSON-LD instance data examples

releases/       Generated WIDOCO HTML documentation (versioned)
  current/      → symlink to latest version
  v0.3/         index-en.html + supporting assets

src/            Python package (celine-ontologies)
  celine/
    mapper/     Declarative data→RDF mapping engine
    ontologies/ Ontology management CLI

Ontology artifacts

Artifact Description
celine.ttl Formal OWL/RDF definition
celine.shacl.ttl SHACL shapes for semantic validation
celine.jsonld JSON-LD @context for APIs and pipelines
celine.schema.json JSON Schema for API-level payload validation

Python package

# Mapper API only (OutputMapper, CelineGraphBuilder)
pip install celine-ontologies[mapper]

# Ontology management CLI (fetch, analyze, tree)
pip install celine-ontologies[cli]

# Everything
pip install celine-ontologies[all]

Mapper usage

from pathlib import Path
from celine.mapper import OutputMapper

mapper = OutputMapper.from_yaml_path(
    Path("src/celine/mapper/specs/obs_rec_energy.yaml"),
    context={"community_key": "it-folgaria"},
)
nodes = mapper.map_many(rows)

CLI

# Validate a mapping spec
celine-ontologies mapper validate-spec path/to/spec.yaml

# Map data to JSON-LD
celine-ontologies mapper map spec.yaml input.json

# Map + SHACL validation (requires [mapper])
celine-ontologies mapper shacl-check spec.yaml input.json

# Ontology utilities
celine-ontologies fetch
celine-ontologies analyze
celine-ontologies tree

How the semantic stack fits together

Tabular data
  ↓  mapping spec (YAML)
JSON-LD  ←  celine.jsonld context
  ↓  celine.schema.json
JSON Schema validation
  ↓  RDF expansion
SHACL validation  ←  celine.shacl.ttl
  ↓
CELINE Knowledge Graph / Digital Twin

Releasing a new version

# 1. Add specs/vX.X/ with the new ontology artifacts

# 2. Update the specs/current symlink and tag
task release:ontology

# 3. Generate WIDOCO HTML docs locally (requires Docker)
task docs:widoco           # latest version
task docs:widoco -- vX.X  # specific version

WIDOCO docs are also generated automatically in CI on every push that changes a specs/v*/celine.ttl.


Design principles

  • Standards first: reuse ETSI SAREF, W3C SOSA/SSN, PECO for domain semantics
  • Alignment via SKOS: external KPI vocabularies (BIGG, SAREF4CITY) are referenced through skos:closeMatch / skos:relatedMatch annotations, not OWL imports
  • Thin CELINE layer: only project-specific glue concepts are defined here
  • Modular & versionable: specs/ and releases/ evolve independently
  • Tool-friendly: compatible with rdflib, JSON-LD processors, SHACL engines

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

celine_ontologies-1.6.0.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

celine_ontologies-1.6.0-py3-none-any.whl (41.8 kB view details)

Uploaded Python 3

File details

Details for the file celine_ontologies-1.6.0.tar.gz.

File metadata

  • Download URL: celine_ontologies-1.6.0.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for celine_ontologies-1.6.0.tar.gz
Algorithm Hash digest
SHA256 577fa691012dd2633a8c8bfead87f0cd21478553663c551416767242eeb926f8
MD5 f8db67c97d21a31de76f64fd985d7703
BLAKE2b-256 7a4ccee7a14d120e83be26484c2c05f29eafc78ab622d588138e19150b952816

See more details on using hashes here.

Provenance

The following attestation bundles were made for celine_ontologies-1.6.0.tar.gz:

Publisher: release.yaml on celine-eu/ontologies

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file celine_ontologies-1.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for celine_ontologies-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72d45f5e12d2bc7e9f6b5290d391d84e4d39241aa8846a54d7f104f36da43206
MD5 4747a93643b47089b222225f38c4856e
BLAKE2b-256 74e56a239966cd375ad30522b9a2ab70a98308f3f7815153c1c0295fa5daddee

See more details on using hashes here.

Provenance

The following attestation bundles were made for celine_ontologies-1.6.0-py3-none-any.whl:

Publisher: release.yaml on celine-eu/ontologies

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.11.0

2 files

1.10.1

2 files

1.8.0

2 files

1.7.0

2 files

1.6.1

2 files

This release

1.6.0 This release

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page