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

Problem with rdf_loader.conf in master branch #28

Closed
amgadmadkour opened this Issue Jan 25, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@amgadmadkour
Copy link

amgadmadkour commented Jan 25, 2018

The latest jar copy of SANSA core on Maven central may have a problem, specifically with the rdf_loader.conf file.

Exception in thread "main" com.typesafe.config.ConfigException$Parse: rdf_loader.conf @ jar:file:/Users/amadkour/.m2/repository/net/sansa-stack/sansa-rdf-spark-core_2.11/0.3.0/sansa-rdf-spark-core_2.11-0.3.0.jar!/rdf_loader.conf: 5: Key 'rdf.parser.skipinvalid' may not be followed by token: end of file

Iv checked the Github repo version of the configuration file and it seems to be correct (on the development branch):

rdf.parser.skipinvalid = true

while in my maven-downloaded local jar is as follows:

rdf.parser.skipinvalid

Essentially, its missing the assignment "= true" and that's why the ConfigParser is complaining.

This error can be re-created by running the following two lines

    val lang: Lang = Lang.NTRIPLES
    val triplesDataset = spark.read.rdf(lang)(Metadata.datasetPath)

I think the solution is just to update the maven central Jars for the master version.

This is the link for the master version problem:

Iv created a PR to fix this issue #29.

@amgadmadkour amgadmadkour changed the title Problem with rdf_loader.conf in Maven Central Jar Problem with rdf_loader.conf in master branch Jan 25, 2018

@amgadmadkour

This comment has been minimized.

Copy link
Author

amgadmadkour commented Jan 26, 2018

Thanks @GezimSejdiu !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment