Closed DylanVanAssche closed 1 year ago
Hi @DylanVanAssche,
Never good news with you, jajajaja.
I notice that the mappings you are using have logicalTable, not logicalSource. Is that correct? If it is, the SDM-RDFizer only parses RML, not R2RML. If it should be logicalSource I'll get right on fixing the problem.
Sincerely, Enrique
Hi Enrique!
Hahahaha, apologies but I report everything I find :joy: !
I notice that the mappings you are using have logicalTable, not logicalSource. Is that correct? If it is, the SDM-RDFizer only parses RML, not R2RML. If it should be logicalSource I'll get right on fixing the problem.
Oh right,here are the 'right' ones, I always forget that the SDM-RDFizer does not handle R2RML, I have a script locally that transforms the R2RML files to RML for the SDM-RDFizer transparantly :P
Here's the transformed one:
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .
@prefix ex: <http://example.com/> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix rr: <http://www.w3.org/ns/r2rml#> .
<http://ex.com/#TriplesMap1> a rr:TriplesMap ;
rml:logicalSource [ a rml:LogicalSource ;
rml:source [ a d2rq:Database ;
d2rq:jdbcDSN "jdbc:postgresql://PostgreSQL:5432/db" ;
d2rq:jdbcDriver "jdbc:postgresql" ;
d2rq:password "root" ;
d2rq:username "root" ] ;
rr:sqlVersion rr:SQL2008 ;
rr:tableName "data1" ] ;
rr:predicateObjectMap [ a rr:PredicateObjectMap ;
rr:objectMap [ a rr:ReferenceObjectMap ;
rr:joinCondition [ a rr:JoinCondition ;
rr:child "id" ;
rr:parent "id" ] ;
rr:parentTriplesMap <http://ex.com/#TriplesMap2> ] ;
rr:predicateMap [ a rr:PredicateMap ;
rr:constant ex:j1 ] ] ;
rr:subjectMap [ rr:template "http://ex.com/table1/{id}" ] .
<http://ex.com/#TriplesMap2> a rr:TriplesMap ;
rml:logicalSource [ a rml:LogicalSource ;
rml:source [ a d2rq:Database ;
d2rq:jdbcDSN "jdbc:postgresql://PostgreSQL:5432/db" ;
d2rq:jdbcDriver "jdbc:postgresql" ;
d2rq:password "root" ;
d2rq:username "root" ] ;
rr:sqlVersion rr:SQL2008 ;
rr:tableName "data2" ] ;
rr:subjectMap [ rr:template "http://ex.com/table2/{id}" ] .
Hello again,
I'm quite happy with what you have been reporting, anything that proves beneficial for the SDM-RDFizer is welcome. I'll get right on fixing the problem.
Hello again,
Can you share with me the data you are using? Using the mapping you gave me with my data does not reproduce the error.
I'm quite happy with what you have been reporting, anything that proves beneficial for the SDM-RDFizer is welcome. I'll get right on fixing the problem.
I'm quite happy with what you have been reporting, anything that proves beneficial for the SDM-RDFizer is welcome. I'll get right on fixing the problem.
Thanks a lot!
Hey @DylanVanAssche,
I found the issue with the rdfizer. The issue wasn't with the parsing but a small detail with the join. The release I made solves the problem with MySQL and Postgress.
Thank you again, Enrique
It looks like it works again, will report new issues if they appear, thanks!
Describe the bug
When parsing the mapping for MySQL or PostgreSQL, the SDM-RDFizer crashes:
MySQL crash:
or crash for postgreSQL:
Mapping:
To Reproduce Steps to reproduce the behavior (and resources):
Expected behavior Mapping is parsed and executed.
Desktop (please complete the following information):