Re: Automatic data sync between servers

2019-10-22 Thread Andy Seaborne
, no timeout or any error. Any idea what could cause that? Works for me. Are you sure the server processed isn't suspended? It does not run in the background unless you put it in the background. Just suspending it would behave much as you describe. Andy Mikael On 19/10/2019 14:33, Andy

Re: Problem running RDF API tutorial example_1

2019-10-19 Thread Andy Seaborne
On 19/10/2019 12:38, Andy Seaborne wrote: On 19/10/2019 10:07, John Kozma wrote: I'm trying to get through the Jena RDF tutorial_1 <https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial01.java>. I downloaded the example, commented out the p

Re: Problem running RDF API tutorial example_1

2019-10-19 Thread Andy Seaborne
On 19/10/2019 10:07, John Kozma wrote: I'm trying to get through the Jena RDF tutorial_1 . I downloaded the example, commented out the package statement, downloaded Jena and slf4j and

Re: Automatic data sync between servers

2019-10-19 Thread Andy Seaborne
RDF Delta [1] does this for a dataset (as "dataset" is the unit of transactions, it is all related changes). But if it is one graph out of a dataset, then it is more complicated - any update may change both local and replicated graphs together. You could have a special dataset that picks one

Re: [Bug] [Jena 3.13.0 - latest version] ModelFactory/DefaultModel : NoClassDefFoundError

2019-10-11 Thread Andy Seaborne
*java.lang.NoClassDefFoundError: Could not initialize class org.apache.jena.rdf.model.ModelFactory * so it tried to initialize and failed. It is there and found. There are some old looking dependencies in the POM org.eclipse.lyo.oslc4j.core:oslc4j-jena-providerfor example depends on Jena

[ANN] Apache Jena 3.13.1

2019-10-11 Thread Andy Seaborne
The Apache Jena development community is pleased to announce the release of Apache Jena 3.13.1. This is a bug fix release and includes the fix for the Fuseki UI problems. It addresses the following tickets (and no other changes): JENA-1766 Fuseki Web interface endpoint mechanism not working

Re: 回复: Result: failed with message "SyntaxError: JSON.parse: unexpectedcharacter at line 1 column 1 of the JSON data"

2019-10-10 Thread Andy Seaborne
It's a bug in 3.13.0 (only). 3.12.0 should work for you now. 3.13.1 is in the process of being released and fixes this. Beware of javascript caching in the browser when switching server versions. Some browsers are very keen to cache javascript and it may need a browser restart and/or a hard

Re: Result: failed with message "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"

2019-10-09 Thread Andy Seaborne
The list has stripped the image (anti-spam measure) I can see from the first attempt to send that went to the moderators inbox, that it shows trying to upload a file my.ttl. It might be the server is returning an error or even that there isn't a running server. Knowing which Fuseki version

Re: Analyzing SPARQL Queries

2019-10-07 Thread Andy Seaborne
Hi, There is more machinery around the algebra for running visitor patterns over algebra expressions than there is for syntax (ElementVisitor). RecursiveElementVisitor applies an ElementVisitor over an abstract syntax tree. There isn't anything I know of to do the analysis of the pattern.

Re: build problem: jena-arq : example.com : Name or service not known

2019-10-05 Thread Andy Seaborne
example.com is a legal DNS name. It is A record is 93.184.216.34. Were you offline? Using an unusual DNS resolver? Has you ISP intercepted teh DBN request to be "helpful"? Andy On 05/10/2019 09:12, Brian McBride wrote: I am getting test failures when building jena-arq on the master branch

Re: Loading trig file directly with Fuseki

2019-10-03 Thread Andy Seaborne
ontologies or data sets for an application's startup. But I will leave that for the future. I will investigate the general in-memory set and work out something similar to 313 there, if it needs it. ajs6f On Nov 20, 2017, at 12:10 PM, Andy Seaborne wrote: On 20/11/17 14:35, ajs6f wrote: I

Re: [ANN] Apache Jena 3.13.0

2019-09-29 Thread Andy Seaborne
On 29/09/2019 11:58, Laura Morales wrote: JENA-1731: Fuseki endpoint configuration Is updating 3.12 to 3.13 going to break server configuration? No. Long answer: It shouldn't - it's an additional capability. > I wonder if there is a description of the new configuration?

[ANN] Apache Jena 3.13.0

2019-09-29 Thread Andy Seaborne
The Apache Jena development community is pleased to announce the release of Apache Jena 3.13.0. This release includes a built-in SHACL engine for core and SPARQL constraints. https://jena.apache.org/documentation/shacl/ == Major items JENA-1693: Add Aggregate Function MEDIAN and MODE (from

Re: Path expression matching things it should not?

