Re: TDB(1) : get prefixes map ?

2020-12-02 Thread Andy Seaborne
.cc:9112/display?displayuri=http://jmvanel.free.fr/jmv.rdf%23me> +33 (0)6 89 16 29 52 Le mar. 1 déc. 2020 à 22:36, Andy Seaborne a écrit : On 01/12/2020 21:15, Jean-Marc Vanel wrote: > This is fine , I can get all the TDB prefix mappings with: > dataset.getDefaultModel().ge

Re: 3.17

2020-12-02 Thread Andy Seaborne
On 02/12/2020 19:21, Erich Bremer wrote: I don't see it here: https://mvnrepository.com/artifact/org.apache.jena/apache-jena-libs That's isn't maven central which is: https://repo1.maven.org/maven2/org/apache/jena/ https://mvnrepository.com/ is an independent website [1] that presumably

Re: Performance regressions in Jena and TDB2

2020-12-02 Thread Andy Seaborne
On 02/12/2020 10:07, Osma Suominen wrote: Hi Andy! Andy Seaborne kirjoitti 1.12.2020 klo 23.15: There is no reason I can see why the special case of exactly one "FROM" can't be handled specially. It masks all named graphs but is a rewrite from triples, that will be fin

Re: SHACL, target all nodes, vocabulary element check,

2020-12-02 Thread Andy Seaborne
Hi Martin, I am guessing this isbecause advanced features (https://www.w3.org/TR/shacl-af) are not supported? Correct. A trick ("pattern") is to use sh:targetNode because that always gets triggered, whether the object node is in the data or not and even if the data graph is empty. ---

Re: TDB(1) : get prefixes map ?

2020-12-01 Thread Andy Seaborne
Andy > > Jean-Marc Vanel > <http://semantic-forms.cc:9112/display?displayuri=http://jmvanel.free.fr/jmv.rdf%23me> > +33 > (0)6 89 16 29 52 > > > Le mar. 1 déc. 2020 à 21:34, Andy Seaborne a écrit : > >> >> >> On 01/12/2020 19:02, Jean-M

Re: TDB(1) : get prefixes map ?

2020-12-01 Thread Andy Seaborne
On 01/12/2020 19:02, Jean-Marc Vanel wrote: Empty maps are obtained by calling getPrefixMapping() , either with a graph from a SPARQL query, or from the Union Graph. Perfect timing! JENA-2006 (in-progress as of 2020-12-01 - PR went in today. adds Dataset.getPrefixMapping() and

[ANN] Apache Jena 3.17.0

2020-12-01 Thread Andy Seaborne
The Apache Jena development community is pleased to announce the release of Apache Jena 3.17.0. In this release: SHACL Compact Syntax writer Dockerfile and build instructions https://jena.apache.org/documentation/fuseki2/fuseki-docker.html SPARQL \U escapes in String and IRIs.

Re: Performance regressions in Jena and TDB2

2020-11-30 Thread Andy Seaborne
Hi Osma, This is misused of FROM. Using FROM is not as simple as just selection one graph from the dataset. It is creating a complete new dataset comprised of graph picked out of a pool of graph in the TDB database. The app should use GRAPH if that is what it means! FROM is more. FROM can

Re: Difference in Transactional behavior of Local and Remote RDFConnection

2020-11-29 Thread Andy Seaborne
Hi there, >this.conn.load( "book1", model1 ); >this.conn.abort(); Fueski actions are independent transaction and the "this.conn.begin" only gives a local transaction. The SPARQL protocols don't include multi-step transaction (it could be added to Fuseki - small matter to time!).

Re: Help with OPTIONAL

2020-11-24 Thread Andy Seaborne
} } } } } ORDER BY ?doc Fuseki --engine=ref: 2417 results Fuseki --optimize=off: 2417 results Dydra: 9 results RDF4J: 9 results The treatment of the default graph is different between Jena and RDf4J. Try to find out what the cardinalities of the partial patterns a

Re: Access to private fields in SHACL Constraints?

2020-11-24 Thread Andy Seaborne
the latest sources (I was on 3.16.0). There are still some accessors to add. Best, Florian Am 2020-11-24 17:34, schrieb Andy Seaborne: Yes, please put in a PR for anything missing. There is compact syntax writer in 3.17.0 and it needs access to constraints details so it can print so most should

Re: Access to private fields in SHACL Constraints?

2020-11-24 Thread Andy Seaborne
Yes, please put in a PR for anything missing. There is compact syntax writer in 3.17.0 and it needs access to constraints details so it can print so most should be here. I do see in the current codebase: NodeKindConstraint.getKind() Andy

Re: Help with OPTIONAL

2020-11-24 Thread Andy Seaborne
Try the reference query engine. sparql --engine=ref ... and also without optimization on the the general engine --optimize=off Andy On 24/11/2020 14:19, Martynas Jusevičius wrote: I've just tried a third implementation (RDF4J 3.4.4) which produces the same result as Fuseki (2419 rows):

Re: Guidance on configuring TDB stores with assembler files

2020-11-23 Thread Andy Seaborne
Hi Eric, > <#MyGraph> a tdb:GraphTDB2; > rdfs:comment "A graph with a single triple" ; > tdb:dataset <#MyTDBDataset>; > ja:content [ja:literalContent > " ." > ] ; tdb:GraphTDB2 does not support ja:content The

Re: SHACL: parse does not have --out

2020-11-23 Thread Andy Seaborne
On 23/11/2020 13:52, Adrian Gschwend wrote: Hi, According to the SHACL cli docs there should be a --out option: shacl p --out=FMT FILE I tried this with 3.16.0 and I get: shacl p --out t cube-shape.ttl Unknown argument: out did that get lost somewhere? The reverse! Seems like the

Re: How to get list of all NamedGraphs using RDFConnectionRemote/Fuseki

2020-11-19 Thread Andy Seaborne
Hi JK, The SPARQL query: SELECT ?g { GRAPH ?g {} } will get all the graph names. A remote RDFConnection does not preovide a Dtaset abstraction - and even if it did, the listNames would be the query above. The form "GRAPH ?g {}" is a special case in the SPARQL algebra. In Fuseki,

Re: Explaining queries

2020-11-16 Thread Andy Seaborne
On 13/11/2020 20:01, Jeffrey Kenneth Tyzzer wrote: We’re using Fuseki 3.16.0, and I’d appreciate guidance on getting the most detailed explanation available for query execution plans. Given that Fuseki is built upon and/or incorporates more discrete Jena components, e.g., TDB and ARQ,

Re: which is better for performance named graph within the same dataset or separate datasets

2020-11-12 Thread Andy Seaborne
On 12/11/2020 10:58, Abdullah Ibrahim wrote: Hi everyone, which is better for performance of sparql queries over named graphs within the same the datasets, or make each named graph as separate dataset? Thanks If this a follow-on to you previous question, I doubt it makes much

Re: Two named graphs with the same inference model and the same dataset mixed up in the query

2020-11-11 Thread Andy Seaborne
>> :tdbGraph1 rdf:type tdb2:GraphTDB2 ; >> tdb2:dataset :tdbDataset . >> >> :tdbGraph2 rdf:type tdb2:GraphTDB2 ; >> tdb2:dataset :tdbDataset . Those are the same base graph for the inference engine (the default graph - left over from using tdb2:unionDefaultGraph?). Is that what you

Re: Copy triples in named graphs

2020-11-09 Thread Andy Seaborne
On 09/11/2020 14:16, Mikael Pesonen wrote: We are also using 3.16.0 Just noticed with GET there is this warning, if it's related Well, you aren't going to get an results! The connection was closed early. Client issue. 16:10:35 INFO  Fuseki  :: [125415] GET

Re: Configure fuseki jena to use a reasoner and TDB + tdb:UnionDefaultGraph

2020-11-09 Thread Andy Seaborne
urn:x-arq:UnionGraph should work. Maybe try with a simpler setup first: <#service> rdf:type fuseki:Service ; fuseki:name "ds" ; fuseki:endpoint [ fuseki:operation fuseki:query ; fuseki:name "sparql" ] ; fuseki:endpoint [ fuseki:operation fuseki:query ] ;

Re: Copy triples in named graphs

2020-11-09 Thread Andy Seaborne
, 2020 at 12:42 PM Mikael Pesonen wrote: Hi, this command returns triplets although content-type is set as requested: curl -H "Accept: application/n-quads"  http://localhost:3030/ds Wondering what I'm doing wrong here? -Mikael On 15/10/2020 18.36, Andy Seaborne wrote: On 15/10/2

Re: SHACL validation doesn't show an error

2020-11-01 Thread Andy Seaborne
SHACL uses shapes - not RDFS range and domain "rdfs:range iirds:Component ;" means the range "is of that class" not that there must be that triple because RDFS can be used to infer the fact and add it to the data. See the SHACL spec : https://www.w3.org/TR/shacl/ which has lots of examples of

Re: Jena TDB: Limitations of orgnizing large collections via named graphs

2020-10-28 Thread Andy Seaborne
ich the implementing parties then could use for their use cases. Teh idea of convert to files and read those files into TDB2 fits well with that requirement. On 2020/10/27 11:30:22, Andy Seaborne wrote: Hi Fidan, I guess either that you are loading all the files inside a transaction

Re: Jena TDB: Limitations of orgnizing large collections via named graphs

