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 wrote:
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 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 into the end of this e-mail.

The problem is that we have 124 NGs in our system and it is not possible to upload them all by separate commads, so not possible to define the target graph in the curl command.


   cat test.ttl

   drop all;
   insert data
   {
   <http://learningsparql.com/ns/data#x>
        <http://learningsparql.com/ns/demo#tag>
                "two" , "one" .

   <http://learningsparql.com/ns/data#g2> {
       <http://learningsparql.com/ns/data#x>
            <http://learningsparql.com/ns/demo#tag>
                    "five" , "six" .
   }

   <http://learningsparql.com/ns/data#g1> {
       <http://learningsparql.com/ns/data#x>
            <http://learningsparql.com/ns/demo#tag>
                    "three" , "four" .
  }
  }

br, Jaana M

Reply via email to