@@ -14,8 +14,31 @@ DCAT vocabulary has already defined concept `dcat:Dataset` is a concept in DCAT2
1414### Example rdf (turtle)
1515
1616``` ttl
17-
18-
17+ @prefix : <http://purl.org/ejp-rd/metadata-model/v1/example-rdf/> .
18+ @prefix dcat: <http://www.w3.org/ns/dcat#> .
19+ @prefix dct: <http://purl.org/dc/terms/> .
20+ @prefix foaf: <http://xmlns.com/foaf/0.1/> .
21+ @prefix ordo: <http://www.orpha.net/ORDO/> .
22+ @prefix sio: <http://semanticscience.org/resource/> .
23+
24+ :dataset a dcat:Dataset ;
25+ dct:publisher :publisher ;
26+ dct:title "dataset 1" ;
27+ dct:description "An examplar dataset" ;
28+ dcat:theme ordo:Orphanet_892 ;
29+ dcat:keyword "Test", "Example" ;
30+ dct:license <https://creativecommons.org/licenses/by/4.0> ;
31+ dct:hasVersion "1.0" ;
32+ sio:SIO_000001 :patientRegistry;
33+ dcat:distribution :example-distribtion;
34+ dcat:landingPage <http://example.org/CAT01902019> .
35+
36+ :publisher a foaf:Agent ;
37+ dct:title "Some organisation or a person" ;
38+ dct:spatial :location .
39+
40+ :location a dct:Location ;
41+ dct:title "Germany" .
1942```
2043
2144***
@@ -25,16 +48,50 @@ DCAT vocabulary has already defined concept `dcat:Dataset` is a concept in DCAT2
2548##### ShEx figure
2649
2750<p align =" center " >
28- <a href="../images/shex/dataset.png " target="_blank">
29- <img src="../images/shex/dataset.png ">
51+ <a href="../images/shex/dataset.svg " target="_blank">
52+ <img src="../images/shex/dataset.svg ">
3053 </a>
3154</p >
3255
3356***
3457##### ShEx
3558
3659``` ShEx
37-
60+ PREFIX : <http://purl.org/ejp-rd/metadata-model/v1/shex/>
61+ PREFIX dcat: <http://www.w3.org/ns/dcat#>
62+ PREFIX dct: <http://purl.org/dc/terms/>
63+ PREFIX ejp: <http://purl.org/ejp-rd/vocabulary/>
64+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
65+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
66+ PREFIX sio: <http://semanticscience.org/resource/>
67+
68+ :datasetShape IRI {
69+ a [dcat:Dataset];
70+ dct:title xsd:string;
71+ dct:description xsd:string*;
72+ dcat:theme IRI+;
73+ dct:license IRI;
74+ sio:SIO_000001 IRI;
75+ dct:hasVersion xsd:string;
76+ dct:keyword xsd:string*;
77+ dct:publisher @:organisationShape;
78+ dcat:landingPage IRI*;
79+ dcat:distribution IRI*
80+ }
81+
82+ :locationShape IRI {
83+ a [dct:Location];
84+ dct:title xsd:string;
85+ dct:description xsd:string*;
86+ }
87+
88+ :organisationShape IRI {
89+ a [foaf:Agent];
90+ dct:title xsd:string;
91+ dct:description xsd:string*;
92+ dct:spatial @:locationShape*;
93+ foaf:page IRI*
94+ }
3895```
3996
4097
@@ -56,8 +113,27 @@ Often a dataset can be made available for use via data dump such RDF,mysql data
56113### Example rdf (turtle)
57114
58115``` ttl
59-
60-
116+ @prefix : <http://purl.org/ejp-rd/metadata-model/v1/example-rdf/> .
117+ @prefix dcat: <http://www.w3.org/ns/dcat#> .
118+ @prefix dct: <http://purl.org/dc/terms/> .
119+ @prefix foaf: <http://xmlns.com/foaf/0.1/> .
120+
121+ :distribution a dcat:Distribution ;
122+ dct:publisher :publisher ;
123+ dct:title "Distribution 1" ;
124+ dct:description "An examplar csv distribution" ;
125+ dct:license <https://creativecommons.org/licenses/by/4.0> ;
126+ dct:hasVersion "1.0" ;
127+ dcat:downloadURL <https://ftp.example.com/test.csv>;
128+ dcat:mediaType "text/csv";
129+ dct:isPartOf :dataset .
130+
131+ :publisher a foaf:Agent ;
132+ dct:title "Some organisation or a person" ;
133+ dct:spatial :location .
134+
135+ :location a dct:Location ;
136+ dct:title "Germany" .
61137```
62138
63139***
@@ -67,16 +143,47 @@ Often a dataset can be made available for use via data dump such RDF,mysql data
67143##### ShEx figure
68144
69145<p align =" center " >
70- <a href="../images/shex/distribution.png " target="_blank">
71- <img src="../images/shex/distribution.png ">
146+ <a href="../images/shex/distribution.svg " target="_blank">
147+ <img src="../images/shex/distribution.svg ">
72148 </a>
73149</p >
74150
75151***
76152##### ShEx
77153
78154``` ShEx
79-
155+ PREFIX : <http://purl.org/ejp-rd/metadata-model/v1/shex/>
156+ PREFIX dcat: <http://www.w3.org/ns/dcat#>
157+ PREFIX dct: <http://purl.org/dc/terms/>
158+ PREFIX ejp: <http://purl.org/ejp-rd/vocabulary/>
159+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
160+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
161+
162+ :distributionShape IRI {
163+ a [dcat:Distribution];
164+ dct:title xsd:string;
165+ dct:description xsd:string*;
166+ (dcat:downloadURL IRI | dcat:accessURL IRI);
167+ dct:license IRI;
168+ dct:hasVersion xsd:string;
169+ dcat:mediaType xsd:string*;
170+ dct:publisher @:organisationShape;
171+ dct:isPartOf IRI*
172+ }
173+
174+ :locationShape IRI {
175+ a [dct:Location];
176+ dct:title xsd:string;
177+ dct:description xsd:string*;
178+ }
179+
180+ :organisationShape IRI {
181+ a [foaf:Agent];
182+ dct:title xsd:string;
183+ dct:description xsd:string*;
184+ dct:spatial @:locationShape*;
185+ foaf:page IRI*
186+ }
80187```
81188
82189
@@ -96,8 +203,27 @@ Often a dataset can be made available for use via data dump such RDF,mysql data
96203### Example rdf (turtle)
97204
98205``` ttl
99-
100-
206+ @prefix : <http://purl.org/ejp-rd/metadata-model/v1/example-rdf/> .
207+ @prefix dcat: <http://www.w3.org/ns/dcat#> .
208+ @prefix dct: <http://purl.org/dc/terms/> .
209+ @prefix foaf: <http://xmlns.com/foaf/0.1/> .
210+
211+ :api-service a dcat:DataService ;
212+ dct:publisher :publisher ;
213+ dct:title "An API endpoint" ;
214+ dct:description "An examplar api service" ;
215+ dct:license <https://creativecommons.org/licenses/by/4.0> ;
216+ dct:hasVersion "1.0" ;
217+ dct:conformsTo <http://example.org/apispecs> ;
218+ dcat:endpointURL <http://example.org/api> ;
219+ dcat:servesDataset :dataset .
220+
221+ :publisher a foaf:Agent ;
222+ dct:title "Some organisation or a person" ;
223+ dct:spatial :location .
224+
225+ :location a dct:Location ;
226+ dct:title "Germany" .
101227```
102228
103229***
@@ -107,14 +233,45 @@ Often a dataset can be made available for use via data dump such RDF,mysql data
107233##### ShEx figure
108234
109235<p align =" center " >
110- <a href="../images/shex/dataservice.png " target="_blank">
111- <img src="../images/shex/dataservice.png ">
236+ <a href="../images/shex/dataservice.svg " target="_blank">
237+ <img src="../images/shex/dataservice.svg ">
112238 </a>
113239</p >
114240
115241***
116242##### ShEx
117243
118244``` ShEx
119-
245+ PREFIX : <http://purl.org/ejp-rd/metadata-model/v1/shex/>
246+ PREFIX dcat: <http://www.w3.org/ns/dcat#>
247+ PREFIX dct: <http://purl.org/dc/terms/>
248+ PREFIX ejp: <http://purl.org/ejp-rd/vocabulary/>
249+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
250+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
251+
252+ :dataserviceShape IRI {
253+ a [dcat:DataService];
254+ dct:title xsd:string;
255+ dct:description xsd:string*;
256+ dcat:endpointURL IRI;
257+ dcat:servesDataset IRI;
258+ dct:license IRI;
259+ dct:hasVersion xsd:string;
260+ dct:publisher @:organisationShape;
261+ dct:conformsTo IRI
262+ }
263+
264+ :locationShape IRI {
265+ a [dct:Location];
266+ dct:title xsd:string;
267+ dct:description xsd:string*;
268+ }
269+
270+ :organisationShape IRI {
271+ a [foaf:Agent];
272+ dct:title xsd:string;
273+ dct:description xsd:string*;
274+ dct:spatial @:locationShape*;
275+ foaf:page IRI*
276+ }
120277```
0 commit comments