CELINE Ontologies support libraries
Project description
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:relatedMatchannotations, not OWL imports - Thin CELINE layer: only project-specific glue concepts are defined here
- Modular & versionable:
specs/andreleases/evolve independently - Tool-friendly: compatible with rdflib, JSON-LD processors, SHACL engines
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file celine_ontologies-1.3.0.tar.gz.
File metadata
- Download URL: celine_ontologies-1.3.0.tar.gz
- Upload date:
- Size: 544.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bbdb78339ed28bf7f4ad1f841a9dce4a4baaf3600debbf46d2a65568b07b60f
|
|
| MD5 |
85a48c307774630b14bea38d79ed0940
|
|
| BLAKE2b-256 |
33967e4687a469dc4405aa4eb9f091c63719beb80f7b649202e8367711fa93a8
|
Provenance
The following attestation bundles were made for celine_ontologies-1.3.0.tar.gz:
Publisher:
release.yaml on celine-eu/ontologies
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
celine_ontologies-1.3.0.tar.gz -
Subject digest:
1bbdb78339ed28bf7f4ad1f841a9dce4a4baaf3600debbf46d2a65568b07b60f - Sigstore transparency entry: 1440137321
- Sigstore integration time:
-
Permalink:
celine-eu/ontologies@93d480a31f144ea9054bfdc8991c33218435bcc5 -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/celine-eu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@93d480a31f144ea9054bfdc8991c33218435bcc5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file celine_ontologies-1.3.0-py3-none-any.whl.
File metadata
- Download URL: celine_ontologies-1.3.0-py3-none-any.whl
- Upload date:
- Size: 33.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf362e292213d78fbcf21ff08a8748999dc01ff349622b43cbc3fab3a51a9346
|
|
| MD5 |
0470dc407e913c6950f9d985a1c412e1
|
|
| BLAKE2b-256 |
ee9a09bc2f985296b7f756636be784e66b0a7c624bdd74d478012dfae40095dd
|
Provenance
The following attestation bundles were made for celine_ontologies-1.3.0-py3-none-any.whl:
Publisher:
release.yaml on celine-eu/ontologies
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
celine_ontologies-1.3.0-py3-none-any.whl -
Subject digest:
cf362e292213d78fbcf21ff08a8748999dc01ff349622b43cbc3fab3a51a9346 - Sigstore transparency entry: 1440137324
- Sigstore integration time:
-
Permalink:
celine-eu/ontologies@93d480a31f144ea9054bfdc8991c33218435bcc5 -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/celine-eu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@93d480a31f144ea9054bfdc8991c33218435bcc5 -
Trigger Event:
push
-
Statement type: