You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Rafiq <ak...@univ-lyon1.fr> on 2013/12/03 10:52:07 UTC

How to use TDB bulkloader

Hi,

I am using Fuseqi server. I want to store 23000 n3 files in TDB store. I 
know about
TDBloader. I tried to use it but could not, it is because I a, newbie to 
Jena TDB.
So if any could tell me how to use TDB loader, it would be great help.


Cheers,
Rafiq


Re: How to use TDB bulkloader

Posted by Andy Seaborne <an...@apache.org>.
On 03/12/13 12:00, Rafiq wrote:
> My OS is Linux. I tried with only tdbloader as well, I got *tdbloader:
> command not found*.

If you have the Jena distribution, it's in bin/ (which is not on your path).

	Andy

>
>
> On 12/03/2013 12:35 PM, Andy Seaborne wrote:
>> On 03/12/13 11:18, Rafiq wrote:
>>> Hi Andy,
>>>
>>> I have installed apache-jena and fuseqi in two different places. In
>>> order to
>>> load my dataset, I use apache-jena where jenatdbloader.bat is located.
>>> I execute the command below:
>>>
>>>   * ./tdbloader.bat --loc=/home/rafiq/Udataset
>>>     /home/rafiq/FuJenaTDB/Fuseqi/Data/*.n3
>>>
>>> It gives the following:
>>>
>>> ./tdbloader.bat: line 1: @echo: command not found
>>> ./tdbloader.bat: line 2: @rem: command not found
>>> ./tdbloader.bat: line 3: $'\r': command not found
>>> ./tdbloader.bat: line 19: syntax error: unexpected end of file
>>
>> That's the Microsoft Windows script.  Are you one Linux or using
>> Cygwin because it looks like it's being interpreted by a unix shell,
>> given that format of error message.
>>
>>>
>>> *" How do you want to store them?  As one singel graph or as 23000 named
>>> graphs? "
>>>
>>> *I want them as one single graph.
>>
>> That's the right way.
>>
>>>
>>>
>>> Regards,
>>>
>>>
>>>
>>>
>>> On 12/03/2013 11:36 AM, Andy Seaborne wrote:
>>>> On 03/12/13 09:52, Rafiq wrote:
>>>>> Hi,
>>>>>
>>>>> I am using Fuseqi server. I want to store 23000 n3 files in TDB
>>>>> store. I
>>>>> know about
>>>>> TDBloader. I tried to use it but could not, it is because I a,
>>>>> newbie to
>>>>> Jena TDB.
>>>>> So if any could tell me how to use TDB loader, it would be great help.
>>>>>
>>>>>
>>>>> Cheers,
>>>>> Rafiq
>>>>>
>>>>
>>>> How do you want to store them?  As one singel graph or as 23000 named
>>>> graphs?
>>>>
>>>> What have you tried? How are you using the loader currently?
>>>>
>>>> With Fuseki NOT running:
>>>>
>>>> tdbloader --loc=DIR allTheFiles
>>>>
>>>> where DIR is an empty directory
>>>>
>>>> will create one large graph.
>>>>
>>>>     Andy
>>>>
>>>
>>>
>>
>
>


Re: How to use TDB bulkloader

Posted by Rafiq <ak...@univ-lyon1.fr>.
My OS is Linux. I tried with only tdbloader as well, I got *tdbloader: 
command not found*.


On 12/03/2013 12:35 PM, Andy Seaborne wrote:
> On 03/12/13 11:18, Rafiq wrote:
>> Hi Andy,
>>
>> I have installed apache-jena and fuseqi in two different places. In
>> order to
>> load my dataset, I use apache-jena where jenatdbloader.bat is located.
>> I execute the command below:
>>
>>   * ./tdbloader.bat --loc=/home/rafiq/Udataset
>>     /home/rafiq/FuJenaTDB/Fuseqi/Data/*.n3
>>
>> It gives the following:
>>
>> ./tdbloader.bat: line 1: @echo: command not found
>> ./tdbloader.bat: line 2: @rem: command not found
>> ./tdbloader.bat: line 3: $'\r': command not found
>> ./tdbloader.bat: line 19: syntax error: unexpected end of file
>
> That's the Microsoft Windows script.  Are you one Linux or using 
> Cygwin because it looks like it's being interpreted by a unix shell, 
> given that format of error message.
>
>>
>> *" How do you want to store them?  As one singel graph or as 23000 named
>> graphs? "
>>
>> *I want them as one single graph.
>
> That's the right way.
>
>>
>>
>> Regards,
>>
>>
>>
>>
>> On 12/03/2013 11:36 AM, Andy Seaborne wrote:
>>> On 03/12/13 09:52, Rafiq wrote:
>>>> Hi,
>>>>
>>>> I am using Fuseqi server. I want to store 23000 n3 files in TDB 
>>>> store. I
>>>> know about
>>>> TDBloader. I tried to use it but could not, it is because I a, 
>>>> newbie to
>>>> Jena TDB.
>>>> So if any could tell me how to use TDB loader, it would be great help.
>>>>
>>>>
>>>> Cheers,
>>>> Rafiq
>>>>
>>>
>>> How do you want to store them?  As one singel graph or as 23000 named
>>> graphs?
>>>
>>> What have you tried? How are you using the loader currently?
>>>
>>> With Fuseki NOT running:
>>>
>>> tdbloader --loc=DIR allTheFiles
>>>
>>> where DIR is an empty directory
>>>
>>> will create one large graph.
>>>
>>>     Andy
>>>
>>
>>
>


Re: How to use TDB bulkloader

Posted by Andy Seaborne <an...@apache.org>.
On 03/12/13 11:18, Rafiq wrote:
> Hi Andy,
>
> I have installed apache-jena and fuseqi in two different places. In
> order to
> load my dataset, I use apache-jena where jenatdbloader.bat is located.
> I execute the command below:
>
>   * ./tdbloader.bat --loc=/home/rafiq/Udataset
>     /home/rafiq/FuJenaTDB/Fuseqi/Data/*.n3
>
> It gives the following:
>
> ./tdbloader.bat: line 1: @echo: command not found
> ./tdbloader.bat: line 2: @rem: command not found
> ./tdbloader.bat: line 3: $'\r': command not found
> ./tdbloader.bat: line 19: syntax error: unexpected end of file

That's the Microsoft Windows script.  Are you one Linux or using Cygwin 
because it looks like it's being interpreted by a unix shell, given that 
format of error message.

>
> *" How do you want to store them?  As one singel graph or as 23000 named
> graphs? "
>
> *I want them as one single graph.

That's the right way.

>
>
> Regards,
>
>
>
>
> On 12/03/2013 11:36 AM, Andy Seaborne wrote:
>> On 03/12/13 09:52, Rafiq wrote:
>>> Hi,
>>>
>>> I am using Fuseqi server. I want to store 23000 n3 files in TDB store. I
>>> know about
>>> TDBloader. I tried to use it but could not, it is because I a, newbie to
>>> Jena TDB.
>>> So if any could tell me how to use TDB loader, it would be great help.
>>>
>>>
>>> Cheers,
>>> Rafiq
>>>
>>
>> How do you want to store them?  As one singel graph or as 23000 named
>> graphs?
>>
>> What have you tried? How are you using the loader currently?
>>
>> With Fuseki NOT running:
>>
>> tdbloader --loc=DIR allTheFiles
>>
>> where DIR is an empty directory
>>
>> will create one large graph.
>>
>>     Andy
>>
>
>


Re: How to use TDB bulkloader

Posted by Rafiq <ak...@univ-lyon1.fr>.
Hi Andy,

I have installed apache-jena and fuseqi in two different places. In 
order to
load my dataset, I use apache-jena where jenatdbloader.bat is located.
I execute the command below:

  * ./tdbloader.bat --loc=/home/rafiq/Udataset
    /home/rafiq/FuJenaTDB/Fuseqi/Data/*.n3

It gives the following:

./tdbloader.bat: line 1: @echo: command not found
./tdbloader.bat: line 2: @rem: command not found
./tdbloader.bat: line 3: $'\r': command not found
./tdbloader.bat: line 19: syntax error: unexpected end of file

*" How do you want to store them?  As one singel graph or as 23000 named 
graphs? "

*I want them as one single graph.


Regards,




On 12/03/2013 11:36 AM, Andy Seaborne wrote:
> On 03/12/13 09:52, Rafiq wrote:
>> Hi,
>>
>> I am using Fuseqi server. I want to store 23000 n3 files in TDB store. I
>> know about
>> TDBloader. I tried to use it but could not, it is because I a, newbie to
>> Jena TDB.
>> So if any could tell me how to use TDB loader, it would be great help.
>>
>>
>> Cheers,
>> Rafiq
>>
>
> How do you want to store them?  As one singel graph or as 23000 named 
> graphs?
>
> What have you tried? How are you using the loader currently?
>
> With Fuseki NOT running:
>
> tdbloader --loc=DIR allTheFiles
>
> where DIR is an empty directory
>
> will create one large graph.
>
>     Andy
>


Re: How to use TDB bulkloader

Posted by Andy Seaborne <an...@apache.org>.
On 03/12/13 09:52, Rafiq wrote:
> Hi,
>
> I am using Fuseqi server. I want to store 23000 n3 files in TDB store. I
> know about
> TDBloader. I tried to use it but could not, it is because I a, newbie to
> Jena TDB.
> So if any could tell me how to use TDB loader, it would be great help.
>
>
> Cheers,
> Rafiq
>

How do you want to store them?  As one singel graph or as 23000 named 
graphs?

What have you tried? How are you using the loader currently?

With Fuseki NOT running:

tdbloader --loc=DIR allTheFiles

where DIR is an empty directory

will create one large graph.

	Andy