On 02/12/13 12:35, Jindřich Mynarz wrote:
Hi,
is is possible to dump specific named graph from Jena TDB using the
command-line utilities? I remember tdbdump to have a --graph param, but
this is no longer available. Using tdbdump thus only allows to dump the
whole dataset.
If dumping a specific named graph isn't possible, how would you recommend
to split the dump of the whole dataset into multiple files, one per named
graph?
Best,
Jindřich
Yes - tdbdump is a tool to dump the entire database.
You could modify it to dump a single graph (it's quite a simple tool -
it send the output of a graph.find to a N-Quads formatter).
If you want all graph then it might be better to dump once, then use
text processing to split up the file. Matching each line of quads from
the tail avoids needing to touch the literals. e.g. <[^>]>\s*.\s*$
If using Fuseki, you can GET each graph using the SPARQL Graph Store
protocol.
Andy