Semantic conventions
Formal language choice
Title: Formal language choice |
Identifier SC-R1 |
Statement: The formal ontology shall be expressed in OWL 2. |
Description:
In the Semantic Web domain, two formal languages can be used for expressing the ontology: RDFS [rdfs] and OWL 2 [owl2]. RDFS is simpler and only allows for some of the recommended expressions (for example, the distinction between datatype and object properties is not possible). OWL 2 is more complex and more expressive than RDFS.
We recommend using only a limited set of expression types available in OWL 2 language [SC-R2].
Limited (OWL 2) expressivity
Title: Limited (OWL 2) expressivity |
Identifier SC-R2 |
Statement: The formal ontology shall be lightweight in its logical underpinning, focusing mainly on the concept declarations, generalisation axioms and annotations. |
Description:
OWL 2 language provides a high level of expressivity. In the SEMIC interoperability context, the primary purpose of semantic artefacts is to establish the common set of concepts and how they are employed in data exchange. For this purpose, simple OWL 2 constructs suffice. Therefore, the OWL 2 ontology shall be kept lightweight, and no advanced logical definitions are necessary, which would make the ontology heavyweight. The Bulletin of the Association for Information Science and Technology, dedicated an entire section on the charm of weak semantics in the linked data world. Backer & Sutton explain well how lightweight semantics supports interoperability and reuse [baker15].
We recommend the formal ontology definition be limited to the following types of expressions:
-
class declarations (
owl:Class
,rdfs:Class
) -
data property declarations (
owl:DatatypeProperty
,rdf:Property
) -
object property declarations (
owl:ObjectProperty
,rdf:Property
) -
subclass relations (
rdfs:subClassOf
) -
subproperty relations (
rdfs:subPropertyOf
) -
annotations
-
concept labels (
rdfs:label
,skos:prefLabel
,skos:altLabel
) -
concept definitions (
rdfs:comment
,skos:definition
,skos:scopeNote
) -
notes and comments (
rdfs:comment
,skos:editorialNote
,skos:changeNote
,skos:historyNote
,skos:example
)
-
-
ontology header with
-
import statements (
owl:import
) -
version metadata (
owl:versionInfo
,owl:versionIRI
) -
provenance metadata (e.g.
dct:issued
,adms:status
) -
descriptive metadata
-
The formal ontology shall not include other types of statements unless justified as necessary. The properties used, in particular those related to the ontology header, shall be aligned with the governance process.
No expressions of (a) property domain specification (rdfs:domain
) and (b) property range specification (rdfs:range
) shall be used unless justified as absolutely necessary. The need for setting property domain and range constraints is better fulfilled by the data shapes expressed in SHACL language.
Keeping the ontology lightweight allows the maximum freedom for reuse (e.g. in different application profiles, where domains/ranges can be specified or restricted), and does not interfere with the validation concerns covered by the data shapes.
Note: This recommendation does not prevent the generation of more heavyweight ontologies (i.e. with higher level of logical expressivity), as additional artefacts that would be included in the data specification. A data specification could even provide several such ontology versions, one for each OWL 2 profiles (EL/QL/RL), for example, if there are well-defined use cases identified for them. However, if such additional ontologies will be provided as part of the data specification, it is essential that they are all be kept consistent with all the other artefacts (including the lightweight ontology, the human-readable version, etc.) (see section on Transformation). Therefore, it is highly recommended having appropriate tool support, which enables the automatic generation of all the ontologies that are needed from the conceptual model. Regardless of how many ontology versions will be generated and published as part of the data specification, the most important thing, and hence the main point of this recommendation, is that there should always be at least one lightweight ontology, to support a highest level of interoperability and reuse. Often, this is called the "core" ontology, in data specifications that provide multiple ontology versions, while the other, more expressive, ontology versions have different names.
Lexicalisation
Title: Lexicalisation |
Identifier SC-R3 |
Statement: The choice in handling the lexicalisation of concepts shall be clearly defined and consistently implemented. |
Description:
The lexicalisation of concepts in semantic artefacts can be implemented in multiple ways. Two popular approaches are used in practice: RDFS or SKOS lexicalisation. However, other types can be considered as well (e.g. [lemon], [vann], etc.).
RDFS allows for a simple lexicalisation and annotation:
-
labels
-
rdfs:label
may be used to provide a human-readable version of a resource’s name.
-
-
comments
-
rdfs:comment
may be used to provide a human-readable description of a resource.
-
SKOS offers a richer and more elaborate lexicalisation and annotation:
-
Lexical labels
-
skos:prefLabel
andskos:altLabel
are useful when generating or creating human-readable representations of a knowledge organisation system. These labels provide the strongest clues as to the meaning of a SKOS concept. -
skos:hiddenLabel
has a more technical nature and may be useful when a user is interacting with a knowledge organisation system via a text-based search function. The user may, for example, enter misspelled words when trying to find a relevant concept.
-
-
Documentation properties
-
skos:definition
supplies a complete explanation of the intended meaning of a concept; -
skos:scopeNote
supplies some, possibly partial, information about the intended meaning of a concept, especially as an indication of how the use of a concept is limited in indexing practice; -
skos:note
useful for general documentation purposes; -
skos:example
supplies an example of the use of a concept; -
skos:historyNote
describes significant changes to the meaning or the form of a concept; -
skos:changeNote
documents fine-grained changes to a concept, for the purposes of administration and maintenance; -
skos:editorialNote
supplies information that is an aid to administrative housekeeping, such as reminders of editorial work still to be done, or warnings in the event that future editorial changes might be made.
-
We recommend one, or the other is used. Both can be used at the same time without any consequence of semantics, but this will introduce redundancy and possibly a maintenance burden.
Reasoning assumption
Title: Reasoning assumption |
Identifier SC-R4 |
Statement: No reasoning capabilities shall be assumed. |
Description:
OWL 2 constructs correspond to Description Logic (DL) concepts (direct semantics). Logic, besides expressing knowledge in a knowledge base, can be used to perform automated reasoning, i.e., inferring new knowledge based on premises and reasoning rules. The inference is also possible with RDF-based semantics, based on translating the axioms into directed graphs. The latter is used for SPARQL entailments and SHACL data shape rules.
Automated reasoning is not consistently available across environments: small differences in the usage context or reasoning patterns may lead to different outcomes.
Therefore, the editors of interoperable semantic data specifications are strongly recommended to NOT rely on such capabilities. Thus, in practice, the model shall allow for an explicit statement of the intended knowledge, and as little as possible shall be left implicit.
Circular definitions
Title: Circular definitions |
Identifier SC-R5 |
Statement: The data specification (semantic, conceptual, or shape) shall not use circular definitions. |
Description:
Circular definition, i.e., definitions that use the element they define are incorrect.
For instance, we say that an ontology element (a class, an object property or a data property) is circular when used in its own definition. This can occur in situations such as the following:
-
(a) the definition of a class as the enumeration of several classes including itself;
-
(b) the appearance of a class within its
owl:equivalentClass
orrdfs:subClassOf
axioms; -
(c) the appearance of an object property in its
rdfs:domain
orrdfs:range
definitions; or -
(d) the appearance of a data property in its
rdfs:domain
definition.