forked from ldodds/datagovuk-checks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
all-data-tests.ttl
114 lines (94 loc) · 3.48 KB
/
all-data-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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
@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/acceptance-tests> a sch:TestCase;
dc:title "data.gov.uk acceptance tests";
dc:description "All data acceptance tests for data.gov.uk";
sch:groups (
_:datasets
_:urisets
_:misc
).
#####################################################################
# DATASETS
#
# Grouping of tests related to void:Dataset
#####################################################################
_:datasets a sch:TestGroup;
dc:title "Dataset Tests";
dc:description "Check structure and content of datasets";
sch:tests (
<dataset/dataset-exists.rq>
<dataset/label-description.rq>
<dataset/status.rq>
<dataset/examples.rq>
<dataset/vocabulary.rq>
<dataset/license.rq>
<dataset/source.rq>
<dataset/status-warning.rq>
).
<dataset/dataset-exists.rq> a sch:Test;
dc:title "Dataset";
dc:description "Check for at least one void:Dataset".
<dataset/label-description.rq> a sch:Test;
dc:title "Labels and Descriptions";
dc:description "Check for dataset labels and descriptions".
<dataset/status.rq> a sch:Test;
dc:title "Status";
dc:description "Datasets should indicate their status".
<dataset/examples.rq> a sch:Test;
dc:title "Examples";
dc:description "Provide example resources to allow navigation".
<dataset/vocabulary.rq> a sch:Test;
dc:title "Vocabulary";
dc:description "Indicate vocabularies to aid querying".
<dataset/license.rq> a sch:Test;
dc:title "License";
dc:description "Datasets should indicate their license".
<dataset/source.rq> a sch:Test;
dc:title "Source";
dc:description "Datasets should indicate their source".
<dataset/status-warning.rq> a sch:Test;
dc:title "Status URIs";
dc:description "Status URIs conform to a limited vocabulary".
#####################################################################
# URISETS
#
# Grouping of tests related to specific aspects of dgu:URISet
#####################################################################
_:urisets a sch:TestGroup;
dc:title "URISet Tests";
dc:description "Check structure and content of urisets";
sch:tests (
<uriset/item-type.rq>
<uriset/links-to-uriset.rq>
<uriset/regex.rq>
<uriset/unmatched-regex.rq>
).
<uriset/item-type.rq> a sch:Test;
dc:title "URISet itemType".
<uriset/regex.rq> a sch:Test;
dc:title "Regex Patterns";
dc:description "URI sets should specify structure of the resource identifiers".
<uriset/links-to-uriset.rq> a sch:Test;
dc:title "URISet Links";
dc:description "Resources covered by a uri set description should link to their uriset".
<uriset/unmatched-regex.rq> a sch:Test;
dc:title "Unmatched Regex";
dc:description "Resources covered by a uri set description should match the declared regex".
#####################################################################
# MISCELLANEOUS TESTS
#
#####################################################################
_:misc a sch:TestGroup;
dc:title "Misc Tests";
dc:description "Checks for various common mistakes or omissions";
sch:tests (
<misc/notation-datatypes.rq>
).
<misc/notation-datatypes.rq> a sch:Test;
dc:title "Notation datatypes".