Skip to content

Commit bf508a2

Browse files
committed
Fixed manifest mapping.
1 parent 2ee7b7b commit bf508a2

File tree

2 files changed

+414
-724
lines changed

2 files changed

+414
-724
lines changed

test-cases/manifest.rml.ttl

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

8-
<#TriplesMapTestcase>
9-
a rml:TriplesMap;
10-
11-
rml:logicalSource [
8+
# java -jar .\burp.jar -m manifest.rml.ttl -o manifest.ttl -b http://w3id.org/rml/cc/test/
9+
10+
_:source
1211
rml:source [
1312
a rml:RelativePathSource ;
14-
rml:path "metadata.csv"
13+
rml:path "metadata.csv" ;
14+
rml:null "";
1515
];
1616
rml:referenceFormulation rml:CSV;
17-
];
17+
.
18+
19+
<#TriplesMapTestcase>
20+
a rml:TriplesMap;
21+
22+
rml:logicalSource _:source;
1823

1924
rml:subjectMap [
2025
rml:reference "ID";
@@ -113,16 +118,10 @@
113118
<#TriplesMapInput1>
114119
a rml:TriplesMap;
115120

116-
rml:logicalSource [
117-
rml:source [
118-
a rml:RelativePathSource ;
119-
rml:path "metadata.csv"
120-
];
121-
rml:referenceFormulation rml:CSV;
122-
];
121+
rml:logicalSource _:source ;
123122

124123
rml:subjectMap [
125-
rml:template "{ID}/input/{input1}/";
124+
rml:template "{ID}/input/{input1}";
126125
rml:class rmltest:Input;
127126
];
128127

@@ -144,16 +143,10 @@
144143
<#TriplesMapInput2>
145144
a rml:TriplesMap;
146145

147-
rml:logicalSource [
148-
rml:source [
149-
a rml:RelativePathSource ;
150-
rml:path "metadata.csv"
151-
];
152-
rml:referenceFormulation rml:CSV;
153-
];
146+
rml:logicalSource _:source;
154147

155148
rml:subjectMap [
156-
rml:template "{ID}/input/{input2}/";
149+
rml:template "{ID}/input/{input2}";
157150
rml:class rmltest:Input;
158151
];
159152

@@ -175,16 +168,10 @@
175168
<#TriplesMapInput3>
176169
a rml:TriplesMap;
177170

178-
rml:logicalSource [
179-
rml:source [
180-
a rml:RelativePathSource ;
181-
rml:path "metadata.csv"
182-
];
183-
rml:referenceFormulation rml:CSV;
184-
];
171+
rml:logicalSource _:source;
185172

186173
rml:subjectMap [
187-
rml:template "{ID}/input/{input3}/";
174+
rml:template "{ID}/input/{input3}";
188175
rml:class rmltest:Input;
189176
];
190177

@@ -206,16 +193,10 @@
206193
<#TriplesMapOutput1>
207194
a rml:TriplesMap;
208195

209-
rml:logicalSource [
210-
rml:source [
211-
a rml:RelativePathSource ;
212-
rml:path "metadata.csv"
213-
];
214-
rml:referenceFormulation rml:CSV;
215-
];
196+
rml:logicalSource _:source;
216197

217198
rml:subjectMap [
218-
rml:template "{ID}/output/{output1}/";
199+
rml:template "{ID}/output/{output1}";
219200
rml:class rmltest:Output;
220201
];
221202

@@ -237,16 +218,10 @@
237218
<#TriplesMapOutput2>
238219
a rml:TriplesMap;
239220

240-
rml:logicalSource [
241-
rml:source [
242-
a rml:RelativePathSource ;
243-
rml:path "metadata.csv"
244-
];
245-
rml:referenceFormulation rml:CSV;
246-
];
221+
rml:logicalSource _:source;
247222

248223
rml:subjectMap [
249-
rml:template "{ID}/output/{output2}/";
224+
rml:template "{ID}/output/{output2}";
250225
rml:class rmltest:Output;
251226
];
252227

@@ -268,15 +243,10 @@
268243
<#TriplesMapOutput3>
269244
a rml:TriplesMap;
270245

271-
rml:logicalSource [
272-
rml:source [
273-
a rml:RelativePathSource ;
274-
rml:path "metadata.csv"
275-
];
276-
rml:referenceFormulation rml:CSV;
277-
];
246+
rml:logicalSource _:source;
247+
278248
rml:subjectMap [
279-
rml:template "{ID}/output/{output3}/";
249+
rml:template "{ID}/output/{output3}";
280250
rml:class rmltest:Output;
281251
];
282252

0 commit comments

Comments
 (0)