However well the classes and properties are divided, the IRI ex:C0042 alone does not say what it is. Names and definitions play no part in inference, yet they usually decide whether anyone else adopts the ontology. The names and descriptions on the ontology pages of this site are all read from this information in the definition file.
Properties for naming and defining
| Property | Used for |
|---|---|
rdfs:label | The name to show on screen |
rdfs:comment | A description for people |
skos:prefLabel, skos:altLabel | The preferred name, and other names used for finding |
skos:definition | A definition that pins the meaning down |
skos:scopeNote, skos:example | What is included, and an example of use |
rdfs:seeAlso, rdfs:isDefinedBy | Further reading, and the ontology that defines the term |
owl:deprecated | A mark that the term is no longer to be used |
ex:Cat rdfs:label "Cat"@en , "고양이"@ko .
One class now has two labels. Both use the same property, rdfs:label, and the language tag at the end tells them apart.
ex:Cat skos:definition "A feline kept by people"@en .
One sentence carries the broader concept ("a feline") and what sets this one apart ("kept by people"). Using a different property from the label lets a tool show name and definition separately.
ex:Cat skos:scopeNote "Includes strays"@en .
A proviso too long for the definition goes into a scope note. Through all three steps the class hierarchy has not changed at all. Everything added is for people.
OWL calls these annotation properties. A reasoner does not read them, so whatever is written there leaves the inferences unchanged.
Language tags
A language is attached after the string, as in "Cat"@en and "고양이"@ko. A screen picks the name in the user's language and falls back to another when there is none. The untagged "Cat" and the tagged "Cat"@en are different values, so keep to one style within an ontology.
PREFIX ex: <https://example.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?label WHERE {
ex:Cat rdfs:label ?label .
FILTER (LANG(?label) = "en")
}
This is how a screen chooses a name. Of the two labels, only the one whose language tag matches remains. A label with no tag has an empty LANG and would not match here.
Writing a good definition
- Use the form "An A is a B that …". Name the broader concept, then what sets this one apart from its siblings.
- Do not repeat the name. "Cat owner: the owner of a cat" is not a definition.
- Keep what is included and excluded out of the definition and put it in a scope note.
- Give the source when there is one. A definition taken from a standard or a dictionary is evidence.
Naming IRIs
| Style | Example | Trade-off |
|---|---|---|
| Readable names | ex:Cat, schema:Person | Easy to write. Awkward once you want to rename, because the IRI changes with the name |
| Opaque numbers | GO_0008150 (Gene Ontology), Q146 (Wikidata) | Only the label changes. Suits large, multilingual term systems |
With readable names, the common convention is to start classes with a capital (ex:CatOwner) and properties with a lower-case letter (ex:keptBy).
The ontology header
The ontology itself needs describing, not only its terms. With the ontology IRI as the subject, state the title, description, licence and version.
<https://example.org/pets> a owl:Ontology ;
dcterms:title "Pet Ontology"@en ;
dcterms:description "Describes pets, their keepers and shelters."@en ;
dcterms:license <https://creativecommons.org/licenses/by/4.0/> ;
dcterms:modified "2026-03-02"^^xsd:date ;
owl:versionIRI <https://example.org/pets/1.2.0> ; # the address of this release only
owl:versionInfo "1.2.0" ;
vann:preferredNamespacePrefix "pet" .dcterms: and vann: are prefixes of public vocabularies that supply header fields such as title, licence and preferred prefix. The collector behind this site reads the title, description, licence, version and modification date from this header. An ontology with an empty header shows empty cells in the listing.
Common misunderstandings
- A well-chosen label lets a program understand the meaning.
- To a program a label is only a string. Meaning comes from the class hierarchy and the property declarations. Labels are for people.
- The same label means the same concept.
- The IRI decides what is the same. An "Event" in two different ontologies often shares the name and differs in scope.
- Definition, examples and change history can all go into one
rdfs:comment. - Kept apart, a tool can show the definition on its own. Put the definition in
skos:definitionand the scope inskos:scopeNote.
Names and definitions serve reuse, not inference. Give every term a label and a definition, and give the ontology a title, a licence and a version.
See it in a real ontology
- SKOS Simple Knowledge Organization System
Provides the properties for preferred names, other names and definitions. - DCMI Metadata Terms
Properties used in headers, such as title, description, licence and modification date. - VANN: A vocabulary for annotating vocabulary descriptions
A vocabulary for stating the preferred prefix and namespace.