You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Charles Greer <Ch...@marklogic.com> on 2015/05/28 21:49:19 UTC

Fuseki and multigraphs?

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?

Thanks,

Charles


Charles Greer
Lead Engineer
MarkLogic Corporation
cgreer@marklogic.com
Cell:  +1 707 318 0442
@grechaw
www.marklogic.com


Re: Fuseki and multigraphs?

Posted by Andy Seaborne <an...@apache.org>.
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
> cgreer@marklogic.com
> Cell:  +1 707 318 0442
> @grechaw
> www.marklogic.com
>
>