2019-09-26 Thread Andy Seaborne
And the "+" operation is "one or more" which would require :prop to be present. On 9/26/19 9:32 AM, Lorenz Buehmann wrote: * means zero or more if you do zero steps from your start node :foo to reach a node ?x, this ?x is trivially the start node itself On 26.09.19 10:18, Andreas Textor

Re: QueryParseException when creating a NQUADS-based UpdateRequest to add a named model remotely

2019-09-25 Thread Andy Seaborne
A better approach may be to use RDFConnection. It has all the SPARQL operation including "send model" Andy On 25/09/2019 14:09, Andy Seaborne wrote: INSERT DATA does not take quads directly. The form is INSERT DATA { GRAPH { triples } } What *may* work is using Trig

Re: QueryParseException when creating a NQUADS-based UpdateRequest to add a named model remotely

2019-09-25 Thread Andy Seaborne
INSERT DATA does not take quads directly. The form is INSERT DATA { GRAPH { triples } } What *may* work is using Trig to insert. Andy On 25/09/2019 12:06, Mark Hissink Muller wrote: Hi all, I encounter a strange QueryParseException when building my UpdateRequest to add a named model

Re: On Java 11 we sometimes get a java.lang.ExceptionInInitializerError from NodeFactoryExtra for a specific test case we have

2019-09-20 Thread Andy Seaborne
For 3.13.0 it switches to java.time https://github.com/apache/jena/blob/master/jena-base/src/main/java/org/apache/jena/atlas/lib/DateTimeUtils.java JENA-1756 - the behaviour of FastDateParser has changed. I will build local copy from master and see if it fixes my issue. The nightly

Re: Riot warning for Unicode NFC IRIs

2019-09-20 Thread Andy Seaborne
tions, altering even something like that. Something better done earlier in a release cycle. Andy -- Sebastian On 20.09.19 14:48, Andy Seaborne wrote: On 20/09/2019 10:53, Sebastian Hellmann wrote: On 20.09.19 11:23, Andy Seaborne wrote: https://issues.apache.org/jira/browse/JEN

Re: Riot warning for Unicode NFC IRIs

2019-09-20 Thread Andy Seaborne
On 20/09/2019 10:53, Sebastian Hellmann wrote: On 20.09.19 11:23, Andy Seaborne wrote: https://issues.apache.org/jira/browse/JENA-864 Personally, I think we should just turn the warnings off. That would be great. They are harmful in a way that they cause some flooding in stackoverflow

Re: Riot warning for Unicode NFC IRIs

2019-09-20 Thread Andy Seaborne
On 20/09/2019 08:11, Sebastian Hellmann wrote: Hi all, I really don't understand these RIOT warnings: 19/09/20 08:43:00 WARN riot: [line: 229, col: 1 ] Bad IRI: Code: 47/NOT_NFKC in PATH: The IRI is not in Unicode Normal Form KC. 19/09/20 08:43:00

Re: How to update a remote repository from a Java client...?

2019-09-19 Thread Andy Seaborne
On 19/09/2019 15:23, Mark Hissink Muller wrote: String postUrl = "http://testserver:8080/rdf4j-server/repositories/POST_REPO;     UpdateRequest request = UpdateFactory.create(); Normally, UpdateRequest request = UpdateFactory.create(string);     request.add("DROP GRAPH

Re: On Java 11 we sometimes get a java.lang.ExceptionInInitializerError from NodeFactoryExtra for a specific test case we have

2019-09-16 Thread Andy Seaborne
On Mon, 16 Sep 2019 at 11:13, Jerven Bolleman wrote: > Dear Jena devs, > > I sometimes have a strange exception depending on the order of JUnit > tests being executed. > Tests can call JenaSystem.init() to explicitly cause initialization. It may be a workaround for you. Which version of the

Re: Can Jena Full Text search work with other Jena based API like Virtuoso Jena or MarkLogic Jena ?

2019-09-15 Thread Andy Seaborne
n for each triple added. Andy On 13/09/2019 23:04, Andy Seaborne wrote: The maven central artifact com.marklogic:marklogic-jena is 3.0.6 but our code depends on 3.1.0 - what code is it using? On 13/09/2019 01:18, Alex To wrote: I created a small program to try out Lucene with MarkLogic Jena here ht

Re: Can Jena Full Text search work with other Jena based API like Virtuoso Jena or MarkLogic Jena ?

2019-09-13 Thread Andy Seaborne
ic, Stardog, etc. EBI's lodestar still uses Jena 2, but the fork at HHS has been updated to Jena 3. Virtuoso has its own full-text indexing, which is not as flexible in how it indexes as Elastic/Solr/Lucene. It still works. On Thu, Sep 12, 2019 at 7:03 AM Andy Seaborne wrote: Yes, probably

