sparql.anything icon indicating copy to clipboard operation
sparql.anything copied to clipboard

`-o` adds suffix `-1` to output file

Open VladimirAlexiev opened this issue 2 years ago • 2 comments

Something strange: output is not written to the file specified with -o but to a slightly different file:

  • -o foo -> foo-1
  • -o foo.ttl -> foo-1.ttl

Version: sparql.anything-0.8.1.jar

VladimirAlexiev avatar Jan 23 '23 16:01 VladimirAlexiev

That is supposed to happen when there are parameters (and multiple executions). Can you please show the full command line?

enridaga avatar Jan 27 '23 09:01 enridaga

this also happened for me.

import pysparql_anything as sa
engine = sa.SparqlAnything()
engine.run(
        query="transformations/airlines.rq",
        format="ttl",
        values={
            "location" : "csv/airlines.csv"
        },
        output="output_from_py/airlines.ttl"
    )

produces

airlines-1.ttl

it would be ideal if it didn't add the -1

justin2004 avatar Jun 12 '24 15:06 justin2004

d42b103 includes a test for this issue and it appears that it's no longer an issue. Please let me know if you are still experiencing the problem, and if so, please reopen this issue.

luigi-asprino avatar Aug 26 '24 15:08 luigi-asprino