Minimal OWL + SHACL in meta.linked.archi: A Tool-Friendly Modeling Profile (Protégé, WIDOCO, VOWL)

Type: Guide
Published: 2026-01-22
Read time: 10 mins read
Licence: CC BY 4.0
A prescriptive profile for Linked.Archi ontologies: keep OWL lightweight for vocabulary semantics and tooling compatibility, and use SHACL as the normative closed-world constraint layer—optimized for Protégé authoring and WIDOCO/WebVOWL publishing.
linked-archimeta-linked-archiontologyowlrdfsshaclprotegewidocovowlwebvowlvalidationdata-qualitygovernance

Why this profile exists

Ontologies hosted in meta.linked.archi often sit at the intersection of two needs:

  1. A shared conceptual model and vocabulary (classes, properties, hierarchy, documentation metadata, modularization).
  2. Closed-world integrity constraints (required fields, cardinalities, conditional rules, “no extra properties”, controlled values, etc.).

A common and pragmatic architecture is:

  • OWL (but only a small subset) for the vocabulary / schema layer
  • SHACL for the constraint / validation layer

This guide formalizes that approach into a small, enforceable profile that remains compatible with common ontology tooling—especially Protégé for authoring, and * WIDOCO* + WebVOWL for documentation and visualization.

Learn more: OWL 2 Overview, * *RDF Schema (RDFS)**, SHACL


The core contract: OWL for meaning, SHACL for validity

OWL (vocabulary / semantics)

Use OWL to answer: “What does this term mean in the conceptual model?”

Typical OWL responsibilities in Linked.Archi include:

  • Declaring classes and properties
  • Distinguishing object properties vs datatype properties
  • Defining simple hierarchies (rdfs:subClassOf, rdfs:subPropertyOf)
  • Maintaining modularization (owl:imports)
  • Carrying documentation metadata (rdfs:label, skos:definition, etc.)

SHACL (constraints / closed-world validation)

Use SHACL to answer: “What must the data graph contain (or not contain) to be valid for this use case?”

Typical SHACL responsibilities include:

  • Cardinalities (sh:minCount, sh:maxCount)
  • Required properties (presence constraints)
  • Value constraints (sh:datatype, sh:class, sh:pattern, sh:in)
  • Closed shapes (sh:closed true)
  • Cross-field and conditional rules (e.g., “if A then B”)
  • Severity and reporting (sh:severity, sh:message)

This separation avoids the most common modeling failure mode: treating OWL axioms as if they were closed-world constraints.


Should you use OWL at all, or only RDFS?

You can build an RDFS vocabulary and put all constraints in SHACL. However, in practice, keeping OWL (even a very small subset) is usually the better trade for meta.linked.archi because it buys you:

1) Property typing that tools understand

Declaring:

  • owl:ObjectProperty vs
  • owl:DatatypeProperty

is a high-leverage feature for:

  • documentation generators
  • visualization (VOWL-style diagrams)
  • transformation pipelines and mappers
  • human understanding and review

In strict RDFS-only modeling, you lose that standardized distinction at the schema layer and must rely entirely on conventions or SHACL-only signals.

2) Better compatibility with documentation and visualization tools

Tools like WIDOCO and WebVOWL are strongly oriented around OWL/RDFS signals (classes, property types, hierarchies, metadata). If you model “schema = SHACL only”, diagrams and generated documentation tend to degrade unless you add an extra build step to synthesize an OWL/RDFS “view” for those tools.

3) A smoother authoring workflow in Protégé

Protégé is optimized for OWL 2 ontology editing. Keeping a minimal OWL vocabulary layer preserves a first-class editing experience (class/property views, imports, annotations, optional reasoning checks), while SHACL remains the normative constraint system.

Bottom line: RDFS-only is possible, but minimal OWL is usually more productive in a tool-centric ecosystem.


The Linked.Archi Minimal OWL Profile

This section is intentionally prescriptive. Treat it as a governance baseline. The normative statement of the profile is maintained in the meta.linked.archi design decisions — DD-2 Minimal OWL profile, DD-8 domainIncludes/rangeIncludes and DD-24 skos:prefLabel; this article explains the reasoning and the tooling consequences.

MUST: the minimum OWL you should keep

Ontology structure

  • owl:Ontology
  • owl:imports for modular composition

Classes

  • Named classes only (owl:Class or rdfs:Class)
  • Named taxonomy only (rdfs:subClassOf between named classes)

Properties

  • owl:ObjectProperty
  • owl:DatatypeProperty
  • owl:AnnotationProperty
  • Named hierarchy only (rdfs:subPropertyOf between named properties)