Re: "not in a transaction", but only sometimes

2019-09-13 Thread Andy Seaborne
On 12/09/2019 16:40, Laura Morales wrote: <#dataset> rdf:type tdb:DatasetTDB ; tdb:location "DB" ; tdb:unionDefaultGraph true ; . The dataset can have a ja:context setting and that can be the one for query union graph. Not "?default-graph-uri="

Re: "not in a transaction", but only sometimes

2019-09-12 Thread Andy Seaborne
On 12/09/2019 07:23, Laura Morales wrote: :dataset a ja:RDFDataset ; ja:namedGraph [ ja:graphName "http;//example/name" ; ja:graph :graph1 ] ; ja:namedGraph ... a quick test of this one with ?default-graph-uri=urn:x-arq:UnionGraph on Fuseki 3.12.0 seems to run

Re: "not in a transaction", but only sometimes

2019-09-12 Thread Andy Seaborne
On 12/09/2019 04:34, Laura Morales wrote: set union mode on the dataset I mean you're talking about this <#dataset> rdf:type tdb:DatasetTDB ; tdb:location "DB" ; tdb:unionDefaultGraph true ; . or (3.13.0) the service for default to query all

Re: Can Jena Full Text search work with other Jena based API like Virtuoso Jena or MarkLogic Jena ?

2019-09-12 Thread Andy Seaborne
Yes, probably - but. The Jena text index will work in conjunction with any (Jena) DatasetGraphAPI implementation. 3rd party systems are not tested in the build. The "but" is efficiency. Both those systems have their own built-in text indexing which execute as part of the native query

Re: "not in a transaction", but only sometimes

2019-09-11 Thread Andy Seaborne
On 11/09/2019 16:28, Laura Morales wrote: Presumably this is more than one TDB database. yes, a few 10s What works is when graphs are in the same database. this is not easy for me to switch to. My problem is that I'm pulling multiple sources (RDF) from different places, and I want all

Re: "not in a transaction", but only sometimes

2019-09-11 Thread Andy Seaborne
JENA-1667 and others. Presumably this is more than one TDB database. What works is when graphs are in the same database. Each database is it's own transaction system so working across them is going to be difficult to provide in the most general case. What might be better is define the

Re: Graph status?

2019-09-08 Thread Andy Seaborne
On 08/09/2019 09:16, Marco Neumann wrote: Romain, sure Jena gives you so much more than just the basic graph infrastructure. I wasn't acutely aware of the guava shade mandatory requirement in a minimal viable setup of Jena. Still I would encourage you to engage with Jena community to discuss

Re: Parsing RDFNode.toString()-s (back) to RDFNodes -- or parsing GROUP_CONCAT to RDFLists

2019-09-05 Thread Andy Seaborne
There isn't any better way if the list is being buiolt by teh query. If it is finding a list then ... If your query is local, the app can query to find the head of the list then use the API and work with an RDFList If it's remote, then find use of the use of the list (one query) and do a

Re: JENA-1620 and Query timeout overrides

2019-09-02 Thread Andy Seaborne
On 01/09/2019 10:56, Brian McBride wrote: On 31/08/2019 21:51, Andy Seaborne wrote: [...] From what to what? Are you mixing Fuseki Main (FusekiMainCmd) with Fuseki Full (FusekiCmd) packagings / running a 3.9.0 script with your new build? Yes.  I dropped the newly built fuseki

Re: JENA-1620 and Query timeout overrides

2019-08-31 Thread Andy Seaborne
point override settings on the dataset and both override settings in the server context. ]] Thanks again Brian * I'm not familiar with the process - did I have to do my own build - or was their somewhere I could have pulled a ready built war file? B On 28/08/2019 20:45, Andy Seaborne

Re: Pull javadoc from maven repository?

2019-08-31 Thread Andy Seaborne
On 31/08/2019 15:23, Steve Vestal wrote: I am able to pull the release jars following the instructions on the Jena web pages, using                     org.apache.jena            apache-jena-libs            pom            3.12.0      However, this is not sufficient to turn on

Re: JENA-1620 and Query timeout overrides

2019-08-30 Thread Andy Seaborne
On 30/08/2019 11:57, Élie Roux wrote: Hi all, It is "graceful termination" - the query engine checks whether the timeout has gone off, not have something interrupt a thread. Looking at the code, the Lucene call is returning an array of ScoreDocs in one go so that is going to all happen.

Re: JENA-1620 and Query timeout overrides

2019-08-29 Thread Andy Seaborne
On 29/08/2019 08:53, Élie Roux wrote: Dear All, We actually have a very similar plan: - an endpoint for general queries, with a shortish timeout - an endpoint for admin queries, with a much longer one, using the same dataset The first thing I wanted to know is if and how Fuseki can be asked

