Re: from a named graph in a federated query

2023-02-03 Thread Steven Blanchard
ay, 3 February 2023 at 08:32 To: users mailto:users@jena.apache.org>> Subject: from a named graph in a federated query Dear Jena users, I would like to do a federated query (with SERVICE) but on a named graph and not on the default graph. How it is possible? This query works if data are in the default

Re: from a named graph in a federated query

2023-02-03 Thread Rob @ DNR
N { ?protein biolink:provided_by ?soft } } Hope this helps, Rob From: Steven Blanchard Date: Friday, 3 February 2023 at 08:32 To: users Subject: from a named graph in a federated query Dear Jena users, I would like to do a federated query (with SERVICE) but on a named graph and not on the default g

from a named graph in a federated query

2023-02-03 Thread Steven Blanchard
Dear Jena users, I would like to do a federated query (with SERVICE) but on a named graph and not on the default graph. How it is possible? This query works if data are in the default graph : query = """ PREFIX biolink: <<https://w3id.org/biolink/vocab/>> PREFIX up

Re: Federated Query with credentials

2021-06-03 Thread Andy Seaborne
On 03/06/2021 10:10, Andy Seaborne wrote: OK - managed to recreate the situation in 4.0.0 and confirmed the situation does not occur in 4.1.0.     Andy The logging of parse errors (server side) is poor https://issues.apache.org/jira/browse/JENA-2113 (this does not get an error message b

Re: Federated Query with credentials

2021-06-03 Thread Andy Seaborne
OK - managed to recreate the situation in 4.0.0 and confirmed the situation does not occur in 4.1.0. Andy On 03/06/2021 08:09, Jens Zurawski wrote: Hi Andy, erm, sorry, seems the test case then was too simple. Ok, first, thanks for the info, I wasn't aware about the fact that QueryFacto

Re: Federated Query with credentials

2021-06-03 Thread Jens Zurawski
Hi Andy, erm, sorry, seems the test case then was too simple. Ok, first, thanks for the info, I wasn't aware about the fact that QueryFactory is entirely local. I've made a test with parseCheckSPARQL(false) and conn.queryAsk(...) and I'm getting the same 400 Bad Request. In fact a query whi

Re: Federated Query with credentials

2021-06-02 Thread Andy Seaborne
On 02/06/2021 12:22, Jens Zurawski wrote: Hi Andy, I was able to construct a really simple test case to reliably reproduce our problem. I've started with a vanilla ubuntu 20.04 VM to eliminate potential and disturbing other problems from misconfigs or the like. used JDK: openjdk version "1

Re: Federated Query with credentials

2021-06-02 Thread Jens Zurawski
Hi Andy, I was able to construct a really simple test case to reliably reproduce our problem. I've started with a vanilla ubuntu 20.04 VM to eliminate potential and disturbing other problems from misconfigs or the like. used JDK: openjdk version "14.0.2" 2020-07-14 Now the steps to reproduce

Re: Federated Query with credentials

2021-05-27 Thread Jens Zurawski
Hi Andy, thanks for your effort on trying to reproduce our case. I'm using the binary package apache-jena-fuseki-4.0.0.tar.gz from https://jena.apache.org/download/index.cgi with open jdk 11. The configuration isn't altered much from the package defaults, mainly the shiro.ini config for secur

Re: Federated Query with credentials

2021-05-27 Thread Andy Seaborne
Jens - When I tried to recreate this with 4.0.0 but I get "400 Bad request" not a 500 (and it works in development). Which binary packaging are you using? What is the server configuration? What is the query with the SERVICE in it? What does the log have in it for the request? Andy On 26/

Re: Federated Query with credentials

2021-05-26 Thread Andy Seaborne
On 26/05/2021 18:08, Jens Zurawski wrote: Hi Andy, hi list, because I'm new to the list, I wasn't able to directly reply to the corresponding thread. I'm referring to the equal named thread "Federated Query with credentials" from the past days. I am a good skill

Federated Query with credentials

2021-05-26 Thread Jens Zurawski
Hi Andy, hi list, because I'm new to the list, I wasn't able to directly reply to the corresponding thread. I'm referring to the equal named thread "Federated Query with credentials" from the past days. I am a good skilled Java developer, but my knowledge about Je

Re: Federated Query with credentials

2021-05-20 Thread Andy Seaborne
Ah - I read it as using SERVICE so you could send auth conveniently which I have seen before. The query execution context can have a HttpClient passed to it. I thought this was in the documentation or an example somewhere but I can't find it. https://jena.apache.org/documentation/javadoc/arq

Re: Federated Query with credentials

2021-05-20 Thread Bardo Nelgen
Thanks a lot, Andy. And sorry, it seems I probably formulated my question the wrong way around: How can I use your described approach for a federated sub-query, for which (as it is embedded inside an outer query) one seemingly cannot easily transmit separate/different credentials via RDFConne

Re: Federated Query with credentials

2021-05-19 Thread Andy Seaborne
Bardo, On the server side: https://jena.apache.org/documentation/fuseki2/fuseki-data-access-control.html Access control on the server, dataset URL, or endpoint. Also on the data with graph access control lists. You can also use Apache Shiro. https://jena.apache.org/documentation/fuseki2/fusek

Federated Query with credentials

2021-05-19 Thread Bardo Nelgen
Hi all, on good old Fuseki 2.6.0 I could use the IRL of requests to transmit required HTTP basic credentials to access Fuseki. Obviously this is not possible any longer with the current version – not even for localhost. As using a reverse proxy to restrict access even from the local envir

Re: Federated Query Basic Authentification using Fuseki

2020-10-26 Thread Bardo Nelgen
THIS is what I needed to know. I obviously just understood the docs wrong when I saw the older namespace-based example, mentioning availability „in the per-query execution context“ – and foolishly thought I only needed to put these into the query itself. Thanks a lot, nonetheless, for taking

Re: Federated Query Basic Authentification using Fuseki

2020-10-26 Thread Andy Seaborne
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 w

Re: Federated Query Basic Authentification using Fuseki

2020-10-25 Thread Peter Winstanley
You could use a proxy to do you authentication. A simple one in python that will handle and number of endpoints with different types of authentication including e.g Kerberos can be out together in a few lines using http.server and the requests modules On Sun, 25 Oct 2020, 15:10 Bardo Nelgen, < mai

Re: Federated Query Basic Authentification using Fuseki

2020-10-25 Thread Bardo Nelgen
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. Sorry for the persistence. — Bardo On 24.10.20 18.41 Uhr,

Re: Federated Query Basic Authentification using Fuseki

2020-10-24 Thread Andy Seaborne
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

Re: Federated Query Basic Authentification using Fuseki

2020-10-23 Thread Bardo Nelgen
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,"/",?fusekiPa

Re: Federated Query Basic Authentification using Fuseki

2020-10-23 Thread Andy Seaborne
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/TestSer

Federated Query Basic Authentification using Fuseki

2020-10-22 Thread Bardo Nelgen
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 creden

Re: How to set a federated query against 2 different SPARQL endpoints in Jena?

2019-11-28 Thread Andy Seaborne
On 28/11/2019 07:55, Lorenz Buehmann wrote: You're querying two different endpoints with possible default limits per query request ... always keep this in mind. Might not be a problem here, but Wikidata has a hard-coded 60s limit, other endpoints like public DBpedia limit to 1 "rows". I a

Re: How to set a federated query against 2 different SPARQL endpoints in Jena?

2019-11-28 Thread Hyrundo Publishing Association
Thank You so much gentlemen! I will make the suggested modifications and hopefully I will make that work. Have a great day! Best Regards Hyrundo > On Nov 28, 2019, at 11:33 AM, Andy Seaborne wrote: > > Hi Hyrundo, > > The query as written is executed locally, and when execution reaches t

Re: How to set a federated query against 2 different SPARQL endpoints in Jena?

2019-11-28 Thread Andy Seaborne
Hi Hyrundo, The query as written is executed locally, and when execution reaches the SERVICE clauses the engine calls out to the named service. Instead of: QueryExecutionFactory.sparqlService use QueryExecutionFactory.create Andy On 27/11/2019 16:23, Hyrundo Publishing Association wr

Re: How to set a federated query against 2 different SPARQL endpoints in Jena?

2019-11-27 Thread Lorenz Buehmann
You're querying two different endpoints with possible default limits per query request ... always keep this in mind. Might not be a problem here, but Wikidata has a hard-coded 60s limit, other endpoints like public DBpedia limit to 1 "rows". I also doubt that ?creatorURI and ?creatorID will be

How to set a federated query against 2 different SPARQL endpoints in Jena?

2019-11-27 Thread Hyrundo Publishing Association
Hello Sirs at Jena, I am following the examples of federated queries given at this URL: https://www.oclc.org/developer/news/2016/federated-queries-with-sparql.en.html and then I’m trying to replicate the results br

Re: Debugging execution of a (federated) query

2018-02-01 Thread Jean-Marc Vanel
thodAccessorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at sbt.Run.invokeMain(Run.scala:67) > > It looks like SERVICE Virtuoso of dbpedia.org i

Re: Debugging execution of a (federated) query

2018-02-01 Thread Jean-Marc Vanel
Impl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sbt.Run.invokeMain(Run.scala:67) It looks like SERVICE Virtuoso of dbpedia.org is sending some *JSON* that Jena does not understand ... Hence the title question: How to debug the execution of a SPARQL query, especially is case

Debugging execution of a (federated) query

2018-02-01 Thread Jean-Marc Vanel
Hi I'm a bit new to federated) queries, so I carafully tested the 2 p -- Jean-Marc Vanel http://www.semantic-forms.cc:9111/display?displayuri=http://jmvanel.free.fr/jmv.rdf%23me#subject Déductions SARL - C

Re: Federated query result format

2015-07-29 Thread Roshan Bharath Das
Thanks Andy. qexec.setSelectContentType is what i was looking for. Best Regards, Roshan > On 29 Jul 2015, at 09:56, Andy Seaborne wrote: > > On 28/07/15 23:20, Roshan Bharath Das wrote: >> Thanks. >> But I would like to know if there is an option to encode in the URL so that >> I don't hav

Re: Federated query result format

2015-07-29 Thread Andy Seaborne
On 28/07/15 23:20, Roshan Bharath Das wrote: Thanks. But I would like to know if there is an option to encode in the URL so that I don't have to convert after receiving the data. Because fuseki server can give the output data in xml, text, json, csv form. Not the URL - it's done with content ne

Re: Federated query result format

2015-07-28 Thread Roshan Bharath Das
Thanks. But I would like to know if there is an option to encode in the URL so that I don't have to convert after receiving the data. Because fuseki server can give the output data in xml, text, json, csv form. Best Regards, Roshan On Jul 28, 2015 10:03 PM, "Martynas Jusevičius" wrote: > Roshan

Re: Federated query result format

2015-07-28 Thread Martynas Jusevičius
Roshan, try ResultSetFormatter.outputAsJSON() https://jena.apache.org/documentation/javadoc/arq/com/hp/hpl/jena/query/ResultSetFormatter.html#outputAsJSON(com.hp.hpl.jena.query.ResultSet) On Tue, Jul 28, 2015 at 9:18 PM, Roshan Bharath Das wrote: > Hello, > > How can I decide to get the query re

Federated query result format

2015-07-28 Thread Roshan Bharath Das
Hello, How can I decide to get the query result format for a sparqlService in JSON for example?. Below is my code: Query query = QueryFactory.create(queryString); QueryExecution qe = QueryExecutionFactory.sparqlService(linkedmdb,query); ResultSet result = qe.execSelect(); The result is in XML fo

Re: Federated query

2015-03-16 Thread Rob Vesse
gt; >> On 16/03/15 00:37, Kamalraj Jairam wrote: >>> Hello, >>> >>> if i create federated query like >>> >>> CONSTRUCT >>> { ?s <http://localhost/target#patientId> ?o .} >>> WHERE >>> { SERVICE <ht

Re: Federated query

2015-03-16 Thread Mark Feblowitz
Kamalraj Jairam wrote: >> Hello, >> >> if i create federated query like >> >> CONSTRUCT >> { ?s <http://localhost/target#patientId> ?o .} >> WHERE >> { SERVICE <http://localhost:8084/processor/webresources/rs/sparql> >

Re: Federated query

2015-03-16 Thread Andy Seaborne
On 16/03/15 00:37, Kamalraj Jairam wrote: Hello, if i create federated query like CONSTRUCT { ?s <http://localhost/target#patientId> ?o .} WHERE { SERVICE <http://localhost:8084/processor/webresources/rs/sparql> { ?s <http://localhost.com/trale

Federated query

2015-03-15 Thread Kamalraj Jairam
Hello, if i create federated query like CONSTRUCT { ?s <http://localhost/target#patientId> ?o .} WHERE { SERVICE <http://localhost:8084/processor/webresources/rs/sparql> { ?s <http://localhost.com/traleerdf/csv#ID> ?o } SERVICE <http://loc

Re: Disabling federated query

2014-02-16 Thread Andy Seaborne
On 14/02/14 09:44, Alexander Dutton wrote: Spurred by Kamalraj's question… Is there an easy way to disable federated querying in Fuseki? None seems to be mentioned at . I don't see one. A pass over the algebra as an (un)"optmization" wo

Re: ARQ Federated query performance

2014-02-15 Thread Kamalraj Jairam
tps://issues.apache.org/jira/browse/JENA-449#comment-13651857httpstatus Give us your feedback. On Fri, Feb 14, 2014 at 5:44 AM, Kamalraj Jairam < kjai...@semanticsoftware.com.au<mailto:kjai...@semanticsoftware.com.au>> wrote: Hello All, I'm having performance issues with ARQ fed

Re: ARQ Federated query performance

2014-02-14 Thread Olivier Rossel
May be that thread might help: https://issues.apache.org/jira/browse/JENA-449#comment-13651857httpstatus Give us your feedback. On Fri, Feb 14, 2014 at 5:44 AM, Kamalraj Jairam < kjai...@semanticsoftware.com.au> wrote: > Hello All, > > I'm having performance issues with

Disabling federated query

2014-02-14 Thread Alexander Dutton
Spurred by Kamalraj's question… Is there an easy way to disable federated querying in Fuseki? None seems to be mentioned at . I'm happy to document it/put it in JIRA if there is/isn't a way. Best regards, Alex -- Alexander Dutton L

Re: ARQ Federated query performance

2014-02-14 Thread Rob Vesse
the user actually wanted. Rob On 14/02/2014 04:44, "Kamalraj Jairam" wrote: >Hello All, > >I¹m having performance issues with ARQ federated query. > >ARQ seems to generate multiple select queries to the endpoints when it >should just send only 2 queries to the respe

ARQ Federated query performance

2014-02-13 Thread Kamalraj Jairam
Hello All, I’m having performance issues with ARQ federated query. ARQ seems to generate multiple select queries to the endpoints when it should just send only 2 queries to the respective endpoints CONSTRUCT { ?s ?p ?o . ?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://

"SPARQL 1.1 Federated Query" : please clarify remote dataset [was Fwd: SERVICE within GRAPH

2013-09-30 Thread james anderson
graph clause would restrict that dataset with its >> graph for its contained patterns. >> >> best regards, from berlin, >> >> http://www.w3.org/TR/2013/REC-sparql11-query-20130321/#sparqlTranslateGraphPatterns >> http://www.w3.org/TR/2013/REC-sparql11

Re: Federated query optimization for independent queries (with join)

2013-05-08 Thread Sarven Capadisli
ember, but I think I saw somewhere that if you specify the VALUES keyword (1) on the second federated query, it would optimize the number of calls. [1] http://www.w3.org/TR/sparql11-query/#inline-data -- diogo patrão On Wed, May 8, 2013 at 9:37 AM, Sarven Capadisli wrote: Hi all, This is ori

Re: Federated query optimization for independent queries (with join)

2013-05-08 Thread Diogo FC Patrao
Hi Sarven My experience with federated queries is exactly the same as yours. I believe Andy confirmed earlier on the list that there is no optimization on this type of queries. I don't remember, but I think I saw somewhere that if you specify the VALUES keyword (1) on the second federated

Federated query optimization for independent queries (with join)

2013-05-08 Thread Sarven Capadisli
Hi all, This is originally entered as a JENA issue (marked as minor) [1], but I wanted to reach out to Jena users to get an insight: At this point I'm lead to believe that ARQ is not making an optimization before making a federated query. Or, well, hopefully the issue has to do wi

Re: Problem with a federated query

2013-02-08 Thread Adrian Gschwend
On 08.02.13 09:29, Andy Seaborne wrote: Hi Andy, > Signified says in a comment on that answers.semanticweb.com question > that Samstagern has a non-integer value. he was right, just posted this in the answer: -- You are right, that's what I get from Samstagern: http://dbpedia.org/resource/Sams

Re: Problem with a federated query

2013-02-08 Thread Claude Warren
On Fri, Feb 8, 2013 at 8:29 AM, Andy Seaborne wrote: > On 07/02/13 21:31, Adrian Gschwend wrote: >> >> On 07.02.13 19:22, Andy Seaborne wrote: >> >> Hi Andy, >> >>> Can't test but my guess is that the some of the ?munidstr coming back >>> from DBpedia are not valid integer strings. >> >> >> ah did

Re: Problem with a federated query

2013-02-08 Thread Andy Seaborne
On 07/02/13 21:31, Adrian Gschwend wrote: On 07.02.13 19:22, Andy Seaborne wrote: Hi Andy, Can't test but my guess is that the some of the ?munidstr coming back from DBpedia are not valid integer strings. ah didn't think of that. That makes: BIND(xsd:int(str(?munidstr)) AS ?munid) l

Re: Problem with a federated query

2013-02-07 Thread Adrian Gschwend
On 07.02.13 19:22, Andy Seaborne wrote: Hi Andy, > Can't test but my guess is that the some of the ?munidstr coming back > from DBpedia are not valid integer strings. ah didn't think of that. > That makes: > > BIND(xsd:int(str(?munidstr)) AS ?munid) > > leave ?munid unbound so the rest of

Re: Problem with a federated query

2013-02-07 Thread Andy Seaborne
On 07/02/13 16:25, Adrian Gschwend wrote: Hi group, I posted an issue I had with a federated query to DBPedia on answers.semanticweb.com. Beside a workaround we were debating why my query does not return properly and we suspect it is either a bug in Virtuoso or in Fuseki. The complete query

Problem with a federated query

2013-02-07 Thread Adrian Gschwend
Hi group, I posted an issue I had with a federated query to DBPedia on answers.semanticweb.com. Beside a workaround we were debating why my query does not return properly and we suspect it is either a bug in Virtuoso or in Fuseki. The complete query + sample endpoint is described in the posing