Term documentation

  • skos:prefLabel with a language tag — the canonical label (DD-24); rdfs:label only where a tool insists on it
  • skos:definition and/or rdfs:comment

SHOULD: allowed, but use with discipline

Domain and range

  • rdfs:domain / rdfs:range only when they are:
    • globally true, and
    • stable, and
    • not merely a “documentation hint”

If a property’s domain/range is contextual (varies by shape, or differs per subclass), do not use rdfs:domain/rdfs:range: annotate the intended classes with arch:domainIncludes/arch:rangeIncludes (guidance without inference, DD-8) and express the rule in SHACL.

Inverse properties

  • owl:inverseOf between named object properties is typically safe and helpful.

Disjointness

  • Use owl:disjointWith / owl:AllDisjointClasses for major conceptual partitions that are truly incompatible.

MAY: advanced semantics (only when you explicitly want inference meaning)

Property characteristics

  • owl:FunctionalProperty, owl:TransitiveProperty, owl:SymmetricProperty, etc.

These should be used only when the semantic commitment is globally correct. If the requirement is “exactly one value in this dataset/use case”, prefer SHACL cardinalities instead.


FORBID: keep OWL small and avoid “constraint-looking OWL”

To preserve clarity and avoid OWL-as-validation confusion, forbid the following in authoritative schema modules:

No OWL restrictions / anonymous expressions

  • owl:Restriction
  • owl:someValuesFrom, owl:allValuesFrom
  • OWL cardinalities (owl:minCardinality, owl:maxCardinality, owl:cardinality)
  • owl:hasValue, owl:hasSelf
  • Boolean class expressions (owl:intersectionOf, owl:unionOf, owl:complementOf)
  • Nominal enumerations (owl:oneOf) as a default pattern

No complex axiom features by default

  • owl:propertyChainAxiom
  • owl:hasKey
  • SWRL rules
  • Negative property assertions

If you ever need these, introduce them via an explicit “profile upgrade” decision (with documented rationale).


The SHACL profile: your normative constraint layer

NodeShape conventions

Use one primary shape per class:

  • ex:PersonShape targets ex:Person via sh:targetClass ex:Person
  • Keep naming consistent: <ClassName>Shape

PropertyShape conventions

Use:

  • sh:path for the predicate
  • For object links:
    • sh:nodeKind sh:IRI
    • sh:class ex:TargetClass (or sh:node for nested shape constraints)
  • For literals:
    • sh:datatype xsd:string (etc.)
    • sh:pattern for lexical constraints
  • For presence/cardinality:
    • sh:minCount, sh:maxCount
  • For controlled values:
    • sh:in (...) for small enumerations
    • or constrain to a SKOS scheme pattern with sh:class skos:Concept plus additional constraints

Closed-world behavior (when you mean it)

For record-like resources where additional properties are not allowed:

  • sh:closed true
  • sh:ignoredProperties for ubiquitous metadata such as:
    • rdf:type
    • rdfs:label
    • skos:prefLabel, skos:definition

This is one of the areas where SHACL shines and aligns directly with “closed-world scenarios.”


Protégé workflow: how to keep editing and validation clean

A practical file separation pattern:

  • ontology.ttl — OWL vocabulary (classes, properties, annotations, imports)
  • shapes.ttl — SHACL constraints

In Protégé:

  1. Open and edit ontology.ttl as the primary artifact.
  2. Use reasoning optionally to sanity-check your minimal OWL semantics.
  3. Validate instance data (and/or the integrated graph) against shapes.ttl using:
    • a Protégé SHACL plugin (if your team standardizes on one), or
    • an external validator in CI/CD (common options include pySHACL).

This preserves a clean mental model:

  • Protégé for OWL vocabulary authoring
  • SHACL for validation (inside or outside Protégé)

Documentation and diagrams: keep WIDOCO and VOWL/WebVOWL strong

WIDOCO documentation

WIDOCO performs best when your vocabulary includes:

  • explicit class/property declarations,
  • good labels/definitions,
  • a clean imports structure.

Recommendation:

  • Generate documentation from the OWL vocabulary module(s).
  • Add a dedicated “Validation” section linking to the SHACL shapes file and describing your constraint philosophy.

Useful references:

  • WIDOCO
  • LODE (commonly used in ontology documentation stacks)

VOWL/WebVOWL diagrams

VOWL-style diagrams are most useful when:

  • properties are typed (object vs datatype),
  • hierarchies exist,
  • and (optionally) domain/range exist.

If you intentionally avoid rdfs:domain/rdfs:range in OWL because they are not globally true, consider a build-time compromise:

