Re: Sv: Embed Fuseki in Spring Boot (Jetty 9.4)

2020-03-30 Thread Andy Seaborne
Hi Glenn, The error means that something else is already using port. Have you configured the Spring Boot Jetty server to use port 3330? FusekiServer...build() will create a new Jetty server but maybe that's OK if nothing else is not already listening on the port. What's hard if you want othe

Re: Graceful shutdown of FusekiServer

2020-03-30 Thread Andy Seaborne
only the DatasetGraph.close() is called and not the Dataset.close() which we override. I think I'll stick with the shutdownhook of Java for now. Thanks for your advice. Regards, Barry -Original Message----- From: Andy Seaborne Sent: zondag 29 maart 2020 12:15 To: users@jena.apache.org Subject:

Re: Graceful shutdown of FusekiServer

2020-03-30 Thread Andy Seaborne
stick with the shutdownhook of Java for now. Thanks for your advice. Regards, Barry -Original Message- From: Andy Seaborne Sent: zondag 29 maart 2020 12:15 To: users@jena.apache.org Subject: Re: Graceful shutdown of FusekiServer Hi Barry, Whatever you do, the overall distributed system

Re: Graceful shutdown of FusekiServer

2020-03-29 Thread Andy Seaborne
try to shutdown gracefully using the shutdownHook and just take measures on the other side to detect the custom dataset is no longer available? Thanks again! Regards, Barry -Original Message- From: Andy Seaborne Sent: donderdag 26 maart 2020 17:12 To: users@jena.apache.org Subject: Re: Grac

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-27 Thread Andy Seaborne
On 27/03/2020 15:30, Martynas Jusevičius wrote: This is getting off-topic, but I want to follow up on a few things. If the input is 1B triples, it can't go into a default model - straight to database is preferable even if it can be buffered. What prevents having a MessageBodyReader? Wron

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-27 Thread Andy Seaborne
cy management of version, not a specific issue. Andy On 27/03/2020 12:39, Martynas Jusevičius wrote: On Fri, Mar 27, 2020 at 1:17 PM Andy Seaborne wrote: Jersey is currently using httpclient 4.5.9 - what makes you think it won't not work? With the latest Jersey - maybe. But Core i

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-27 Thread Andy Seaborne
On 27/03/2020 11:53, Martynas Jusevičius wrote: Rob, my immediate problem is different HttpClient versions from Jersey (4.1.1) and Jena (4.2.6). Jena 3.13.x is depending on httpclient 4.5.10 / http core 4.4.9 org.eclipse.ee4j Jersey is 2.30.1 using httpclient 4.5.9 Andy

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-27 Thread Andy Seaborne
i/javax/ws/rs/ext/MessageBodyReader.html https://docs.oracle.com/javaee/7/api/javax/ws/rs/ext/MessageBodyWriter.html The point of using java.net.http is to build on a solid, available (and no dependency) base. They cleanly separate the I/O for different media types.

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-27 Thread Andy Seaborne
3.0.1 was a long time ago! All the parsing code goes through RDFParser whichever API route you try. RDFParser.fromString(validRDFPost) .base("http://base";) .lang(RDFPOST) .parse(parsed); The code needs to read URLs and provide control of the HTTP connection to be used so the user can

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-26 Thread Andy Seaborne
On Thu, 26 Mar 2020 at 17.32, Andy Seaborne wrote: After 3.14.0, use of "IRI" got wrapped up to limit the places it is used directly. Why 3.13.1 and not 3.14.0? Or 3.15.0-SNAPSHOT because of JENA-1838. On 26/03/2020 13:36, Martynas Jusevičius wrote: Hi, I'm working on a long

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-26 Thread Andy Seaborne
After 3.14.0, use of "IRI" got wrapped up to limit the places it is used directly. Why 3.13.1 and not 3.14.0? Or 3.15.0-SNAPSHOT because of JENA-1838. On 26/03/2020 13:36, Martynas Jusevičius wrote: Hi, I'm working on a long overdue upgrade of Jena. So far the area where I can see most chan

Re: Graceful shutdown of FusekiServer

2020-03-26 Thread Andy Seaborne
Because servers have to survive disgraceful shutdown anyway (crash, DOS, server switched off, casters on the rack broken [1]), there isn't a graceful procedure. "kill -9" TDB has to be able to recover in any circumstances so that it what it does. No graceful shutdown currently. What resourc

Re: TDB blocked

2020-03-26 Thread Andy Seaborne
base. On 26/03/2020 08:24, Jean-Marc Vanel wrote: Le mer. 25 mars 2020 à 17:17, Andy Seaborne a écrit : On 25/03/2020 14:36, Jean-Marc Vanel wrote: Le mer. 25 mars 2020 à 13:07, Andy Seaborne a écrit : ... What's the full stack trace? (What's the blocking thread?) I wa

