RMLio / RML-Mapper

Generate High Quality Linked Data from multiple originally (semi-)structured data (legacy)
http://RML.io
52 stars 20 forks source link

rmlmapper not generating output file #44

Open FloortjeWijnands opened 5 years ago

FloortjeWijnands commented 5 years ago

I am executing rmlmapper in commandprompt with no errors, however there is no outputfile generated.

my mappingfile looks as follows:

> @prefix rr: <http://www.w3.org/ns/r2rml#> .
> @prefix dc: <http://purl.org/dc/elements/1.1/> .
> @prefix dbo: <http://dbpedia.org/ontology/> .
> @prefix foaf: <http://xmlns.com/foaf/0.1/> .
> @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
> @prefix owl: <http://www.w3.org/2002/07/owl#> .
> @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
> @prefix rml: <http://semweb.mmlab.be/ns/rml#> .
> @prefix ql: <http://semweb.mmlab.be/ns/ql#> .
> @prefix void: <http://purl.org/linked-data/cube#> .
> @prefix ac: <http://affectcontroltheory.example.org/> .
> @base <http://affectcontroltheory.example.org/> .
> 
> ### generate triplesmap
> <TriplesMap1>
> a rr:TriplesMap;
> 
> 
> # specify data source
>   rml:logicalSource [
>     rml:source "D:/Master BR/02-04 Building and Mining Knowledge Graphs/individual assignment/Data/epa2004_clean.csv";
>     rml:referenceFormulation ql:CSV
>   ] ;
> 
>   # Define the subject of the generated statements
>   rr:subjectMap [ rr:template "http://affectcontroltheory.example.org/entity/{Entity}" ;
>     rr:class ac:entity ];
> 
>   # Map the entity name to rdfs:label
>   rr:predicateObjectMap [
>     rr:predicate rdfs:label ;
>     rr:objectMap [ rml:reference "Entity" ]
>   ] ;
> 
>   # Define the object of the evaluation property as a float
>   rr:predicateObjectMap [
>     rr:predicate ac:evaluation ;
>     rr:objectMap [ rml:reference "E1" ; rr:datatype xsd:float ]
>   ] ;
> 
>   # Define the object of the potency property as a float
>   rr:predicateObjectMap [
>     rr:predicate ac:potency ;
>     rr:objectMap [ rml:reference "P1" ; rr:datatype xsd:float ]
>   ] ;
> 
>   # Define the object of the activity property as a float
>   rr:predicateObjectMap [
>     rr:predicate ac:activity ;
>     rr:objectMap [ rml:reference "A1" ; rr:datatype xsd:float ]
>   ] .

I am running this simply as: java -jar rmlmapper.jar -m mapping.ttl -o output.nt

this runs without errors but output.nt is not created.

pheyvaer commented 5 years ago

Hi @FloortjeWijnands

This is the old code of the RMLMapper. The new version can be found here. Can you try with that version and see if the issue persists? If so, could you create an issue there and include the input files?

FloortjeWijnands commented 5 years ago

Hi @pheyvaer , thanks for your help. I tried it with the new rmlmapper as well but the error remained. After troubleshooting I found out that the mapping file does not work if I use the 1st column of my dataset. I tried this with other datasets and the error remained. Adding a random column at the beginning of my file fixed the issue. This seems to be a bug in rmlmapper.

FloortjeWijnands commented 5 years ago

Hi Pieter, thanks for your help. I tried it with the new rmlmapper as well but the error remained. After troubleshooting I found out that the mapping file does not work if I use the 1st column of my dataset. I tried this with other datasets and the error remained. Adding a random column at the beginning of my file fixed the issue. This seems to be a bug in rmlmapper.

From: Pieter Heyvaert notifications@github.com Sent: 11 March 2019 10:06 To: RMLio/RML-Mapper RML-Mapper@noreply.github.com Cc: FloortjeWijnands floortje_wijnands@hotmail.com; Mention mention@noreply.github.com Subject: Re: [RMLio/RML-Mapper] rmlmapper not generating output file (#44)

Hi @FloortjeWijnandshttps://github.com/FloortjeWijnands

This is the old code of the RMLMapper. The new version can be found herehttps://github.com/RMLio/rmlmapper-java. Can you try with that version and see if the issue persists? If so, could you create an issue there and include the input files?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/RMLio/RML-Mapper/issues/44#issuecomment-471457812, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AuKx7iF57QL1kLw_kakjVZSXb4DBzKnOks5vVhyVgaJpZM4bnTIJ.

pheyvaer commented 5 years ago

OK, could you create a new issue at that repo and include both the mapping file and the input file (table)?