Optional: generate a “diagram view” ontology

  • Read SHACL shapes:
    • sh:targetClass identifies the “domain side”
    • property shapes identify sh:path and value constraints (sh:class / sh:datatype)
  • Emit a derived OWL/RDFS file with domain/range only for visualization
  • Run WebVOWL against the derived file, not the authoritative vocabulary

This keeps:

  • the OWL vocabulary minimal and semantically honest
  • SHACL authoritative for constraints
  • diagrams rich and stakeholder-friendly

Example: minimal OWL + SHACL (Linked.Archi style)

The example uses an example.org namespace; published Linked.Archi modules follow the same split with https://meta.linked.archi/<module>/onto# for the vocabulary and https://meta.linked.archi/<module>/shapes# for the constraints (the TIME module is a compact real one).

Instead of rdfs:domain/rdfs:range, which are inference axioms rather than constraints, the vocabulary carries arch:domainIncludes/arch:rangeIncludes from the Linked.Archi core: annotation properties that guide authors, tools and diagram generators without typing anything by inference. SHACL then enforces what is actually required. The reasoning is set out in the domain & range guide.

OWL vocabulary module (example-onto.ttl)

@prefix ex:   <https://example.org/example/onto#> .
@prefix arch: <https://meta.linked.archi/core#> .
@prefix owl:  <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dct:  <http://purl.org/dc/terms/> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

<https://example.org/example/onto#>
    a                             owl:Ontology ;
    dct:title                     "Example: Minimal OWL + SHACL Profile"@en ;
    dct:description               "A lightweight OWL vocabulary with normative SHACL constraints defined separately."@en ;
    owl:versionInfo               "0.1.0" ;
    owl:imports                   <https://meta.linked.archi/core#> ;
    vann:preferredNamespacePrefix "ex" ;
    vann:preferredNamespaceUri    "https://example.org/example/onto#" ;
    rdfs:seeAlso                  <https://example.org/example/shapes#> .

ex:Person
    a               owl:Class ;
    skos:prefLabel  "Person"@en ;
    skos:definition "An individual human actor in the domain."@en .

ex:Organization
    a               owl:Class ;
    skos:prefLabel  "Organization"@en ;
    skos:definition "An entity that can employ or host persons."@en .

ex:worksFor
    a                   owl:ObjectProperty ;
    skos:prefLabel      "works for"@en ;
    skos:definition     "Relates a Person to an Organization they work for."@en ;
    arch:domainIncludes ex:Person ;         # guidance, not inference
    arch:rangeIncludes  ex:Organization .

SHACL constraints module (example-shapes.ttl)

@prefix ex:   <https://example.org/example/onto#> .
@prefix exsh: <https://example.org/example/shapes#> .
@prefix sh:   <http://www.w3.org/ns/shacl#> .

exsh:PersonShape
    a              sh:NodeShape ;
    sh:targetClass ex:Person ;
    sh:property    [ sh:path     ex:worksFor ;
                     sh:nodeKind sh:IRI ;
                     sh:class    ex:Organization ;
                     sh:minCount 1 ;
                     sh:maxCount 1 ;
                     sh:message  "A Person must have exactly one worksFor Organization."@en ] .

For VOWL/WebVOWL, the “diagram view” derivation described above can read arch:domainIncludes/arch:rangeIncludes directly instead of reconstructing edges from the shapes.


Decision matrix: where should a rule live?

Use this quick rule-of-thumb:

  • Meaning, taxonomy, term definitions → OWL/RDFS
  • Object vs datatype property → OWL
  • Required properties / cardinalities → SHACL
  • Conditional constraints (“if A then B”) → SHACL
  • Value sets / allowed values → SHACL (and/or SKOS publication)
  • Disjointness / inverses → OWL (only if globally true)

Modeling rules (review)

  • No OWL restrictions or anonymous class expressions in schema modules.
  • Every property is explicitly typed as object or datatype property.
  • SHACL is the sole normative constraint mechanism.
  • Every public term has label + definition/comment.

CI pipeline (automation)

  • Parse/Turtle checks

  • SHACL validation against:

    • example “good” data
    • example “bad” data (expected violations)
  • Optional: OWL reasoning checks only for the allowed subset


Getting started

  1. Define the OWL vocabulary modules using this minimal profile.

  2. Create SHACL shapes for each primary class (sh:targetClass).

  3. Add CI validation (start with one or two representative datasets).

  4. Publish documentation:

    • WIDOCO for the vocabulary
    • WebVOWL diagrams from either the vocabulary or a derived “diagram view”
  5. Document the contract clearly: OWL is descriptive; SHACL is normative.


Next steps

Summary

A lightweight OWL vocabulary plus SHACL constraints is a clean contract that scales—especially when your success criteria include good tool ergonomics, stable documentation, and reliable closed-world validation.