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

Using "--format=N-TRIPLES" leads to "Error processing command line options: Unknown RDF Format: N-TRIPLES" #30

Open
k00ni opened this issue Oct 10, 2017 · 0 comments

Comments

@k00ni
Copy link
Contributor

k00ni commented Oct 10, 2017

I used the latest available release inside a Docker container:

http://github.com/tomatophantastico/sparqlmap/releases/download/v0.7.5-SNAPSHOT-2/sparqlmap-client-0.7.5-SNAPSHOT.zip

Sparqlmap is called with the following command:

# variables
SCRIPT=`realpath $0`
WORK_DIR=`dirname $SCRIPT`
SPARQLMAP_VERSION=0.7.5
MAPPING_FILE=r2rml-mapping.ttl
INPUT_FILE=input.csv
OUTPUT_FILE=output.nt
CSV_SEPARATOR=,

rm $WORK_DIR/data/sparqlmap/output/$OUTPUT_FILE >> /dev/null

# call sparqlmap
docker run --rm \
    -v $WORK_DIR/data/sparqlmap/input/$MAPPING_FILE:/tmp/$MAPPING_FILE \
    -v $WORK_DIR/data/sparqlmap/input/$INPUT_FILE:/tmp/$INPUT_FILE \
    sparqlmap:$SPARQLMAP_VERSION \
    /usr/share/sparqlmap/bin/sparqlmap \
    --action=dump \
    --ds.url=/tmp/$INPUT_FILE \
    --ds.type=CSV \
    --r2rmlfile=/tmp/$MAPPING_FILE \
    --format=N-TRIPLES
    --ds.separatorChar=$CSV_SEPARATOR \
    1>> $WORK_DIR/data/sparqlmap/output/$OUTPUT_FILE \
    2>> $WORK_DIR/data/sparqlmap/logs/sparqlmap.log
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

1 participant