Sample vocabulary

An example of a standard whose documentation is generated from RDF

MinBZK - Dutch Ministry of Internal Affairs Standard
Draft

Latest published version:
https://standaarden.open-regels.nl/standards/sample
Editor:
Open Regels (ICTU)

This document is also available in these non-normative format: pdf


Abstract

The sample vocabulary describes rule sets, the rules in them, and the methods used to publish and execute them. It is an example: everything after the introduction is generated from its RDF definitions.

Status of This Document

This is a draft that could be altered, removed or replaced by other documents. It is not a recommendation approved by TO.

1. Introduction

This section is non-normative.

A RuleSet bundles Rules, such as the articles of one regulation. Each rule set is published or executed with a Method; the methods this version knows about are grouped in method modules.

The sample vocabulary and how it relates to DCAT
Figure 1 The sample vocabulary and how it relates to DCAT
The kinds of method
Figure 2 The kinds of method

The chapters after this one are generated from the definitions in rdf/0.1.0/: classes and properties from sample.ttl and methods.ttl, cardinalities and allowed values from sample.shacl.ttl, and the method modules from methods/*/method.ttl with the README.md next to each.

2. Vocabulary

2.1 RuleSet

A set of rules published together, such as one regulation.

subclass of: Dataset

class diagram RuleSet
Figure 3 class diagram RuleSet

properties:

Property Type/Range Cardinality Definition
title xsd:string 1..1 The name of the rule set.
validFrom xsd:date 0..1 The first day the rule set applies.
hasPart Rule 1..* The rules a rule set, or a rule, consists of, in order.
usesMethod PublicationMethod, ExecutionMethod 1..* The method the rule set was made or published with.
hasLevel Level 0..1 How formal the rule set is.
natural language
formal
executable

2.2 Rule

One rule within a rule set, such as an article.

class diagram Rule
Figure 4 class diagram Rule

properties:

Property Type/Range Cardinality Definition
hasPart Rule 0..* The rules a rule set, or a rule, consists of, in order.
text rdf:langString 1..1 The rule as written.
number xsd:string 0..1 The rule's number within its rule set, such as 3.1.

2.3 Method

A way of working with rules: publishing them, executing them, and so on.

class diagram Method
Figure 5 class diagram Method

2.4 Level

How formal a rule set is.

class diagram Level
Figure 6 class diagram Level

properties:

Property Type/Range Cardinality Definition
levelValue Level 0..* The levels there are.
natural language
formal
executable

2.5 PublicationMethod

A method for publishing rules.

subclass of: Method

class diagram PublicationMethod
Figure 7 class diagram PublicationMethod

2.6 ExecutionMethod

A method for executing rules.

subclass of: Method

class diagram ExecutionMethod
Figure 8 class diagram ExecutionMethod

3. Methods

3.1 Catalogue

The methods this version of the standard knows about.

class diagram Catalogue
Figure 9 class diagram Catalogue

properties:

Property Type/Range Cardinality Definition
lists Method 0..* The methods in the catalogue.
gazette
engine
engine-test

4. Method modules

4.1 gazette (method module)

The official gazette publishes each regulation as one issue. The gazette method reads an issue and turns it into a rule set, one rule per article.

4.1.1 gazette

Rules published in the official gazette, one rule set per issue.

subclass of: PublicationMethod

class diagram gazette
Figure 10 class diagram gazette

4.2 engine (method module)

Formal rules can be loaded into a rules engine and executed. The module has two methods: running the rules, and testing them against known cases.

4.2.1 engine

Rules executed by a rules engine.

subclass of: ExecutionMethod

class diagram engine
Figure 11 class diagram engine

4.2.2 engine-test

Test cases run against the rules engine.

subclass of: ExecutionMethod

class diagram engine-test
Figure 12 class diagram engine-test

5. Conformance

As well as sections marked as non-normative, all authoring guidelines, diagrams, examples, and notes in this specification are non-normative. Everything else in this specification is normative.

6. List of Figures

A. Index

A.1 Terms defined by this specification

A.2 Terms defined by reference

MinBZK - Dutch Ministry of Internal Affairs Standard - Draft