Re: upload several ngs into dataset by curl

2021-03-16 Thread Andy Seaborne
Is it the complete dataset? If so, then fetch the whole dataset in TriG as a single file and push that to the other server. Depending on configuration: curl --header 'Accept: application/trig' \ http://server1/dataset1 > data.trig curl -XPOST --header 'Content-Type: application/trig' \

Re: upload several ngs into dataset by curl

2021-03-16 Thread jaanam
hello, I wasn't sure whether it is a turtle-file or not, but it was created by running curl GET. And yes, my problem is that I need to upload dataset (including 124 NGs) from one jena-fuseki-server to another using just one command. And thanks for your answer, I'll those SOH-commands, hopefu

Re: Re: upload several ngs into dataset by curl

2021-03-16 Thread Lorenz Buehmann
Ok, even more confusing, this is a sequence of SPARQL update commands, right? What exactly is the problem with it? You don't want to run 124 curl calls? Can't you use SOH commands like s-put [1] [1] https://jena.apache.org/documentation/fuseki2/soh.html On 16.03.21 13:04, Lorenz Buehmann wrot

Re: upload several ngs into dataset by curl

2021-03-16 Thread Lorenz Buehmann
I'm confused. Why is this a Turtle file? Turtle doesn't contain quads. It should be a Trig file with .trig being the file extension. On 16.03.21 12:58, jaa...@kolumbus.fi wrote: Hi, is it possible to upload several NG:s (from a ttl-file) into jena-fuseki dataset by just one curl-command ? I

upload several ngs into dataset by curl

2021-03-16 Thread jaanam
Hi, is it possible to upload several NG:s (from a ttl-file) into jena-fuseki dataset by just one curl-command ? I mean this: curl -i -H "Content-Type: application/sparql-update" -X POST http://localhost:3030/pxmeta_hub_fed/update --data-binary "@test.ttl", where my test.tll is printed