Re: JENA-1620 and Query timeout overrides

2019-08-29 Thread Andy Seaborne
e server context. ]] Thanks again Brian * I'm not familiar with the process - did I have to do my own build - or was their somewhere I could have pulled a ready built war file? B On 28/08/2019 20:45, Andy Seaborne wrote: Code: https://github.com/apache/jena/pull/595 Documentation draft (temp l

Re: JENA-1620 and Query timeout overrides

2019-08-28 Thread Andy Seaborne
On 05/08/2019 17:56, Andy Seaborne wrote: Hi Brian, There is work-in-progress to improve configuration : JENA-1731. This includes setting context on endpoint and dataset as well as server.     Andy On 05/08/2019 13:57, Brian McBride wrote: I have just had a problem with query timeout

Re: Validating with shapes

2019-08-16 Thread Andy Seaborne
On 15/08/2019 15:00, Mikael Pesonen wrote: I'm trying to figure out how to validate RDF data that is modified with GUI form and stored on Fuseki. For example SHACL API has command line tool which inputs ttl file and SHACL file. So lets say there is a resource consisting of 10 triplets

Re: StreamRDF.base()

2019-08-15 Thread Andy Seaborne
On 15/08/2019 13:02, Claude Warren wrote: Learn something new every day... On Wed, Aug 14, 2019 at 5:44 PM Andy Seaborne wrote: (and it is technically wrong to have a # in the base) so as a base "http://example.com/myfile.txt#; is incorrect but " http://example.com/

Re: StreamRDF.base()

2019-08-14 Thread Andy Seaborne
proper ReaderRIOT yet, just doing some conversion to RDF. On Wed, Aug 14, 2019 at 12:13 PM Andy Seaborne wrote: StreamRDF is an interface called by parsers (and other things) based on what it sees. If in, say Turtle, teh pasrer sees a "BASE" then base(...) is called. StreamRDF (it i

Re: StreamRDF.base()

2019-08-14 Thread Andy Seaborne
at 12:13 PM Andy Seaborne wrote: StreamRDF is an interface called by parsers (and other things) based on what it sees. If in, say Turtle, teh pasrer sees a "BASE" then base(...) is called. StreamRDF (it is an interface) does not do anything - its a stream of incoming RDF for the impl

Re: StreamRDF.base()

2019-08-14 Thread Andy Seaborne
StreamRDF is an interface called by parsers (and other things) based on what it sees. If in, say Turtle, teh pasrer sees a "BASE" then base(...) is called. StreamRDF (it is an interface) does not do anything - its a stream of incoming RDF for the implementation to deal with.

Re: Any way to enforce constraints at assertion-time?

2019-08-13 Thread Andy Seaborne
On 13/08/2019 06:31, Lorenz Buehmann wrote: The rules in Jena are not meant to be constraints. there are constraint language for RDF like SHACL, SHEX - there is(was?) as SHACL API from TopQuadrant [1] but even better, Andy has implemented something in that direction quite recently [2]. I'm

Re: How to parse huge RDF data in a tar.gz file.

2019-08-07 Thread Andy Seaborne
m.java:271) at ... ( where my code calls tarInput.getNextTarEntry() ) Regards, Yasunori 2019年8月7日(水) 18:04 Andy Seaborne : Yasunori, It should be possible to pass the InputStream for the tar entry contents directly to the RDFParserBuilder.source, no need to convert to a string first. IIRC TarArchiveI

Re: Sensible size limit for SPARQL update payload to Fuseki2?

2019-08-07 Thread Andy Seaborne
Pierre, RDFLib/SPARQLWrapper is using an HTML form upload. The scalable way is to POST with "Content-type: application/sparql-update" and the INSERT in the body, then it will stream - directly reading the update from the HTTP input stream with no HTML Form (Request.extractFormParameters) on

Re: How to parse huge RDF data in a tar.gz file.

2019-08-07 Thread Andy Seaborne
Yasunori, It should be possible to pass the InputStream for the tar entry contents directly to the RDFParserBuilder.source, no need to convert to a string first. IIRC TarArchiveInputStream is a bit weird - it signals "end of file" at the end of the tar archive entry, the the app moves to

Re: JENA-1620 and Query timeout overrides

2019-08-05 Thread Andy Seaborne
Hi Brian, There is work-in-progress to improve configuration : JENA-1731. This includes setting context on endpoint and dataset as well as server. Andy On 05/08/2019 13:57, Brian McBride wrote: I have just had a problem with query timeout overrides when upgrading to Fuseki 3.12.0.  I

Re: In Jena's TDB, with lucene, is it using text:query instead of direct match again a text faster?

2019-07-24 Thread Andy Seaborne
The queries don't do the same thing. Lucene queries aren't exact match. If you are comparing exact match against exact match, for a database that has warmed up, the triple pattern lookup is probably faster. If the query is only doing it once, then it would be hard to time the difference.

Re: About fuseki2 load performance by java API

2019-07-21 Thread Andy Seaborne
On 19/07/2019 08:09, Laura Morales wrote: tdb2.tdbloader --loader=parallel but it still becomes random IO (moves disk heads) I haven't tried it extensively on an HDD - I'd be interested in hearing what happens. oh nice! I completely missed it. I've tried it with a 67GB .nt file from

Re: OutOfMemoryError when converting a large TTL to a JSON-LD

2019-07-20 Thread Andy Seaborne
The JSON-LD writer needs the whole graph in-memory. The Turtle parse is streaming but the output needs collecting into a graph in-memory to give to the JSON-LD writer. That needs RAM, as does the processing JSON-LD performs in order to write. Turtle to N-Triples is streaming. at

Re: named graph in CONSTRUCT

2019-07-20 Thread Andy Seaborne
On 20/07/2019 21:18, Andy Seaborne wrote: Hi olivier, The documentation is at: http://jena.staging.apache.org/documentation/query/construct-quad.html Actually: https://jena.apache.org/documentation/query/construct-quad.html (browser autocomplete! the other link is the staging area

Re: named graph in CONSTRUCT

2019-07-20 Thread Andy Seaborne
Hi olivier, The documentation is at: http://jena.staging.apache.org/documentation/query/construct-quad.html This is an extension - put the query in a file with extension ".arq", or set the syntax to Syntax.syntaxARQ. The default for .rq and the API is SPARQL 1.1 The default for Fuseki is

Re: About fuseki2 load performance by java API

2019-07-18 Thread Andy Seaborne
-server –tdb2 –loc=./tdb2dataset –port -update /fuseki2 Thank you very much! Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: Andy Seaborne Sent: Thursday, July 18, 2019 6:41:56 PM To: users@jena.apache.org Subje

Re: About fuseki2 load performance by java API

2019-07-18 Thread Andy Seaborne
m/fwlink/?LinkId=550986> for Windows 10 ____ From: Andy Seaborne Sent: Thursday, July 18, 2019 6:41:56 PM To: users@jena.apache.org Subject: Re: About fuseki2 load performance by java API That's quite slow. I get maybe 50-70K triples for a 100m load via the F

Re: TDBTransactionException: Not in a transaction

2019-07-18 Thread Andy Seaborne
that uses our custom permissions Evaluator - the Secured Model contains the union of the two named graphs. - configurable via an fuseki assembler .TTL file Any idea how to achieve this without bumping into JENA-1667? Regards, Barry -Original Message- From: Andy Seaborne Sent: donderdag 11

Re: About fuseki2 load performance by java API

2019-07-18 Thread Andy Seaborne
That's quite slow. I get maybe 50-70K triples for a 100m load via the Fuseki UI. The fastest way is to use the bulk loader directly to setup the database, then add it to Fuseki. The hardware of the server makes a big difference. What's the server setup? Disk/SSD? Local or remote storage?

Re: InfModels in Dataset on Fuseki.

2019-07-15 Thread Andy Seaborne
Hi Claude, On 13/07/2019 22:26, Claude Warren wrote: Greetings, I know that Fuseki serves datasets. I know that the RDFConnecton will use Fuseki as its storage. I know that the RDFConnection will create named graphs if they are in the dataset in the connection.loadDataset( dataset ) call. I

Re: issue installing jena 3 in windows 8

2019-07-15 Thread Andy Seaborne
This is asked as JENA-1730 about the same time. (The screenshot does not have details of the error building Jena from source. It is probably an environmental issue. (Possibly because the tests on Windows use a lot of temporary file space but it could be other factors). You don't need to

Re: TDBTransactionException: Not in a transaction

2019-07-11 Thread Andy Seaborne
, Andy Seaborne wrote: Barry - excellent.  I've got it reproduced on my system now. Thanks Andy On 09/07/2019 09:57, Nouwt, B. (Barry) wrote: Hi Andy/rest, I've created an Java example in which the Exception occurs in Jena version 3.12.0. It uses Maven for dependency resolution

Re: TDBTransactionException: Not in a transaction

2019-07-10 Thread Andy Seaborne
when you run the Java class JenaExample. See: https://github.com/barrynl/jena-example Regards, Barry -Original Message- From: Andy Seaborne Sent: maandag 8 juli 2019 16:53 To: users@jena.apache.org Subject: Re: TDBTransactionException: Not in a transaction Some things have improved

Re: TDBTransactionException: Not in a transaction

2019-07-08 Thread Andy Seaborne
Some things have improved since 3.9.0. Barry - can you turn this into a minimal, free standing example? It's not manifesting in the same way as JENA-1667. Thanks Andy On 08/07/2019 15:20, Nouwt, B. (Barry) wrote: Hi, thanks for the replies! @Lorenz: It would indeed be better to

Re: Debugging corrupted TDB?

2019-07-05 Thread Andy Seaborne
Matt, I see in your original message: >> com.hp.hpl.jena.tdb That is quite an old version of TDB (which is by the way?) And it may be sufficiently old if t did not check if two copies ran at once - nowadays it checks. Andy On 05/07/2019 19:36, Matthew Holt wrote: Apologies for the lack

Re: XML vs RDF namespaces

2019-07-05 Thread Andy Seaborne
tility/option that would insert either '#' or '/' on RDF-XML namespaces that end with an valid XMLName character. But then the name is different across the systems. So I suppose that really is a bad idea. Yes! Unless you can point to spec text. Thanks for your time, Claude On Fri, Jul 5, 2

Re: XML vs RDF namespaces

2019-07-05 Thread Andy Seaborne
On 05/07/2019 08:20, Martynas Jusevičius wrote: When XML parser parses the document it internally adds a slash '/' between the namespace and the local name. Are you sure that is the case? Sounds weird and likely non-conformant. It's possibly because one of the processors process has also

Re: Jena Exception on SPARQL Query

2019-07-04 Thread Andy Seaborne
Hi Shalki, Wow. That's overflowing the in-memory hash tables for the results. Because it's "CONSTRUCT", it is building a model of results (removes duplicates) in-memory. I think it will have problems writing in Turtle as well because it will be the "pretty" form which is not for large

Re: ERROR Impossibly large object

2019-07-04 Thread Andy Seaborne
>>> upgrade from Jena 3.5 to 3.12 There have been problems in the past - long fixed. The database gets silently broken when running the old version and the fault remains in the database. Upgrade does not fix it. Andy On 04/07/2019 11:35, Mikael Pesonen wrote: Thanks. What does the

Re: RDFDataset dump inferred triples only

2019-07-02 Thread Andy Seaborne
Somehow subtract the base triples from the complete data. If there are no bnodes, get the base and complete to a file and use sort(1) and comm(1). If there are bnodes, some (slow!) query with a GRAPH/FILTER (NOT) EXISTS might do it. Andy On 02/07/2019 11:12, Dave Reynolds wrote: On

Re: ERROR Impossibly large object

2019-07-02 Thread Andy Seaborne
On 02/07/2019 13:01, Mikael Pesonen wrote: weird #011 Which is a tab - octal 011 is decimal 9.

Re: UUID vs compact id

2019-07-02 Thread Andy Seaborne
I doubt one URI design vs another where it will make any observable difference. Andy On 01/07/2019 18:50, Siddhesh Rane wrote: You could save the UUID as a 128 bit number in the database. Conversion between alphanumeric and byte encoded UUIDs can be done on the fly. This would be the most

Re: JENA Loader Benchmarks

2019-06-23 Thread Andy Seaborne
come at a very high estimated price point. which dataset do you use to run the load test above? It was a synthetic one to mimic up some work-related data. Andy On Sat, Jun 22, 2019 at 11:47 PM Andy Seaborne wrote: On 20/06/2019 16:01, Marco Neumann wrote: quick update here on loader

Re: JENA Loader Benchmarks

2019-06-22 Thread Andy Seaborne
n and big memory is the way to go with Jena tdbloaders. On Fri, Jun 14, 2019 at 10:53 PM Andy Seaborne wrote: These messages are logged (to logger "org.apache.jena.tdb2.loader") - do you have log4j.proprties in the current working directory? Do you get any output? INFO Lo

Re: Command-line tools and JAVA API

2019-06-19 Thread Andy Seaborne
bler file without working well. Thanks! Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: Andy Seaborne Sent: Tuesday, June 18, 2019 6:34:10 PM To: users@jena.apache.org Subject: Re: Command-line tools and JAVA API O

Re: JENA Loader Benchmarks

2019-06-18 Thread Andy Seaborne
nd energy, and executing a steady state still requires backing. I currently think RocksDB is possible choice. Initial experiments showed it works but needs tuning work. The new storage architecture (jena-dboe-storage) would make it event easier to build. Andy On Fri, Jun 14, 2019 at 8:03 PM Andy

Re: Command-line tools and JAVA API

2019-06-18 Thread Andy Seaborne
On 18/06/2019 10:36, Scarlet Remilia wrote: Hello everyone, I bulk load some RDF files into a TDB2 in my Java code, like, Runtime.getRuntime().exec(“tdb2.tdbloader --loc=dataset --loader=parallel a.rdf b.rdf c.rdf”); But when I connect to the dataset by java API, like Dataset dbdataset =

Re: INSERT if not exists

2019-06-17 Thread Andy Seaborne
On 16/06/2019 21:01, Laura Morales wrote: I would like to add a new node if and only if another node with the same properties does not exists. Something like this: INSERT { ex:item-X a ex:Item; ex:serial "XYZ" . } if and only if there is not already

Re: JENA Loader Benchmarks

2019-06-14 Thread Andy Seaborne
t there. currently I have no info display during load with tdb2.tdbloader . if -v is specified I get some extra info but no load info. On Fri, Jun 14, 2019 at 8:03 PM Andy Seaborne wrote: On 14/06/2019 18:13, Marco Neumann wrote: I am collecting jena loader benchmarks. if you have results pleas

Re: JENA Loader Benchmarks

2019-06-14 Thread Andy Seaborne
On 14/06/2019 18:13, Marco Neumann wrote: I am collecting jena loader benchmarks. if you have results please post them directly. http://www.lotico.com/index.php/JENA_Loader_Benchmarks tdb2.tdbloader has variations controlled by --loader. --loader= Loader to use: 'basic', 'phased'

Re: JENA Loader Benchmarks

2019-06-14 Thread Andy Seaborne
On 14/06/2019 18:13, Marco Neumann wrote: I am collecting jena loader benchmarks. if you have results please post them directly. http://www.lotico.com/index.php/JENA_Loader_Benchmarks On a linux machine I am using "time" to collect data. Is there a flag on tdb2.tdbloader to report time and

Re: Fuseki union of two TDB(2) datasets

2019-06-13 Thread Andy Seaborne
On 13/06/2019 12:14, Laura Morales wrote: JENA-1667 I think my problem is exactly the same one described by Ashley Sommer in JENA-1663. See the comment https://issues.apache.org/jira/browse/JENA-1663#comment-16764175

Re: java.lang.NullPointerException

2019-06-13 Thread Andy Seaborne
uot; ; # SPARQL Graph store protocol (read and write)      fuseki:dataset   :my_dataset; #:text_dataset ; . On 12/06/2019 17:02, Andy Seaborne wrote: Does it work if the fuseki:dataset connects to the dataseet without text index :my_dataset? On 12/06/2019 13:00, Mikael Pesonen wr

Re: Fuseki union of two TDB(2) datasets

2019-06-13 Thread Andy Seaborne
JENA-1667 On 13/06/2019 04:42, Laura Morales wrote: PS: this only works with TDB1 right? Any way to make it work with TDB2? No. Works for anything and mixtures: Change the tdb:GraphTDB and tdb:DatasetTDB to tdb2:GraphTDB2 and tdb2:DatasetTDB2 TDB1 works, but with TDB2 all I get is a

Re: AW: Reading model from file URL

2019-06-12 Thread Andy Seaborne
maven.html Andy The output of the last command is the message I sent in my last mail (i.e. "unknown-source: {W136} Relative URIs are not permitted in RDF: specifically "). Best regards, Dietmar ____ Von: Andy Seaborne [a...@apache.org] Gesendet: Dienstag,

Re: Fuseki union of two TDB(2) datasets

2019-06-12 Thread Andy Seaborne
On 12/06/2019 20:07, Laura Morales wrote: The reason why I would like to be able to do this, instead of merging one dataset into another, is simply because the two datasets come from different origins. With an overlap of named graphs? Potentially yes, but for my particular case I can

Re: Fuseki union of two TDB(2) datasets

2019-06-12 Thread Andy Seaborne
The reason why I would like to be able to do this, instead of merging one dataset into another, is simply because the two datasets come from different origins. With an overlap of named graphs? On 12/06/2019 15:31, Laura Morales wrote: From the Java side, there is UnionDatasetGraph,

Re: java.lang.NullPointerException

2019-06-12 Thread Andy Seaborne
collection of public RDF schemas. On 12/06/2019 14:05, Andy Seaborne wrote: The exception is the query timeout counter. That worked for me when I tested the previous question. The setup is complex. Do you have complete, minimal example on a plain database? Or does that work always?     Andy

Re: Creating plain numeric literals using jena

2019-06-12 Thread Andy Seaborne
The parser (Turtle, SPARQL) does the magic (not that is very magic) The turtle parse gets a token INTEGER and it calls NodeFactory.createLiteral(lexical, XSDDatatype.XSDinteger) ; All literals are typed in RDF 1.1 "abc" is "abc"^^xsd:string 2 is "2"^^xsd:integer Once out the parser, it is a

Re: Fuseki union of two TDB(2) datasets

2019-06-12 Thread Andy Seaborne
What's the use case here? You can have a general dataset which has a default graph being the union of two graphs, each from a TDB1/TSDB2 dataset. But maybe there is a better way for the use case. Andy On 12/06/2019 07:25, Laura Morales wrote: Can I configure Fuseki to use the union of

Re: java.lang.NullPointerException

2019-06-12 Thread Andy Seaborne
The exception is the query timeout counter. That worked for me when I tested the previous question. The setup is complex. Do you have complete, minimal example on a plain database? Or does that work always? Andy On 11/06/2019 14:34, Mikael Pesonen wrote: Hi, following query causes

Re: Reading model from file URL

2019-06-11 Thread Andy Seaborne
Dietmar, Works for me (no log message). How as the project setup? With maven to pull in the Jena dependencies? Or is the Jena libraries not being used directly? Andy On 11/06/2019 14:03, dietmar.lipp...@uksh.de wrote: Hello, when I read an OntModel from a file URL I get the

Re: Making dataset on jena-fuseki available via the web server to non localhost visitors.

2019-06-11 Thread Andy Seaborne
The admin functions, by default, only respond to localhost. This is controlled by shiro.ini. On 11/06/2019 16:09, ajs6f wrote: Do you mean you see Fuseki but it has no data in it or that you see nothing? ajs6f On Jun 11, 2019, at 8:54 AM, Allan Kamau wrote: I have deployed fuseki by

Re: Loading RDF/XML data to Fuseki using curl

2019-06-11 Thread Andy Seaborne
On 11/06/2019 10:28, Allan Kamau wrote: I am new to jena-fuseki and I am struggling to load data from several RDF/XML files to a single graph over http using curl. Suppose my server is running at "localhost:8080/fuseki" and I have configured a dataset called "ABC", and I have an RDF/XML file

Re: Query timeout

2019-06-10 Thread Andy Seaborne
How are you testing it? https://github.com/apache/jena/blob/master/jena-fuseki2/examples/service-tdb1-mem.ttl times out as expected for me. s-query --service http://localhost:3030/MEM 'PREFIX afn: ASK{ BIND (afn:wait(2000) AS ?X ) }' Andy

Re: Batching federated calls using VALUES block

2019-06-08 Thread Andy Seaborne
a delight extending your work. Thank you! Looking forward to the PR, Andy Dave Griffith Principal Engineer data.world On Wed, May 1, 2019 at 4:34 AM Andy Seaborne wrote: Dave, By changing the order of parts of the query, the number of SERVICE calls can change. Sometimes it is better to

Re: Jena Model is serializable in Java?

2019-06-08 Thread Andy Seaborne
and a lot of CPU to make the machine unusable for anything else. It is quite hardware dependent. Andy Thank you very much! Jason Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: Andy Seaborne Sent: Thursday

Re: Configuring a TDB2 dataset with RDFS reasoning in Fuseki

2019-06-07 Thread Andy Seaborne
a JIRA here with the steps: https://issues.apache.org/jira/browse/JENA-1719 Please let me know if you see something I'm doing wrong in the sample config or if you need more info. Thanks! - Mike On Thu, Jun 6, 2019 at 3:51 AM Andy Seaborne wrote: Mike, This sounds related to JENA-1492

Re: Configuring a TDB2 dataset with RDFS reasoning in Fuseki

2019-06-06 Thread Andy Seaborne
Mike, This sounds related to JENA-1492 (but not exactly the same) Which version are you using? Have you tried using ja:schema to keep the ontology separate? http://jena.apache.org/documentation/assembler/assembler-howto to configure the reasoner factory? """ Reasoner's optional ja:schema

Re: Jena Model is serializable in Java?

2019-06-06 Thread Andy Seaborne
Wed, Jun 5, 2019 at 4:40 PM Andy Seaborne wrote: Hi Jason, Models aren't serializable, nor are Graphs (the more system oriented view of RDF) through Triples, Quads and Node are serializable. You can send a list of triples. Or use an RDF syntax and write-then-read the RDF. But are the mo

Re: Fuseki OIDC: OpenId authenticated Fuseki access

2019-06-06 Thread Andy Seaborne
: to add a triple becomes DatasetGraph.add(quad) etc. If that works, it will then be the same permissions security as the dataset. Andy Cheers, Reto -Original Message----- From: Andy Seaborne Sent: Thursday, May 30, 2019 4:30 PM To: users@jena.apache.org Subject: Re: Fuseki OI

  1   2   3   4   5   6   7   8   9   10   >