Re: TDB blocked

2020-03-25 Thread Andy Seaborne
On 25/03/2020 14:36, Jean-Marc Vanel wrote: Le mer. 25 mars 2020 à 13:07, Andy Seaborne a écrit : What's the full stack trace? (What's the blocking thread?) See below. I was looking for the other thread that is blocking this one at being(write). Same JVM. There is

Re: TDB blocked

2020-03-25 Thread Andy Seaborne
What's the full stack trace? (What's the blocking thread?) Yes, another unended W transaction in the same process might be the cause. Andy On 25/03/2020 11:08, Jean-Marc Vanel wrote: I investigated on that. Now my test suite passes without Jena TDB trouble. I just added this in Scala SBT

Re: Apache Jena Fuseki with text indexing

2020-03-25 Thread Andy Seaborne
u want to push the data to the server (SPARQL Update, or the UI. For very large data: Load the TDB2 dataset offline Then run the "jena.textindexer" utility https://jena.apache.org/documentation/query/text-query.html#configuration The first way is easier. Andy Thanks, Zhenya

Re: Problems setting up graph-acl in Fuseki

2020-03-23 Thread Andy Seaborne
jar file you pointed at seems to do the trick, but it's a shame the UI is lost in doing so. Thanks On Mon, Mar 23, 2020 at 5:23 PM Andy Seaborne wrote: Hi Simon, > the bundled fuseki distro that is apache-jena-fuseki? It's in the "main" version, not the full (with

Re: Problems setting up graph-acl in Fuseki

2020-03-23 Thread Andy Seaborne
Hi Simon, > the bundled fuseki distro that is apache-jena-fuseki? It's in the "main" version, not the full (with UI) packaging. https://repo1.maven.org/maven2/org/apache/jena/jena-fuseki-server/ > @prefix access: . is right. The documentation is clear about

Re: Apache Jena Fuseki with text indexing

2020-03-22 Thread Andy Seaborne
Just checking one point: Did you load the data before attaching the text index? The text index is calculated as data is added so if you first load the dataset then setup a text index, it will miss indexing the data. Andy On 21/03/2020 07:55, Lorenz Buehmann wrote: Hi, welcome to Semant

Re: Software Site for Apache Jena OSGI

2020-03-20 Thread Andy Seaborne
, Mar 20, 2020, 10:07 AM Andy Seaborne wrote: On 20/03/2020 00:42, aj...@apache.org wrote: I'm not quite sure what you mean by "Software Site". Are you looking for a place from which to download that artifact? If so, I don't think we currently provide a direct downloa

Re: Nested SELECT queries

2020-03-20 Thread Andy Seaborne
On 19/03/2020 15:12, Adam Davies wrote: Thanks for the reply! In terms of what I’m trying to get back, I was hoping to list in one row a list of names, and in another a list of locations (which you’ve helped me solve). The dataset I am working with contains information about published artic

Re: Software Site for Apache Jena OSGI

2020-03-20 Thread Andy Seaborne
On 20/03/2020 00:42, aj...@apache.org wrote: I'm not quite sure what you mean by "Software Site". Are you looking for a place from which to download that artifact? If so, I don't think we currently provide a direct download of the jena-osgi module. We provide it via Maven repository publicati

Re: Fuseki's Cache-Control

2020-03-19 Thread Andy Seaborne
I've been told caching proxies do not normally cache URLs with a query string. Sometimes it's configurable, but that only works if you control the intermediate. And an intermediate may be remapping from resource to query string. That gets us to Adrian's point about being up-to-date and that th

Re: Identify SPARQL query's type

2020-03-19 Thread Andy Seaborne
-sparql-api/blob/def0d3bdf0f4396fbf1ef0715f9697e9bb255029/jena-sparql-api-stmt/src/test/java/org/aksw/jena_sparql_api/stmt/TestSparqlStmtUtils.java#L54 Cheers, Claus On 18.03.20 16:04, Andy Seaborne wrote: Note that parsing the string as a query aborts early as soon as it finds an update keyword so the cost of parsing

Re: Nested SELECT queries

2020-03-18 Thread Andy Seaborne
Hi Adam, PREFIX bibo: PREFIX event: PREFIX rdfs: SELECT ?creatorName ?creatorCountry WHERE { ?creatorName ?predicate ?creatorCountry . ?locationName rdfs:label ?creatorCountry .

Re: Identify SPARQL query's type

2020-03-18 Thread Andy Seaborne
y own here? On Tue, Jul 30, 2013 at 4:25 PM Andy Seaborne wrote: On 30/07/13 10:13, Arthur Vaïsse-Lesteven wrote: Hi, I would like to know if Jena offers a way to detect the type of an unknow SPARQL request ?Starting from the query string. At the moment the only way I succed to code it wi

Re: Memory management with Fuseki

2020-03-12 Thread Andy Seaborne
On 12/03/2020 11:26, Luí­s Moreira de Sousa wrote: Dear all, I loaded six RDF datasets to Fuseki with sizes comprised between 20 Kb and 20 Mb. To host these six datasets (in persistent mode) Fuseki is using over 1 Gb of RAM and could soon get killed by the system (running on a container pl

Re: getting RDF XML as a response from http request to fuseki

2020-03-10 Thread Andy Seaborne
or your help. the request I send with Accept:application/rdf+xml return as response Content-Type:text/turtle;charset=utf-8 Pietro Maria Liuzzo cel (DE): +49 (0) 176 61 000 606 Skype: pietro.liuzzo (Quingentole) ORCID: https://orcid.org/-0001-5714-4011 Academia: https://uni-hamburg.academia.edu/Piet

Re: getting RDF XML as a response from http request to fuseki

2020-03-10 Thread Andy Seaborne
On 10/03/2020 14:17, Pietro Liuzzo wrote: Dear all, I am probably missing something basic, but I am not sure how I can manage to get RDF-XML as a format for my response from Apache Jena Fuseki. I have tried sending in the request the Header Accept and Content-Type with value application/rd

Re: JSONLD and base URL

2020-03-08 Thread Andy Seaborne
On 08/03/2020 18:40, Erich Bremer wrote: Sorry! Your email said "Or https://github.com/afs/iri4ld"; OK I can see that. I've put the issue on jsonld-java. https://github.com/jsonld-java/jsonld-java/issues/279 Andy On Thu, Mar 5, 2020 at 4:18 AM Andy Seaborne wro

Re: 502 Bad Gateway from Fuseki

2020-03-07 Thread Andy Seaborne
tor being used. Which is it? Andy On 05/03/2020 09:53, Mikael Pesonen wrote: Created https://issues.apache.org/jira/browse/JENA-1854 On 05/03/2020 11.28, Andy Seaborne wrote: Because it's curl, it is sending the length. Content-Length is necessary for keeping connections open (ev

Re: 502 Bad Gateway from Fuseki

2020-03-05 Thread Andy Seaborne
INFO  [553] 400 Parse error: [line: 1, col: 34] Undefined prefix: ebucore (4 ms) So it wouldn't seem odd to me if Fuseki returned the error as soon as it sees it, since rest of the 40k of data won't affect the error. On 04/03/2020 16.43, Andy Seaborne wrote: What makes your tech

Re: JSONLD and base URL

2020-03-05 Thread Andy Seaborne
n than jena-iri (because it has less functionality than jena-iri). And it does get this case right. Andy PS It has a companion project xsd4ld - doing XSD datatypes. On 04/03/2020 23:39, Erich Bremer wrote: Andy - done. On Wed, Mar 4, 2020 at 12:25 PM Andy Seaborne wrote: java.net.URI is not

Re: JSONLD and base URL

2020-03-04 Thread Andy Seaborne
java.net.URI is not perfect and it is also a mixture of RFC2396, RFC3896 and some pragmatics. Jena's own jena-iri gets it right. // NB The argument order can catch you out. IRI iri = IRIResolver.resolve("picture.jpg", "http://mysite.net"; ); System.out.println(iri); but jsonld-java uses

Re: 502 Bad Gateway from Fuseki

2020-03-04 Thread Andy Seaborne
What makes your tech support think that? What operation is being called? Andy On 04/03/2020 13:36, Mikael Pesonen wrote: Hi, We have reverse proxy on Fuseki. I'm getting this error occasionally when posting data to fuseki dataset endpoint and data is containing some error. Instead of Fu

Re: Exception in writing RDF from model

2020-03-03 Thread Andy Seaborne
, objectResource);        model.add(statement);    model.close();        dataset.commit(); } catch(Exception ex) { ex.printStackTrace(); } finally {        dataset.end(); } } I can see that the database has been created: image.png On Tue, Mar 3, 2020 at 7:40 PM Andy Seaborne <mailt

Re: Exception in writing RDF from model

2020-03-03 Thread Andy Seaborne
It looks like previously you were using the database withotu transactions and didn't shutdown cleanly. The database has been corrupted. You'll need to rebuild it. The code below is fine - the problem happened beforehand and is only now showing up. Andy On 03/03/2020 14:01, Diptendu Dutt

Re: Referencing individuals with Fuseki

2020-03-03 Thread Andy Seaborne
On 03/03/2020 13:54, Luí­s Moreira de Sousa wrote: Dear all, I would like to use Fuseki in a linked data project. Is it possible to reference a single individual with a URI? For instance something like: http://my.fuseki.server/datasetX#individualA The link above currently returns the full

Re: Questions about blank nodes in SPARQL queries

2020-03-01 Thread Andy Seaborne
On 01/03/2020 17:06, Steve Vestal wrote: I am using the results of one SPARQL query against an OntModel to construct follow-on SPARQL queries.  The OntModel contains blank nodes to denote some classes and individuals.  QueryResult gives me RDFNodes, and I am using methods such as RDFNode#as(Cla

Re: Enable Cross-origin resource sharing (CORS) on embedded Fuseki (jetty)

2020-02-28 Thread Andy Seaborne
use a development build using maven? If so, I might be able to test it. Regards, Barry -Original Message- From: Andy Seaborne Sent: dinsdag 25 februari 2020 19:38 To: users@jena.apache.org Subject: Re: Enable Cross-origin resource sharing (CORS) on embedded Fuseki (jetty) JENA-1294

Re: SPARQL performance question

2020-02-27 Thread Andy Seaborne
onnectionBB rdf:type <#portConnection>.     ?leftB <#simplexConnectTo> ?connectionBB.     FILTER(!sameTerm(?rightA,?connectionBB) && !sameTerm(?rightB,?connectionBB) && !sameTerm(?leftB,?connectionBB) && !sameTerm(?leftA,?connectionBB) && !sameTerm(?connec

Re: SPARQL performance question

2020-02-26 Thread Andy Seaborne
filters. Good news! What is the final query? I'm back in the saddle.  Thanks again for everyone's help. Andy On 2/25/2020 12:33 PM, Andy Seaborne wrote: Current is 3.14.0. On 25/02/2020 17:38, Steve Vestal wrote: I'm currently using 3.8.0 jars. On 2/25/2020 11:30 AM,

Re: Enable Cross-origin resource sharing (CORS) on embedded Fuseki (jetty)

2020-02-25 Thread Andy Seaborne
JENA-1294 I've put in a fixed setup activated by "--cors" - I'd be obliged if people would try it out and let us know if it works. It's in the latest development build #1834. Thanks Andy On 29/01/2020 11:28, Andy Seaborne wrote: Barry - thanks for the re

Re: SPARQL performance question

2020-02-25 Thread Andy Seaborne
Current is 3.14.0. On 25/02/2020 17:38, Steve Vestal wrote: I'm currently using 3.8.0 jars. On 2/25/2020 11:30 AM, Andy Seaborne wrote: On 25/02/2020 16:25, Steve Vestal wrote: I read that chapter in DuCharme's book and have some things to try, such as moving the rdf:type trip

Re: SPARQL performance question

2020-02-25 Thread Andy Seaborne
tterns FILTERs } { triple patterns FILTERs } is actually a different query and can push the optimizer to make better choices. Optimization is a lot of "it depends". (BTW which version are you running?) Andy On 2/25/2020 8:54 AM, Andy Seaborne wrote: It might be worth reordering t

