Domain Specification

A domain specification is a process to create a domain specific pattern, which is an extended subset of is a large vocabulary that covers several domains in a shallow way. To create a domain specific pattern, the domain specification process applies an operator on to remove the types and properties that are not relevant for the given domain, defines local properties on the remaining types and applies additional constraints on the ranges and values of remaining properties. The syntax of domain specification operator is a subset of Shapes Constraint Language (SHACL). The semantics is slightly different.

The domain specification process.
The domain specification process.

Relationship between SHACL and Domain Specifications

SHACL is a language that is built around the notion of shape in order to verify RDF graphs. A shape is either a node shape that applies constraints on nodes in an RDF graph, or a property shape that does the same to properties. In principle, we use SHACL as is, but we apply stricter syntax rules in terms of which constraint components can be applied on which type of shapes and how the shapes are interpreted (semantics). For instance, multiple target definitions are interpreted as disjunction in SHACL, but as a conjunction in domain specification approach.

For a domain specific pattern, please see the LodgingBusiness example. The domain specification operator as for this pattern is also available as a SHACL shape.