You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Mikael Pesonen <mi...@lingsoft.fi> on 2017/12/12 14:46:51 UTC
Fuseki export and import
Hi,
I'm having touble with this again. Exporting graph from command line
apache-jena-fuseki-3.4.0/bin/s-get 'https://<HOST>:3030/ds/' <GRAPH> >
dump.rdf
and importing it In Fuseki web GUI gives
Result: *failed* with message "SyntaxError: JSON.parse: unexpected
character at line 1 column 1 of the JSON data"
Tried exporting .ttl and .xml also.
This worked before with some older version.
Br,
--
Lingsoft - 30 years of Leading Language Management
www.lingsoft.fi
Speech Applications - Language Management - Translation - Reader's and Writer's Tools - Text Tools - E-books and M-books
Mikael Pesonen
System Engineer
e-mail: mikael.pesonen@lingsoft.fi
Tel. +358 2 279 3300
Time zone: GMT+2
Helsinki Office
Eteläranta 10
FI-00130 Helsinki
FINLAND
Turku Office
Kauppiaskatu 5 A
FI-20100 Turku
FINLAND
Re: Fuseki export and import
Posted by Mikael Pesonen <mi...@lingsoft.fi>.
Ah, good point! My mistake then, sorry about that.
Mikael
On 12.12.2017 17:05, ajs6f wrote:
> How would s-get know what extension is being used for an output file to which you are redirecting?
>
> Try s-get as it is documented here:
>
> http://jena.apache.org/documentation/fuseki2/soh.html
>
> s-http VERB datasetURI graphName [file]
>
> e.g. s-put http://localhost:3030/dataset http://example/graph data.ttl
>
> ajs6f
>
>> On Dec 12, 2017, at 9:58 AM, Mikael Pesonen <mi...@lingsoft.fi> wrote:
>>
>>
>> Looks like s-get outputs now turtle regardless of file name extension. Is this changed at some point?
>>
>>
>> On 12.12.2017 16:48, ajs6f wrote:
>>> What is in dump.rdf? You don't show any of your actual data here. Is it JSON?
>>>
>>> ajs6f
>>>
>>>> On Dec 12, 2017, at 9:46 AM, Mikael Pesonen <mi...@lingsoft.fi> wrote:
>>>>
>>>>
>>>> Hi,
>>>>
>>>> I'm having touble with this again. Exporting graph from command line
>>>>
>>>> apache-jena-fuseki-3.4.0/bin/s-get 'https://<HOST>:3030/ds/' <GRAPH> > dump.rdf
>>>>
>>>> and importing it In Fuseki web GUI gives
>>>>
>>>> Result: *failed* with message "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
>>>>
>>>>
>>>> Tried exporting .ttl and .xml also.
>>>>
>>>> This worked before with some older version.
>>>>
>>>> Br,
>>>>
>>>> --
>>>> Lingsoft - 30 years of Leading Language Management
>>>>
>>>> www.lingsoft.fi
>>>>
>>>> Speech Applications - Language Management - Translation - Reader's and Writer's Tools - Text Tools - E-books and M-books
>>>>
>>>> Mikael Pesonen
>>>> System Engineer
>>>>
>>>> e-mail: mikael.pesonen@lingsoft.fi
>>>> Tel. +358 2 279 3300
>>>>
>>>> Time zone: GMT+2
>>>>
>>>> Helsinki Office
>>>> Eteläranta 10
>>>> FI-00130 Helsinki
>>>> FINLAND
>>>>
>>>> Turku Office
>>>> Kauppiaskatu 5 A
>>>> FI-20100 Turku
>>>> FINLAND
>>>>
>> --
>> Lingsoft - 30 years of Leading Language Management
>>
>> www.lingsoft.fi
>>
>> Speech Applications - Language Management - Translation - Reader's and Writer's Tools - Text Tools - E-books and M-books
>>
>> Mikael Pesonen
>> System Engineer
>>
>> e-mail: mikael.pesonen@lingsoft.fi
>> Tel. +358 2 279 3300
>>
>> Time zone: GMT+2
>>
>> Helsinki Office
>> Eteläranta 10
>> FI-00130 Helsinki
>> FINLAND
>>
>> Turku Office
>> Kauppiaskatu 5 A
>> FI-20100 Turku
>> FINLAND
>>
--
Lingsoft - 30 years of Leading Language Management
www.lingsoft.fi
Speech Applications - Language Management - Translation - Reader's and Writer's Tools - Text Tools - E-books and M-books
Mikael Pesonen
System Engineer
e-mail: mikael.pesonen@lingsoft.fi
Tel. +358 2 279 3300
Time zone: GMT+2
Helsinki Office
Eteläranta 10
FI-00130 Helsinki
FINLAND
Turku Office
Kauppiaskatu 5 A
FI-20100 Turku
FINLAND
Re: Fuseki export and import
Posted by ajs6f <aj...@apache.org>.
How would s-get know what extension is being used for an output file to which you are redirecting?
Try s-get as it is documented here:
http://jena.apache.org/documentation/fuseki2/soh.html
s-http VERB datasetURI graphName [file]
e.g. s-put http://localhost:3030/dataset http://example/graph data.ttl
ajs6f
> On Dec 12, 2017, at 9:58 AM, Mikael Pesonen <mi...@lingsoft.fi> wrote:
>
>
> Looks like s-get outputs now turtle regardless of file name extension. Is this changed at some point?
>
>
> On 12.12.2017 16:48, ajs6f wrote:
>> What is in dump.rdf? You don't show any of your actual data here. Is it JSON?
>>
>> ajs6f
>>
>>> On Dec 12, 2017, at 9:46 AM, Mikael Pesonen <mi...@lingsoft.fi> wrote:
>>>
>>>
>>> Hi,
>>>
>>> I'm having touble with this again. Exporting graph from command line
>>>
>>> apache-jena-fuseki-3.4.0/bin/s-get 'https://<HOST>:3030/ds/' <GRAPH> > dump.rdf
>>>
>>> and importing it In Fuseki web GUI gives
>>>
>>> Result: *failed* with message "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
>>>
>>>
>>> Tried exporting .ttl and .xml also.
>>>
>>> This worked before with some older version.
>>>
>>> Br,
>>>
>>> --
>>> Lingsoft - 30 years of Leading Language Management
>>>
>>> www.lingsoft.fi
>>>
>>> Speech Applications - Language Management - Translation - Reader's and Writer's Tools - Text Tools - E-books and M-books
>>>
>>> Mikael Pesonen
>>> System Engineer
>>>
>>> e-mail: mikael.pesonen@lingsoft.fi
>>> Tel. +358 2 279 3300
>>>
>>> Time zone: GMT+2
>>>
>>> Helsinki Office
>>> Eteläranta 10
>>> FI-00130 Helsinki
>>> FINLAND
>>>
>>> Turku Office
>>> Kauppiaskatu 5 A
>>> FI-20100 Turku
>>> FINLAND
>>>
>
> --
> Lingsoft - 30 years of Leading Language Management
>
> www.lingsoft.fi
>
> Speech Applications - Language Management - Translation - Reader's and Writer's Tools - Text Tools - E-books and M-books
>
> Mikael Pesonen
> System Engineer
>
> e-mail: mikael.pesonen@lingsoft.fi
> Tel. +358 2 279 3300
>
> Time zone: GMT+2
>
> Helsinki Office
> Eteläranta 10
> FI-00130 Helsinki
> FINLAND
>
> Turku Office
> Kauppiaskatu 5 A
> FI-20100 Turku
> FINLAND
>
Re: Fuseki export and import
Posted by Mikael Pesonen <mi...@lingsoft.fi>.
Looks like s-get outputs now turtle regardless of file name extension.
Is this changed at some point?
On 12.12.2017 16:48, ajs6f wrote:
> What is in dump.rdf? You don't show any of your actual data here. Is it JSON?
>
> ajs6f
>
>> On Dec 12, 2017, at 9:46 AM, Mikael Pesonen <mi...@lingsoft.fi> wrote:
>>
>>
>> Hi,
>>
>> I'm having touble with this again. Exporting graph from command line
>>
>> apache-jena-fuseki-3.4.0/bin/s-get 'https://<HOST>:3030/ds/' <GRAPH> > dump.rdf
>>
>> and importing it In Fuseki web GUI gives
>>
>> Result: *failed* with message "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
>>
>>
>> Tried exporting .ttl and .xml also.
>>
>> This worked before with some older version.
>>
>> Br,
>>
>> --
>> Lingsoft - 30 years of Leading Language Management
>>
>> www.lingsoft.fi
>>
>> Speech Applications - Language Management - Translation - Reader's and Writer's Tools - Text Tools - E-books and M-books
>>
>> Mikael Pesonen
>> System Engineer
>>
>> e-mail: mikael.pesonen@lingsoft.fi
>> Tel. +358 2 279 3300
>>
>> Time zone: GMT+2
>>
>> Helsinki Office
>> Eteläranta 10
>> FI-00130 Helsinki
>> FINLAND
>>
>> Turku Office
>> Kauppiaskatu 5 A
>> FI-20100 Turku
>> FINLAND
>>
--
Lingsoft - 30 years of Leading Language Management
www.lingsoft.fi
Speech Applications - Language Management - Translation - Reader's and Writer's Tools - Text Tools - E-books and M-books
Mikael Pesonen
System Engineer
e-mail: mikael.pesonen@lingsoft.fi
Tel. +358 2 279 3300
Time zone: GMT+2
Helsinki Office
Eteläranta 10
FI-00130 Helsinki
FINLAND
Turku Office
Kauppiaskatu 5 A
FI-20100 Turku
FINLAND
Re: Fuseki export and import
Posted by ajs6f <aj...@apache.org>.
What is in dump.rdf? You don't show any of your actual data here. Is it JSON?
ajs6f
> On Dec 12, 2017, at 9:46 AM, Mikael Pesonen <mi...@lingsoft.fi> wrote:
>
>
> Hi,
>
> I'm having touble with this again. Exporting graph from command line
>
> apache-jena-fuseki-3.4.0/bin/s-get 'https://<HOST>:3030/ds/' <GRAPH> > dump.rdf
>
> and importing it In Fuseki web GUI gives
>
> Result: *failed* with message "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
>
>
> Tried exporting .ttl and .xml also.
>
> This worked before with some older version.
>
> Br,
>
> --
> Lingsoft - 30 years of Leading Language Management
>
> www.lingsoft.fi
>
> Speech Applications - Language Management - Translation - Reader's and Writer's Tools - Text Tools - E-books and M-books
>
> Mikael Pesonen
> System Engineer
>
> e-mail: mikael.pesonen@lingsoft.fi
> Tel. +358 2 279 3300
>
> Time zone: GMT+2
>
> Helsinki Office
> Eteläranta 10
> FI-00130 Helsinki
> FINLAND
>
> Turku Office
> Kauppiaskatu 5 A
> FI-20100 Turku
> FINLAND
>