[Activerdf] ActiveRDF RDFLite adapter.load

Pierre De Wilde pierredewilde at hotmail.com
Thu Dec 21 12:31:13 GMT 2006


Have you tried uuidtools? It's easy to setup (gem install uuidtools) and use 
(UUID.timestamp_create).

More info at http://sporkmonger.com/projects/uuidtools/

Pierre
>From: Eyal Oren <eyal.oren at deri.org>
>Reply-To: ActiveRDF users <activerdf at lists.deri.org>
>To: activerdf at lists.deri.org
>Subject: Re: [Activerdf] ActiveRDF RDFLite adapter.load
>Date: Thu, 21 Dec 2006 11:16:36 +0100
>
>On 12/20/06/12/06 22:24 +0100, Jörg wrote:
>>Hello,
>>
>>I started with the GettingStartedGuide and ran into a problem when loading 
>>the test_person_data.nt file in irb on Windows XP. When typing 
>>adapter.load "c:/test_person_data.nt" I get the following error message:
>>
>>Errno::ENOENT: No such file or directoy -uuidgen
>>rdflite.rb:163:in '''
>>rdflite.rb162:in 'add_ntriples'
>>rdflite.rb:152:in 'load'
>>
>>is this a problem with the windows path?
>No, sorry, this is a problem with me.
>
>When we load blank nodes into rdflite, I convert them into a unique URI 
>(skolemisation) to allow further processing later on. To ensure the URI is 
>unique, we use a UUID generator. On linux, the program uuidgen is usually 
>available, so we simply use that. On windows this is not the case, hence 
>the error message.
>
>In an earlier version, I used the gem 'uuid' which offers a platform 
>independent uuid generator, but it doesn't work very nicely on Linux 
>(permission problems). I knew that uuidgen wouldn't work on Windows but 
>completely forgot to find a real solution. If anybody has suggestions, 
>please shout.
>
>For now, you can change rdflite.rb:159 into:
>uuid  = Time.now.to_i
>
>That should at least work for now, while I find a real solution.
>
>-eyal
>_______________________________________________
>Activerdf mailing list
>Activerdf at lists.deri.org
>http://lists.deri.org/mailman/listinfo/activerdf

_________________________________________________________________
Saviez-vous que Windows Live Messenger est disponible dès maintenant sur 
votre GSM ? http://get.live.com/messenger/mobile



More information about the Activerdf mailing list