On 25/10/2020 15:10, Bardo Nelgen wrote:
Hi Andy,
thanks for the effort, despite I havestillno clue about how to properly
do this in **pure** SPARQL, as I do not have any influence on the
function calling that query… – all I can do is insert the variables
provided to me.
There isn't a way in SPARQL itself other than
https://users:password@host:port/
Its for the sending system to perform the users/password management but
Peter's suggest may be a way.
Andy
Sorry for the persistence.
— Bardo
On 24.10.20 18.41 Uhr, Andy Seaborne wrote:
Here is an example: see the function runServiceQuery()
https://gist.github.com/afs/74e86ba47d673d4bd77a3d8e15210a33
It is a self-contained example (it runs it's own Fuseki server) except
it needs an external password file as explained in "main".
Hope that helps,
Andy
On 23/10/2020 10:47, Bardo Nelgen wrote:
Hi Andy,
thanks for looking into this.
I’m asking Fuseki over HTTP…
Currently – with everything o the same machine – putting credentials
into the service IRL works fine:
BIND(IRI(CONCAT(?fusekiProtocol,"://",str(?fusekiUser),":",str(?fusekiPass),"@",?fusekiHost,":",?fusekiPort,"/",?fusekiPath))AS?fusekiServiceIRL).
Though, with Fuseki moving to a new machine, I will of course need to
get the credentials out of the IRL…
So with only…
BIND(IRI(CONCAT(?fusekiProtocol,"://",?fusekiHost,":",?fusekiPort,"/",?fusekiPath))AS?fusekiServiceIRL).
…where do the credentials need to go now and in which format ?
?fusekiServiceIRL srv:serviceContext "???".
I just don’t get how to put the syntax together correctly.
My server is currently running v3.10.0; the new machine will use the
latest version.
Thanks again for helping out here.
Best,
Bardo
On 23.10.20 10.13 Uhr, Andy Seaborne wrote:
Hi there,
From looking at the code (!) it's srv:serviceContext - website being
corrected.
Do you have an example of code you are trying to get working?
I found this in the test suite:
https://github.com/apache/jena/blob/master/jena-arq/src/test/java/org/apache/jena/sparql/engine/http/TestService.java#L165
It is exact string match on the URI.
Andy
On 22/10/2020 09:17, Bardo Nelgen wrote:
Hi all,
sorry, I know it’s rather basic.
But I just can’t figure out how to properly use the contemporary
syntax from
https://jena.apache.org/documentation/query/service.html#configuration-from-jena-version-311
in a federated SPARQL query on Fuseki.
Of course, one can still include the credentials inside the query
IRL, though this for sure is highly insecure.
Where do these parameters need to go according to the manual ?
(BTW: There also appears to be an inconsistency between
srv:queryContext and srv:serviceContext in the "3.0.0"-section…)
A simple s-p-o example should do.
Loads of thanks to anyone taking the effort.
— Bardo