Re: Splitting data into graphs vs datasets

2018-03-21 Thread ajs6f
> Those sure are good reasons for using named graphs. But what about using > different datasets too? Consider that you may not be seeing such reasons because it may not actually be as good an idea. Here's another reason to prefer graphs: There is a standard management HTTP API for named graph

Re: Splitting data into graphs vs datasets

2018-03-21 Thread Andy Seaborne
On 21/03/18 11:03, Mikael Pesonen wrote: Is this example from web page (a bit modified) Is it what? To have several datasets: <#service1> rdf:type fuseki:Service ; fuseki:name "ds1" fuseki:dataset<#dataset1> . <#service1> rdf:type fuseki:Service ;

Re: Splitting data into graphs vs datasets

2018-03-21 Thread Mikael Pesonen
Is this example from web page (a bit modified) config_ds1.ttl: @prefix fuseki: . @prefix rdf: . @prefix rdfs: . @prefix tdb:

Re: Splitting data into graphs vs datasets

2018-03-21 Thread Rob Vesse
You can run many datasets by using the --config argument and specifying an appropriate configuration file. This should be used instead of the --loc argument which is a convenience short cut to run a server with a single dataset. http://jena.apache.org/documentation/fuseki2/fuseki-configuratio

Re: Splitting data into graphs vs datasets

2018-03-21 Thread Mikael Pesonen
Those sure are good reasons for using named graphs. But what about using different datasets too? btw, I couldn't find info on how to run many datasets with Fuseki. is it just one dataset per fuseki process? -loc parameter for fuseki-server.jar? Br On 20.3.2018 14:22, Martynas Jusevičius wr

Re: TDB2 and bulk loading

2018-03-21 Thread Andy Seaborne
Bulkloading (TDB1) is for working from an empty dataset. The tricks it uses do not work when there is already data in dataset. For TDB1, One of the bulkloaders simply loads triples/qwuads, the other refuses to load. For TDB2, which has no limits on the size of transactions, a batch size of 2

Re: ClassCastException with Bulkload method

2018-03-21 Thread Andy Seaborne
Hi Davide, That code isn't a working bulk loader. It a placeholder for the future and looks to be just reduced code from TDB1. Changing/removing the cast might work. The currnet bulk loader as used by "tdb2.tdbloader" (in module jena-cmds) currently does not do anything more than a loop ad

ClassCastException with Bulkload method

2018-03-21 Thread Davide
Hi, I'm trying to use the Loader.Bulkload method with TDB2 but I've an issue. I retrieve the dataset with connectDataset method of TDB2Factory class, and pass it to the Bulkload method. But in runtime, I've a ClassCastException: "org.apache.jena.tdb2.store.DatasetGraphSwitchable cannot be cast to o