Re: Encoding problem when retrieving result from QueryEngineHTTP

2020-02-25 Thread Andy Seaborne
On 25/02/2020 15:08, Mark Hissink Muller wrote: Hi all, I am trying to solve an encoding problem between a Java client, which is a Spring Boot server application that runs on Windows, and a rdf4j-server running on Tomcat 8 on Ubuntu 18.04 LTS. I should retrieve correct data with Danish cha

Re: SPARQL performance question

2020-02-25 Thread Andy Seaborne
It might be worth reordering the tripe patterns and/or putting in some clustering: there is a large amount of cross product being done which means many,many unwanted or duplicate pieces of work. Fore example, move the rdf:type to the end (do you need them at all?) Andy (Replaced long URIs

Re: Error for invalid Accept header

2020-02-19 Thread Andy Seaborne
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406 discusses the use of 406 for bad accept. Summary: send something is preferable to sending an error. YMMV Andy contrast to https://tools.ietf.org/html/rfc7231#section-6.5.6 SHOULD and MAY. But we don't have a common format to fu

Re: Backup and restore with Fuseki

2020-02-17 Thread Andy Seaborne
aai.uni-hamburg.de/en/ethiostudies/study > > > Am 15.02.2020 um 13:42 schrieb Andy Seaborne : > > > > Hi Pietro, > > > > On 15/02/2020 05:22, Pietro Liuzzo wrote: > >> Dear all, > >> I am moving to a new server, and I would like to backup the data in

Draft Dockerfile for Fuseki

2020-02-16 Thread Andy Seaborne
Martynas, and everyone else, Here is a revised Dockerfile. There isn't a "one size fits all" Dockerfile so this aims to be simple, and a basis for local requirements by copying and adding to the Dockerfile. - it downloads the jars, and checks the sha1 checksum - allows JVM argument to be set

Re: Backup and restore with Fuseki

2020-02-15 Thread Andy Seaborne
Hi Pietro, On 15/02/2020 05:22, Pietro Liuzzo wrote: Dear all, I am moving to a new server, and I would like to backup the data in my graphs from the old instance to restore them in the new one. In the running Apache Jena Fuseki I have hit the backup button, which informs me it has started a

Re: fuseki server in windows and ubuntu

2020-02-11 Thread Andy Seaborne
On 11/02/2020 12:30, Andy Seaborne wrote: On 11/02/2020 07:56, Luis Enrique Ramos García wrote: Thanks for your support, just running, about your question, I saw different options to run the server here: https://jena.apache.org/documentation/fuseki2/fuseki-run.html my interest is run

Re: fuseki server in windows and ubuntu

2020-02-11 Thread Andy Seaborne
On 11/02/2020 07:56, Luis Enrique Ramos García wrote: Thanks for your support, just running, about your question, I saw different options to run the server here: https://jena.apache.org/documentation/fuseki2/fuseki-run.html my interest is run the service, load data as use it as a query ser

Re: "Proposal of an Automated Mission Manager for Cooperative Autonomous Underwater Vehicles"

2020-02-08 Thread Andy Seaborne
Good to hear of Jena usage and nice to hear its because of standards. On 02/02/2020 17:09, Bob DuCharme wrote: I thought the subscribers to this mailing list would enjoy hearing about a very cool use of Fuseki: https://doi.org/10.3390/app10030855 (You'll have to download the PDF from that pag

Re: loading data with tdbloader for Fuseki

2020-02-07 Thread Andy Seaborne
On 07/02/2020 09:02, Immanuel Normann wrote: Hi there, I have Fuseki 3.14 running inside my Tomcat 9 and installed apache-jena-3.14. Now I am trying to work with tdbloader2 to create a database from ttl-files for Fuseki: bin/tdbloader2 --loc mydb mydata.ttl This generates a directory mydb wit

Re: Fuseki 3.13.0 GET vs HEAD

2020-02-06 Thread Andy Seaborne
Andy On Thu, Feb 6, 2020 at 10:17 AM Martynas Jusevičius wrote: Missed this. Thanks! On Thu, Feb 6, 2020 at 10:16 AM Andy Seaborne wrote: https://issues.apache.org/jira/browse/JENA-1795 Fix Version/s: Jena 3.14.0 https://www.apache.org/dist/jena/source/ jena-3.14.0-source-release.zip

Re: Fuseki 3.13.0 GET vs HEAD

2020-02-06 Thread Andy Seaborne
, 2019 at 1:52 PM Martynas Jusevičius wrote: https://issues.apache.org/jira/browse/JENA-1795 On Wed, Dec 11, 2019 at 1:31 PM Andy Seaborne wrote: Hi Martynas, Could you raise a ticket please? Andy On 11/12/2019 09:53, Martynas Jusevičius wrote: Hi, I would expect the same response

Re: Fuseki scripts no longer executable

2020-02-01 Thread Andy Seaborne
On 01/02/2020 09:34, Andy Seaborne wrote: I guess there was a change in the plugin in the past. The doc says there is a default for files (the usual 0644). But clearly it didn't simply do that in the past if it has ever worked. Pleas check: JENA-1836 // PR#685 That should be JENA

Re: Fuseki scripts no longer executable

2020-02-01 Thread Andy Seaborne
nized the same for Fuseki 3.14.0 with tar.gz package. But I didn't care, doesn't affect my workflow. And I also didn't know if that was different from previous versions. On 31.01.20 14:08, Andy Seaborne wrote: Did you download zip or tar.gz? They should be executable if the

Re: Different SPARQL execution order with recent Jena update (JENA-1813?)

2020-01-31 Thread Andy Seaborne
ation in the TBS source code for the best way for this situation. Andy On 31/01/2020 00:52, Holger Knublauch wrote: On 30/01/2020 21:18, Andy Seaborne wrote: Let's stick to facts and public information. Hmm, I am not aware I didn't stick to facts. There is nothing new here.

Re: Fuseki scripts no longer executable

2020-01-31 Thread Andy Seaborne
Did you download zip or tar.gz? They should be executable if the format allows. The packaging is in jena-fuseki2/apache-jena-fuseki -- it uses the assembly plugin. Andy On 31/01/2020 12:28, Osma Suominen wrote: Hi, I upgraded some Fuseki installations and noticed that in the most recen

Re: Different SPARQL execution order with recent Jena update (JENA-1813?)

2020-01-30 Thread Andy Seaborne
y as well. On 29/01/2020 22:31, Holger Knublauch wrote: Hi Andy, thanks for the fast response. On 30/01/2020 01:47, Andy Seaborne wrote: > I am still trying to narrow down what has changed It may be JENA-1813 - being about optimziation, the details of the real case probably matter. Le

Re: Different SPARQL execution order with recent Jena update (JENA-1813?)

2020-01-29 Thread Andy Seaborne
> I am still trying to narrow down what has changed It may be JENA-1813 - being about optimziation, the details of the real case probably matter. Let us know what you discover. JENA-1813 fixed a specific problem caused by the BIND inside the GRAPH ("AS ?dummy" - not the outer one). If the in

Re: Enable Cross-origin resource sharing (CORS) on embedded Fuseki (jetty)

2020-01-29 Thread Andy Seaborne
Barry - thanks for the report On 28/01/2020 19:28, Nouwt, B. (Barry) wrote: Hi all, I enabled CORS on embedded Fuseki (when handling YASGUI SPARQL requests) and wanted to share the way I did it for others' benefit. It took me a while to figure out how to do this. I found instructions on how t

Re: SPARQL-query to get data from wikidata not working

2020-01-28 Thread Andy Seaborne
ms when the query has a large number of possibilities to try from earlier in the query. GC thrashing sounds possible. Andy | | On 27.01.20 23:47, Andy Seaborne wrote: The query will try to pull a lot of data from query.wikidata.org/sparql. (see comments on the SO query) What might help

Re: SPARQL-query to get data from wikidata not working

2020-01-27 Thread Andy Seaborne
The query will try to pull a lot of data from query.wikidata.org/sparql. (see comments on the SO query) What might help is to write a subselect with LIMIT inside the SERVICE and put a limit on that. That pushes a LIMIT to the far end which, as written, does not happen. Andy On 27/01/20

Re: Launguage type in SPARQL

2020-01-26 Thread Andy Seaborne
The language tag itself is part of RDF syntax and not an RDF literal. "foo"@en is an rdf:langString with language component the characters 'e'-'n' defined by BCP47. https://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal Or Because that is how it works in XML. xml:lang="fr" Because tha

Re: Q: Jena 3.14.0 (3.15.0-SNAPSHOT) build issue

2020-01-24 Thread Andy Seaborne
org.apache.jena jena-osgi ${jena.version} ... and ended up in the same place. Thanks, -- Olivier. -----Original Message- From: Andy Seaborne Sent: Thursday, January 23, 2020 11:09 AM To: users@jena.apache.o

Re: Q: Jena 3.14.0 (3.15.0-SNAPSHOT) build issue

2020-01-23 Thread Andy Seaborne
- Sincerely, -- Olivier Hurez-Martin. -Original Message- From: Andy Seaborne Sent: Thursday, January 23, 2020 7:15 AM To: users@jena.apache.org Subject: Re: Q: Jena 3.14.0 (3.15.0-SNAPSHOT) build issue Looks like another process

Re: Q: Jena 3.14.0 (3.15.0-SNAPSHOT) build issue

2020-01-23 Thread Andy Seaborne
Looks like another process is also using the target/class area. Do you have an IDE running at the same time as Maven? Or another mavn build job? Eclipse, for example, can break a concurrent maven build if it does it's background refresh and decide to recompile some files. Andy On 22/01/2

Re: Can Fuseki load Turtle datasets?

2020-01-23 Thread Andy Seaborne
Which service of a dataset are you using to upload the data? The log will have the request URL. If verbose, it has the HTTP headers as well. Jena does not sniff data - it uses the information in the request and HTTP headers only. From the request URL, it takes the "file extension". If it i

Re: Q: Jena 3.14.0 (3.15.0-SNAPSHOT) build issue

2020-01-22 Thread Andy Seaborne
Hi there, On 22/01/2020 20:43, ohu...@vistology.com wrote: Hello, I hope this is the right forum for this type of question. Yes Please redirect me to the proper media if not. Trying to build Jena 1.13.1, 1.14.0, then 1.15.0-SNAPSHOT on Windows 10 Pro, 3.13.1 etc Maven 3.6.1,

Re: super slow filter

2020-01-22 Thread Andy Seaborne
Try changing the query to put in a no-op that stops expansion. SELECT * { :G844 ?rel ?res . ?res a :Place . ?res ?resp ?reso . BIND(1 AS ?X) FILTER (?resp = skos:altLabel || ?resp = skos:prefLabel || ?resp = skos:placeEvent || ?resp = bdo:placeLat || ?resp = bdo:placeLong || ?

Re: Can Fuseki load Turtle datasets?

2020-01-22 Thread Andy Seaborne
Fuseki handles Turtle. The request indicates (usually one of file extension, content-type) contains JSON(-LD). What does the log file say the request is? (if you run with "-v" you get more details of every HTTP request) Andy On 22/01/2020 13:49, Luí­s Moreira de Sousa wrote: Hi there,

Re: Fuseki - SELECT during INSERT

2020-01-20 Thread Andy Seaborne
Hi Barry, "hangs indefinitely" -- is this the CPU is doing nothing or the CPU is doing work but never finishes? If it is the former, CPU doing nothing, what would be useful is a JVM threaddump. Should be one thread that is stuck (I'm assuming the SELECT runs on the same thread as the INSERT and a

[ANN] Apache Jena 3.14.0

2020-01-19 Thread Andy Seaborne
The Apache Jena development community is pleased to announce the release of Apache Jena 3.14.0. == Contributions and notable JIRA There are several contributions included in this release: Pavel Mikhailovskii: JENA-1787: SHACL improvement JENA-1786: DatasetGraphMonitor exposes unwrapped graph

Re: Issues while upgrading to Jena-2.13.0 from version 2.8.8

2020-01-16 Thread Andy Seaborne
(ModelCom.java:1506) > at java.lang.String.valueOf(String.java:2981) > at java.lang.StringBuilder.append(StringBuilder.java:131) > > 2) We are fetching model data from database, but I am not getting any details in the fetched mo

Re: Getting error while checking for model in a dataset in Jena 3

2020-01-10 Thread Andy Seaborne
not exist Attached is the detailed exception. From the log it seems that some tables like Nodes N_1, Quads Q_1 , Nodes R_1, Nodes R_2 are missing. So can anyone please tell what all tables (with columns) should we create to fix this issue? Regards, Ashwani On 09/01/20, 8:07 PM, "Andy

Re: Looking for alternate API for com.hp.hpl.jena.db.IDBConnection.containsModel

2020-01-09 Thread Andy Seaborne
Hi Ashwani, What are you trying to achieve overall? Is it to port an existing application/system from Jena 2.6 to Jena 3.current? Or is it create a general adaptor for Jena to Oracle Spatial RDF? The answers to your questions are different depending on use case. If it is the latter, then going

Re: Problem with Fuseki Server in Unit Tests

2020-01-07 Thread Andy Seaborne
not in test. Regards, Mohamed On Tue, Jan 7, 2020 at 10:57 AM Andy Seaborne wrote: On 07/01/2020 08:35, Mohamed Morsey wrote: Hi Andy, thank you for help. I got it working now. It was a dependency problem. The order of dependencies in POM file caused that problem. Could you say some

Re: Problem with Fuseki Server in Unit Tests

2020-01-07 Thread Andy Seaborne
were in the wrong order? For fuseki-server there is only one provider of each dependency/interface. Was it something else included for another part of your project? Andy Regards, Mohamed On Mon, Jan 6, 2020 at 6:08 PM Andy Seaborne wrote: I ran Fuseki and put a break point on the

Re: Problem with Fuseki Server in Unit Tests

2020-01-06 Thread Andy Seaborne
I ran Fuseki and put a break point on the filter call - I get the same stacktrace. So something in the test setup is interfering - "mvn dependency:tree" may show something if it's a maven project. Is this openjdk for the Java JVM? As it works one way but not in "test" it does rather look lik

Re: Problem with Fuseki Server in Unit Tests

2020-01-06 Thread Andy Seaborne
there are multiple jars containing the same classes on the runtime classpath as well as no suitable jar at runtime. Andy Thank you! Regards, Mohamed On Mon, Jan 6, 2020 at 12:22 PM Andy Seaborne wrote: Hi there, Which version are you running? What does the server log say?

Re: Problem with Fuseki Server in Unit Tests

2020-01-06 Thread Andy Seaborne
Hi there, Which version are you running? What does the server log say? It logs all requests - you may need static { FusekiLogging.setLogging(); } in your test class and make sure you haven't turned off logginbg by level with log4j.properties somewhere. Andy On 06/01/2020 11:05, Moha

Re: Issue in upgrade due to missing classes in Jena 3

2020-01-06 Thread Andy Seaborne
://jena.apache.org/documentation/tdb/ https://jena.apache.org/documentation/tdb2/ Regards, Ashwani On 06/01/20, 4:29 PM, "Andy Seaborne" wrote: On 06/01/2020 05:50, Ashwani Rathi wrote: > Hi All, > We have the following method where we

Re: Issue in upgrade due to missing classes in Jena 3

2020-01-06 Thread Andy Seaborne
aset("some directory"); dataset.getDefaultModel(); but also all access to the database needs to be in a dataset transaction See Txn and the documentation https://jena.apache.org/documentation/txn/ Andy Regards, Ashwani On 06/01/20, 3:55 AM, "Andy Seaborne" wrote:

Re: Issue in upgrade due to missing classes in Jena 3

2020-01-05 Thread Andy Seaborne
On 05/01/2020 09:15, Ashwani Rathi wrote: Hi, We are upgrading from jena 2 to jena 3 in our project. While jena used to have the following two classes in jena.jar: com.hp.hpl.jena.db.DBConnection com.hp.hpl.jena.db.IDBConnection That is the very old RDB layer; I am no sure it was ever rele

Re: Fuseki - Grant permissions to all by default

2020-01-03 Thread Andy Seaborne
On 03/01/2020 15:20, Amandeep Srivastava wrote: Hi Laura, thanks for the response. I'm not using earlier version of Jena for my project, am just trying to compare performance of fuseki 1 and fuseki 2 across multiple hosts. On Fri, 3 Jan, 2020, 1:34 PM Laura Morales, wrote: I was able to

Re: [3.0.1] JenaException: No such graph

2019-12-20 Thread Andy Seaborne
Fixed around JENA-1177 I strongly suggest that you use a version of SpinRDF that works with current Jena. The source in Git is up-to-date with Jena 3.13.1. Andy On 20/12/2019 13:10, Martynas Jusevičius wrote: A little more log: homepage_1 | org.apache.jena.shared.JenaException:

Re: Docker image / Changing Fuseki's port number

2019-12-16 Thread Andy Seaborne
ing this. They seem to do an import on a DB instance with networking disabled, and start a proper instance after it's completed. On Mon, Dec 16, 2019 at 11:45 AM Andy Seaborne wrote: On 16/12/2019 09:23, Andy Seaborne wrote: Remap it when starting the container. For loading test d

Re: Docker image / Changing Fuseki's port number

2019-12-16 Thread Andy Seaborne
eparate dump file, databases are portable. Pushing every variant into the Dockerfile isn't the way to go. If you want to contribute a more sophisticated Dockerfile that is general purpose, then great. Incorporating every detail is what is stopping us putting in a basic one and iterating.

Re: Antw: Re: Jena fails to parse valid RDF

2019-12-16 Thread Andy Seaborne
's the reason; that was a huge help. I will also try to find out how to report this bug. Best Regards Andreas Andy Seaborne 16.12.19 11.11 Uhr >>> On 16/12/2019 09:50, Rob Vesse wrote: The server does not appear to be sending an appropriate Content-Type header. Note

Re: Docker image / Changing Fuseki's port number

2019-12-16 Thread Andy Seaborne
On 16/12/2019 09:23, Andy Seaborne wrote: Remap it when starting the container. For loading test data, why not use GSP? Then the loading script indicates when it is read for the other to use the container. Or poll the server for specific data available. And in the 909 Dockerfile, the

Re: Jena fails to parse valid RDF

2019-12-16 Thread Andy Seaborne
On 16/12/2019 09:50, Rob Vesse wrote: The server does not appear to be sending an appropriate Content-Type header. Note that if you read the stack trace you can see that Jena thinks the URI is returning JSON/LD and invoking its JSON/LD parser hence why you hit a parsing error. I would con

Re: Jena fails to parse valid RDF

2019-12-16 Thread Andy Seaborne
On 16/12/2019 09:23, Andreas Kahl wrote: Hello everyone, I got this error while trying to load data from a URI to a Jena model: http://viaf.org/viaf/32182557 (RDF-URL: https://viaf.org/viaf/32182557/rdf.xml ) riot https://viaf.org/viaf/32182557/rdf.xml works fine. http://viaf.org/viaf/321

Re: Docker image / Changing Fuseki's port number

2019-12-16 Thread Andy Seaborne
Remap it when starting the container. For loading test data, why not use GSP? Then the loading script indicates when it is read for the other to use the container. Or poll the server for specific data available. Andy On 13/12/2019 23:37, Martynas Jusevičius wrote: Hi, is it possible to

Re: Fuseki - Grant permissions to all by default

2019-12-15 Thread Andy Seaborne
Hi, Do you want the same, modified shiro.ini in each server, or different shiro files in each server? The shiro.ini can be altered in the war file. It's inside the jena-fuseki-webapp jar (so war > jar > shiro.ini) and the war and jar file can be modified. Or unpack the whole war, change and

Re: adding non-http services to Fuseki

2019-12-14 Thread Andy Seaborne
rently drops through for unrecognized datasets), then you could have a plain servlet or webpage on /ds/subscribe. This look possible to do - could you raise a JIRA ticket please? Andy Regards, Barry Op 12 dec. 2019 18:02 schreef Andy Seaborne : Hi Barry, The FusekiServer.Builder (main) or

Re: adding non-http services to Fuseki

2019-12-12 Thread Andy Seaborne
Hi Barry, The FusekiServer.Builder (main) or web/xml (Fuseki full) can includes arbitrary servlets and servlet filters so anything can be added but the naming requirement may currently get in the way. Routing is by the dataset part fo the URL path. If you want "/ds/myPubSub" and also /ds/spa

Re: Fuseki 3.13.0 GET vs HEAD

2019-12-11 Thread Andy Seaborne
Hi Martynas, Could you raise a ticket please? Andy On 11/12/2019 09:53, Martynas Jusevičius wrote: Hi, I would expect the same response status and headers for GET and HEAD, minus the body. However GET returns 200 and HEAD 400: GET /ds/ HTTP/1.1 Host: localhost:3030 User-Agent: curl/7.47.

<    7   8   9   10   11   12   13   14   15   16   >