generated from zazuko/xrm-r2rml-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
images.r2rml.ttl
54 lines (49 loc) · 1.2 KB
/
images.r2rml.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
PREFIX rr: <http://www.w3.org/ns/r2rml#>
PREFIX dtype: <http://www.linkedmodel.org/schema/dtype#>
PREFIX schema: <http://schema.org/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
<#Image>
rr:logicalTable [ rr:tableName "[Sources].[Images]" ];
rr:subjectMap [
rr:template "image/{ExternalId}" ;
rr:graphMap [ rr:template "image/{ExternalId}" ] ;
rr:class schema:ImageObject ;
];
rr:predicateObjectMap [
rr:predicate schema:contentUrl ;
rr:objectMap [
rr:column "OriginalUrl" ;
rr:datatype schema:URL ;
];
];
rr:predicateObjectMap [
rr:predicate schema:thumbnail ;
rr:objectMap [
rr:template "cloudinary-image-{Id}" ;
rr:termType rr:BlankNode ;
];
];
rr:predicateObjectMap [
rr:predicate dtype:orderIndex ;
rr:objectMap [
rr:column "OrderIndex" ;
rr:datatype xsd:int ;
];
]
.
<#ImageThumbnail>
rr:logicalTable [ rr:tableName "[Sources].[Images]" ];
rr:subjectMap [
rr:template "cloudinary-image-{Id}" ;
rr:graphMap [ rr:template "image/{ExternalId}" ] ;
rr:class schema:ImageObject ;
rr:termType rr:BlankNode ;
];
rr:predicateObjectMap [
rr:predicate schema:contentUrl ;
rr:objectMap [
rr:column "ThumbnailUrl" ;
rr:datatype schema:URL ;
];
]
.