Chapter overview
Reading options
NOTEBOOK 07

Ontologies

You’re reading the fixed October 2026 · Interactive reuse and evidence edition.Current notebook ↗
FOUNDATIONS / NOTEBOOK 07

Reuse MODAVIS: build a small evidence graph

Use the released ontology to distinguish an instrument from its representation, attach accountable evidence, and validate a small graph. Start with a real, runnable fixture and extend it only when your research question needs more.

Key idea & worked example

An ontology is an explicit agreement about the kinds of things we describe and the relationships between them. Its first useful distinction here is between an instrument and a representation of it.

An identity answers “which thing?”; a representation relationship answers “what is this about?”.See the worked example →

1. Begin with a question, then identify the things

Ask a small question: “Which digital representation refers to this instrument?” Give the instrument and representation separate stable identifiers. RDFRDFA graph data model: statements connect a subject to an object through an identified relationship. For Cuntz, an observation can point to the pipe it describes and the evidence it uses.Follow a Cuntz observation through the graph → records a connection as a subject, a predicate and an object. Turtle is a compact text notation for those triples. Prefixes shorten complete IRIs; they do not change their meaning.

Two subjects, one explicit relation
  1. Instrument IRIex:instrumentMusicalInstrument: the research subject.
  2. Representation IRIex:modelDigitalRepresentation: a separate digital resource.
Read the triple as “ex:model representationOf ex:instrument”. Never merge the two identities with owl:sameAs.

The starter graph is deliberately generic. It uses ex:instrument and ex:model under https://example.org/modavis/learning/. These are practice identifiers, not identifiers from the Cuntz release. For your own work, use your project’s governed identity route and qualified sources. A model represents an object; that relationship never establishes that the two are the same thing.

Download the reuse starter kit ZIP · 7.4 KiB ↗

A small, attributed VAO 0.5.0 workspace fixture, a generic MODAVIS graph, an intentionally invalid graph, a SPARQL query and a local validation helper. The fixture is not the Cuntz dataset; the full normative tools come from the linked releases.

2. Reuse the modules your question needs

Choose meaning by responsibility
  1. Describe the subjectCore · Instrument · OrganLabels, instrument identity, states and components; organ specialization only when appropriate.
  2. Explain the claimEvidence · Assertion · ContextSources, attributable statements and explicit applicability.
  3. Describe the digital resourceMedia · ProvenanceRepresentation status, exact resources and processing lineage.
The full network has fourteen modules. You can learn with a small graph while the validator loads the released hierarchy required by its profiles.

Use generic Instrument terms for a violin, bell or another instrument; Organ supplies a specialization, not a universal template. Audio and MIDI concern signal and protocol records. Events records historical occurrences. Virtual InstrumentVirtual instrumentA playable digital representation whose behaviour depends on particular resources, mappings and software. It is not identical to the physical instrument it may represent.Work through the Cuntz example → separates playable instruments, products, versions and packages. Heritage governs contextual recognition and knowledge snapshots; Vocab supplies reviewed SKOSSKOSA model for controlled concepts, labels and their relationships. A vocabulary concept such as an instrument type remains distinct from a particular museum object.Separate a Cuntz label from a type concept → concepts. Reuse the term whose definition fits your subject instead of choosing by a familiar name alone.

3. Read the complete first graph

Technical detail · Turtle · complete generic teaching graph
Turtle · complete generic teaching graph
# Teaching adaptation of MODAVIS Ontology Network 0.1.0 examples.
# Author: Dominik Ukolov / MODAVIS. Source terms and fixtures: CC BY 4.0.
# This generic learning graph does not assert historical facts about Cuntz.
@prefix ex: <https://example.org/modavis/learning/> .
@prefix modavis: <https://w3id.org/modavis/ontology/core#> .
@prefix modinst: <https://w3id.org/modavis/ontology/instrument#> .
@prefix modmedia: <https://w3id.org/modavis/ontology/media#> .
@prefix insttype: <https://w3id.org/modavis/vocab/instrument-type/> .
@prefix repstatus: <https://w3id.org/modavis/vocab/representation-status/> .

ex:instrument a modinst:MusicalInstrument ;
  modavis:canonicalLabel "Learning organ"@en ;
  modinst:instrumentType insttype:pipe-organ .

ex:model a modmedia:DigitalRepresentation ;
  modavis:canonicalLabel "Illustrative model"@en ;
  modmedia:representationOf ex:instrument ;
  modmedia:representationStatus repstatus:authored .
NotationRead it as
@prefix modmedia: …Use a short name for the released Media term namespace.
a modinst:MusicalInstrumentThe resource is declared to be a musical instrument.
"Learning organ"@enA readable label whose language is English.
modmedia:representationOf ex:instrumentThis separate representation depicts the identified instrument.
repstatus:authoredA governed representation status for this deliberately authored teaching example.

The namespace IRIs above identify public terms. The validator below pins their meanings and constraints by loading the 0.1.0 release files. Do not append /0.1.0/ to a term namespace just because module documents have version IRIs. Term identity and the immutable ontology document that declares it are separate roles.

Cuntz · Worked example#

Is the 3D model the Cuntz organ?

