This document is also available in these non-normative format: pdf
This document is licensed under
Creative Commons 0 Public Domain Dedication
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.
This is a draft that could be altered, removed or replaced by other documents. It is not a recommendation approved by TO.
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 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.
A set of rules published together, such as one regulation.
subclass of: Dataset

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 |
One rule within a rule set, such as an article.

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. |
A way of working with rules: publishing them, executing them, and so on.

How formal a rule set is.

properties:
| Property | Type/Range | Cardinality | Definition |
|---|---|---|---|
| levelValue | Level | 0..* | The levels there are. |
| natural language | |||
| formal | |||
| executable |
A method for publishing rules.
subclass of: Method

A method for executing rules.
subclass of: Method

The methods this version of the standard knows about.

properties:
| Property | Type/Range | Cardinality | Definition |
|---|---|---|---|
| lists | Method | 0..* | The methods in the catalogue. |
| gazette | |||
| engine | |||
| engine-test |
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.
Rules published in the official gazette, one rule set per issue.
subclass of: PublicationMethod

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.
Rules executed by a rules engine.
subclass of: ExecutionMethod

Test cases run against the rules engine.
subclass of: ExecutionMethod

Referenced in:
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.