Re: Unable to build the below query using jena query builder

2023-12-08 Thread Andy Seaborne




On 08/12/2023 02:08, Dhamotharan, Kishan wrote:

Hello Lorenz,

Thanks for your response.


...



Since query builder 3.5 does not have addWhereValueVar is there any other way 
to build the query ?

It’s a very painful process to pull in three party / open source libraries, 
requires multiple approvals and adding a new version would involve a very 
tedious task of manually upgrading and pulling in the dependences and get them 
to work with the in house build system. Would be great if we have a workaround 
for this.


If you're unwilling to upgrade (and the 6 year old 3.5.0 has CVE issues 
raise against it so upgrading would be a very good idea) then you could 
consider taking the query builder source code. It is a self-contained 
feature of Apache Jena should back-port quite easily.


Andy


Re: Problem running AtomGraph/fuseki-docker

2023-12-08 Thread Rob @ DNR
Re: command prompt closure

That’s standard Docker behaviour.  Unless you tell it otherwise it runs your 
container in the foreground attached to your terminal.  Also, you’ve specified 
--rm which tells Docker to remove the container as soon as it exits, if you 
want to inspect logs after the container exits don’t include this option.

You probably wanted to add -d/--detach to run the container in the background, 
you can then follow the logs with the docker logs command or by viewing them in 
the Docker Desktop interface.

Rob

From: Steve Vestal 
Date: Wednesday, 6 December 2023 at 23:56
To: users@jena.apache.org 
Subject: Re: Problem running AtomGraph/fuseki-docker
I was using bash.  When I run it in command prompt, it works. Thanks!

Interestingly, when the command prompt is closed, the container is
removed from Docker Desktop.  Each new start creates a new container
with a new amusing name :-)

C:\Users\svestal>docker run --rm -p 3030:3030 atomgraph/fuseki --mem '/ds'
[2023-12-06 22:19:53] INFO  Server  :: Apache Jena Fuseki 4.6.1
[2023-12-06 22:19:53] INFO  Server  :: Database: in-memory
[2023-12-06 22:19:53] INFO  Server  :: Path = /'/ds'
[2023-12-06 22:19:53] INFO  Server  :: System
[2023-12-06 22:19:53] INFO  Server  ::   Memory: 2.0 GiB
[2023-12-06 22:19:53] INFO  Server  ::   Java:   17-ea
[2023-12-06 22:19:53] INFO  Server  ::   OS: Linux
5.15.133.1-microsoft-standard-WSL2 amd64
[2023-12-06 22:19:53] INFO  Server  ::   PID:1
[2023-12-06 22:19:53] INFO  Server  :: Start Fuseki (http=3030)

On 12/6/2023 2:12 PM, Martynas Jusevičius wrote:
> Hi Steve,
>
> This looks like Windows shell issue.
>
> For some reason /ds is resolved as a filepath where it shouldn’t.
>
> Can you try —mem '/ds' with quotes?
>
> I’m running Docker on WSL2 and never had this problem.
>
> Martynas
>
> On Wed, 6 Dec 2023 at 21.05, Steve Vestal  wrote:
>
>> I am running a VM with Microsoft Windows Server 2019 (64-bit). When I
>> try to stand up the docker server, I get
>>
>> $ docker run --rm -p 3030:3030 atomgraph/fuseki --mem /ds
>> String '/C:/Program Files/Git/ds' not valid as 'service'
>>
>> Suggestions?
>>
>>