An ontology is an explicit agreement about the kinds of things we describe and the relationships between them. Its first useful distinction here is between an instrument and a representation of it.

A representation keeps its own identity
  1. Physical subjectCuntz positive organThe instrument the research concerns.
  2. Digital representationThe GLB modelA file representing selected visible features.
“Represents” connects these identities; high visual fidelity does not make them identical.
Work through the example 3 STEPS

The physical Cuntz positive organ is identified as mXp 4010243. The release also contains a geometric model and audio files. They concern the instrument, but each has its own identity.

  1. Name the physical subject

    Use the instrument identity for claims about the organ itself. Its record can link to the museum and to documentary evidence.

  2. Name each representation

    Give a model, a recording and a playable software product separate identities. A relationship such as “represents this instrument” connects them without declaring them the same thing.

  3. Follow a change

    Compressing the model changes its digital realization. It does not rebuild the museum instrument. Repairing a physical component is a different event and needs its own evidence.

BASIS FOR THIS EXAMPLE
  • Cuntz Positiv · VAO 0.5.0-rc.2 ↗

    Published manifest: identities, measurement observations, realization digests, profiles and rights. Exact examples checked against this release.

  • MODAVIS Ontology Network 0.1.0 ↗

    Identity, state, configuration, evidence, assertions, context and provenance. Teaching examples explain its distinctions without inventing new normative properties.

The displayed model is a derived visualization with an unverified physical scale. Being about the Cuntz organ does not make every visible detail a measured historical fact.

The useful distinction. An identity answers “which thing?”; a representation relationship answers “what is this about?”.

4. Validate with the pinned release hierarchy

Download and extract the ontology release. Use its source/ directory as the working directory: it contains ontology/, vocab/, shapes/ and requirements-dev.txt. Prepare a separate environment and install its pinned dependencies. Keep this environment separate from the VAO tools if their dependency locks differ.

Technical detail · Ontology 0.1.0 source/ root · environment setup
Ontology 0.1.0 source/ root · environment setup
python3 -m venv .venv
. .venv/bin/activate
python -m pip install --require-hashes -r requirements-dev.txt

Run the kit’s helper from that directory, replacing the example kit path with the location where you extracted it. The helper loads every local ontology and vocabulary file as class-hierarchy knowledge, then the exchange shapes. It intentionally excludes the publication profileProfileA versioned set of additional requirements. A client must satisfy the declared capabilities before claiming full support for that profile.Work through the Cuntz example →, whose additional requirements concern publication resources. It fetches no remote imports and runs no general inference.

Technical detail · Ontology source/ root · positive and negative checks
Ontology source/ root · positive and negative checks
python /path/to/modavis-learning-kit/verify-graph.py --release . --data /path/to/modavis-learning-kit/learning-instrument.ttl
python /path/to/modavis-learning-kit/verify-graph.py --release . --data /path/to/modavis-learning-kit/invalid-self-representation.ttl
Read the two reports side by side
  1. Separate identitiesConforms: TrueThe generic model represents the distinct instrument.
  2. Self-representationConforms: FalseThe invalid variant makes the model represent itself.
The negative graph should report a representation cycle and return exit code 1. That failure is the intended learning result, not a broken installation.

Inspect the failing record and change its represented resource back to ex:instrument. Never “fix” the exercise by deleting the applicable shape. A valid positive example and a failing negative example make the rule understandable and demonstrate that your local checking path is active. Neither report establishes historical truth.

5. Query the question you started with

Technical detail · SPARQL · which representation refers to which subject?
SPARQL · which representation refers to which subject?
PREFIX modavis: <https://w3id.org/modavis/ontology/core#>
PREFIX modmedia: <https://w3id.org/modavis/ontology/media#>
SELECT ?representation ?label ?subject WHERE {
  ?representation modmedia:representationOf ?subject ;
                  modavis:canonicalLabel ?label .
}
Technical detail · Python · execute the query over the kit graph
Python · execute the query over the kit graph
from pathlib import Path
from rdflib import Graph
kit = Path('/path/to/modavis-learning-kit')
graph = Graph().parse(kit / 'learning-instrument.ttl', format='turtle')
for row in graph.query((kit / 'representations.rq').read_text()):
    print(row.representation, row.label, row.subject)

The positive fixture returns one row: the model IRI, “Illustrative model”, and the instrument IRI. A query result shows what this graph says. It is not an independently verified attribution or a search across every MODAVIS collection.

6. Grow through qualified records, not invented shortcuts

A qualified claim remains connected to its grounds
  1. Source fragmentAn inspectable passageA selector locates evidence in a fixed source snapshot.
    is used by an evidence relation
  2. Evidence relationHow the source bears on itSupporting, opposing or another governed role.
    is evaluated by that relation
  3. AssertionAn attributable claimSubject, predicate, value, status and generating activity.
Context bindings qualify the assertion’s applicability; provenance describes the record’s production. These are additional links, not a single undifferentiated date field.

