Re: Problems when querying the SPARQL with Jena

2024-03-13 Thread Anna P
Hi Andy, Thank you for your reply and help. Including this maven shade plugin fixed the issue. Best regards, Pan On Tue, Mar 12, 2024 at 2:54 PM Andy Seaborne wrote: > > > On 12/03/2024 13:02, Anna P wrote: > > Hi Lorenz, > > Thank you for your reply. Yes, I used maven to build the project.

Re: Re: Problems when querying the SPARQL with Jena

2024-03-13 Thread Lorenz Buehmann
Hi, Ok, that's what i assumed, packaging of your project is the issue. Andy provided your the appropriate pointers. Good luck and feel free to ask further questions once your project is running. Cheers, Lorenz On 12.03.24 14:02, Anna P wrote: Hi Lorenz, Thank you for your reply. Yes, I

Re: Problems when querying the SPARQL with Jena

2024-03-12 Thread Øyvind Gjesdal
Shouldn't also 1.8 1.8 be a minimum of 17 given the Jena version 5.0.0-rc1? Best regards, Øyvind On Tue, Mar 12, 2024, 14:54 Andy Seaborne wrote: > > > On 12/03/2024 13:02, Anna P wrote: > > Hi Lorenz, > > Thank you for your reply. Yes, I used maven to build the project. Here > are > >

Re: Problems when querying the SPARQL with Jena

2024-03-12 Thread Andy Seaborne
On 12/03/2024 13:02, Anna P wrote: Hi Lorenz, Thank you for your reply. Yes, I used maven to build the project. Here are dependencies details: Hi Lorenz, Yes, I used maven to build the project. Here are the dependencies details: UTF-8 1.8 1.8 junit junit 4.11 test org.apache.jena

Re: Problems when querying the SPARQL with Jena

2024-03-12 Thread Anna P
Hi Vestal, Thank you for your reply. I used the method of ResultSetFormatter "out(OutputStream out, ResultSet resultSet, Prologue prologue)" listed in the javadoc. Here is the link: https://jena.apache.org/documentation/javadoc/arq/org.apache.jena.arq/org/apache/jena/query/ResultSetFormatter.html

Re: Problems when querying the SPARQL with Jena

2024-03-12 Thread Anna P
Hi Lorenz, Thank you for your reply. Yes, I used maven to build the project. Here are dependencies details: Hi Lorenz, Yes, I used maven to build the project. Here are the dependencies details: UTF-8 1.8 1.8 junit junit 4.11 test org.apache.jena apache-jena-libs 5.0.0-rc1 pom

Re: Problems when querying the SPARQL with Jena

2024-03-12 Thread Steve Vestal
Which line of this code is raising the exception?  When I look at the ResultSetFormatter API online, I see 9 signatures for the out method, only 2 of which have three parameters, where the third parameter is a PrefixMapping or Prologue but not a Query.  The only one with a Query parameter is

Re: Problems when querying the SPARQL with Jena

2024-03-12 Thread Lorenz Buehmann
Hi, how did you setup your project? Which Jena version? Do you use Maven? Which dependencies? It looks like ARQ.init() hasn't been called which should happen automatically if the setup of the project is correct. Cheers, Lorenz On 11.03.24 14:44, Anna P wrote: Dear Jena support team,

Re: Problems when querying the SPARQL with Jena

2024-03-11 Thread Rob @ DNR
: Problems when querying the SPARQL with Jena Dear Jena support team, Currently I just started to work on a SPARQL project using Jena and I could not get a solution when I query a model. I imported a turtle file and ran a simple query, and the snippet code is shown below. However, I got the error

Re: Problems when querying the SPARQL with Jena

2024-03-11 Thread Daniel Hernandez
Hi Max, What do you mean by namespace declarations? Do you mean query prefixes? I don't understand why this query may need a prefix. It is a very simple query without URIs: SELECT * { ?s ?p ?o } Best, Daniel Maximilian Behnert-Brodhun writes: > Dear Pan, > > did you try add namespace

Re: Problems when querying the SPARQL with Jena

2024-03-11 Thread Maximilian Behnert-Brodhun
Dear Pan, did you try add namespace declarations into your query? Best regards Max Am Mo., 11. März 2024 um 14:45 Uhr schrieb Anna P < specialcookie...@gmail.com>: > Dear Jena support team, > > Currently I just started to work on a SPARQL project using Jena and I could > not get a solution

Problems when querying the SPARQL with Jena

2024-03-11 Thread Anna P
Dear Jena support team, Currently I just started to work on a SPARQL project using Jena and I could not get a solution when I query a model. I imported a turtle file and ran a simple query, and the snippet code is shown below. However, I got the error. public class App { public static void