Closed pabloalarconm closed 2 years ago
Hello @pabloalarconm,
First of all, thank you for using the SDM-RDFizer. I executed this mapping to see if I could get the same error as you.
@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 ql: <http://semweb.mmlab.be/ns/ql#> .
@base <http://example.com/base/> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .
<TriplesMap1> a rr:TriplesMap;
rml:logicalSource [
rml:source <#DB_source>;
rr:sqlVersion rr:SQL2008;
rml:query "SELECT CONCAT('Student', ID) AS StudentId, ID, Name FROM student";
rml:referenceFormulation ql:CSV
];
rr:subjectMap [
rml:reference "StudentId"; rr:termType rr:BlankNode
];
rr:predicateObjectMap [
rr:predicate foaf:name ;
rr:objectMap [ rml:reference "Name" ]
].
<#DB_source> a d2rq:Database;
d2rq:jdbcDSN "CONNECTIONDSN"; # the "jbdc:mysql:// part is ignored
d2rq:jdbcDriver "com.mysql.cj.jdbc.Driver"; # this is ignored
d2rq:username "root";
d2rq:password "" .
I got the same error. The problem here is not the SDM-RDFizer but the mapping. Having the clause rml:referenceFormulation ql:CSV makes the SDM-RDFizer think that the data source for this triples map is a CSV file, not a relational database. Please make sure that there is no rml:referenceFormulation to a file format in your mapping.
Thank you again for using the SDM-RDFizer, Sincerely Enrique
Solved, thank you so much!
Bests, Pablo
I have problems to connect (both using Dockerfile image and without it) to my Postgress db in my localhost. It seems configuration .ini file its not pointing correctly, but AFAIK all parameters looks correct. Resulting .nt file and output_datasets_stats.csv are created but empty. I paste my config.ini here:
This is the raising error generated:
Thanks :)