Re: Re: RDFS subPropertyOf property path query performance

2024-05-14 Thread Lorenz Buehmann
Method ; :name "Commit" . ?decl (:possiblyCommittingProceduralFlow)+ ?cmit ; a ?procedureOrTrigger . FILTER(?procedureOrTrigger in (:Procedure, :Trigger)) } Then performance is similar (and good) with and without RDFS. /Christian On Mon, 13 May 2024 at 12:04, Lorenz Buehmann < b

Re: RDFS subPropertyOf property path query performance

2024-05-13 Thread Lorenz Buehmann
Hi, does it mean the ?origin is always bound to a resource in the graph? Can you share the whole query maybe? How long are the sequences in the graph? How many paths starting from a node, i.e. what's the out degree in general per node? Also, would it be possible to share some kind of data

Re: Decompose a query into Star, Path and Sink shapes

2024-04-18 Thread Lorenz Buehmann
Hi, can you give an example what you're trying to achieve? And what is the use case? Query optimization? Text to SPARQL? Are you talking about SPARQL, SHeX or SHACL? In case of SPARQL queries, decomposing a SPARQL query into some sub-structures depends on what you assume being parts for

Re: RE: Performance question with joins

2024-04-03 Thread Lorenz Buehmann
hn Walker wrote: Hi James -Original Message- From: James Anderson Sent: Tuesday, 2 April 2024 18:53 To: usersjena. apache. org Subject: Re: Performance question with joins good evening; On 2. Apr 2024, at 12:27, Lorenz Buehmann leipzig.de> wrote: if this description is accurate according to

Re: RE: Performance question with joins

2024-04-02 Thread Lorenz Buehmann
Hi, according to the hash join implementation in Jena in class AbstractIterHashJoin a join key is created via line joinKey = JoinKey.createVarKey(varsLeft, varsRight) ; That method does take only the first variable in both bindings as join key instead of all matching variables. In our case

Re: Re: [EXTERNAL] Re: Query Performance Degrade With Sorting In Subquery

2024-03-20 Thread Lorenz Buehmann
This sounds more like a use-case for correlated queries which is on the way to being added to SPARQL standard in 1.2. I also think that your current query doesn't do what your expect as the subquery is evaluated independently, and there will be a cartesian product given that you do not

Re: Re: query performance on named graph vs. default graph

2024-03-20 Thread Lorenz Buehmann
Hi, what about SELECT * FROM NAMED FROM NAMED FROM NAMED  ... FROM NAMED {   GRAPH ?g {   ...   } } or SELECT * {  VALUES ?g { ... }   GRAPH ?g {     ...   } } does that work better? On 19.03.24 15:21, Jim Balhoff wrote: Hi Andy, On Mar 19, 2024, at 5:02 AM, Andy Seaborne

Re: Re: Problems when querying the SPARQL with Jena

2024-03-13 Thread Lorenz Buehmann
-plugin Best regards, Pan On Tue, Mar 12, 2024 at 7:13 AM Lorenz Buehmann < buehm...@informatik.uni-leipzig.de> wrote: 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 automat

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: Re: [EXTERNAL] Re: Apache Jena Full Text Search With Lucene

2024-02-28 Thread Lorenz Buehmann
Hi, just having the text index declared in the assembler doesn't trigger a full rebuild for obvious reasons. For SPARQL updates while running Fuseki indeed the fulltext index will be updated as it listens to any changes in the underlying dataset. In your case, you can run an offline

Re: Re: Re: jena-fuseki UI in podman execution (2nd effort without attachments)

2024-02-12 Thread Lorenz Buehmann
Open issue: https://github.com/apache/jena/issues/2267 On 12.02.24 09:26, Lorenz Buehmann wrote: Hi all, I can reproduce it with using Apache Jena Fuseki 4.10.0 and generating a dummy N-Quads file by e.g. using Bash: for i in {1..100..1}; do echo "<http://example.org/s

Re: Re: jena-fuseki UI in podman execution (2nd effort without attachments)

2024-02-12 Thread Lorenz Buehmann
Hi all, I can reproduce it with using Apache Jena Fuseki 4.10.0 and generating a dummy N-Quads file by e.g. using Bash: for i in {1..100..1}; do echo " ." >> data.nq; done tdb2.tdbloader --loc

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

2023-12-06 Thread Lorenz Buehmann
Hi, did you try addGraph method on the SelectBuilder object with another SelectBuilder object on which you add the VALUES clause and the triple pattern? In your case with the UNION I think the flow should be something like SelectBuilder sb = ... SelectBuilder sb_g1 = ... // first graph

Re: Re: Query features info

2023-09-21 Thread Lorenz Buehmann
@Hashim in the future you should reply to the mailing list such that all people can see your response and follow the thread. Now we can just see your answer because James replied to you and the mailing list. We also can't see your attachment. Which paper are you talking about? As James said,

