File tree 4 files changed +20
-4
lines changed
4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 1
1
output r2rml
2
2
3
- template cloudinaryUrl "https://res.cloudinary.com/dytcmwide/image/upload/t_default_downsize/v1599422851/{0}.jpg"
4
- template cloudinaryThumbUrl "https://res.cloudinary.com/dytcmwide/image/upload/t_media_lib_thumb/v1599422851/{0}.jpg"
5
3
template magazineIssueImageId "magazine/{0}/issue/{1}/image"
6
4
7
5
map Image from wikibus.images {
@@ -15,7 +13,7 @@ map Image from wikibus.images {
15
13
16
14
properties
17
15
schema.identifier from ExternalId;
18
- schema.contentUrl template cloudinaryUrl with ExternalId ;
16
+ schema.contentUrl from OriginalUrl as IRI ;
19
17
schema.thumbnail template "cloudinary-image-{0}" with Id as BlankNode;
20
18
dtype.orderIndex from OrderIndex with datatype xsd.int;
21
19
}
@@ -27,7 +25,7 @@ map ImageThumbnail from wikibus.images {
27
25
template imageId with SourceType ExternalId;
28
26
29
27
properties
30
- schema.contentUrl template cloudinaryThumbUrl with ExternalId ;
28
+ schema.contentUrl from ThumbnailUrl as IRI ;
31
29
}
32
30
33
31
map LegacyImage from wikibus.legacy_images {
Original file line number Diff line number Diff line change @@ -203,6 +203,8 @@ where SourceType = 'book'"
203
203
ExternalId
204
204
OrderIndex
205
205
SourceType
206
+ OriginalUrl
207
+ ThumbnailUrl
206
208
}
207
209
208
210
logical-source users {
Original file line number Diff line number Diff line change 75
75
[
76
76
sh:path schema:image ;
77
77
sh:hasValue <https://wikibus.lndo.site/image/brochure-wikibus%20library%2Fbrochures%2Fifatzmg81pwm1dbnmj3l> ;
78
+ sh:node
79
+ [
80
+ sh:property
81
+ [
82
+ sh:path schema:contentUrl ;
83
+ sh:hasValue <https://res.cloudinary.com/dytcmwide/image/upload/t_default_downsize/v1632163731/wikibus%20library/brochures/ifatzmg81pwm1dbnmj3l.jpg> ;
84
+ ] , [
85
+ sh:path schema:thumbnail ;
86
+ sh:node
87
+ [
88
+ sh:path schema:contentUrl ;
89
+ sh:hasValue <https://res.cloudinary.com/dytcmwide/image/upload/t_media_lib_thumb/v1632163731/wikibus%20library/brochures/ifatzmg81pwm1dbnmj3l.jpg> ;
90
+ ] ;
91
+ ] ;
92
+ ]
78
93
]
79
94
.
80
95
Original file line number Diff line number Diff line change 31
31
sh:datatype xsd:string ;
32
32
sh:minLength 1 ;
33
33
sh:maxCount 1 ;
34
+ sh:pattern " ^[^\\s]" ;
34
35
],
35
36
[
36
37
sh:path dcterms:description ;
You can’t perform that action at this time.
0 commit comments