ModelFactory.createFileModelMaker

2016-10-04 Thread McDermott, Thomas E
This method was deprecated and then removed last year.  Is there a replacement?

Thanks



Don't put when you really want to add!

2016-10-04 Thread David Moss
Not a question but a red faced admission.


 String serviceURI = "http://wheremydatawas/ds/data;;

 DatasetAccessor accessor;

 accessor = DatasetAccessorFactory.createHTTP(serviceURI);

 System.out.println("Has http://example/update-base/EQ --> " + 
accessor.containsModel("http://example/update-base/EQ;));

 accessor.add("http://example/update-base/EQ;, m);

Guess who used
 accessor.putModel("http://example/update-base/EQ;, m);

for the last line!

.add is non-destructive. 
.putModel replaces all the existing data in the named graph with the data in 
the model.

Fortunately it was only thousands of triples and not millions.
And I still have the CSV it came from.

DM



Re: Backup of TDB-backed dataset

2016-10-04 Thread Laurent Rucquoy
Thank you for your help.
Sincerely,
Laurent

On 3 October 2016 at 17:17, Andy Seaborne  wrote:

> Laurent,
>
> The best way to take a backup is to be a read-transaction and write
> n-quads (that's what Fuseki does).
>
> In order to go in at the file level, you need to not have a running JVM.
> In 3.1.1, there will be a "lock down" mode to make the on-disk database
> consistent, if the app really must.
>
> The best for snapshoting disk files in 3.1.0 is start a write transaction,
> do no writes, and take disk copy. This is not a feature guaranteed in the
> future.
>
> Taking an RDF-level backup is better.
>
> Andy
>
>
> On 03/10/16 15:36, Laurent Rucquoy wrote:
>
>> Hello,
>>
>> We have a TDB-backed dataset on a Windows server (Apache Jena 3.1.0)
>> We want to make a .zip backup of the TDB folder from the JVM running the
>> TDB.
>> Is it a safe way to do this in order to avoid database corruption ?
>>
>> Thank you in advance for your help.
>>
>> Regards,
>> Laurent
>>
>>


-- 


*Laurent Rucquoy*
R Engineer

laurent.rucq...@telemis.com
Tel: +32 (0) 10 48 00 27
Fax: +32 (0) 10 48 00 20

Telemis
Avenue Athéna 2
1348 Louvain-la-Neuve
Belgium
www.telemis.com
*Extending Human Life*