For a source-backed claim, study the released event-assertionAssertionA statement that can be identified, attributed, qualified and reviewed. Its presence in a source or dataset does not by itself establish truth.Work through the Cuntz example →.ttl example. It records a SourceResource, a checksum-fixed SourceSnapshot, a SourceFragment with a Selector, an EvidenceRelation and an Assertion. The assertion uses assertsSubject, assertsPredicate and assertsObject or assertsLiteral, plus its status and generating activity. Use rawValue for source wording when needed; a literal’s datatype and language still matter for comparison.

Keep context separate from provenanceProvenanceThe documented origin and processing or editorial history of a resource or statement. It explains how a result came about.Work through the Cuntz example →. ContextBinding explains where, when or from which perspective an assertion applies. PROV-O-compatible activities and agents explain how the record was produced. A recent cataloguing date can describe a claim about an older instrument stateInstrument stateA historically scoped condition or arrangement of an instrument. A statement about one state should not automatically describe the instrument at every date.Work through the Cuntz example →. No context binding means unqualified or unknown applicability, not validity for all time.

A component’s role is an identified assignment
  1. InstrumentA violinThe generic released example works beyond organs.
    has a component record
  2. ComponentIts stringA component identity is distinct from membership.
    has a role assignment
  3. Assigned roleSound generatorA FunctionalRoleAssignment carries the role.
Use ComponentMembership when instrument, parent, type or scope matters. The direct hasComponent link is a discovery shortcut.

For components, read the complete released violin example. hasComponent is useful for discovery; ComponentMembership and FunctionalRoleAssignment preserve the structural and functional distinctions when scope matters. A string can remain the same component while a documented membership or role assignment changes. Do not copy an organ-specific property into a non-organ project merely to make a shape pass.

Cuntz · Worked example#

How can two accounts disagree without corrupting the database?

An assertion is an attributable claim. A review decision records how that claim is interpreted; a projection is a selected view of the reviewed knowledge.

A claim is a record you can inspect
  1. Account AA sourced assertionIts source, scope and review status stay visible.
  2. Account BAnother sourced assertionRetain disagreement until its grounds are reviewed.
Two assertions can coexist. A reviewed display must explain its selection instead of deleting the alternative.
Work through the example 3 STEPS

The Cuntz thesis description and the digital inventory present different register counts. Treating the latest imported count as an unconditional replacement would erase the question the discrepancy raises.

  1. Store both claims with their scope

    Retain the four-register physical description and the five-label digital configuration, including their sources and intended subjects.

  2. Review the relationship

    Ask whether the accounts concern comparable states and counting units. The missing Regal 8′ mapping remains an explicit review issue rather than an invented explanation.

  3. Publish an understandable view

    A catalogue summary can show a selected statement and its qualification, while an evidence view exposes the other assertion and the reason the relationship remains unresolved.

BASIS FOR THIS EXAMPLE
  • Cuntz Positiv · VAO 0.5.0-rc.2 ↗

    Published manifest: identities, measurement observations, realization digests, profiles and rights. Exact examples checked against this release.

  • MODAVIS Ontology Network 0.1.0 ↗

    Identity, state, configuration, evidence, assertions, context and provenance. Teaching examples explain its distinctions without inventing new normative properties.

  • Dominik Ukolov · Musikinstrumente im virtuellen Raum (2026)

    Submitted dissertation, 11 September 2026; §§8.2.2.1 and 8.4.1, printed pp. 264–265 and 275–276. The historical description and digital inventory require a resolved mapping; the manuscript is not redistributed here.

This is a teaching application of the assertion model, not a claim that a new authoritative review of the historical register mapping has been completed.

The useful distinction. A clean interface can present an editorial decision without deleting the evidence behind competing interpretations.

7. Reuse, profile or extend: make the choice explicit

Your needA reusable approach
The existing definition fitsUse the published term and retain its declared semantics.
Your collection requires a narrower recordCreate a versioned application SHACL profile with documented requirements.
Your subject has a concept the network does not expressUse a project-owned namespace and document the extension; keep its scope clear.
You link another ontology or classification schemePublish a separately owned, versioned mapping. Avoid unsupported equivalence or owl:sameAs claims.
You publish a revised research recordRetain source assertions, decisions and snapshot identity; do not overwrite the earlier account.

Use the fourteen-module network as a shared vocabulary for your research questions, not a reason to invent fields for every module in every graph. Start with the small, tested question above. Add one qualified relationship at a time, keep a positive and negative fixture for your own requirements, and make the sources and unresolved claims available to the next researcher.

Sources & further reading

  1. MODAVIS Ontology Network 0.1.0 · immutable release

    Terms, governed vocabularies, versioned shapes and interpretation guide.

  2. MODAVIS 0.1.0 interpretation guide
  3. Released non-organ example: violin
  4. Released assertion and context example
  5. VAO Standard 0.5.0 · immutable release

    Specification, schemas, reference tools and fixtures. Use this exact standard version for the exercises.

  6. Cuntz Positiv · content release 0.5.0-rc.2

    The real observation and model used for the Cuntz examples. Its content version differs from VAO formatVersion 0.5.0.

Page editions 2026-10-workbench ↓

Read a fixed snapshot of this chapter, or return to the current notebook.

Edition 2026-10-workbench · SHA-256 874d5396c0e0Page metadata ↗