On 28/05/15 20:49, Charles Greer wrote:
Hello Jena folks,

I have a simple question that I cannot find the answer to in specs.  I don't 
think
the graph store protocol has an operation by which one can submit nquads or TriG
and have the context values map to named graphs or the default graph.

In other words, I'd like to PUT with nquads to populate an entire set of named 
graphs - can
I do that with Fuseki over HTTP, or should I stick to tdbloader?

Yes, you can do that. It isn't in any specs (they only talk about graphs). Fuseki2 treats the dataset itself a web resource

PUT, POST, GET, HEAD work on
http://localhost:3030/ds

e.g.

curl -i -XPOST --data-binary @YourData.trig --header 'Content-type: text/trig' http://localhost:3030/ds

It goes further:

GET http://localhost:3030/ds?query=

is a SPARQL query.

POST of application/sparql-query and application/sparql-update don't work on the dataset endpoint at the moment but could be made to work.

        Andy


Thanks,

Charles


Charles Greer
Lead Engineer
MarkLogic Corporation
[email protected]
Cell:  +1 707 318 0442
@grechaw
www.marklogic.com



Reply via email to