forked from pietercolpaert/Blue-Bike-to-Linked-GBFS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
root.rml.ttl
73 lines (61 loc) · 1.72 KB
/
root.rml.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
@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix ex: <http://example.com/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix rmlt: <http://semweb.mmlab.be/ns/rml-target#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@prefix tree: <https://w3id.org/tree#> .
@base <http://example.com/base/> .
<#TargetDump> a rmlt:LogicalTarget;
rmlt:target [ a void:Dataset;
void:dataDump <file://./root.ttl>;
];
rmlt:serialization formats:Turtle;
.
<TriplesMap1>
a rr:TriplesMap;
rml:logicalSource [
rml:source "list.csv";
rml:referenceFormulation ql:CSV
];
rr:subjectMap [
rr:template "https://www.pieter.pm/Blue-Bike-to-Linked-GBFS/history/root.ttl";
rml:logicalTarget <#TargetDump>;
];
rr:predicateObjectMap [
rr:predicate tree:relation;
rr:objectMap [
rml:reference "file";
rr:termType rr:BlankNode;
]
].
<TriplesMap2>
a rr:TriplesMap;
rml:logicalSource [
rml:source "list.csv";
rml:referenceFormulation ql:CSV
];
rr:subjectMap [
rml:reference "file";
rr:termType rr:BlankNode;
rr:class tree:GreaterThanOrEqualToRelation;
rml:logicalTarget <#TargetDump>;
];
rr:predicateObjectMap [
rr:predicate tree:path;
rr:object dcterms:created;
];
rr:predicateObjectMap [
rr:predicate tree:value;
rr:objectMap [ rml:reference "timestamp"; rr:datatype xsd:dateTime; ];
];
rr:predicateObjectMap [
rr:predicate tree:node;
rr:objectMap [
rr:template "https://www.pieter.pm/Blue-Bike-to-Linked-GBFS/history/{file}";
rr:termType rr:IRI;
];
]
.