You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Luí­s Moreira de Sousa <lu...@protonmail.ch.INVALID> on 2020/01/22 13:49:32 UTC

Can Fuseki load Turtle datasets?

Hi there,

I am trying to load a few datasets created with Protege and saved in the Turtle format. Whenever I try to load one of these datasets to Fuseki I get the following error message:

Result: failed with message "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"

Is Turtle really supported by Fuseki? How could I otherwise load a dataset created with Protege?

Thank you.

--
Luís

Re: Can Fuseki load Turtle datasets?

Posted by Andy Seaborne <an...@apache.org>.
Fuseki handles Turtle.

The request indicates (usually one of file extension, content-type) 
contains JSON(-LD).

What does the log file say the request is?

(if you run with "-v" you get more details of every HTTP request)

     Andy

On 22/01/2020 13:49, Luí­s Moreira de Sousa wrote:
> Hi there,
> 
> I am trying to load a few datasets created with Protege and saved in the Turtle format. Whenever I try to load one of these datasets to Fuseki I get the following error message:
> 
> Result: failed with message "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
> 
> Is Turtle really supported by Fuseki? How could I otherwise load a dataset created with Protege?
> 
> Thank you.
> 
> --
> Luís
> 

Re: Can Fuseki load Turtle datasets?

Posted by Andy Seaborne <an...@apache.org>.
Which service of a dataset are you using to upload the data?

The log will have the request URL. If verbose, it has the HTTP headers 
as well.

Jena does not sniff data - it uses the information in the request and 
HTTP headers only.

 From the request URL, it takes the "file extension".

If it is a HTML form upload, the contained file may have a file name and 
that file extension is used.

    Andy

On 23/01/2020 08:15, Luí­s Moreira de Sousa wrote:
> Dear all,
> 
> nothing ever came up in the logs that provided a clue to the cause of this error. However, the error was issued by a containerised instance with Fuseki 3.10. I have now tested the same Turtle datasets against version 3.12 and 3.13, with those there is no error message and the datasets seem to get imported.
> 
> I will drop more information if I understand this better.
> 
> Thank you.
> 
> --
> Luís
> 
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Wednesday, January 22, 2020 2:49 PM, Luí­s Moreira de Sousa <lu...@protonmail.ch> wrote:
> 
>> Hi there,
>>
>> I am trying to load a few datasets created with Protege and saved in the Turtle format. Whenever I try to load one of these datasets to Fuseki I get the following error message:
>>
>> Result: failed with message "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
>>
>> Is Turtle really supported by Fuseki? How could I otherwise load a dataset created with Protege?
>>
>> Thank you.
>>
>> --
>> Luís

Re: Can Fuseki load Turtle datasets?

Posted by Luí­s Moreira de Sousa <lu...@protonmail.ch.INVALID>.
Dear all,

nothing ever came up in the logs that provided a clue to the cause of this error. However, the error was issued by a containerised instance with Fuseki 3.10. I have now tested the same Turtle datasets against version 3.12 and 3.13, with those there is no error message and the datasets seem to get imported.

I will drop more information if I understand this better.

Thank you.

--
Luís

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, January 22, 2020 2:49 PM, Luí­s Moreira de Sousa <lu...@protonmail.ch> wrote:

> Hi there,
>
> I am trying to load a few datasets created with Protege and saved in the Turtle format. Whenever I try to load one of these datasets to Fuseki I get the following error message:
>
> Result: failed with message "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
>
> Is Turtle really supported by Fuseki? How could I otherwise load a dataset created with Protege?
>
> Thank you.
>
> --
> Luís