2020-10-27 Thread Andy Seaborne
Hi Fidan, I guess either that you are loading all the files inside a transaction? How much heap size are you using? (Don't allocate the whole of free RAM). TDB1 uses heap space for uncommitteed transactions and it also buffers a few committed transactions because, usually, it is better to do

Re: Jena GeoSparQL Fuseki

2020-10-24 Thread Andy Seaborne
Did you compile it yourself? This can be caused by compiling with java 9+ and running on java8 (even if the source is set to output 8 - it's a libary issue not a compile issue) You can run on a Java9+, compile with java8, or you can get pre-built artifacts, built with Java8 from the maven

Re: Federated Query Basic Authentification using Fuseki

2020-10-24 Thread Andy Seaborne
.0; the new machine will use the latest version. Thanks again for helping out here. Best, Bardo On 23.10.20 10.13 Uhr, Andy Seaborne wrote: 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

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:

Re: Validating streaming RDF

2020-10-17 Thread Andy Seaborne
On 16/10/2020 17:28, Martynas Jusevičius wrote: Hi, we're moving more and more RDF I/O to streaming implementations, and that doesn't work well with another important feature -- constraint validation. I'm wondering if it is possible, even in theory, to validate streaming RDF data, e.g. with

Re: Streaming data to Fuseki

2020-10-16 Thread Andy Seaborne
amRDF, because right now it's not really obvious from the JavaDocs. https://jena.apache.org/documentation/io/streaming-io.html On Thu, Oct 15, 2020 at 5:33 PM Andy Seaborne wrote: On 15/10/2020 10:35, Martynas Jusevičius wrote: Thanks Andy. Where is the streaming RDF parsed? All parsing

Re: Fuseki Web UI does not consider Dataset Level Access Control Lists

2020-10-16 Thread Andy Seaborne
! Best, Han -Original Message- From: Andy Seaborne Sent: donderdag 15 oktober 2020 17:25 To: users@jena.apache.org Subject: Re: Fuseki Web UI does not consider Dataset Level Access Control Lists Hi Han, The access control does not conne

Re: Could you tell me about 'EOL' of Apache Jena and Apache Jena Fuseki

2020-10-16 Thread Andy Seaborne
On 16/10/2020 10:54, Rob Vesse wrote: As with most Apache projects we are entirely volunteer based. As a project we do not have any formal support/EOL policy. In practise our advice to users is always to use the latest versions released by the project. At the time of writing this is

Re: Copy triples in named graphs

2020-10-15 Thread Andy Seaborne
On 15/10/2020 13:45, Mikael Pesonen wrote: Hi, is it possible to copy all data from one Jena instance to other which is running and containing data already? Yes - pull the data out of one store (GET) and push it into another POST. See the thread "Streaming data to Fuseki" So I want to

Re: Streaming data to Fuseki

2020-10-15 Thread Andy Seaborne
understand StreamRDF is the destination for writing, but I'd like to see how reading of streams is done. https://lists.apache.org/thread.html/re390f37b04d43a4ac5f8521040161bf6a0582bb5a6ce422c14bccf1e%40%3Cusers.jena.apache.org%3E On Tue, Oct 13, 2020 at 10:15 AM Andy Seaborne wrote: On 12/10

Re: change Fuseki tdb2:location path

2020-10-15 Thread Andy Seaborne
On 15/10/2020 07:09, Castro, André wrote: Hi, Think this will be a simple newby question ;) I notice that Fuseki is storing datasets created by the UI in /etc/fuseki/databases/ Which is the way that is defined in the tdb & tdb2 config templates. templates/config-tdb:tdb:location

Re: Fuseki Web UI does not consider Dataset Level Access Control Lists

2020-10-15 Thread Andy Seaborne
Hi Han, The access control does not connect to the UI so you can't make datasets invisible. Sorry about that. Andy On 14/10/2020 08:28, Kruiger, J.F. (Han) wrote: It appears my attachments didn't come through. config.ttl: ``` @prefix : <#> . @prefix fuseki:

Re: Jena and datatypes

2020-10-14 Thread Andy Seaborne
On 14/10/2020 01:58, Zalan Kemenczy wrote: Hi Andy, thanks for the reply! TDB1 and TDB2 do different things. TDB2 preserves integer subtypes datatypes whereas TDB1 does not. It's the lexical form that is canonicalized - not the datatype. The distinction of "070", "70", "+70" etc is

Re: Streaming data to Fuseki

2020-10-13 Thread Andy Seaborne
On 12/10/2020 22:35, Martynas Jusevičius wrote: Hi, how would it go if I would stream quads to the Fuseki quad store endpoint? Can Fuseki (3.16.0) cope with streaming say 10 quads over HTTP or do I need to split it into multiple requests? With a TDB2 store there is no hard size limit.

Re: My own rules in Jena Fuseki

2020-10-12 Thread Andy Seaborne
, found @prefix At '[ #-*-mode: conf-unix-*- @prefix ' at org.apache.jena.assembler.assemblers.AssemblerGroup$PlainAssemblerGroup.openBySpecificType(AssemblerGroup.java:165) ~[fuseki-server.jar:3.17.0-SNAPSHOT] At.te, Marcelo de Oliveira Costa Machado Em dom., 11 de out. de 2020 às 07:52, Andy Seaborne

Re: My own rules in Jena Fuseki

2020-10-11 Thread Andy Seaborne
very much. At.te, Marcelo de Oliveira Costa Machado Em sex., 9 de out. de 2020 às 11:11, Andy Seaborne escreveu: On 09/10/2020 13:46, Marcelo Machado wrote: Yes, that is the problem, ja:rule does not accept some directives. If the problem was just prefixes I could resolve that by parsing

Re: Jena and datatypes

2020-10-11 Thread Andy Seaborne
On 11/10/2020 03:20, Zalan Kemenczy wrote: Hi there, I'm running into some issues with Jena datatypes and canonicalization. The following doc: https://jena.apache.org/documentation/tdb/value_canonicalization.html explains that TDB understands XML derived types, and that types derived from

Re: My own rules in Jena Fuseki

2020-10-09 Thread Andy Seaborne
speed getting a fix done in time for the next release. Andy At.te, Marcelo de Oliveira Costa Machado Em sex., 9 de out. de 2020 às 08:47, Andy Seaborne escreveu: On 08/10/2020 19:22, Marcelo Machado wrote: Hello Andy, I manually escaped \n and " characters and some errors

Re: My own rules in Jena Fuseki

2020-10-09 Thread Andy Seaborne
es_variable]"`; But Fuseki is not recognizing prefix: org.apache.jena.assembler.exceptions.AssemblerException: caught: Expected '(' at start of clause, found @prefix Do you have any thoughts on how to solve this? Thanks in advance! At.te, Marcelo de Oliveira Costa Machado Em qui., 8 de out

Re: Fuseki Reasoner

2020-10-08 Thread Andy Seaborne
On 08/10/2020 13:24, Andy Seaborne wrote: Hi Marcelo I couldn't find document but there is this test: https://github.com/apache/jena/blob/master/jena-fuseki2/jena-fuseki-main/src/test/java/org/apache/jena/fuseki/main/TestFusekiCustomOperation.java Cleaner version: https://github.com

Re: Fuseki Reasoner

2020-10-08 Thread Andy Seaborne
:57, Marcelo Machado wrote: Could you tell me where I find the steps to make this implementation? At.te, Marcelo de Oliveira Costa Machado Em qua., 7 de out. de 2020 às 08:56, Andy Seaborne escreveu: Not built-in but Fuseki can be extended with addition services (which requires writing java).

Re: My own rules in Jena Fuseki

2020-10-08 Thread Andy Seaborne
On 08/10/2020 07:41, Marcelo Machado wrote: I am trying to create my own property rules in fuseki. To do so I am using the Generic Rule Reasoning that allows me to use my own rules. When I use this strategy with my rules in a file everything works fine: :model_inf a ja:InfModel ;

Re: Fuseki Reasoner

2020-10-07 Thread Andy Seaborne
Not built-in but Fuseki can be extended with addition services (which requires writing java). On 06/10/2020 21:42, Marcelo Machado wrote: Is there any solution to validate inference rules with Fuseki? This question is also in Stackoverflow:

Re: Fuseki UI connect remote server

2020-10-05 Thread Andy Seaborne
rote: Andy, I have a setup on my localhost following the tutorial at : https://afs.github.io/rdf-delta/ha-system.html#ha-patch-store So in my opinion, i don't change hostnames... Johan, Op ma 5 okt. 2020 om 20:03 schreef Andy Seaborne : What is your setup for this? How many servers? and which

Re: Fuseki UI connect remote server

2020-10-05 Thread Andy Seaborne
. 2020 om 13:32 schreef Johan Kumps <mailto:johan.ku...@telenet.be>>: Thanks Andy! I tried the Yasgui approach in your browser.html file. I get the following error : image.png Any ideas? Johan, Op ma 5 okt. 2020 om 13:07 schreef Andy Seaborne mailto:a...@a

Re: Fuseki UI connect remote server

2020-10-05 Thread Andy Seaborne
Hi Johan, On 03/10/2020 21:38, Johan Kumps wrote: Hi all, I'm have a working high available setup of Jena Fuseki servers and RDF-delta. For general information : what is your setup for this? Is there a way to connect Fuseki UI to a remote Fuseki server? The Fuseki UI has two parts:

Re: Jena track at ApacheCon

2020-10-03 Thread Andy Seaborne
-unsubscribe@ to confirm leaving the list. If you don't reply to that email, or click the link in it, the unsubscribe does not happen. (A moderator has now unsubscribed you.) Andy Thanks and regards, Megha On Thu, 24 Sep 2020, 16:57 Andy Seaborne, wrote: ApacheCon 2020 is online and free

Re: java.lang.StringIndexOutOfBoundsException with Jena Text

2020-09-30 Thread Andy Seaborne
?s ?p ?o filter(regex(str(?s), "[\x00-\x7F]")) } } so also may be a namedgraph Andy On 30.9.2020 15:18, Andy Seaborne wrote: https://issues.apache.org/jira/browse/JENA-1890 and 1892 are fixed in 3.16.0 Its a dcode error - the TDB database is intact. On 30/09/2020 12

