Skip to main content

scope-ontology

Multi-Agent System (MAS) Execution Ontology — RDF/OWL vocabulary and Python helpers for describing, validating, and querying multi-agent system telemetry as a knowledge graph.

Part of SCOPE.

What's included

Five Turtle ontologies under a single mas: namespace:

Ontology Covers
mas Core schema: MAS, Agent, LLM, Tool, Processing, their execution instances, and the normalized State/Transition trajectory
metrics Metric/MetricResult definitions and observations
semantic Embedding layer linking trajectory nodes to vector embeddings
analysis Group-scoped analysis reports (consistency, anomaly, normal behaviour)
insight Catalog-templated insights rendered onto a knowledge-graph node

Plus SHACL shapes (mas-shapes.ttl, mas-shapes-custom.ttl) for validating knowledge-graph instances against the ontology.

Install

pip install ioc-scope-ontology

Usage

Import the ontology in your own RDF

@prefix mas: <https://ioc-project.github.io/scope-ontology/mas#> .
@prefix ex: <http://example.org/myproject#> .

ex:myAgent a mas:Agent ;
    mas:executes ex:myTask .

ex:myMAS a mas:MAS ;
    mas:hasAgent ex:myAgent .

Access bundled files and load graphs

from scope_ontology import get_ontology_path, load_graph

# Valid names: mas, semantic, metrics, analysis, insight,
# mas-shapes, mas-shapes-custom
mas_path = get_ontology_path("mas")

g = load_graph("mas")

Validate and verify

from scope_ontology import validate_bundled_ontologies, verify_kg_object

# Structural validation of the bundled TTL files
report = validate_bundled_ontologies()

# SHACL-based verification of a KG object against mas-shapes(-custom).ttl
verify_kg_object(my_kg_dict)

Query with SPARQL

PREFIX mas: <https://ioc-project.github.io/scope-ontology/mas#>

SELECT ?agent ?task WHERE {
    ?agent a mas:Agent ;
           mas:executes ?task .
}

Documentation

Full ontology documentation (Widoco reference docs and WebVOWL visualizations for each component), versioning strategy, and the source repository are at:

https://ioc-project.github.io/scope/ontologies.html

License

Apache-2.0. The bundled ontology files declare dcterms:license <https://opensource.org/licenses/Apache-2.0> in their headers.

Metadata

Release files for ioc-scope-ontology 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ioc-scope-ontology 1.1.0
File Size Uploaded Provenance Actions
ioc_scope_ontology-1.1.0.tar.gz 39.5 kB With provenance Details for ioc_scope_ontology-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ioc-scope-ontology 1.1.0
File Interpreter ABI Platform Actions
ioc_scope_ontology-1.1.0-py3-none-any.whl Python 3 none any Details for ioc_scope_ontology-1.1.0-py3-none-any.whl

Total release size: 109.4 kB

Release files / ioc_scope_ontology-1.1.0.tar.gz

Download URL ioc_scope_ontology-1.1.0.tar.gz
Size 39.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bb4774200533b73d3dfe9b055e9417fc992dc1749ed95d94fea9a520a463c2cc
BLAKE2b-256 checksum
How to use checksums
ab574a477c5c61be3475a52350539e6fe6df91e5cb03e94cda8e7b5ced375263
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / ioc_scope_ontology-1.1.0-py3-none-any.whl

Download URL ioc_scope_ontology-1.1.0-py3-none-any.whl
Size 69.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60a4638d027904f62bde75689632709b793cfeafcade38d0972b3de66788c617
BLAKE2b-256 checksum
How to use checksums
baa14260c9ec8a78acc3b08782e72f6fbb29e337d5a6164eb5921bb7b65a8d79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Security for ioc-scope-ontology 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ioc_scope_ontology-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files Full provenance

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