Skip to content

Commit 55b5a38

Browse files
chrdebruDylanVanAssche
authored andcommitted
Fix manifest mapping and regenerated metadata
1 parent 7b90184 commit 55b5a38

File tree

2 files changed

+648
-819
lines changed

2 files changed

+648
-819
lines changed

test-cases/manifest.rml.ttl

Lines changed: 24 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,21 @@
55
@prefix test: <http://www.w3.org/2006/03/test-description#> .
66
@base <http://w3id.org/rml/core/test/> .
77

8+
# java -jar .\burp.jar -m manifest.rml.ttl -o manifest.ttl -b http://w3id.org/rml/core/test/
9+
10+
_:source
11+
rml:source [
12+
a rml:RelativePathSource ;
13+
rml:path "metadata.csv" ;
14+
rml:null "";
15+
];
16+
rml:referenceFormulation rml:CSV;
17+
.
18+
819
<#TriplesMapTestcase>
920
a rml:TriplesMap;
1021

11-
rml:logicalSource [
12-
rml:source "metadata.csv";
13-
rml:referenceFormulation rml:CSV;
14-
];
22+
rml:logicalSource _:source;
1523

1624
rml:subjectMap [
1725
rml:reference "ID";
@@ -110,13 +118,10 @@
110118
<#TriplesMapInput1>
111119
a rml:TriplesMap;
112120

113-
rml:logicalSource [
114-
rml:source "metadata.csv";
115-
rml:referenceFormulation rml:CSV;
116-
];
121+
rml:logicalSource _:source ;
117122

118123
rml:subjectMap [
119-
rml:template "{ID}/input/{input1}/";
124+
rml:template "{ID}/input/{input1}";
120125
rml:class rmltest:Input;
121126
];
122127

@@ -138,13 +143,10 @@
138143
<#TriplesMapInput2>
139144
a rml:TriplesMap;
140145

141-
rml:logicalSource [
142-
rml:source "metadata.csv";
143-
rml:referenceFormulation rml:CSV;
144-
];
146+
rml:logicalSource _:source;
145147

146148
rml:subjectMap [
147-
rml:template "{ID}/input/{input2}/";
149+
rml:template "{ID}/input/{input2}";
148150
rml:class rmltest:Input;
149151
];
150152

@@ -166,13 +168,10 @@
166168
<#TriplesMapInput3>
167169
a rml:TriplesMap;
168170

169-
rml:logicalSource [
170-
rml:source "metadata.csv";
171-
rml:referenceFormulation rml:CSV;
172-
];
171+
rml:logicalSource _:source;
173172

174173
rml:subjectMap [
175-
rml:template "{ID}/input/{input3}/";
174+
rml:template "{ID}/input/{input3}";
176175
rml:class rmltest:Input;
177176
];
178177

@@ -194,13 +193,10 @@
194193
<#TriplesMapOutput1>
195194
a rml:TriplesMap;
196195

197-
rml:logicalSource [
198-
rml:source "metadata.csv";
199-
rml:referenceFormulation rml:CSV;
200-
];
196+
rml:logicalSource _:source;
201197

202198
rml:subjectMap [
203-
rml:template "{ID}/output/{output1}/";
199+
rml:template "{ID}/output/{output1}";
204200
rml:class rmltest:Output;
205201
];
206202

@@ -222,13 +218,10 @@
222218
<#TriplesMapOutput2>
223219
a rml:TriplesMap;
224220

225-
rml:logicalSource [
226-
rml:source "metadata.csv";
227-
rml:referenceFormulation rml:CSV;
228-
];
221+
rml:logicalSource _:source;
229222

230223
rml:subjectMap [
231-
rml:template "{ID}/output/{output2}/";
224+
rml:template "{ID}/output/{output2}";
232225
rml:class rmltest:Output;
233226
];
234227

@@ -250,13 +243,10 @@
250243
<#TriplesMapOutput3>
251244
a rml:TriplesMap;
252245

253-
rml:logicalSource [
254-
rml:source "metadata.csv";
255-
rml:referenceFormulation rml:CSV;
256-
];
246+
rml:logicalSource _:source;
257247

258248
rml:subjectMap [
259-
rml:template "{ID}/output/{output3}/";
249+
rml:template "{ID}/output/{output3}";
260250
rml:class rmltest:Output;
261251
];
262252

0 commit comments

Comments
 (0)