Hi, Andy,
It's easy to get the model for a named graph from local TDB dataset
tdb_dir = "c:\\tdb";
ds = TDBFactory.createDataset(tdb_dir);
String ngUri = "http://xxx .."
Model model = ds.getNamedModel(ngUri);
However, if we run fuseki server with TDB remotely, how can we get the model
for the specified named graph?
For instance, the fuseki server run at remote server with IP address:
172.25.19.233 and tdb directory is /home/tdb at linux machine.
Thanks.
Frank
+++
Frank,
I'm not sure what you mean: access the remote named graph or pull its
contents to the local machine.
1/ Access:
Use GRAPH in a SPARQL query.
2/ The remote graph has a name using the SPARQL Graph store protocol:
http://host/datasets/data?graph=http://xxx ..
You can simple GET this although there is some code to present that
nicely in Fuseki (DatasetAccessor).
This is a local copy.
(this code will move from Fuseki into ARQ sometime with a consequent
package renaming)
Andy