You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Madhawa Gunasekara <ma...@gmail.com> on 2023/02/15 01:17:03 UTC
How to capture incoming SPARQL Query for Fuseki
Hello Jena Experts,
I'm very new to Apache Jena. I'm wandering is there a way to capture
incoming SPARQL Query in Fuseki server. How can I write an interceptor or
Module to support this?
Any help on this would be greatly appreciated.
Thanks,
Madhawa
--
Madhawa
Re: How to capture incoming SPARQL Query for Fuseki
Posted by Nicholas Car <ni...@kurrawong.net>.
Just look at the Fuseki logs and you;ll see something like this:
2023-02-15 11:19:50 01:19:50 INFO Server :: Configuration file: /fuseki-base/config.ttl
2023-02-15 11:19:50 01:19:50 INFO Server :: Path = /ds
2023-02-15 11:19:50 01:19:50 INFO Server :: System
2023-02-15 11:19:50 01:19:50 INFO Server :: Memory: 1.9 GiB
2023-02-15 11:19:50 01:19:50 INFO Server :: Java: 19-ea
2023-02-15 11:19:50 01:19:50 INFO Server :: OS: Linux 5.15.49-linuxkit amd64
2023-02-15 11:19:50 01:19:50 INFO Server :: PID: 1
2023-02-15 11:19:50 01:19:50 INFO Server :: Started 2023/02/15 01:19:50 UTC on port 3030
2023-02-15 11:20:01 01:20:01 INFO Fuseki :: [5] POST http://localhost:3030/ds/
2023-02-15 11:20:01 01:20:01 INFO Fuseki :: [5] Query = PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX : <https://w3id.org/idn/vocab/idn-th/> PREFIX cs: <https://w3id.org/idn/vocab/idn-th> SELECT * WHERE { ?c skos:broader <https://w3id.org/idn/vocab/idn-th/keyword> }
2023-02-15 11:20:01 01:20:01 INFO Fuseki :: [5] 200 OK (46 ms)
So you can see the query is captured there. You can configure the logging as per normal Java logging. See https://jena.apache.org/documentation/fuseki2/fuseki-logging.html.
Cheers, Nick
------- Original Message -------
On Wednesday, February 15th, 2023 at 11:17, Madhawa Gunasekara <ma...@gmail.com> wrote:
> Hello Jena Experts,
>
> I'm very new to Apache Jena. I'm wandering is there a way to capture
> incoming SPARQL Query in Fuseki server. How can I write an interceptor or
> Module to support this?
> Any help on this would be greatly appreciated.
>
> Thanks,
> Madhawa
> --
> Madhawa