Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rmlmapper not generating output file #44

Open
FloortjeWijnands opened this issue Mar 10, 2019 · 4 comments
Open

rmlmapper not generating output file #44

FloortjeWijnands opened this issue Mar 10, 2019 · 4 comments

Comments

@FloortjeWijnands
Copy link

FloortjeWijnands commented Mar 10, 2019

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Author

FloortjeWijnands commented Mar 12, 2019 via email

@pheyvaer
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants