You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by "Gray, Alasdair J G" <A....@hw.ac.uk.INVALID> on 2020/07/15 07:54:47 UTC

Problems uploading data with Fuseki

Hi

I have recently upgraded from Fuseki 3.10.0 to 3.16.0. Whenever I try to upload a data file with 3.16 I get the following error. This is happening with n-quad and turtle files that I have successfully uploaded into 3.10.
Result: failed with message "SyntaxError: Unexpected token < in JSON at position 0"


Thanks

Alasdair

--
Alasdair J G Gray
Associate Professor in Computer Science,
School of Mathematical and Computer Sciences
Heriot-Watt University, Edinburgh, UK.

Email: A.J.G.Gray@hw.ac.uk<ma...@hw.ac.uk>
Web: http://www.macs.hw.ac.uk/~ajg33
ORCID: http://orcid.org/0000-0002-5711-4872
Office: Earl Mountbatten Building 1.39
Twitter: @gray_alasdair

To arrange a meeting: https://doodle.com/mm/alasdairgray/book-a-time

________________________________

Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With campuses and students across the entire globe we span the world, delivering innovation and educational excellence in business, engineering, design and the physical, social and life sciences. This email is generated from the Heriot-Watt University Group, which includes:

  1.  Heriot-Watt University, a Scottish charity registered under number SC000278
  2.  Heriot- Watt Services Limited (Oriam), Scotland's national performance centre for sport. Heriot-Watt Services Limited is a private limited company registered is Scotland with registered number SC271030 and registered office at Research & Enterprise Services Heriot-Watt University, Riccarton, Edinburgh, EH14 4AS.

The contents (including any attachments) are confidential. If you are not the intended recipient of this e-mail, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete it (including any attachments) from your system.

Re: Problems uploading data with Fuseki

Posted by "Gray, Alasdair J G" <A....@hw.ac.uk.INVALID>.
Hi

I've been using Chrome. I've just switched to Firefox and the data has uploaded and I can again query it.
(Hazy memories are a wonderful thing __ )

Thanks for the help

Alasdair

-- 
Alasdair J G Gray
Associate Professor in Computer Science, 
School of Mathematical and Computer Sciences 
Heriot-Watt University, Edinburgh, UK.

Email: A.J.G.Gray@hw.ac.uk <ma...@hw.ac.uk>
Web: http://www.macs.hw.ac.uk/~ajg33
ORCID: http://orcid.org/0000-0002-5711-4872
Office: Earl Mountbatten Building 1.39
Twitter: @gray_alasdair
 
To arrange a meeting: https://doodle.com/mm/alasdairgray/book-a-time
 

On 15/07/2020, 16:12, "Andy Seaborne" <an...@apache.org> wrote:

    Sorry - image didn't get through.

    Did you do a hard-refresh in the browser? (I don't know that this is the 
    issue but I have some hazy memory it might.)

         Andy

    On 15/07/2020 10:37, Gray, Alasdair J G wrote:
    > Hi Andy,
    > 
    > This is through the UI. I've just tried using fuseki-server -v. While this gives more detailed logging there are no log entries when I try to upload the files.

    That suggests the request is not getting to the Fuseki code. The first 
    thing it does is to log the request.

    > 
    > Uploading a turtle file via the curl command worked but then queries through the UI are not working for that dataset, the query just keeps running without responding.
    > 
    > This is a screenshot of the problem I'm seeing in the UI when uploading the data.
    > 
    > Thanks
    > 
    > Alasdair
    > 
    > --
    > Alasdair J G Gray
    > Associate Professor in Computer Science,
    > School of Mathematical and Computer Sciences
    > Heriot-Watt University, Edinburgh, UK.
    > 
    > Email: A.J.G.Gray@hw.ac.uk <ma...@hw.ac.uk>
    > Web: http://www.macs.hw.ac.uk/~ajg33
    > ORCID: http://orcid.org/0000-0002-5711-4872
    > Office: Earl Mountbatten Building 1.39
    > Twitter: @gray_alasdair
    > 
    > To arrange a meeting: https://doodle.com/mm/alasdairgray/book-a-time
    > 
    > 
    > On 15/07/2020, 09:53, "Andy Seaborne" <an...@apache.org> wrote:
    > 
    >      This is via the UI? Possibly, there is some kind of error message (in
    >      HTML) coming back where JSON expected.
    > 
    >      The server log should have more details, especially if run "-v" (for the
    >      standalone server).
    > 
    >      If you use the command line, you shoudl get back the actual response bytes:
    > 
    >      curl -XPOST --header 'Content-type: text/turtle' --data-binary @data.ttl
    >      http://localhost:3030/ds/
    > 
    >           Andy
    > 
    >      On 15/07/2020 08:54, Gray, Alasdair J G wrote:
    >      > Hi
    >      >
    >      > I have recently upgraded from Fuseki 3.10.0 to 3.16.0. Whenever I try to upload a data file with 3.16 I get the following error. This is happening with n-quad and turtle files that I have successfully uploaded into 3.10.
    >      > Result: failed with message "SyntaxError: Unexpected token < in JSON at position 0"
    >      >
    >      >
    >      > Thanks
    >      >
    >      > Alasdair
    >      >
    >      > --
    >      > Alasdair J G Gray
    >      > Associate Professor in Computer Science,
    >      > School of Mathematical and Computer Sciences
    >      > Heriot-Watt University, Edinburgh, UK.
    >      >
    >      > Email: A.J.G.Gray@hw.ac.uk<ma...@hw.ac.uk>
    >      > Web: http://www.macs.hw.ac.uk/~ajg33
    >      > ORCID: http://orcid.org/0000-0002-5711-4872
    >      > Office: Earl Mountbatten Building 1.39
    >      > Twitter: @gray_alasdair
    >      >
    >      > To arrange a meeting: https://doodle.com/mm/alasdairgray/book-a-time
    >      >
    > 
    > ________________________________
    > 
    > Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With campuses and students across the entire globe we span the world, delivering innovation and educational excellence in business, engineering, design and the physical, social and life sciences. This email is generated from the Heriot-Watt University Group, which includes:
    > 
    >    1.  Heriot-Watt University, a Scottish charity registered under number SC000278
    >    2.  Heriot- Watt Services Limited (Oriam), Scotland's national performance centre for sport. Heriot-Watt Services Limited is a private limited company registered is Scotland with registered number SC271030 and registered office at Research & Enterprise Services Heriot-Watt University, Riccarton, Edinburgh, EH14 4AS.
    > 
    > The contents (including any attachments) are confidential. If you are not the intended recipient of this e-mail, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete it (including any attachments) from your system.
    > 


Re: Problems uploading data with Fuseki

Posted by Andy Seaborne <an...@apache.org>.
Sorry - image didn't get through.

Did you do a hard-refresh in the browser? (I don't know that this is the 
issue but I have some hazy memory it might.)

     Andy

On 15/07/2020 10:37, Gray, Alasdair J G wrote:
> Hi Andy,
> 
> This is through the UI. I've just tried using fuseki-server -v. While this gives more detailed logging there are no log entries when I try to upload the files.

That suggests the request is not getting to the Fuseki code. The first 
thing it does is to log the request.

> 
> Uploading a turtle file via the curl command worked but then queries through the UI are not working for that dataset, the query just keeps running without responding.
> 
> This is a screenshot of the problem I'm seeing in the UI when uploading the data.
> 
> Thanks
> 
> Alasdair
> 
> --
> Alasdair J G Gray
> Associate Professor in Computer Science,
> School of Mathematical and Computer Sciences
> Heriot-Watt University, Edinburgh, UK.
> 
> Email: A.J.G.Gray@hw.ac.uk <ma...@hw.ac.uk>
> Web: http://www.macs.hw.ac.uk/~ajg33
> ORCID: http://orcid.org/0000-0002-5711-4872
> Office: Earl Mountbatten Building 1.39
> Twitter: @gray_alasdair
> 
> To arrange a meeting: https://doodle.com/mm/alasdairgray/book-a-time
> 
> 
> On 15/07/2020, 09:53, "Andy Seaborne" <an...@apache.org> wrote:
> 
>      This is via the UI? Possibly, there is some kind of error message (in
>      HTML) coming back where JSON expected.
> 
>      The server log should have more details, especially if run "-v" (for the
>      standalone server).
> 
>      If you use the command line, you shoudl get back the actual response bytes:
> 
>      curl -XPOST --header 'Content-type: text/turtle' --data-binary @data.ttl
>      http://localhost:3030/ds/
> 
>           Andy
> 
>      On 15/07/2020 08:54, Gray, Alasdair J G wrote:
>      > Hi
>      >
>      > I have recently upgraded from Fuseki 3.10.0 to 3.16.0. Whenever I try to upload a data file with 3.16 I get the following error. This is happening with n-quad and turtle files that I have successfully uploaded into 3.10.
>      > Result: failed with message "SyntaxError: Unexpected token < in JSON at position 0"
>      >
>      >
>      > Thanks
>      >
>      > Alasdair
>      >
>      > --
>      > Alasdair J G Gray
>      > Associate Professor in Computer Science,
>      > School of Mathematical and Computer Sciences
>      > Heriot-Watt University, Edinburgh, UK.
>      >
>      > Email: A.J.G.Gray@hw.ac.uk<ma...@hw.ac.uk>
>      > Web: http://www.macs.hw.ac.uk/~ajg33
>      > ORCID: http://orcid.org/0000-0002-5711-4872
>      > Office: Earl Mountbatten Building 1.39
>      > Twitter: @gray_alasdair
>      >
>      > To arrange a meeting: https://doodle.com/mm/alasdairgray/book-a-time
>      >
> 
> ________________________________
> 
> Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With campuses and students across the entire globe we span the world, delivering innovation and educational excellence in business, engineering, design and the physical, social and life sciences. This email is generated from the Heriot-Watt University Group, which includes:
> 
>    1.  Heriot-Watt University, a Scottish charity registered under number SC000278
>    2.  Heriot- Watt Services Limited (Oriam), Scotland's national performance centre for sport. Heriot-Watt Services Limited is a private limited company registered is Scotland with registered number SC271030 and registered office at Research & Enterprise Services Heriot-Watt University, Riccarton, Edinburgh, EH14 4AS.
> 
> The contents (including any attachments) are confidential. If you are not the intended recipient of this e-mail, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete it (including any attachments) from your system.
> 

Re: Problems uploading data with Fuseki

Posted by "Gray, Alasdair J G" <A....@hw.ac.uk.INVALID>.
Hi Andy,

This is through the UI. I've just tried using fuseki-server -v. While this gives more detailed logging there are no log entries when I try to upload the files.

Uploading a turtle file via the curl command worked but then queries through the UI are not working for that dataset, the query just keeps running without responding.

This is a screenshot of the problem I'm seeing in the UI when uploading the data.

Thanks

Alasdair

--
Alasdair J G Gray
Associate Professor in Computer Science,
School of Mathematical and Computer Sciences
Heriot-Watt University, Edinburgh, UK.

Email: A.J.G.Gray@hw.ac.uk <ma...@hw.ac.uk>
Web: http://www.macs.hw.ac.uk/~ajg33
ORCID: http://orcid.org/0000-0002-5711-4872
Office: Earl Mountbatten Building 1.39
Twitter: @gray_alasdair

To arrange a meeting: https://doodle.com/mm/alasdairgray/book-a-time


On 15/07/2020, 09:53, "Andy Seaborne" <an...@apache.org> wrote:

    This is via the UI? Possibly, there is some kind of error message (in
    HTML) coming back where JSON expected.

    The server log should have more details, especially if run "-v" (for the
    standalone server).

    If you use the command line, you shoudl get back the actual response bytes:

    curl -XPOST --header 'Content-type: text/turtle' --data-binary @data.ttl
    http://localhost:3030/ds/

         Andy

    On 15/07/2020 08:54, Gray, Alasdair J G wrote:
    > Hi
    >
    > I have recently upgraded from Fuseki 3.10.0 to 3.16.0. Whenever I try to upload a data file with 3.16 I get the following error. This is happening with n-quad and turtle files that I have successfully uploaded into 3.10.
    > Result: failed with message "SyntaxError: Unexpected token < in JSON at position 0"
    >
    >
    > Thanks
    >
    > Alasdair
    >
    > --
    > Alasdair J G Gray
    > Associate Professor in Computer Science,
    > School of Mathematical and Computer Sciences
    > Heriot-Watt University, Edinburgh, UK.
    >
    > Email: A.J.G.Gray@hw.ac.uk<ma...@hw.ac.uk>
    > Web: http://www.macs.hw.ac.uk/~ajg33
    > ORCID: http://orcid.org/0000-0002-5711-4872
    > Office: Earl Mountbatten Building 1.39
    > Twitter: @gray_alasdair
    >
    > To arrange a meeting: https://doodle.com/mm/alasdairgray/book-a-time
    >

________________________________

Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With campuses and students across the entire globe we span the world, delivering innovation and educational excellence in business, engineering, design and the physical, social and life sciences. This email is generated from the Heriot-Watt University Group, which includes:

  1.  Heriot-Watt University, a Scottish charity registered under number SC000278
  2.  Heriot- Watt Services Limited (Oriam), Scotland's national performance centre for sport. Heriot-Watt Services Limited is a private limited company registered is Scotland with registered number SC271030 and registered office at Research & Enterprise Services Heriot-Watt University, Riccarton, Edinburgh, EH14 4AS.

The contents (including any attachments) are confidential. If you are not the intended recipient of this e-mail, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete it (including any attachments) from your system.

Re: Problems uploading data with Fuseki

Posted by Andy Seaborne <an...@apache.org>.
This is via the UI? Possibly, there is some kind of error message (in 
HTML) coming back where JSON expected.

The server log should have more details, especially if run "-v" (for the 
standalone server).

If you use the command line, you shoudl get back the actual response bytes:

curl -XPOST --header 'Content-type: text/turtle' --data-binary @data.ttl 
http://localhost:3030/ds/

     Andy

On 15/07/2020 08:54, Gray, Alasdair J G wrote:
> Hi
> 
> I have recently upgraded from Fuseki 3.10.0 to 3.16.0. Whenever I try to upload a data file with 3.16 I get the following error. This is happening with n-quad and turtle files that I have successfully uploaded into 3.10.
> Result: failed with message "SyntaxError: Unexpected token < in JSON at position 0"
> 
> 
> Thanks
> 
> Alasdair
> 
> --
> Alasdair J G Gray
> Associate Professor in Computer Science,
> School of Mathematical and Computer Sciences
> Heriot-Watt University, Edinburgh, UK.
> 
> Email: A.J.G.Gray@hw.ac.uk<ma...@hw.ac.uk>
> Web: http://www.macs.hw.ac.uk/~ajg33
> ORCID: http://orcid.org/0000-0002-5711-4872
> Office: Earl Mountbatten Building 1.39
> Twitter: @gray_alasdair
> 
> To arrange a meeting: https://doodle.com/mm/alasdairgray/book-a-time
>