Re: java.lang.StringIndexOutOfBoundsException with Jena Text

2020-09-30 Thread Andy Seaborne
-\x7F]"))   } } On 30.9.2020 13:29, Andy Seaborne wrote: In the data (probbaly in a URI) - it's reading the database. On 30/09/2020 10:36, Mikael Pesonen wrote: I couldn't find any non Ascii characters in the config file ([^\x00-\x7F]+)... On 30.9.2020 0:48, Andy Seaborne wrote: Looks l

Re: java.lang.StringIndexOutOfBoundsException with Jena Text

2020-09-30 Thread Andy Seaborne
el Pesonen wrote: Ah, thanks. Is it possible to find such URis with SPARQL query? SPARQL seems not to support \x -notation select * where {  graph ?g {     ?s ?p ?o filter(regex(str(?s), "[\x00-\x7F]"))   } } On 30.9.2020 13:29, Andy Seaborne wrote: In the data (probbaly in a

Re: java.lang.StringIndexOutOfBoundsException with Jena Text

2020-09-30 Thread Andy Seaborne
In the data (probbaly in a URI) - it's reading the database. On 30/09/2020 10:36, Mikael Pesonen wrote: I couldn't find any non Ascii characters in the config file ([^\x00-\x7F]+)... On 30.9.2020 0:48, Andy Seaborne wrote: Looks like https://issues.apache.org/jira/browse/JENA-1892 , 1890

Re: java.lang.StringIndexOutOfBoundsException with Jena Text

2020-09-29 Thread Andy Seaborne
Looks like https://issues.apache.org/jira/browse/JENA-1892 , 1890 Andy On 29/09/2020 15:13, Mikael Pesonen wrote: Hi I'm building a new text index with following command and getting java error. /usr/bin/java -cp ./fuseki-server.jar jena.textindexer --desc=fuseki_config.ttl After

Re: Algebraic Ops in CONSTRUCT and UPDATE Query

2020-09-28 Thread Andy Seaborne
Hi Zalan, On 26/09/2020 06:35, Zalan Kemenczy wrote: Hi, I'm attempting to programmatically construct the various forms of sparql queries using Jena. I can construct SELECT queries easily enough by composing algebraic Ops together. I convert them to queries using OpAsQuery, and then pass the

Jena track at ApacheCon

2020-09-24 Thread Andy Seaborne
ration in data format evolution Claude Warren ** SHACL in Apache Jena Andy Seaborne ** Buddhist Digital Archives (BUDA), RDF and jena-text Chris Tomlinson, Élie Roux ** Semantic Graph BoF hosted by Apache Jena Community Participation

Re: writing from Model to JSON-LD without a base

2020-09-18 Thread Andy Seaborne
JSONLD and then do a search/replace on "http://njh.me/; with "./" Yes. Why do you needs "./" which is not a normalized IRI (the normalization ladder would make it "") Andy On Fri, Sep 18, 2020 at 4:44 AM Andy Seaborne wrote: RDFWriter.create() .base

Re: Can RDF star support be deactivated?

2020-09-18 Thread Andy Seaborne
that it was essentially the newly introduced visitor method for ElementFind that was missing in some of my transforrmers - but that was easy to 'solve' for now by just raising an UnsupportedOperationException. Cheers, Claus On 2020/09/01 17:42:41, Andy Seaborne wrote: > Ping?> > > I'm not

Re: writing from Model to JSON-LD without a base

2020-09-18 Thread Andy Seaborne
RDFWriter.create() .base(baseURI) // <-- Valid URI. .lang(Lang.JSONLD) .source(model) .output(System.out); On 17/09/2020 22:44, Erich Bremer wrote: I have JSONLD that looks like this: { "@context": [ "https://schema.org/; ], "@graph": [ { "@type": "CreativeWork",

Re: bug in JSON LD parsing

2020-09-15 Thread Andy Seaborne
:-) https://lists.apache.org/thread.html/r343f27b3390dfbfd7ce9dcee4576bc532705b39d26923dfb0baf5322%40%3Cusers.jena.apache.org%3E """ From: Erich Bremer To: users@jena.apache.org Subject: JSONLD and base URL Date: 2020/03/04 00:10:20 """ jsonld-java 0.13.1 with a fix for this was released

Re: Question about basic vs extended language ranges

2020-09-12 Thread Andy Seaborne
d On 12 Sep 2020, at 18:31, Andy Seaborne wrote: This is from a discussion this last week: https://github.com/TopQuadrant/shacl/issues/100 On 12/09/2020 11:55, Håvard Ottestad wrote: Hi, I’ve been trying to get basic language ranges working for the SHACL engine in RDF4J and I’ve stumbled u

Re: Question about basic vs extended language ranges

2020-09-12 Thread Andy Seaborne
This is from a discussion this last week: https://github.com/TopQuadrant/shacl/issues/100 On 12/09/2020 11:55, Håvard Ottestad wrote: Hi, I’ve been trying to get basic language ranges working for the SHACL engine in RDF4J and I’ve stumbled upon some differences between how RDF4J and Jena

Re: Jena performance optimization

2020-09-12 Thread Andy Seaborne
ption is still supported. The end-to-end process has grown over time. There is a good case for stripping out unused extensions points, and lessening the distinction of algebra and BGP optimization steps. Andy Thanks, Piotr pt., 11 wrz 2020 o 16:01 Andy Seaborne napisał(a): On 10/

Re: Jena performance optimization

2020-09-11 Thread Andy Seaborne
On 10/09/2020 12:16, Piotr Nowara wrote: Dear Community, could you point me to resources on Jena performance optimization? I found this excellent presentation [1] covering a lot of interesting topics but I'm not sure how up-to-date it might be. I also read the Jena docs which gave me some

Re: RDF Delta/Zookeper freezing issue

2020-09-11 Thread Andy Seaborne
:49:09] Fuseki INFO [7] 200 OK (19.059 s) [2020-09-10 05:50:15] Fuseki INFO [10] POST http://localhost:3031/ds [2020-09-10 05:50:25] HTTP INFO Send patch id:472bf1 (165 bytes) -> ds:090688 [2020-09-10 05:50:44] Fuseki INFO [10] 200 OK (29.042 s) Thanks, Piotr wt., 18 sie 2020 o 22:03 Andy Se

Re: shortcut for querying dates fast?

2020-09-04 Thread Andy Seaborne
On 04/09/2020 14:38, Élie Roux wrote: select ?le ?la where { ?le adm:logDate ?sdate . FILTER(?sdate > "2021-08-20T00:00:00"^^xsd:dateTime) BIND(?le AS ?la) } In that trivial case yes, the longer query doesn't allow that: Put the common part in a single place: WHERE {

Re: shortcut for querying dates fast?

2020-09-04 Thread Andy Seaborne
On 02/09/2020 16:17, Élie Roux wrote: P.S.: Here's another aspect of the problem (although in a different aspect of the code). If I make the same query + filter on dates in unions, there seems to be no cache mechanism, as the following takes 3.5s instead of 1.7s: select ?le ?Nla where {

Re: Memory increase in TDB 1 incremental load

2020-09-04 Thread Andy Seaborne
() ; getQueueLength . TDBInternal NB: "internal". Their exact meaning and semantics is what the system does in the version you are running. Andy Le jeu. 3 sept. 2020 à 18:49, Andy Seaborne a écrit : If necessary, you can reduce the footprint of the node cache. See S

Re: Memory increase in TDB 1 incremental load

2020-09-03 Thread Andy Seaborne
On 03/09/2020 15:35, Jean-Marc Vanel wrote: Le jeu. 3 sept. 2020 à 14:35, Andy Seaborne a écrit : Used Memory:794 Free Memory:105 loadAction: AFTER System.gc(): Free Memory: 137 Mb java.lang.OutOfMemoryError: Java heap space Used Memory:892 Free Memory:7 You'll get more

Re: Can RDF star support be deactivated?

2020-09-03 Thread Andy Seaborne
On 03/09/2020 00:40, Holger Knublauch wrote: On 3/09/2020 07:44, Andy Seaborne wrote: On 28/08/2020 02:12, cstad...@informatik.uni-leipzig.de wrote: I have have used the following to work around legacy issues with RDF1.0/1.1: JenaRuntime.isRDF11 = false; This might be a good place

Re: Memory increase in TDB 1 incremental load

2020-09-03 Thread Andy Seaborne
On 03/09/2020 10:14, Jean-Marc Vanel wrote: Le mer. 2 sept. 2020 à 23:39, Andy Seaborne a écrit : On 02/09/2020 17:03, Jean-Marc Vanel wrote: To load a big Turtle without stopping my (non Fuseki) server, I did an HTTP client that sends the triples, about 3_000_000 (300_000 subjects

Re: Can RDF star support be deactivated?

2020-09-02 Thread Andy Seaborne
On 28/08/2020 02:12, cstad...@informatik.uni-leipzig.de wrote: I have have used the following to work around legacy issues with RDF1.0/1.1: JenaRuntime.isRDF11 = false; This might be a good place to allow for a JenaRuntime.isRDFStar = false; The JenaRuntime.isRDF11 flag switches the

Re: Memory increase in TDB 1 incremental load

2020-09-02 Thread Andy Seaborne
On 02/09/2020 17:03, Jean-Marc Vanel wrote: To load a big Turtle without stopping my (non Fuseki) server, I did an HTTP client that sends the triples, about 300_000, by chunks of 10_000, talking to a SPARQL 1.1 Graph Store HTTP Protocol

Re: Can RDF star support be deactivated?

2020-09-01 Thread Andy Seaborne
Ping? I'm not aware of any compile errors for APIs but and return signatures can make it complicated. NodeVisitor doesn't include it (probably an omission - but a default method would solve that? Andy On 28/08/2020 13:33, Andy Seaborne wrote: On 28/08/2020 02:12, cstad

Re: shortcut for querying dates fast?

2020-08-30 Thread Andy Seaborne
The reality is also that your case seems to be a bit unuusal. To be 3.5s I'd guess you are hitting the POS (or quad equivalent) index cold. Or something else is interacting with it (named graphs+union?) Yes, I noticed after my initial email that later queries run much faster... now it's around

Re: shortcut for querying dates fast?

2020-08-29 Thread Andy Seaborne
On 29/08/2020 12:50, Élie Roux wrote: Hi all, would opening an issue on JIRA be the right thing to do? Best, Checking whether there is one first. The reality is also that your case seems to be a bit unuusal. To be 3.5s I'd guess you are hitting the POS (or quad equivalent) index cold.

Re: Unable to use Lucene's full text search with in-memory graph

2020-08-28 Thread Andy Seaborne
> :memory_dataset rdf:type ja:RDFDataset ; > ja:defaultGraph > [ > a ja:MemoryModel ; > ja:content [ ja:externalContent > ] ; > ] ; That loads the RDF data into the memory model directly, bypassing the text index. To set the index,

Re: Can RDF star support be deactivated?

2020-08-28 Thread Andy Seaborne
The principle is "existing data, existing code" is unaffected. On 28/08/2020 01:52, Holger Knublauch wrote: It's good to see the recently introduced RDF* features in Jena. But as someone with a lot of existing Jena code, this low-level change poses a number of challenges. For example we have

Jena : 20 years of code.

2020-08-28 Thread Andy Seaborne
Brian released the first Jena code with this message: https://lists.w3.org/Archives/Public/www-rdf-interest/2000Aug/0128.html Andy From: McBride, Brian Subject: Jena - A Java API for RDF Date: Mon, 28 Aug 2000 13:40:03 +0100 Message-ID:

Re: Can RDF star support be deactivated?

2020-08-28 Thread Andy Seaborne
On 28/08/2020 02:12, cstad...@informatik.uni-leipzig.de wrote: +1 This is a very good point; I also have around 10 years of active code based on Jena and I was not yet able to upgrade to 3.16 because I did not find the time to resolve several compile errors which are at least partly due

Re: shortcut for querying dates fast?

2020-08-28 Thread Andy Seaborne
On 27/08/2020 09:10, Élie Roux wrote: Dear all, I have a dataset with (among other things) about 400,000 triples in the form (in memory or TDB?) ?a adm:logDate ?d where ?d is an xsd:dateTime. I'm writing a query to get all the triples that have a ?d in a certain interval. There are

Re: Custom SPARQL functions in Javascript and python

2020-08-26 Thread Andy Seaborne
On 26/08/2020 16:07, Andy Seaborne wrote: ... While it is using Nashorn, it is doing so via the general javax.script package. My guess is that by default, those extension are not enabled.  If someone can say how it should be done, or even a pull request to fix it, then we can incorporate

Re: Custom SPARQL functions in Javascript and python

2020-08-26 Thread Andy Seaborne
a.sparql.function.js But those won't be avilable in GrallVM - or does it have an equivalent? Andy Thanks, Maja [1] https://www.n-k.de/riding-the-nashorn/#_back_quote_exec_expressions [2] https://www.n-k.de/riding-the-nashorn/#_scripting_mode_extension_objects On 8/10/20 18:59, Andy Seab

Re: Custom SPARQL functions in Javascript and python

2020-08-26 Thread Andy Seaborne
ja [1] https://www.n-k.de/riding-the-nashorn/#_back_quote_exec_expressions [2] https://www.n-k.de/riding-the-nashorn/#_scripting_mode_extension_objects On 8/10/20 18:59, Andy Seaborne wrote: Hi Maja, Before we get into the details, could you say a little more about what you are trying to ach

Re: Fuseki Bad Requests response details

2020-08-25 Thread Andy Seaborne
Bad Request\n' for record 0 The response body of the 400 HttpError doesn't seem to have more data and i would not know how to get extra information via the curl request. The question is IMHO still unsolved and i am not sure whether SPARQLWrapper could do better or how... Cheers   Wolfgang Am

Re: Fuseki Bad Requests response details

2020-08-19 Thread Andy Seaborne
""" How can i get the Fuseki API via SPARQLWrapper to properly report a detailed error message e.g. with something like "error in line # cr:Event__102140gtm20003 cr:Event_location "M\\"unster, Germany". is not a valid triple? """ This is a Q about SPARQLWrapper, not Fuseki. Look in the

Re: Float comparison

2020-08-19 Thread Andy Seaborne
0A%7D=text x y z 100123456.01 100123459.01 100123451.01 On Wed, Aug 19, 2020 at 10:13 AM Andy Seaborne wrote: On 18/08/2020 22:17, Dr. Chavdar Ivanov wrote: Andy, Richard, Thank you for the feedback. In the graph

Re: Float comparison

2020-08-19 Thread Andy Seaborne
561"^^xsd:decimal or 0.1001244561 (in Turtle and SPARQL). but I guess this falls in the same category that large absolute values are less precise. So same effect as for xsd:float. Best regards Chavdar -Original Message- From: Andy Seaborne Sent: Tuesday, 18 August, 202

Re: RDF Delta/Zookeper freezing issue

2020-08-18 Thread Andy Seaborne
...@jena.apache.org and send from any valid email address. Andy On 18/08/2020 21:49, Alnazer, Ahmed wrote: Hi Andy can you take me from the email list. I did send email to unsubscribe but it did not work still getting messages Thanks -Original Message- From: Andy Seaborne Sent

Re: RDF Delta/Zookeper freezing issue

2020-08-18 Thread Andy Seaborne
Piotr, It will depend on how long zookeeper takes to resync. One of the factors is how big the zookeeper database has become because when a ZK server starts, it has to process the snapshot and any logs to But while syncing the other zk server should still provide service (read-only) - maybe

Re: RDF Delta Zookeper on S3 issue

2020-08-18 Thread Andy Seaborne
On 18/08/2020 13:29, Piotr Nowara wrote: No, we don't do anything extra to preserve the data. We expected RDF Delta would pick it up automatically. Could you clarify what you mean by preserving? How can we apply it? Thanks, Piotr pon., 17 sie 2020 o 19:06 Andy Seaborne napisał(a): Did you

Re: Float comparison

2020-08-18 Thread Andy Seaborne
On 18/08/2020 10:31, Richard Cyganiak wrote: The xsd:float datatype represents IEEE 754 single-precision floating point numbers. As with any floating-point datatype, the precision depends on the size of the number. Numbers close to zero are very precise. Numbers with a large absolute

Re: Custom QueryEngine is not picked up by QueryExecutionFactory in presence of FROM/FROM NAMED clause

2020-08-16 Thread Andy Seaborne
operation with FusekiExt.registerOperation(), avoiding any changes to Fuseki Core or configuring/starting the server programmatically. I had completely forgotten about FusekiExt! Andy Cheers, Dimitris On 2020/08/15 13:08:21, Andy Seaborne wrote: On 15/08/2020 11:59, Dimitris Spanos wrot

Re: unknown response content type on update with Apache Jena Fuseki

2020-08-15 Thread Andy Seaborne
On 15/08/2020 15:02, Andy Seaborne wrote: PS Fuseki error responses are text/plain, not text/html.     Andy On 15/08/2020 13:39, Andy Seaborne wrote:  > text/html;charset=utf-8 Probably because the other end is an HTML page, maybe a query form, not and a SPARQL endpoint. There are s

Re: unknown response content type on update with Apache Jena Fuseki

2020-08-15 Thread Andy Seaborne
PS Fuseki error responses are text/plain, not text/html. Andy On 15/08/2020 13:39, Andy Seaborne wrote: > text/html;charset=utf-8 Probably because the other end is an HTML page, maybe a query form, not and a SPARQL endpoint. There are several system that advertise thei HTML f

Re: Custom QueryEngine is not picked up by QueryExecutionFactory in presence of FROM/FROM NAMED clause

2020-08-15 Thread Andy Seaborne
On 15/08/2020 11:59, Dimitris Spanos wrote: Hi all, I am trying to implement a custom QueryEngine that would handle query optimization and evaluation for a custom Dataset implementation, as mentioned in the documentation (

Re: unknown response content type on update with Apache Jena Fuseki

2020-08-15 Thread Andy Seaborne
> text/html;charset=utf-8 Probably because the other end is an HTML page, maybe a query form, not and a SPARQL endpoint. There are several system that advertise thei HTML form and the form then goes to the SPARQL endpoint which is at a different URL. Andy On 15/08/2020 07:16, Wolfgang

Re: Difficult using RDFFormat.RDF_THRIFT with RDFDataMgr

2020-08-13 Thread Andy Seaborne
tput.trdf"); System.out.println("DONE"); System.exit(0); } On 11/08/2020 14:56, Crapo, Andrew (GE Research, US) wrote: Forgot to say, I'm using Jena 3.16. -Original Message- From: Andy Seaborne Sent: Thursday, August 6, 2020 1:11 PM To: users@jena.apach

<    4   5   6   7   8   9   10   11   12   13   >