Chapter 2 of 10
Competency questions and vocabulary design
Ontology scope
About 4 minutes · includes examples, an exercise, and references
Chapter at a glance
- •Competency questions define measurable ontology scope.
- •Use SKOS for concept schemes and OWL/RDFS when formal semantics are required.
- •Definitions, examples, ownership, and lifecycle status are part of every term contract.
Ontology engineering should begin with questions and decisions, not with a blank diagram. A competency question states something the resulting knowledge system must be able to answer or validate. “Which suppliers provide components used by products affected by an active recall?” is better than “model suppliers,” because it exposes required identities, relations, temporal conditions, and evidence. A set of representative questions becomes an executable scope boundary: terms that support no question or policy require justification, and questions that cannot be answered expose missing structure.
Separate a taxonomy, a schema, and an ontology. A taxonomy organizes concepts, usually with broader and narrower links. SKOS is appropriate for controlled vocabularies, thesauri, subject headings, and mappings between concept schemes. A data schema describes expected fields and structures. An ontology makes semantic claims about classes, properties, individuals, and logical relationships. These artifacts can cooperate, but one should not be mislabeled as another. A product-category thesaurus does not automatically define the legal conditions under which a product is a medical device.
Build a term inventory from competency questions, existing standards, source fields, reports, and conversations with domain stewards. Classify each candidate as a class, relation, attribute, code-list concept, individual, or process artifact. Prefer relations that name stable domain meaning: suppliesComponent, governedByPolicy, or supersedesVersion. Avoid predicates that encode interface wording, report layout, or one source system’s column name unless the graph explicitly models that source schema.
Names are an interface. Give every term a stable IRI, a preferred label, a concise definition, examples, ownership, and status. Use alternative labels for search and migration, not as competing canonical terms. State whether labels are language-specific. Definitions should distinguish neighboring concepts and state necessary boundaries. “Customer: someone who buys things” is too vague for a system that must separate account holders, payers, beneficiaries, and authorized contacts.
Model relations explicitly enough to answer questions without deriving meaning from text labels. If an incident affects an asset through a deployed software version, represent the deployment and version relations rather than a generic relatedTo edge. Generic edges may aid exploratory search, but they destroy the ability to validate paths, apply policy, and explain why an answer follows. Every high-value relation should have expected subject and object kinds, temporal interpretation, provenance expectations, and an owner.
Reuse established vocabularies when their semantics fit. Reuse is not copying a familiar name onto a different concept. Read the source definition, domain assumptions, and version policy. Importing a large ontology merely to use two terms expands reasoning and governance surface area. A safer pattern is to depend on a small documented subset or map a local term to an external one with an explicit strength of correspondence. Exact equivalence is a strong logical claim, not a convenience for search.
Competency questions should cover positive, negative, temporal, provenance, and authorization cases. Ask not only “Which controls mitigate this risk?” but also “Which asserted mitigation lacks approved evidence?”, “Which claim was valid on the decision date?”, and “Which answer is visible to this role?” These questions prevent the ontology from becoming a static catalog detached from operations.
Use examples and counterexamples to review every important class. If Contractor is disjoint from Employee, can a person legitimately hold both relationships at different times or through two organizations? If yes, the model probably needs time-scoped roles rather than mutually exclusive person classes. Domain experts often resolve ambiguity faster with boundary examples than with abstract diagrams.
Version the vocabulary from the first release. Term status should include proposed, active, deprecated, and retired. A deprecated IRI should remain resolvable and point to migration guidance. Never silently reuse an old IRI for a new meaning. Competency questions, definitions, examples, mappings, and tests belong in the same review workflow as the ontology artifacts. The result is a semantic contract, not simply a set of triples.
Key points
- Competency questions define measurable ontology scope.
- Use SKOS for concept schemes and OWL/RDFS when formal semantics are required.
- Definitions, examples, ownership, and lifecycle status are part of every term contract.
- Generic relations trade short-term convenience for weak validation and explanation.
A small SKOS concept scheme
Read the expected behavior in the surrounding walkthrough, then copy and run this reference implementation.
@prefix ex: <https://kg.example/taxonomy/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
ex:riskScheme a skos:ConceptScheme ;
skos:prefLabel "Operational risk taxonomy"@en .
ex:serviceDisruption a skos:Concept ;
skos:inScheme ex:riskScheme ;
skos:prefLabel "Service disruption"@en ;
skos:altLabel "Service outage"@en ;
skos:broader ex:operationalRisk .Worked examples
Toy
Recipe vocabulary
A recipe app must answer which dishes are safe for a person with a specified allergen.
The question requires Ingredient, Dish, containsIngredient, and allergen classification. A cuisine taxonomy may help browsing, but it does not replace the relation that connects a dish to ingredients and the evidence for allergen status.
- Questions the model must answer
- Terms that are merely navigation labels
- Negative and unknown cases
Application
Cloud service catalog
An engineering portal needs ownership, dependency, deployment, and incident-impact questions.
Model services, deployed versions, teams, environments, and dependency assertions. Replace a generic dependsOn edge with typed runtimeDependency and buildDependency relations when different operational policies apply.
- Relation precision
- Term owners
- Deprecation plan
Exercise
Write an ontology charter
Define a narrow knowledge product and write ten competency questions before drawing any class hierarchy.
- Include two temporal and two provenance questions.
- Create a term inventory from the questions.
- Mark each term as class, relation, attribute, concept, or individual.
- Reject at least three attractive but out-of-scope terms.
Success criteria
- Every retained term supports a question or policy.
- Ambiguous neighboring concepts have distinct definitions.
- External vocabulary reuse is justified semantically.
- The charter names owners and release criteria.
Reflect: Which competency question most changed the structure you initially expected to build?
References and further reading
- SKOS Simple Knowledge Organization System ReferenceThe W3C Recommendation for concept schemes, preferred and alternative labels, and broader or narrower concept relations.
- RDF Schema 1.1The W3C Recommendation defining the RDF vocabulary for classes, properties, domains, ranges, and hierarchies.
- OWL 2 Web Ontology Language PrimerThe W3C primer for OWL classes, properties, individuals, restrictions, inference, and ontology design.