[
https://issues.apache.org/jira/browse/JENA-2283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17495039#comment-17495039
]
ASF subversion and git services commented on JENA-2283:
-------------------------------------------------------
Commit 2355cf807d052401906b9380c3c8cff861bbc315 in jena's branch
refs/heads/main from Bruno P. Kinoshita
[ https://gitbox.apache.org/repos/asf?p=jena.git;h=2355cf8 ]
JENA-2283: add back the SPARQL endpoint input field in the query page
> Allow setting the SPARQL endpoint.
> ----------------------------------
>
> Key: JENA-2283
> URL: https://issues.apache.org/jira/browse/JENA-2283
> Project: Apache Jena
> Issue Type: Bug
> Components: Fuseki UI
> Affects Versions: Jena 4.4.0
> Reporter: Andy Seaborne
> Assignee: Bruno P. Kinoshita
> Priority: Major
> Attachments: Screenshot from 2022-02-18 00-32-20.png
>
>
> 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.
> {noformat}
> curl -XPOST -H 'Content-type: ' --data 'INSERTDATA { <x:s> <x:p> <x:o>}'
> http://localhost:3030/ds/update
> {noformat}
> works - the {{-H 'Content-type: '}} turns off curl adding
> {{application/x-www-form-urlencoded}}.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)