Skip to content

Commit c878d9d

Browse files
committed
Fixed issue with TSV files in old formulation
1 parent 4f2a08a commit c878d9d

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ You can easily customize your own configurations from the set of features that S
8484

8585
## Version
8686
```
87-
4.7.5.12.2
87+
4.7.5.12.3
8888
```
8989

9090
## RML-Test Cases

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.7.5.12.2
1+
4.7.5.12.3

rdfizer/rdfizer/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2187,7 +2187,8 @@ def mapping_parser(mapping_file):
21872187
prefix td: <https://www.w3.org/2019/wot/td#>
21882188
prefix htv: <http://www.w3.org/2011/http#>
21892189
prefix hctl: <https://www.w3.org/2019/wot/hypermedia#>
2190-
prefix fnml: <http://semweb.mmlab.be/ns/fnml#>
2190+
prefix fnml: <http://semweb.mmlab.be/ns/fnml#>
2191+
prefix csvw: <http://www.w3.org/ns/csvw#>
21912192
SELECT DISTINCT *
21922193
WHERE {
21932194

@@ -2200,6 +2201,12 @@ def mapping_parser(mapping_file):
22002201
?data_link td:hasForm ?form .
22012202
?form hctl:hasTarget ?url_source .
22022203
}
2204+
OPTIONAL{
2205+
?_source rml:source ?data_link .
2206+
?data_link csvw:url ?url_source .
2207+
?data_link csvw:dialect ?dialect .
2208+
?dialect csvw:delimiter ?delimiter .
2209+
}
22032210
OPTIONAL {?_source rml:referenceFormulation ?ref_form .}
22042211
OPTIONAL { ?_source rml:iterator ?iterator . }
22052212
OPTIONAL { ?_source rr:tableName ?tablename .}

rdfizer/rdfizer/semantify.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2187,7 +2187,8 @@ def mapping_parser(mapping_file):
21872187
prefix td: <https://www.w3.org/2019/wot/td#>
21882188
prefix htv: <http://www.w3.org/2011/http#>
21892189
prefix hctl: <https://www.w3.org/2019/wot/hypermedia#>
2190-
prefix fnml: <http://semweb.mmlab.be/ns/fnml#>
2190+
prefix fnml: <http://semweb.mmlab.be/ns/fnml#>
2191+
prefix csvw: <http://www.w3.org/ns/csvw#>
21912192
SELECT DISTINCT *
21922193
WHERE {
21932194

@@ -2200,6 +2201,12 @@ def mapping_parser(mapping_file):
22002201
?data_link td:hasForm ?form .
22012202
?form hctl:hasTarget ?url_source .
22022203
}
2204+
OPTIONAL{
2205+
?_source rml:source ?data_link .
2206+
?data_link csvw:url ?url_source .
2207+
?data_link csvw:dialect ?dialect .
2208+
?dialect csvw:delimiter ?delimiter .
2209+
}
22032210
OPTIONAL {?_source rml:referenceFormulation ?ref_form .}
22042211
OPTIONAL { ?_source rml:iterator ?iterator . }
22052212
OPTIONAL { ?_source rr:tableName ?tablename .}

0 commit comments

Comments
 (0)