Re: Query features info

2023-09-19 Thread Lorenz Buehmann
Hi, getting the data you're interested in needs to traverse either the algebra (which is shown in your "explain" request) or the query structure. For both you'll have to write Java code - luckily Jena already provides the necessary tools via visitors. By the way, why do you think there are

Re: Transactions over http (fuseki)

2023-08-17 Thread Lorenz Buehmann
Hi, that is an open issue in the SPARQL standard and Andy already opened a ticket [1] regarding this maybe w.r.t. an upcoming SPARQL 1.2 I think mixed query types are still not possible via standard Fuseki in a single transaction, but indeed an extension like you're planning should be

Re: In using RIOT I encounter the "64000" entity expansions error.

2023-06-28 Thread Lorenz Buehmann
it is not a Jena specific parameter, thus, you have to set if via standard Java JVM arguments: riot does make use of the system var JVM_ARGS, so you can use that export JVM_ARGS="$JVM_ARGS  -DentityExpansionLimit=25" or just prepend your call JVM_ARGS="$JVM_ARGS 

Re: Confirming on usage of andrewoma dexx collection from Jena-base

2023-06-26 Thread Lorenz Buehmann
Hi, are you talking about your own fork of Jena in your company? And you're asking if there is anything preventing you from modifying the POM file in jena-base module? Is that something the Apache 2 License would care about? Isn't it more about your Marklogic product in the end? Or do you

Re: Combine two columns in SPARQL

2023-04-26 Thread Lorenz Buehmann
I cannot reproduce it: Data (test.ttl): |PREFIX : || ||PREFIX skos: || || ||:Animals|| ||  skos:prefLabel "animals"@en ;|| ||  skos:altLabel "fauna"@en ;|| ||  skos:hiddenLabel "aminals"@en ;|| ||  skos:prefLabel "animaux"@fr ;||

Re: GeoSPARQL and Weighted graph to find the Shortest path

2023-03-25 Thread Lorenz Buehmann
Hi, comments inline On 24.03.23 18:30, Yang-Min KIM wrote: Dear Jena community, I would like to use GeoSPARQL, but before I proceed I need your valuable advice. What I want to do: - Using GeoSPARQL, nodes have their own position (or zone). In RDF and thus in Jena those are still plain RDF

Re: number of HTTP requests

2023-03-20 Thread Lorenz Buehmann
Hi, In Fuseki you can gather stats as JSON: https://jena.apache.org/documentation/fuseki2/fuseki-server-info.html This would give you the number of requests which should be what you need. Cheers, Lorenz On 19.03.23 23:14, Hashim Khan wrote: Hi all, In case of client server

Re: Inference reasoner

2023-02-09 Thread Lorenz Buehmann
Your config indicates some RDFS reasoner, but apparently transitivity as well as inverse relations both a re part of OWL semantics only (also indicarted by the owl: prefix of course). And OWL is way more expressive than RDFS, and inference way more expensive of course.  Thus, you should use

Re: Re: Re: How to implicitly integrate OWL ontology?

2023-02-06 Thread Lorenz Buehmann
Ok, but if your example isn't related to the link, how is the link related to your current issue? Can you share the ontology with the father relation where the inference doesn't work for you? On 06.02.23 10:42, Yang-Min KIM wrote: Le lun., févr. 6 2023 at 10:30:17 +0100, Lorenz Buehmann

Re: Re: How to implicitly integrate OWL ontology?

2023-02-06 Thread Lorenz Buehmann
Hi, in addition to the comments of Dave: On 03.02.23 11:16, Yang-Min KIM wrote: OWL-B includes: Daughter is subclass of Children. (rdfs:subClassOf) Minor: use singular form for class named, i.e. Child If X is Male and has Children Y, X is father of Y. (owl:inverseOf) That doesn't

Re: Re: Why does the OSPG.dat file grows so much more than all other files?

2023-01-31 Thread Lorenz Buehmann
cting while also active in Fuseki. This index does not store the literals strings representations - they are referenced via the 8 byte entries. In OSPG, the index entries are 4 slots of 8 bytes. Andy (Unrelated comment below) On 28/01/2023 07:47, Lorenz Buehmann wrote: Hi Elton, Do you have lots of ma

Re: Why does the OSPG.dat file grows so much more than all other files?

2023-01-27 Thread Lorenz Buehmann
Hi Elton, Do you have lots of may large literals in your data? Also, did you try a compaction on the database? If not, can you try it and post the new file sizes afterwards? Note, they will be located in a new ./Data- directory, e.g. before Data-0001 and afterwards Data-0002 By the way,

Re: Re: Builtin primitives in rule not triggered

