-
Notifications
You must be signed in to change notification settings - Fork 34
/
dwbp-example.ttl
99 lines (86 loc) · 4.71 KB
/
dwbp-example.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
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix pav: <http://pav-ontology.github.io/pav/> .
@prefix dqv: <http://www.w3.org/ns/dqv#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix : <http://data.mycity.example.com/ns#> .
# Basic facts about the dataset stops-2015-05-05
<http://data.mycity.example.com/transport/dataset/bus/stops-2015-05-05>
a dcat:Dataset;
dcterms:title "Bus stops of MyCity";
dcat:keyword "transport", "mobility" ,"bus";
dcterms:issued "2015-05-05"^^xsd:date;
dcat:contactPoint <http://data.mycity.example.com/transport/contact>;
dcterms:temporal <http://reference.data.gov.uk/id/year/2015>;
dcterms:spatial <http://www.geonames.org/3399415>;
dcterms:publisher <http://data.mycity.example.com/transport-agency-mycity>;
dcterms:accrualPeriodicity <http://purl.org/linked-data/sdmx/2009/code#freq-A>;
dcat:theme :mobility;
dcterms:language <http://id.loc.gov/vocabulary/iso639-1/en>, <http://id.loc.gov/vocabulary/iso639-1/pt>;
dcterms:conformsTo "ISO 8601";
dcat:distribution <http://data.mycity.example.com/transport/dataset/bus/stops-2015-05-05.csv>;
dcat:distribution <http://data.mycity.example.com/transport/dataset/bus/stops-2015-05-05.json>;
dcterms:creator <http://data.mycity.example.com/transport/people/adrian>;
owl:versionInfo "1.0";
pav:version "1.0".
# A mini SKOS concept scheme to cover the themes
:mobility a skos:Concept;
skos:inScheme :themes;
skos:prefLabel "Mobility".
:themes a skos:ConceptScheme ;
skos:prefLabel "A set of domains to classify documents".
# Facts about the transport agency
<http://data.mycity.example.com/transport-agency-mycity> a foaf:Organization, prov:Agent;
foaf:name "MyCity Transport Agency".
# Facts about the creator
<http://data.mycity.example.com/transport/people/adrian> a foaf:Person, prov:Agent;
foaf:givenName "Adrian";
foaf:mbox "mailto:[email protected]";
prov:actedOnBehalfOf <http://data.mycity.example.com/transport-agency-mycity>.
# The CSV distribution of the bus stops dataset
<http://data.mycity.example.com/transport/dataset/bus/stops-2015-05-05.csv>
a dcat:Distribution;
dcterms:title "CSV distribution of stops-2015-05-05 dataset";
dcterms:description "CSV distribution of the bus stops dataset of MyCity";
dcterms:license <http://creativecommons.org/licenses/by-sa/3.0/>;
dcat:mediaType "text/csv";
dcat:downloadURL <http://data.mycity.example.com/transport/dataset/bus/stops-2015-05-05.csv>;
dqv:hasQualityMeasurement :measure1, :measure2.
# Definition of Measures
:measure1 a dqv:QualityMeasurement;
dqv:computedOn <http://data.mycity.example.com/transport/dataset/bus/stops-2015-05-05.csv>;
dqv:isMeasurementOf :downloadURLAvailabilityMetric;
dqv:value "true"^^xsd:boolean.
:measure2 a dqv:QualityMeasurement;
dqv:computedOn <http://data.mycity.example.com/transport/dataset/bus/stops-2015-05-05.csv>;
dqv:isMeasurementOf :csvCompletenessMetric;
dqv:value "0.5"^^xsd:double.
# Definition of dimensions and metrics
:availability a dqv:Dimension;
skos:prefLabel "Availability"@en;
skos:definition "Availability of a dataset is the extent to which data (or some portion of it) is present, obtainable and ready for use."@en;
dqv:inCategory :accessibility.
:completeness a dqv:Dimension;
skos:prefLabel "Completeness"@en;
skos:definition "Completeness refers to the degree to which all required information is present in a particular dataset."@en;
dqv:inCategory :intrinsicDimensions.
:downloadURLAvailabilityMetric a dqv:Metric;
skos:definition "It checks if dcat:downloadURL is available and if its value is dereferenceable."@en;
dqv:inDimension :availability.
:csvCompletenessMetric a dqv:Metric;
skos:definition "Ratio between the number of objects represented in the cvs and the number of objects expected to be represented according to the declared dataset scope."@en;
dqv:inDimension :completeness.
# The JSON distribution of the bus stops dataset
<http://data.mycity.example.com/transport/dataset/bus/stops-2015-05-05.json>
a dcat:Distribution;
dcterms:title "JSON distribution of stops-2015-05-05 dataset";
dcterms:description "JSON distribution of the bus stops dataset of MyCity";
dcterms:license <http://creativecommons.org/licenses/by-sa/3.0/>;
dcat:mediaType "application/json";
dcat:downloadURL <http://data.mycity.example.com/transport/dataset/bus/stops-2015-05-05.json>.