forked from ldodds/datagovuk-checks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathall-vocab-tests.ttl
74 lines (62 loc) · 2.45 KB
/
all-vocab-tests.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
@prefix sch: <http://purl.org/net/schemarama#>.
@prefix dc: <http://purl.org/dc/elements/1.1/>.
#####################################################################
# TESTCASES
#####################################################################
# This is the main entry point. User should specify uri of this test case
# on the command-line. This is to allow for multiple entry points
<http://source.data.gov.uk/vocab-acceptance-tests> a sch:TestCase;
dc:title "data.gov.uk vocab acceptance tests";
dc:description "All vocab acceptance tests for data.gov.uk";
sch:groups (
_:terms
_:void
).
#####################################################################
# Terms
#
# Grouping of tests related to definitions of terms
#####################################################################
_:terms a sch:TestGroup;
dc:title "RDF Term tests";
dc:description "Check definitions of classes and properties";
sch:tests (
<vocabulary/uris.rq>
<vocabulary/ontology.rq>
<vocabulary/label-comment.rq>
<vocabulary/defined-by.rq>
<vocabulary/range-domain.rq>
).
<vocabulary/uris.rq> a sch:Test;
dc:title "URIs";
dc:description "All term uris should match data.gov.uk best practice".
<vocabulary/ontology.rq> a sch:Test;
dc:title "Ontology";
dc:description "Ontologies should be declared as such".
<vocabulary/label-comment.rq> a sch:Test;
dc:title "Terms descriptions";
dc:description "All terms should have useful descriptions".
<vocabulary/defined-by.rq> a sch:Test;
dc:title "Definitions";
dc:description "All terms should reference their defining vocabulary".
<vocabulary/range-domain.rq> a sch:Test;
dc:title "Range & Domain";
dc:description "All properties should indicate their range and domain".
#####################################################################
# VoID
#
# Group of tests generated from VoID ontology
#####################################################################
_:terms a sch:TestGroup;
dc:title "VoID Tests";
dc:description "VoID consistency tests generated by Pellet-IC";
sch:tests (
<void/feature-domain-Dataset.rq>
<void/functional-objectsTarget.rq>
).
<void/feature-domain-Dataset.rq> a sch:Test;
dc:title "feature domain Dataset";
dc:description "The domain of void:feature is void:Dataset".
<void/functional-objectsTarget.rq> a sch:Test;
dc:title "functional objectsTarget";
dc:description "void:objectsTarget is a functional property".