2023-01-26 Thread Lorenz Buehmann
I cannot reproduce this. For example, the test code public static void main(String[] args) {     String raw = " .";     Model rawData = ModelFactory.createDefaultModel();     rawData.read(new StringReader(raw), null,

Re: Re: MOVE GRAPH … TO GRAPH … ~  Server Error 500 Iterator: started at 5, now 6 (SPARQL Update)

2023-01-24 Thread Lorenz Buehmann
On 24.01.23 10:31, Andreas Plank wrote: it failed first attempting loading the entire 8GB zipped data backup, what was the reason for failing here?

Re: Re: RDF-star support in Jena

2023-01-18 Thread Lorenz Buehmann
Can't you use an IDE? How are you writing the Javacode? If you're using Eclipse or IntelliJ, and import the Jena libs via Maven, the IDE should be able to render Javadoc as well as giving you the source code. On 18.01.23 09:28, Bruno Kinoshita wrote: where can we find the implementation of

Re: Re: MOVE GRAPH … TO GRAPH … ~  Server Error 500 Iterator: started at 5, now 6 (SPARQL Update)

2023-01-17 Thread Lorenz Buehmann
You can dump the data within the running Fuseki, then reload it into the latest Fuseki 4.7.0? On 16.01.23 17:46, Andreas Plank wrote: Is there any data repair tool or to test the data? Am Mo., 16. Jan. 2023 um 17:23 Uhr schrieb Andy Seaborne : Without a minimal, reproducible example it's not

Re: Is it possible to implement logical OR in Jena rule?

2023-01-13 Thread Lorenz Buehmann
You can emulate logical OR in the premise of the rule by just adding a rule for each operand with the same conclusion (a b c) -> (d e f) -> On 13.01.23 22:42, L B wrote: The Jena rule is composed like logical AND. (a b c) (d e f) -> I wonder if we could implement logical OR

Re: Increasing verbosity of shacl cli tool to show sh:message or sh:resultMessage

2023-01-13 Thread Lorenz Buehmann
How do you decide on which part of the OR failed to print your expected message? I mean, technically also the first part lead to FALSE, so we could easily also decide on printing an assigned message to that part - doesn't exist in your case, but is also a reason why the validation fails. Or

Re: Re: Use rsparl to request a spaql database with login/password authentication

2023-01-08 Thread Lorenz Buehmann
It's a commandline tool in the Jena distribution [1] ./bin/rset [1] https://dlcdn.apache.org/jena/binaries/apache-jena-4.7.0.tar.gz On 09.01.23 01:42, Justin wrote: Hi Andy, What repo or package contains the "rset" utility? Not this one I assume? https://github.com/eradman/rset On Fri,

Re: listIndividuals versus listInstances

2023-01-01 Thread Lorenz Buehmann
I can't reproduce this with a dummy example just containing a single OWL class with a single individual. Both ways return  the individual. Do you have some inference enabled? Can you share sample data and code? All entities are strongly typed (don't know if this matters here)?

Re: How to list OntModel Individual OntProperty triples?

2023-01-01 Thread Lorenz Buehmann
Hi Steve! Looks like you're looking for something similar to Individual::getOntClasses, but I think there is no such method in the code. Also, once getting statements, the type itself would be opaque. What you can do is to call .canAs() and then .as() methods, for example OntModel m = ...

Re: Question about RDF Frames

2022-12-29 Thread Lorenz Buehmann
Hi Steve, In the documentation you referred to, the important statement is at the bottom: Global properties listDeclaredProperties will treat properties with no specified domain as global, and regard them as properties of all classes. The use of the direct flag can hide global properties

Re: How to handle optional lists in SPARQL

2022-12-12 Thread Lorenz Buehmann
I don't know your full query restrictions, but without given properties it would be a "simple" property path, no? Something like owl:someValuesFrom/((owl:intersectionOf|owl:unionOf)/list:member)? where the list closure is optional and if you want to make it nestested

Re: Re: density of GraphUtil not recognized

2022-12-11 Thread Lorenz Buehmann
Made my day ... StackOverflow is already disallowing ChatGPT comments ... there are of course tools for graph measures beyond Jena, e.g. you could use Python rdflib which allows for converting the graph to a  networkx graph which in fact is a standard API for network analytics. Or you use

Re: ARQ: query from passed string

2022-12-07 Thread Lorenz Buehmann
the syntax should be arq --data /path/to/file.rdf  "SELECT * WHERE { ?s ?p ?o }" --query only if you provide it as file On 07.12.22 08:54, Adrian Gschwend wrote: Hi, I just wanted to extract some stuff from a local file where I need a super simple one-liner query. I tried this after

Re: Re: How to Use Fuseki Backup API

2022-11-27 Thread Lorenz Buehmann
does it work with setting the encoding in curl maybe like with curl -H 'Accept-Encoding: gzip, deflate' ? On 27.11.22 22:21, Tim McIver wrote: Thanks Andy.  I probably won't have a large amount of data for some time but I can imagine getting a timeout or other error if there is a huge amount

Re: Re: Weird sparql problem

2022-11-08 Thread Lorenz Buehmann
  ?c    skosxl:prefLabel  _:b0 .     FILTER EXISTS {  ?c    skos:inScheme lsu:SNOMEDCT_US }    } Hope this helps, Rob From: Lorenz Buehmann Date: Thursday, 3 November 2022 at 11:12 To: users@jena.apache.org Subject: Re: Re: Weird sparql problem tdbquery --explain --loc  $TDB_LOC  "

Re: Re: Weird sparql problem

2022-11-08 Thread Lorenz Buehmann
? | On 03/11/2022 13.11, Lorenz Buehmann wrote: tdbquery --explain --loc  $TDB_LOC  "query here" would also work to see the plan - maybe also increase log level to see more: https://jena.apache.org/documentation/tdb/optimizer.html Another question, did you generate the TDB stats such t

Re: Re: Weird sparql problem

2022-11-03 Thread Lorenz Buehmann
g makes no sense to user, whatever are the technical reasons.    VALUES ?sct_code { "298314008" } ?c skosxl:prefLabel [ lsu:code ?sct_code ] returns one row immediately, but    VALUES ?sct_code { "298314008" } ?c skosxl:prefLabel [ lsu:code ?sct_code ]; skos:inScheme

Re: Re: Weird sparql problem

2022-11-02 Thread Lorenz Buehmann
OMEDCT_US; On 18/10/2022 9.08, Lorenz Buehmann wrote: Hi, comments inline On 17.10.22 14:35, Mikael Pesonen wrote: This works as a separate query, but not in a the middle, since ?s gets new values instead of binding to previous ?s. { select ?t where { ?s a ?t .  } limit 10}   ?t skos:prefLab

Re: Model#remove statement not working for me

2022-10-28 Thread Lorenz Buehmann
your mistake is here: Triple sameAsTriple =new Triple( ontModel.getResource("http://test/kbA#memberA;).asNode(), ontModel.getResource("owl:sameAs").asNode(), ontModel.getResource("http://test/kbB#memberB;).asNode()); the methods expects a proper URI, not a prefixed one - the reason

Re: Re: What is killing my Fuseki instance?

2022-10-24 Thread Lorenz Buehmann
I have the machine running now for hours, but to be fair, I didn't produce any load in the meantime. On 24.10.22 14:17, Andy Seaborne wrote: Hi Bob, good article! Especially the "check your data before loading" bit. https://bobdc.com/miscfiles/dataset2.ttl You can remove all those

Re: Re: What is killing my Fuseki instance?

2022-10-24 Thread Lorenz Buehmann
an assembler file (just for simplicity). On 24.10.22 10:22, Lorenz Buehmann wrote: Hi, I'm pretty sure this was just OOM killed. Default Fuseki settings are nowadays 4GB unless you overwrite the JVM_ARGS environment variable [1] Indeed, you could also check the OS logs to find the reason

Re: What is killing my Fuseki instance?

2022-10-24 Thread Lorenz Buehmann
Hi, I'm pretty sure this was just OOM killed. Default Fuseki settings are nowadays 4GB unless you overwrite the JVM_ARGS environment variable [1] Indeed, you could also check the OS logs to find the reason for killing the process but I would assume it's because of low memory Cheers,

Re: Re: SPARQL limit doesn't work

2022-10-20 Thread Lorenz Buehmann
On 19.10.22 13:44, Mikael Pesonen wrote: On 19/10/2022 10.18, Lorenz Buehmann wrote: Honestly - probably because of lack of knowledge - I don't see how that can happen with the text index. You have a single triple pattern that is querying the Lucene index for the given pattern and returns

Re: Re: SPARQL limit doesn't work

2022-10-19 Thread Lorenz Buehmann
agination should work as you're doing, the Lucene query is internally executed once, then cached - for later requests the same Lucene documents hits should be reused On 19.10.22 08:21, Mikael Pesonen wrote: Hi, yes, same select as only query gets exactly limit amount of triples. On 18/10/2022 16.

Re: SPARQL limit doesn't work

2022-10-18 Thread Lorenz Buehmann
did you get those results when running only this subquery? Afaik, the default limit of the Lucene text query is at most 10 000 documents - and I don't think that the outer LIMIT would make it to the Lucene request On 18.10.22 13:35, Mikael Pesonen wrote: I have a bigger query that starts

Re: Re: Weird sparql problem

2022-10-18 Thread Lorenz Buehmann
of the second triple pattern [1] https://jena.apache.org/documentation/tdb/optimizer.html#generating-a-statistics-file On 21/09/2022 9.15, Lorenz Buehmann wrote: Weird, only 10M triples and each triple pattern returns only 1 binding, thus, the size is tiny - honestly I can't think

Re: Re: Fuseki container is OOMKilled

2022-09-29 Thread Lorenz Buehmann
at 9:41 AM Lorenz Buehmann wrote: You're working on an in-memory dataset? No the datasets are TDB2-backed Does it also happen with Jena 4.6.1? Don't know :) I wanted to run a profiler and tried connecting from VisualVM on Windows to the Fuseki container but neither jstatd nor JMX connections wor

Re: Fuseki container is OOMKilled

2022-09-29 Thread Lorenz Buehmann
You're working on an in-memory dataset? Does it also happen with Jena 4.6.1? On 28.09.22 20:23, Martynas Jusevičius wrote: Hi, We have a dockerized Fuseki 4.5.0 instance that is gradually running out of memory over the course of a few hours. 3 datasets, none larger than 10 triples. The

Re: Persist SHACL shapes in dataset possible?

2022-09-21 Thread Lorenz Buehmann
Interesting question. I think currently the Fuseki SHACL service expects a Turtle file for the shapes acording to [1]. I agree that this seems to be rather inefficient. @Andy: - the code expects only Turtle format, right? RDF/XML would fail to parse the shapes then, correct? - the shapes

Re: Re: Weird sparql problem

2022-09-21 Thread Lorenz Buehmann
, Lorenz Buehmann wrote: Forgot: - size of result for each triple pattern? Might affect if hash join can be used. It's one row for each. - your hardware? Normal server with 16gigs mem. - is it just the first query after starting Fuseki? Connections have been closed? Note, there was also a bug

Re: Weird sparql problem

2022-09-15 Thread Lorenz Buehmann
Forgot: - size of result for each triple pattern? Might affect if hash join can be used. - your hardware? - is it just the first query after starting Fuseki? Connections have been closed? Note, there was also a bug in a recent Jena version, but only with TDB and too many open connections.

Re: Weird sparql problem

2022-09-15 Thread Lorenz Buehmann
Fuseki with in-memory backend or TDB? Which version? How large is the dataset? Not that I see how this simple query with a single join should lead to a timeout, but any numbers are usually helpful. Did you try the query without defining the default graph but using a graph pattern, i.e.

Re: Re: Re: Re: Re: TDB2 bulk loader - multiple files into different graph per file

2022-08-29 Thread Lorenz Buehmann
587.26 per second : 0 errors : 10 warnings Cheers, On Mon, 2022-08-29 at 13:09 +0200, Lorenz Buehmann wrote: In addition I used the OS tool in a pipe: bunzip2 -c river_planet-latest.osm.pbf.ttl.bz2 | riot --time --count --syntax "Turtle" Triples = 163,310,838 stdin   : 717.

Re: Re: Re: TDB2 bulk loader - multiple files into different graph per file

2022-08-29 Thread Lorenz Buehmann
ss exactly the time of decompression + the parsing time of the uncompressed file - still way faster than the Apache Commons one, even with my suggested fix the OS variant is ~5min faster On 29.08.22 11:24, Lorenz Buehmann wrote: riot --time --count river_planet-latest.osm.pbf.ttl Triples = 1

Re: Re: TDB2 bulk loader - multiple files into different graph per file

2022-08-29 Thread Lorenz Buehmann
riot --time --count river_planet-latest.osm.pbf.ttl Triples = 163,310,838 351.00 sec : 163,310,838 Triples : 465,271.72 per second : 0 errors : 31 warnings riot --time --count river_planet-latest.osm.pbf.ttl.gz Triples = 163,310,838 431.74 sec : 163,310,838 Triples : 378,258.50 per second :

Re: Re: TDB2 bulk loader - multiple files into different graph per file

2022-08-28 Thread Lorenz Buehmann
-> compressed one degrades immediately to an avg of 16,000/s vs 140,000/s on the uncompressed data - looks horrible And I yes, I also tend to decompress via OS tool before loading On 28.08.22 13:55, Andy Seaborne wrote: On 28/08/2022 09:58, Lorenz Buehmann wrote: Hi Andy, thanks for fast respo

Re: Re: TDB2 bulk loader - multiple files into different graph per file

2022-08-28 Thread Lorenz Buehmann
all? The input needs to be prepared as quads.     Andy On 26/08/2022 15:03, Lorenz Buehmann wrote: Hi all, is there any option to use TDB2 bulk loader (tdb2.xloader or just tdb2.loader) to load multiple files into multiple different named graphs? Like tdb2.loader --loc ./tdb2/dataset --gr

TDB2 bulk loader - multiple files into different graph per file

2022-08-26 Thread Lorenz Buehmann
Hi all, is there any option to use TDB2 bulk loader (tdb2.xloader or just tdb2.loader) to load multiple files into multiple different named graphs? Like tdb2.loader --loc ./tdb2/dataset --graph file1 --graph file2 ... I'm asking because I thought the initial loading is way faster then

Re: Re: How to fix wrong semantic rule?

2022-07-26 Thread Lorenz Buehmann
iết: On 25/07/2022 16:17, Lorenz Buehmann wrote: Good Afternoon. There is no such RDFSExptRuleReasoner reasoner in standard Jena, or I just cannot find the code in https://github.com/apache/jena So I don't know what you're referring to. Can you explain this please? hi all. I'm using the reaso

Re: How to fix wrong semantic rule?

2022-07-25 Thread Lorenz Buehmann
Good Afternoon. There is no such RDFSExptRuleReasoner reasoner in standard Jena, or I just cannot find the code in https://github.com/apache/jena So I don't know what you're referring to. Can you explain this please? hi all. I'm using the reasoner RDFSExptRuleReasoner to enforce the rule:

Re: Re: [MASSMAIL]Re: Large *.dat files in Fuseki

2022-07-07 Thread Lorenz Buehmann
. Is there also some operation (http or cli) that would keep only one (the latest) data folder, i.e. delete the old files from Data-0001? Gaspar On 6 Jul 2022, at 12:52, Lorenz Buehmann wrote: Ok, interesting so we have - 150k triples, rather small dataset - loaded into 10MB node table files - 10

Re: Re: [MASSMAIL]Re: Large *.dat files in Fuseki

2022-07-06 Thread Lorenz Buehmann
) data folder, i.e. delete the old files from Data-0001? Gaspar On 6 Jul 2022, at 12:52, Lorenz Buehmann < buehm...@informatik.uni-leipzig.de> wrote: Ok, interesting so we have - 150k triples, rather small dataset - loaded into 10MB node table files - 10 updates every 5s - which ma

Re: Re: Re: [MASSMAIL]Re: Large *.dat files in Fuseki

2022-07-06 Thread Lorenz Buehmann
You can trigger compaction from CLI via tdb2.tdbcompact (needs Fuseki being down I think) or with Fuseki running as POST request: https://jena.apache.org/documentation/fuseki2/fuseki-server-protocol.html#datasets-and-services On 06.07.22 11:52, Lorenz Buehmann wrote: Ok, interesting so we

Re: Re: [MASSMAIL]Re: Large *.dat files in Fuseki

2022-07-06 Thread Lorenz Buehmann
of the triples have a literal in the object position, so ~75000. Best regards, Gaspar On 6 Jul 2022, at 10:55, Lorenz Buehmann wrote: Hi and welcome Gaspar. Those files do contain the node tables. A Lucene index is never computed by default and would be contained in Lucene specific index f

Re: Large *.dat files in Fuseki

2022-07-06 Thread Lorenz Buehmann
Hi and welcome Gaspar. Those files do contain the node tables. A Lucene index is never computed by default and would be contained in Lucene specific index files. Can you give some details about the - size of the files - the number of triples - the number triples added/removed/changed -

Re: How to use reasoning in Jena Fuseki?

2022-07-01 Thread Lorenz Buehmann
I guess you have to use an assembler file to configure reasoning, at least for anything beyond RDFS (for just RDFS Simple, you can start fuseki with --rdfs param) Here is a blog post how to do this:

Re: Re: Jena Full Text Search poor performance

2022-06-16 Thread Lorenz Buehmann
Wouldn't it be already sufficient to move the pattern to the top of the query? I thought Jena doesn't optimize custom property functions, i.e. won't switch the order of those? On 15.06.22 22:26, Øyvind Gjesdal wrote: Hi Pawel, I think this could be due to the text:query being evaluated late

Re: Semantics of SERVICE w.r.t. slicing

2022-06-03 Thread Lorenz Buehmann
The semantics should be in a separate document: https://www.w3.org/TR/sparql11-federated-query/#fedSemantics On 02.06.22 22:19, Claus Stadler wrote: Hi, I noticed some interesting results when using SERVICE with a sub query with a slice (limit / offset). Preliminary Remark: Because SPARQL

Re: Graph Store compared to tdb2.tdbloader

2022-05-30 Thread Lorenz Buehmann
Hi David, On 29.05.22 15:34, David Habgood wrote: Hi, I've been running Apache Jena Fuseki 4.5.0 in a docker container. I've loaded data to it two ways: though the graph store protocol, and using tdb2.tdbloader before starting Jena Fuseki. No issues with either, however I'm interested in what

Re: TDB2 persistence and jena fuseki upgrades

2022-05-09 Thread Lorenz Buehmann
Hi, can you verify that querying TDB2 from commandline still works? Can you show the Fuseki assembler config or how do you start Fuseki in general? On 09.05.22 14:54, Øyvind Gjesdal wrote: I've recently completed some upgrades using the fuseki binaries, first with major versions, from

Re: Re: tdbloader - how to indicate destination graph?

2022-04-11 Thread Lorenz Buehmann
format generated using Jena's StreamRDF2Thrift class. Loading the same triples with the ttl format I have no problems. Il 11.04.2022 07:33 Lorenz Buehmann ha scritto: There is no error but a warning or do I misunderstand you? The problem is that your data is already quads, so for each triple

Re: tdbloader - how to indicate destination graph?

2022-04-10 Thread Lorenz Buehmann
There is no error but a warning or do I misunderstand you? The problem is that your data is already quads, so for each triple a graph is already given and thus put in the corresponding graph (if the graph IRI is mentioned). Only for triples without a graph those triples will be put into the

Re: ARQ variables with dashes

2022-04-05 Thread Lorenz Buehmann
Hi Barry, Did you try SPARQL1.1 parser instead? Afaik, ARQ was always beyond SPARQL 1.1 or better said, already before SPARQL 1.1 with some extensions. Indeed, Andy will correct me soon :D The grammar files for JavaCC are here: https://github.com/apache/jena/tree/main/jena-arq/Grammar You

Re: SPARQL optional limiting results

2022-03-15 Thread Lorenz Buehmann
Hi, I'm probably misunderstanding the query, but what is the purpose of the OPTIONAL here? ?graph is bound because of VALUES clause, ?concept is bound because of the graph pattern before the OPTIONAL as well. So ?graph and ?concept are bound on the left hand side of the left-join aka

Re: Re: Geo indexing Wikidata

2022-02-23 Thread Lorenz Buehmann
ction, difference, symDifference, envelope and boundary respectively) in Simple Features [ISO 19125-1]. On 23/02/2022 08:56, Lorenz Buehmann wrote: Thanks both for your very helpful input - I'm still a GeoSPARQL novice and trying to learn stuff and first of all just use the Jena implementation as e

Re: Re: Re: Re: Re: Re: Integrating a reasoner in Fuseki

2022-02-23 Thread Lorenz Buehmann
oratory *https://www.cimil.disi.unitn.it/* <https://www.cimil.disi.unitn.it/> Department of Information Engineering and Computer Science University of Trento Via Sommarive 9 - 38123 Trento - Italy E-mail: luca.turc...@unitn.it Tel: +39 0461 283792 Il giorno mer 23 feb 2022 alle ore 12:16 Lorenz Buehmann <

Re: Re: Re: Re: Re: Integrating a reasoner in Fuseki

2022-02-23 Thread Lorenz Buehmann
: https://www.file.io/R2ls/download/7YKjIFR0eWyb On 23.02.22 12:05, Lorenz Buehmann wrote: On 23.02.22 11:54, Luca Turchet wrote: So, firstly mvn --version provided the JDK 17.02, but the JDK version can be set with "export JAVA_HOME= " I installed JDK 11 and used the POM.xml con

Re: Re: Re: Re: Re: Integrating a reasoner in Fuseki

2022-02-23 Thread Lorenz Buehmann
er 23 feb 2022 alle ore 11:29 Lorenz Buehmann < buehm...@informatik.uni-leipzig.de> ha scritto: Ok, looks like I got it working - took more effort than expected: - set FUSEKI_BASE to the path of the Fuseki distribution - create a directory $FUSEKI_BASE/extra - this will used for the additio

Re: Re: Re: Re: Integrating a reasoner in Fuseki

2022-02-23 Thread Lorenz Buehmann
luca.turc...@unitn.it Tel: +39 0461 283792 Il giorno mer 23 feb 2022 alle ore 10:04 Lorenz Buehmann ha scritto: I checked Openllet, it has been set to Java 17 - you can change it in the POM file: - set maven-compiler-plugin source and target entry to 11 - change maven-

Re: Re: Re: Re: Integrating a reasoner in Fuseki

2022-02-23 Thread Lorenz Buehmann
10:29, Lorenz Buehmann wrote: Ok, I'm still on JDK 11 and this worked for me - so you could give it a try. If not then can't you set the compiler plugin to 13? Although I'm wondering why it failed with JDK 17 if you have it installed. Did you also set this as your current JDK? mvn --version

Re: Re: Re: Integrating a reasoner in Fuseki

2022-02-23 Thread Lorenz Buehmann
ore 10:04 Lorenz Buehmann ha scritto: I checked Openllet, it has been set to Java 17 - you can change it in the POM file: - set maven-compiler-plugin source and target entry to 11 - change maven-enforcer-plugin Java rule to [10,15) Note, the fork is currently set to

Re: Re: Integrating a reasoner in Fuseki

2022-02-23 Thread Lorenz Buehmann
it with latest Jena On 23.02.22 08:02, Lorenz Buehmann wrote: Hi, follow up from your Stackoverflow thread, the Jena built-in reasoners do not support SWRL rules - what exactly is supported by which OWL reasoner is documented here: https://jena.apache.org/documentation/inference/#owl None

Re: Re: Geo indexing Wikidata

2022-02-23 Thread Lorenz Buehmann
Thanks both for your very helpful input - I'm still a GeoSPARQL novice and trying to learn stuff and first of all just use the Jena implementation as efficient as possible. On 21.02.22 15:22, Andy Seaborne wrote: On 21/02/2022 09:07, Lorenz Buehmann wrote: Any experience or comments so far

Re: Integrating a reasoner in Fuseki

2022-02-22 Thread Lorenz Buehmann
Hi, follow up from your Stackoverflow thread, the Jena built-in reasoners do not support SWRL rules - what exactly is supported by which OWL reasoner is documented here: https://jena.apache.org/documentation/inference/#owl None of them is a full OWL DL reasoner, that's only covered via

Geo indexing Wikidata

2022-02-21 Thread Lorenz Buehmann
Hi, we can use this as an complementary thread for the ongoing "loading Wikidata" threads, this time with focus on the geospatial part. Joachim already did the same for the text index and it works as expected, though still loading time could be improved. For the geospatial index things

Re: Text indexing Wikidata

2022-02-19 Thread Lorenz Buehmann
Hi, so far you can't do anything else - the whole indexing pipeline is single-threaded as far as I know. It simply iterates all properties declared to be used for fetching the RDF triple values - Lucene indexing itself would be threadsafe, so the easiest thing would be to apply one writer

Re: How to resolve a transaction error

2022-02-14 Thread Lorenz Buehmann
Hi On 14.02.22 09:26, Erik Bijsterbosch wrote: Hi, I want to resolve the transaction error I mentioned before in an earlier post/conversation. This question was cluttered too much with context to get noticed, I guess. So here's a new attempt... After starting a (4.4.0 docker) fuseki server

Re: Re: Configure fuseki-server with geosparql assembler

2022-02-11 Thread Lorenz Buehmann
I'm pretty sure the inference will be computed in-memory, so maybe it's a memory issue? On the other hand, do you really need the inferences computed for the GeoSPARQL schema? If not, it's possible to disable it in the assembler file. On 11.02.22 10:08, Erik Bijsterbosch wrote: Hi Adrian,

Re: Request for adding log4j 2.17.1 to Fuseki Jena

2022-01-03 Thread Lorenz Buehmann
That has already been addressed and will be provided with Jena 4.4.0: https://issues.apache.org/jira/browse/JENA-2233?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel I doubt there will be another minor version 4.3.3, Andy? You could built the Docker image from sources, just

Re: K-fold validation on TDB

2021-12-16 Thread Lorenz Buehmann
There is nothing TDB specific here I think, the same would hold for any database holding the full data or not? Not sure if I understand what you're doing, nor do I understand how you generated the folds on a graph but RDF datasets can manage so called graphs and so does Jena. So my question

Re: Re: Error initializing geosparql

2021-12-11 Thread Lorenz Buehmann
It's on the way with GeoSPARQL 1.1, isn't it? At least there are tickets related to it, e.g. [1] and many functions will be stated to work on 3D as well [2] I personally think we should go beyond GeoSPARQL soon with Jena to provide users with more advanced features. Possibly flag it as

Re: Re: Query - Update

2021-12-10 Thread Lorenz Buehmann
uot;, ?district, "i") } UNION {     ?s heng-schema:parish   ?parish     FILTER ( regex("lewes", ?parish, "i")   } * Use a pproperty path: where {   ?s simplename:name ?name .   ?s heng-schema:county|heng-schema:district|heng-schema:parish ?X .   FILTER ( regex("

Re: Query - Update

2021-12-09 Thread Lorenz Buehmann
Yeah, as expected, putting FILTER into OPTIONAL can help. Just as a comment, the semantics is a bit different between SELECT ?s ?o { ?s a :C . OPTIONAL {     ?s ?o } FILTER(?o = "val") } and SELECT ?s ?o { ?s a :C . OPTIONAL {     ?s ?o     FILTER(?o = "val") } } The first query evaluates

Re: Re: Re: Sparql Query

2021-12-08 Thread Lorenz Buehmann
It does indeed, you just have to set it up initially, see docs: https://jena.apache.org/documentation/query/text-query.html On 08.12.21 11:47, Matt Whitby wrote: Jena has a text index? On Wed, 8 Dec 2021 at 10:07, Lorenz Buehmann < buehm...@informatik.uni-leipzig.de> wrote: Even i

  1   2   3   4   5   >