Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-2283

Allow setting the SPARQL endpoint.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 4.4.0
    • Jena 4.5.0
    • Fuseki UI
    • None

    Description

      The old UI had a "SPARQL endpoint" box.

      That would be useful for plugging the UI into any SPARQL endpoint without relying on introspection of the server.

      As reported: https://stackoverflow.com/questions/71111989/fuseki-4-4-ui-set-endpoint-for-update-queries, it is also a "trick" for setting the endpoint to the update service and sending SPARQL Update.

      The old API sets the HTML form parameter correctly - probably yasgui knows whether it is a query string or an update string and sets the HTML form parameter correctly (query= or update=) for application/x-www-form-urlencoded.


      In Fuseki, if a request goes to a named service ("/dataset/query", "/dataset/update") the service will execute it without being too worried about the content -type. Sending to "/dataset" does require a content type or correct HTML form parameter.

      curl -XPOST -H 'Content-type: ' --data 'INSERTDATA { <x:s> <x:p> <x:o>}' http://localhost:3030/ds/update
      

      works - the -H 'Content-type: ' turns off curl adding application/x-www-form-urlencoded.

      Attachments

        1. Screenshot from 2022-02-18 00-32-20.png
          59 kB
          Bruno P. Kinoshita

        Issue Links

          Activity

            People

              kinow Bruno P. Kinoshita
              andy Andy Seaborne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: