Re: "oh dear, already have a slot" exception

2022-03-17 Thread Andy Seaborne
On 17/03/2022 11:56, Élie Roux wrote: Because that is the source being copied from. Is it TIM or TDB1? Oh it's all in memory, I read a dataset in a trig file, extract a graph, modify it, create a new dataset, add the new modified graph and save the file in trig. TIM = "Transactions In

Re: "oh dear, already have a slot" exception

2022-03-17 Thread Élie Roux
> Because that is the source being copied from. > > Is it TIM or TDB1? Oh it's all in memory, I read a dataset in a trig file, extract a graph, modify it, create a new dataset, add the new modified graph and save the file in trig. Best -- Elie

Re: "oh dear, already have a slot" exception

2022-03-17 Thread Andy Seaborne
On 17/03/2022 10:53, Élie Roux wrote: addGraph is copying data from the m.getGraph into the new dataset. "createGeneral" is the version that does not copy, and makes a link to the original. By the way : DatasetGraphFactory Thanks, that actually made the bug disappear! It's still quite

Re: "oh dear, already have a slot" exception

2022-03-17 Thread Élie Roux
> addGraph is copying data from the m.getGraph into the new dataset. > > "createGeneral" is the version that does not copy, and makes a link to > the original. > > By the way : DatasetGraphFactory Thanks, that actually made the bug disappear! It's still quite unclear to me why it happened but

Re: "oh dear, already have a slot" exception

2022-03-17 Thread Andy Seaborne
On 17/03/2022 09:22, Andy Seaborne wrote: On 17/03/2022 08:13, Élie Roux wrote: Dear all, I have some code that write hundreds of thousands of trig files (converting some XML data to RDF). I recently introduced a relatively minor change: some literals are now in a custom datatype, defined

Re: "oh dear, already have a slot" exception

2022-03-17 Thread Andy Seaborne
On 17/03/2022 08:13, Élie Roux wrote: Dear all, I have some code that write hundreds of thousands of trig files (converting some XML data to RDF). I recently introduced a relatively minor change: some literals are now in a custom datatype, defined here:

"oh dear, already have a slot" exception

2022-03-17 Thread Élie Roux
Dear all, I have some code that write hundreds of thousands of trig files (converting some XML data to RDF). I recently introduced a relatively minor change: some literals are now in a custom datatype, defined here: