Re: Optimization of query plan for pipe operator

2021-02-22 Thread Andy Seaborne
Hi Adam, It would be useful to also know: which version of Jena this is What the storage is - in-memory, or TDB TDB1 or TDB2? If TDB: What the hardware is disk or SSD? What the times actually are and what the count result is? Count is handled specially in TDB and

Re: Dataset::append method?

2021-02-18 Thread Andy Seaborne
On 18/02/2021 18:17, Martynas Jusevičius wrote: I'm wondering why there isn't a dedicated method? Use case? * collecting multiple Datasets into one (merging quads) * having a consistent API What I'm thinking is a method for quads which corresponds to Model::add for triples. In that case

Re: Dataset::append method?

2021-02-18 Thread Andy Seaborne
On 17/02/2021 18:02, Martynas Jusevičius wrote: Hi, how does one append one Dataset to another? I know I can do stuff like d2.getDefaultModel().add(d1.getDefaultModel()); for (String name : d1.listNames()) d2 = d2.addNamedModel(d1.getNamedModel(name)); but that is not very concise,

Re: Restoring Jena Backup over HTTP using file location as parameter

2021-02-17 Thread Andy Seaborne
17/02/2021 11:47, Deepali Singhavi wrote: Hi Andy, How we can write SPARQL query to fetch backup of entire dataset including all graphs and use the result to restore it? Regards, Deepali On Tue, 16 Feb 2021, 19:32 Andy Seaborne, wrote: On 15/02/2021 13:09, Deepali Singhavi wrote: Hi, I am tryi

Re: Support for SPARQL-Star when using http, with/without remote SPARQL*

2021-02-17 Thread Andy Seaborne
On 16/02/2021 19:00, Zak Mc Kracken wrote: Hi Andy, thanks for your reply. I guess this requires a TDB endpoint, or is there any kind of SPARQL* support for HTTP endpoints? HTTP endpoint = Fuseki? Not necessarily, I mean Jena used to query a remote SPARQL endpoint via HTTP, whatever

Re: Understanding the output of Jena TDB Loader

2021-02-16 Thread Andy Seaborne
On 16/02/2021 09:20, Daniel Hernandez wrote: Hi, tdbloader2 may not be the right choice. It is a bit niche but if you have much less RAM than total data it can be better than tdbloader and it is better if there is rotating disk, not SSD. It has been reported to be the right choice for

Re: Restoring Jena Backup over HTTP using file location as parameter

2021-02-16 Thread Andy Seaborne
On 15/02/2021 13:09, Deepali Singhavi wrote: Hi, I am trying to explore Jena Backup and restore options using fuseki administrative http protocol I am running below http command for taking the backup *curl -i -X POST http://localhost:3030/$/backup/backuptest

Re: Support for SPARQL-Star when using http, with/without remote SPARQL*

2021-02-16 Thread Andy Seaborne
On 16/02/2021 12:50, Zak Mc Kracken wrote: Hi all, I'm reading about the Jena support to RDF* and SPARQL* (https://jena.apache.org/documentation/rdfstar/). I guess this requires a TDB endpoint, or is there any kind of SPARQL* support for HTTP endpoints? HTTP endpoint = Fuseki? There

Re: Understanding the output of Jena TDB Loader

2021-02-14 Thread Andy Seaborne
On 13/02/2021 17:17, Daniel Hernandez wrote: Hi, Andy Seaborne writes: How much data are you loading? I am loading a billion triples. Heap is only used for the node table cache and not index work which is out of heap in memory mapped filesmapped by the virtual memory of the OS process

Re: Is Fuseki has clustering or Auto scaling support ?

2021-02-14 Thread Andy Seaborne
2.4 is quite old (May 2016). The current version is 3.17.0. There is a Dockerfile for local customization: see https://jena.apache.org/documentation/fuseki2/fuseki-main#fuseki-docker There is another project "RDF Delta" https://afs.github.io/rdf-delta/ that provides replication and high

Re: Server workload finder

2021-02-13 Thread Andy Seaborne
In Fuseki, there is a metrics endpoint: https://jena.apache.org/documentation/fuseki2/fuseki-server-info.html which includes counts and also JVM information for Prometeus/Grafana. (You can also attach dirtectly to the server e.g. VisualVM). Andy On 13/02/2021 17:24, Hashim Khan wrote:

Re: Merging a massive amount of RDFs

2021-02-13 Thread Andy Seaborne
BTW - the very long time may be the garbage collector on a nearly exhausted heap. Actually, this couples with the way the data is being written. The RDFFormat.RDFXML_PLAIN does not have expensive corner cases. Andy On 12/02/2021 11:45, emri mbiemri wrote: Dear all, Do you know how I

Re: Understanding the output of Jena TDB Loader

2021-02-13 Thread Andy Seaborne
it takes 20 seconds to load 500,000 data. Now it is taking 929 seconds. Why the load speed is degraded? In my experience loading big datasets in Jena I always see that loading start getting slower as much data have been already loaded. Andy Seaborne will explain better, but in general IO and memory

Re: Merging a massive amount of RDFs

2021-02-13 Thread Andy Seaborne
was simply too much object churn. Seems highly likely. The "convenience" of Model has a cost. Andy On Sat, Feb 13, 2021 at 10:43 AM Andy Seaborne wrote: On 12/02/2021 13:43, Alexis Armin Huf wrote: Hi, emri. In my experience with Jena I have observed that Graphs are more e

Re: Merging a massive amount of RDFs

2021-02-13 Thread Andy Seaborne
delFactory.createDefaultModel().read(i.getAbsolutePath()); Model union = ModelFactory.createUnion(k, other_in); return union; }} On Fri, Feb 12, 2021 at 2:12 PM Andy Seaborne wrote: Hi there - the attachment didn't make it through. Could you include the code in the body of the message please? Or put

Re: Find out in data if resources are connected

2021-02-13 Thread Andy Seaborne
Minor but "*" -> "+" On 12/02/2021 20:13, Martynas Jusevičius wrote: SPARQL is based on pattern matching, so path traversal is not its strong point. You might want to try a different language like Gremlin. On Fri, 12 Feb 2021 at 15.05, Mikael Pesonen wrote: Sorry meant of course to find

Re: Merging a massive amount of RDFs

2021-02-12 Thread Andy Seaborne
in = ModelFactory.createDefaultModel().read(k.getAbsolutePath()); Model other_in = ModelFactory.createDefaultModel().read(i.getAbsolutePath()); Model union = ModelFactory.createUnion(k, other_in); return union; }} On Fri, Feb 12, 2021 at 2:12 PM Andy Seaborne wrote: Hi there - the attachment didn'

Re: Merging a massive amount of RDFs

2021-02-12 Thread Andy Seaborne
Hi there - the attachment didn't make it through. Could you include the code in the body of the message please? Or put in somewhere like a gist on github / pastebin /... and send a link. Andy On 12/02/2021 11:45, emri mbiemri wrote: Dear all, Do you know how I can merge some thousands

Re: Next release: Jena4

2021-02-11 Thread Andy Seaborne
Gheorghiu wrote: Hi Andy, would v.4.0.0 drop the support for full text search via ElasticSearch? Regards, Sorin Am 10.02.2021 um 16:13 schrieb Andy Seaborne: The next release of Jena will be version 4.0.0. The development builds are already 4.0.0-SNAPSHOT. * Java11 runtime is required * Remove

Next release: Jena4

2021-02-10 Thread Andy Seaborne
The next release of Jena will be version 4.0.0. The development builds are already 4.0.0-SNAPSHOT. * Java11 runtime is required * Removed jena-sdb, jena-text-es, jena-elephas * Upgrade jena-text to Lucene 8.8.x * IRIs (see below) * The default git branches are 'main' * Remove many deprecated

Re: Loading Model into JENA using java

2021-02-10 Thread Andy Seaborne
the inference. 2/ Use simpler rules. 3/ Run in memory. Thanks, Sushanth On 2021/02/09 09:05:19, Andy Seaborne wrote: This is rather terse. There's an exception during update ... that's about all tells us. Can't see what is being updated or what the update is. If it is exactly the same setup as your

Change to the git default branch

2021-02-09 Thread Andy Seaborne
The default branch for the Jena code and Jena web site git repositories has been changed to 'main'. Andy

Re: Loading Model into JENA using java

2021-02-09 Thread Andy Seaborne
On 2021/02/08 22:52:35, Andy Seaborne wrote: Was there a "cause" exception recorded as well? On 08/02/2021 15:05, Sushanth Vaddaram wrote: [2021-02-08 20:26:03] Log4jLogger WARN ActionErrorException with cause org.apache.jena.fuseki.servlets.ActionErrorExcep

Re: Graph in Memory

2021-02-09 Thread Andy Seaborne
On 08/02/2021 17:03, Sushanth Vaddaram wrote: Hi, We are using the following configuration where both the services dip and dipWithoutInf use the same databases Now when dip_backup service which doesn't use reasoner updates the database, how can we tell the other service "dip" to infer

Re: Loading Model into JENA using java

2021-02-08 Thread Andy Seaborne
Was there a "cause" exception recorded as well? On 08/02/2021 15:05, Sushanth Vaddaram wrote: [2021-02-08 20:26:03] Log4jLogger WARN ActionErrorException with cause org.apache.jena.fuseki.servlets.ActionErrorException: Can't become a write transaction at

Re: Possible to abort inference?

2021-02-08 Thread Andy Seaborne
Hi Andy, Sorry, I don't think there is a way to do this currently. Why is the pump method taking so long? It will make direct graph.find requests (not SPARQL, and so no timeout). Is it doing a lot of these or is it mostly inside the inference engine? If it is a first-call effect then

Re: Loading Model into JENA using java

2021-02-08 Thread Andy Seaborne
On 07/02/2021 14:35, Sushanth Vaddaram wrote: HI , I am loading a model with around 20 million records using JAVA code, I get the following exception Code: RDFConnectionRemoteBuilder builder = getRDFConnectionFusekiBuilderForLoadingInfModel(); try

Re: Loading Model into JENA using java

2021-02-08 Thread Andy Seaborne
401 is "Unauthorized" Looks like authentication is needed. That's done by setting up an HttpClient (Apache HttpClient) and building the RDFConnection with that. RDFConnectionFuseki.create().httpClient(...).httpContext(...) Personally, I'd get the HttpClient/HttpContext tested and working

Re: Please unsubscribe me from both lists.

2021-02-05 Thread Andy Seaborne
On 05/02/2021 03:23, Gowrisankar Paramasivam wrote: Please unsubscribe me from both lists. Thank You Gowrisankar Hi there, Send email to users-unsubscr...@jena.apache.org from the subscribed address. The system will send out a confirmation for you to reply to. More details:

Re: SPARQL* query returning no result

2021-02-03 Thread Andy Seaborne
Hi Steffen, The implementation in Jena at the moment is wrong in that it will not match unless there is the base triple. If you have been following the discussions, the SPARQL* is PG-mode. This will change to be compliant with where the RDF-star work is currently going. If you add

Re: "Multiplicative effect" in certain SPARQL query results

2021-01-30 Thread Andy Seaborne
On 30/01/2021 00:44, Jeffrey Kenneth Tyzzer wrote: I have a query for academic articles that looks like this: --Query 1-- CONSTRUCT{ ?publication a ?citeType ; cite:title ?publicationTitle ;

Re: Jena Performance Issue

2021-01-29 Thread Andy Seaborne
Hi Sushanth, It's hard to say anything definitive because What is the storage? Is this running Fuseki or using Jena embedded within an application? How much data is there? How man query results? On 29/01/2021 12:47, Sushanth Vaddaram wrote: Hi All, Whenever I run JMETER script with 10

Re: Efficient text storage

2021-01-29 Thread Andy Seaborne
On 29/01/2021 17:48, Kimball, Adam wrote: Hi everyone, I’ve got what I think might be a very basic question. Looking forward to learning the answer! I need to store some text in my graph. I would expect that text to be quite repetitive such that many triples will want to point to the

Benchmarks [was: XPath Duration functions in Jena]

2021-01-28 Thread Andy Seaborne
in sparql test benchmarking result. But it reports on 2008. Thanks, -xiaoshan -Original Message----- From: Andy Seaborne [mailto:a...@apache.org] Sent: 2021年1月28日 6:26 To: users@jena.apache.org Subject: Re: XPath Duration functions in Jena Hi Harri, https://www.w3.org/TR/xpath-functio

Re: XPath Duration functions in Jena

2021-01-27 Thread Andy Seaborne
Hi Harri, https://www.w3.org/TR/xpath-functions-3/#func-subtract-dates The difference of two dates is the duration bwteeen the dates as points on the timeline as a xs:dayTimeDuration. ?age is "P14484DT0H0M0.000S"^^xsd:dayTimeDuration not PnnYnnMnnD A duration is a defined, fixed length of

Re: XPath Duration functions in Jena

2021-01-27 Thread Andy Seaborne
Hi Harri, https://www.w3.org/TR/xpath-functions-3/#func-subtract-dates The difference of two dates is the duration bwteeen the dates as points on the timeline as a xs:dayTimeDuration. ?age is "P14484DT0H0M0.000S"^^xsd:dayTimeDuration not PnnYnnMnnD A duration is a defined, fixed length of

Re: [Apache Fuseki] Limits of Apache Fuseki Triple Store

2021-01-25 Thread Andy Seaborne
On 25/01/2021 07:02, Marco Franke wrote: Dear developers, we use the Apache Fuseki Triple Store to store sensory data. Up to now, it works pretty well. The challenge is that we have to import a lot of data in the upcoming month. At the moment, we have stored already ca. 500 000 triples

Re: high availability

2021-01-22 Thread Andy Seaborne
On 22/01/2021 02:47, Fang, Xiao Shan wrote: Dear Piotr, Thank you for reply. Does TDB itself has high availability function? Yes. Same RDF Delta. https://afs.github.io/rdf-delta/ TDB is a database engine so HA means having at least copies on two different machines. Delta adds a shared

Re: java.lang.NoSuchMethodError: 'long[] org.apache.commons.codec.digest.MurmurHash3.hash128x64(byte[])'

2021-01-20 Thread Andy Seaborne
On 20/01/2021 22:55, Johan Kumps wrote: I created a new Test project having only apache-jena-libs as dependency. Then 1.5 is pulled correctly within the dependency tree. So there has to be a dependency that is closer to my application that pulls 1.3 but how to get to this info? Johan, Op wo

Re: RDFXML syntax rules

2021-01-20 Thread Andy Seaborne
As XML? Jena uses the XML parser in the JDK. For the defn of RDF/XML on top of XML parsing: https://www.w3.org/TR/rdf-syntax-grammar/ Andy On 20/01/2021 20:27, Dr. Chavdar Ivanov wrote: Hello, When reading a model (RDFXML) Jena correctly reports errors if there is something not

Re: java.lang.NoSuchMethodError: 'long[] org.apache.commons.codec.digest.MurmurHash3.hash128x64(byte[])'

2021-01-20 Thread Andy Seaborne
There is an example of choosing an older version because it is nearer despite being both older and later in the tree https://maven.apache.org/plugins/maven-dependency-plugin/examples/resolving-conflicts-using-the-dependency-tree.html so mvn dependency:tree -Dverbose -Dincludes=commons-codec

Re: java.lang.NoSuchMethodError: 'long[] org.apache.commons.codec.digest.MurmurHash3.hash128x64(byte[])'

2021-01-20 Thread Andy Seaborne
] [INFO] Total time: 2.972 s [INFO] Finished at: 2021-01-20T22:21:27+01:00 [INFO] Op wo 20 jan. 2021 om 21:50 schreef Andy Seaborne : Hi Johan, https://repo1.maven.org/maven2/org

Re: java.lang.NoSuchMethodError: 'long[] org.apache.commons.codec.digest.MurmurHash3.hash128x64(byte[])'

2021-01-20 Thread Andy Seaborne
Hi Johan, https://repo1.maven.org/maven2/org/apache/jena/jena/3.17.0/jena-3.17.0.pom Jena uses 1.15 Something in your application is causing maven to choose 1.13 It may be a dependency that is "nearer" to your application such as httpcomponents. jena has:

Re: SPARQL Update on a named Graph ?

2021-01-19 Thread Andy Seaborne
On 19/01/2021 10:47, Siddharth Trikha wrote: Hi, I am trying to run a SPARQL Update operation on my TDB database running behind a Fuseki Server. As per the API I found there, I am able to run something like this: String updateQuery = "WITH \n" +

Re: SPARQL query for matching exact phrase in elastic search

2021-01-18 Thread Andy Seaborne
That does not look like the result of a search. https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html Also - I found this: https://stackoverflow.com/questions/22093334/how-to-make-query-string-search-exact-phrase-in-elasticsearch about analysers (se

Re: SPARQL query for matching exact phrase in elastic search

2021-01-18 Thread Andy Seaborne
s expected and data all set up at he ES installation. Andy Regards, Deepali On Fri, Jan 15, 2021 at 11:29 PM Andy Seaborne wrote: On 15/01/2021 12:03, Deepali Singhavi wrote: Hi Andy, This code is in Java and we are working on Dot Net and using Sparql to work with Jena using

Re: SPARQL query for matching exact phrase in elastic search

2021-01-18 Thread Andy Seaborne
d data all set up. Andy Regards, Deepali On Fri, Jan 15, 2021 at 11:29 PM Andy Seaborne wrote: On 15/01/2021 12:03, Deepali Singhavi wrote: Hi Andy, This code is in Java and we are working on Dot Net and using Sparql to work with Jena using DotNetRDF library. I can see

Re: SPARQL query for matching exact phrase in elastic search

2021-01-15 Thread Andy Seaborne
jena.apache.org/text#> select ?subject ?object from WHERE { ?subject *text:query:match_phrase* (star:description "\"rock band Queen\"") . ?subject star:description ?object . } Regards, Deepali On Tue, Jan 12, 2021 at 7:52 PM Andy Seaborne wrote: Check the documentat

Re: Efficient SPARQL query for RDF collections

2021-01-14 Thread Andy Seaborne
ssed in. It does not, however, reverse the order path-bgp. 15 (path ?scIntsec (path* rdf:rest) ??P24) 16 (bgp (triple ??P24 rdf:first ?superClass))) and has 1s of results to handle and table construct is attached later? On 14/01/2021 16.35, Andy Seaborne wrot

Re: Efficient SPARQL query for RDF collections

2021-01-14 Thread Andy Seaborne
On 15/12/2020 20.30, Andy Seaborne wrote: On 15/12/2020 14:33, Mikael Pesonen wrote: Hi, I am querying subclasses of class (here id:365852007) which belongs to RDF collection like this id:1 rdf:type owl:Class ; rdfs:subClassOf [ owl:intersectionOf ( ... id:365852007 ... ) ]  ;    

Re: Efficient SPARQL query for RDF collections

2021-01-14 Thread Andy Seaborne
  ?class rdfs:subClassOf ?scTmp.   ?class skos:prefLabel ?classLabel . } How come they are so different since they do the same thing? On 15/12/2020 20.30, Andy Seaborne wrote: On 15/12/2020 14:33, Mikael Pesonen wrote: Hi, I am querying subclasses of class (here id:365852007) which belongs to RDF

Re: Java 8 or 11?

2021-01-12 Thread Andy Seaborne
ounced that Lyo 5.x will drop JDK 8 support. Thank you for your hard work and this amazing project! -- Cheers, Andrew On 2021-01-11 , at 19:13, Andy Seaborne mailto:a...@apache.org>> wrote: Hi Andrii, On 11/01/2021 12:59, Andrii Berezovskyi wrote: Hello, Just noticed that the discussion

Re: SPARQL query for matching exact phrase in elastic search

2021-01-12 Thread Andy Seaborne
Check the documentation for Lucene and ElasticSearch. jena-text passes the text query straight through. On 12/01/2021 13:32, Deepali Singhavi wrote: Hi, I am trying to match exact phrases using SPARQL but for Lucene it is working but not for Elastic search. Do I need to make any changes to

Re: Java 8 or 11?

2021-01-11 Thread Andy Seaborne
ndy Thank you. -- Best regards, Andrew Berezovskyi On 2021-01-08 , at 23:45, Andy Seaborne mailto:a...@apache.org>> wrote: The Jena build has been switched to produce Java11 bytecode. Nothing else in the codebase has been changed so this is easily reversible at the moment. Using SNAPS

Re: Need to migrate to java 11?

2021-01-11 Thread Andy Seaborne
Hi Florian, Is there something (other than inertia :-) ) stopping you run on a Java11 JVM? Andy On 11/01/2021 12:24, Florian Kleedorfer wrote: Thanks for the pointer, sorry for the noise. Am 2021-01-11 12:55, schrieb Lorenz Buehmann: Hm, did you miss the previous mailing list

Re: Java 8 or 11?

2021-01-08 Thread Andy Seaborne
The Jena build has been switched to produce Java11 bytecode. Nothing else in the codebase has been changed so this is easily reversible at the moment. Using SNAPSHOT artifacts will get you Java11 bytecode. There is currently some problems producing javadoc One problem is [1] on early Java11

Re: Java 8 or 11?

2021-01-07 Thread Andy Seaborne
easier hence sticking to java8 as the default. Dave On 05/01/2021 20:38, Andy Seaborne wrote: Currently, Jena is compiled to run on any JVM from Java8 onwards. Java8 was released March 2014. Java11 (Sept 2018) is LTS (long term support) Java17 (due Sept 2021) is probably going to be LTS

Re: No Improvement In Performance with indexing in Jena Fuseki

2021-01-06 Thread Andy Seaborne
The figures for the no index case (the only ones I can make sense of because the rest are environment-dependent) look strange. ?subject rdfs:label ?object . FILTER contains(?object,"City") is a simple query. A Fuseki request, client and server on the same machine is might be expensive

Re: Java 8 or 11?

2021-01-06 Thread Andy Seaborne
, which apparently is done differently in an osgi bundle.  See, e.g., http://www.descher.at/descher-vu/2019/01/java-11-jaxb-and-osgi/ On 1/6/2021 7:11 AM, Andy Seaborne wrote: On 05/01/2021 22:46, Steve Vestal wrote: Support for JAXB was removed from Java11. For those using that and Jena

Re: No Improvement In Performance with indexing in Jena Fuseki

2021-01-06 Thread Andy Seaborne
: Hi Andy, I am using the same configuration file on my system and they are working for me. Attaching them again. Can you please check it now? Regards, Deepali On Mon, Jan 4, 2021 at 8:12 PM Andy Seaborne <mailto:a...@apache.org>> wrote: Hi - attachments of configuration and da

Re: Java 8 or 11?

2021-01-06 Thread Andy Seaborne
. Is there something apache-jena-osgi needs to do? I have been using Jena with JDK11 for sometime - not OSGi - and haven't had problems or needsed to make adjustments that I recall. I don't understand OSGi enough to see why it makes a difference. Andy On 1/5/2021 2:38 PM, Andy Seaborne wrote

Re: How to index different types of RDF file in one data set

2021-01-05 Thread Andy Seaborne
Hi there, I'm not sure what you wish to do - could you sketch a query you want to ask of the data? In a single jena-text Lucene index, all the values of some predicate are indexed in the same Lucene field. Predicates in RDF globally defined relationships. If you want to treat

Java 8 or 11?

2021-01-05 Thread Andy Seaborne
Currently, Jena is compiled to run on any JVM from Java8 onwards. Java8 was released March 2014. Java11 (Sept 2018) is LTS (long term support) Java17 (due Sept 2021) is probably going to be LTS. Should Jena switch to Java11 going forward? This message is to ask: Are there deployments that do

Re: No Improvement In Performance with indexing in Jena Fuseki

2021-01-04 Thread Andy Seaborne
Hi - attachments of configuration and data didn't make it (to me at least). On 04/01/2021 04:56, Deepali Singhavi wrote: Hi, I am trying to implement indexing for Fuseki using Lucene/ElasticSearch using an assembler configuration file (attaching file for reference) but there is no

Re: [RDF*] How to model multiple uses of relations

2021-01-03 Thread Andy Seaborne
On 03/01/2021 18:04, Laura Morales wrote: In property graphs it's possible to use a relation multiple times, for example Foobar -[president_of {from: 1950, to:1954}]-> Japan Foobar -[president_of {from: 1962, to:1966}]-> Japan where "from" and "to" are to properties of the

Re: TriX default

2021-01-03 Thread Andy Seaborne
On 03/01/2021 11:25, Martynas Jusevičius wrote: I’ll see what RDF4J does. I think ultimately the reasonable solution would be to have as the DTD. Indeed - that's what's implemented! Andy On Sun, 3 Jan 2021 at 11.38, Andy Seaborne wrote: What do other systems do? Everything

Re: TriX default

2021-01-03 Thread Andy Seaborne
What do other systems do? Everything else is secondary given that (W3C|HPLB)-trix is not a working group, or community group, consensus. (IIRC the Jena reader doesn't care about namespaces) Andy On 02/01/2021 17:48, Martynas Jusevičius wrote: Hi, some time ago we had an issue re.

Re: Is it possible to use UTF8 IRIs in Turtle?

2020-12-31 Thread Andy Seaborne
On 31/12/2020 07:50, Laura Morales wrote: Is there a way to write UTF8 IRIs with Turtle without all the %-encoded characters? I mean like this or or ex:"alice smith"? Just write the codepoint you want. Spaces are never legal in IRIs.

Re: Is there a dataset registry in ARQ or Jena?

2020-12-27 Thread Andy Seaborne
the dataset will have shutdown code called because sometimes it won't! Andy On Sun, Dec 27, 2020 at 7:18 PM Andy Seaborne wrote: Hi Dimitris, On 27/12/2020 14:08, Dimitris Spanos wrote: Hi all, I was wondering if there is a registry in ARQ or Jena base that keeps track of all

Re: Is there a dataset registry in ARQ or Jena?

2020-12-27 Thread Andy Seaborne
Hi Dimitris, On 27/12/2020 14:08, Dimitris Spanos wrote: Hi all, I was wondering if there is a registry in ARQ or Jena base that keeps track of all registered datasets? There isn't. Such a registry would be helpful, since I have a custom Dataset/DatasetGraph implementation and I would like

Re: Fuseki OWL Reasoner Configuration

2020-12-27 Thread Andy Seaborne
Hi there, On 27/12/2020 03:23, Gowrisankar Paramasivam wrote: I am new to Apache Jena and Fuseki. I was able to run the docker version of Fuskei (jena-fuseki-docker-3.17.0 distribution) successfully. The docker version is Fuseki/main (no UI, and it does not use the template files) but the

Re: RDFXML writer combining plain and other options

2020-12-27 Thread Andy Seaborne
Hi there, On 26/12/2020 08:03, Dr. Chavdar Ivanov wrote: Hello, I see that some time ago there was a discussion on similar topic here: https://stackoverflow.com/questions/49677174/avoid-nesting-of-element-in-rdf-xml-in-apache-jena What I would like to achieve if to have the RDFXML_PLAIN way

Re: Curious about setProcessImports(false)

2020-12-24 Thread Andy Seaborne
org.apache.jena.sparql.graph.GraphWrapper org.apache.jena.sparql.graph.GraphFactory (there is WrappedGraph in jena-core) openllet (module-jena) depends n jena-arq Or to depend on Jena as a whole: org.apache.jena apache-jena-libs pom X.Y.Z Andy On 12/24/2020 1:37 PM, Andy Seaborne wrote

Re: Curious about setProcessImports(false)

2020-12-24 Thread Andy Seaborne
} @Override public boolean contains(Triple t) { System.out.println("containsT(" + t + ")"); return super.contains(t); } }; Model baseModel = ModelFactory.createModelForGraph(graph); OntModel wrapperModel = ModelFactory.c

Re: FYI, list of openllet Pellet reasoner jars for Jena

2020-12-24 Thread Andy Seaborne
If you use maven (or gradle or ...) on https://repo1.maven.org/maven2/com/github/galigator/openllet/openllet-jena/2.6.5/openllet-jena-2.6.5.pom it should pull all the necessary dependencies automatically and recursively. mvn dependency:build-classpath will turn the maven POM into a classpath.

Re: Curious about setProcessImports(false)

2020-12-24 Thread Andy Seaborne
On 24/12/2020 13:49, Steve Vestal wrote: I am doing my own import closure, and I saw some behaviors that I was a bit curious about.  For my own education, I'd appreciate any observations you might have. I call setProcessImports(false) when creating the document manager, but 1) my OntModel

[INFO] Progress towards RDF*/SPARQL* Community Report

2020-12-22 Thread Andy Seaborne
Olaf has published a progress report: https://www.w3.org/community/rdf-dev/2020/12/22/progress-towards-rdf-star-and-sparql-star-community-report/

Re: Turtle* same term twice

2020-12-22 Thread Andy Seaborne
bol maybe? > > > > > > Sent: Monday, December 21, 2020 at 1:00 PM > > From: "Andy Seaborne" > > To: users@jena.apache.org > > Subject: Re: Turtle* same term twice > > > > > > > > On 21/12/2020 11:34, Laura Mora

Re: Turtle* same term twice

2020-12-21 Thread Andy Seaborne
On 21/12/2020 07:47, Lorenz Buehmann wrote: On 20.12.20 17:19, Andy Seaborne wrote: On 20/12/2020 09:20, Lorenz Buehmann wrote: On 19.12.20 21:14, Laura Morales wrote: Is this << :a :b :c >> :d ; :e . the equivalent of this? << :a :b :c >>

Re: Turtle* same term twice

2020-12-20 Thread Andy Seaborne
On 20/12/2020 09:20, Lorenz Buehmann wrote: On 19.12.20 21:14, Laura Morales wrote: Is this << :a :b :c >> :d ; :e . the equivalent of this? << :a :b :c >> :d . << :a :b :c >> :e . Will Fuseki/Jena store them and treat them the same exact way?

Re: How to increase the memory allocated to fuseki when using fuseki.war

2020-12-19 Thread Andy Seaborne
On 19/12/2020 10:09, Sushanth Vaddaram wrote: Hi , We are using JENA by deploying fuseki.war in apache tomcat. How can increase the memeory allocated to JENA in this case. Will increasing tomcat memory help us in this case? Yes. Heap control is done via Tomcat settings. setenv.sh or

Re: adding an expression to a Query

2020-12-18 Thread Andy Seaborne
On 18/12/2020 18:04, Erich Bremer wrote: How would one create an Expr in order to add an expression like this: SPARQLParser p = SPARQLParser.createParser(Syntax.syntaxSPARQL_11); Query query = new Query(); p.parse(query, "select ?year where {?s :Year ?year; :Fruit ?fruit} group by ?year

Re: sparql problem

2020-12-18 Thread Andy Seaborne
General comment: it is a good idea to validate the data before trying to load the data. If there is an error in the data a long way into the file, the bulk loader has already been domign some wokr so i So if the data can have errors, it is useful to do a check by reading it with "riot" first

Re: getting base model from Model

2020-12-18 Thread Andy Seaborne
On 17/12/2020 14:53, Sushanth Vaddaram wrote: We are trying to backup base model from Jena without inferred data using the RDFConnectionFuseki connection. Is there any way that can be achieved? Code: try (RDFConnectionFuseki conn = (RDFConnectionFuseki)builder.build();

Re: Turtle* multiple terms at once

2020-12-17 Thread Andy Seaborne
RDF* is for an individual triple. It's a localised change to RDF that leaves the rest of RDF alone. If you want groups of triples, named graphs give you a mechanism to do that. You could do it via the data model to share the annotations: << :john :name "John" >> :annotatedBy :X . << :john

Re: Indexing datatypes

2020-12-16 Thread Andy Seaborne
On 16/12/2020 16:23, Laura Morales wrote: > I'm able to configure Fuseki for fulltext search with Lucene, but I don't see any other type of indexes in the documentation. If there is a property that is (ab)used to link multiple datatypes, say for example It's indexed - see the database

Re: Efficient SPARQL query for RDF collections

2020-12-15 Thread Andy Seaborne
On 15/12/2020 14:33, Mikael Pesonen wrote: Hi, I am querying subclasses of class (here id:365852007) which belongs to RDF collection like this id:1 rdf:type owl:Class ;     rdfs:subClassOf [ owl:intersectionOf ( ... id:365852007 ... ) ]  ;     skos:prefLabel "something"@en .

Re: sparql problem

2020-12-15 Thread Andy Seaborne
Hi there, > apache-jena-fuseki-3.5.0 That's quite old - the current version is 3.17.0 Upgrading would be a good idea just in case. Are there any messages in the server log file? It is going to be difficult to pin down an encoding issue (if that is what it is) because by the time we get this

Re: Does Jena support RDF*?

2020-12-14 Thread Andy Seaborne
On 13/12/2020 19:34, Laura Morales wrote: What's your interest in RDF*? ... Another issue for me with property graphs, but I would like to hear your feedback on this, is that properties are indexed globally and it's my understanding that they only accept one data type (eg. Integer). So

Re: Does Jena support RDF*?

2020-12-13 Thread Andy Seaborne
On 13/12/2020 17:05, Laura Morales wrote: I've only recently discovered the existence of RDF* and Turtle*. Looks like they were introduced around 2019. Does Jena have support for these in the current release? https://jena.apache.org/documentation/rdfstar/index.html As RDF* is currently

Re: Update Jena from 3.16 to 3.17 : problem with Jackson, diverging version in another software

2020-12-12 Thread Andy Seaborne
On 11/12/2020 16:26, Jean-Marc Vanel wrote: I use latest Play Framework 2.8.5 with Scala (my project is https://github.com/jmvanel/semantic_forms). I try to upgrade my Jena dependency from 3.16.0 to 3.17.0 . I get this message when running: [error]

Re: SHACL warning about cycle

2020-12-10 Thread Andy Seaborne
On 10/12/2020 13:03, Florian Kleedorfer wrote: Hi, I am not aware of anything in the SHACL specs discouraging cycles in shapes, but the jena SHACL parser warns about it: 10.12.20 13:53:11.460 [main] WARN  SHACL -  Cycle detected : node for this

Re: TDB(1) : get prefixes map ?

2020-12-07 Thread Andy Seaborne
WriterDatasetRIOT in https://jena.apache.org/documentation/io/rdf-output.html#api . Jean-Marc Vanel <http://semantic-forms.cc:9112/display?displayuri=http://jmvanel.free.fr/jmv.rdf%23me> +33 (0)6 89 16 29 52 Andy Le mer. 2 déc. 2020 à 22:31, Andy Seaborne a écrit : On 02/12/2020 17:33, Jea

Re: Jena Performance Issue with Reasoner

2020-12-06 Thread Andy Seaborne
tZero rdfs:subClassOf ja:RDFDataset . <http://jena.apache.org/text#TextDataset> rdfs:subClassOf ja:RDFDataset . <http://jena.apache.org/2016/tdb#GraphTDB> rdfs:subClassOf ja:Model . ja:RDFDatasetOne rdfs:subClassOf ja:RDFDataset . ja:RDFDatasetSink rdfs:subClassOf j

Re: Dynamic FROM models?

2020-12-05 Thread Andy Seaborne
Hi Steve, On 04/12/2020 16:09, Steve Vestal wrote: I'm wondering how to best issue SPARQL queries when the data is structured as follows. I'm seeing some RDF data sets where some of the properties name other RDF models that contain other data.  For example, the OSLC property

Re: Tried to compact a live TDB2 dataset using Lucene engine but failed

2020-12-04 Thread Andy Seaborne
Hi - without a config file it's not tpossible to be definitive. A guess - are you applying compact to the text dataset (which may use TDbB2 for storage)? A text dataset may have various different storages. I think you will need to directly expose the TDB2 dataset and send the "compact"

Re: Jena Performance Issue with Reasoner

2020-12-04 Thread Andy Seaborne
On 04/12/2020 02:52, Sushanth Vaddaram wrote: Thanks Dave. If we go with in-memory dataset, will I be loosing the data between jena restarts? Yes. You can write the data out to a file after computing and reload from that - or write the materialised data to second TDB database and work

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

2020-12-03 Thread Andy Seaborne
On 02/12/2020 10:48, Andy Seaborne wrote: 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 i

Re: 3.17

2020-12-03 Thread Andy Seaborne
On 02/12/2020 19:58, Rob Vesse wrote: Just to confirm and for future reference any Maven release artifacts, for any Apache project, initially get deployed to the Apache instance of Sontatype Nexus hosted at repository.apache.org These then get synced periodically to Maven Central (and I

Re: SHACL demo files

2020-12-02 Thread Andy Seaborne
Th examples show how to use the API. "shapes.ttl" and "data?.ttl" stand for the files you wish to use with the API. Andy On 02/12/2020 19:24, Erich Bremer wrote: For the two examples at: https://github.com/apache/jena/tree/master/jena-shacl/src/main/java/org/apache/jena/shacl/examples

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