Re: ParseError while parsing entity in TriX

2020-07-13 Thread Andy Seaborne
Small example? Try with and without ? http://www.w3.org/2004/03/trix/trix-1/";> http://example.org/Bob http://example.org/name Bob 10:10:19 ERROR riot:: [line: 6, col: 29] XML error: ParseError at [row,col]:[6,29] Message: Character reference "

Re: Delete query running on server, not through Python

2020-07-10 Thread Andy Seaborne
Probably one old_subj / old_rel / old_obj isn't the right format. e.g if old_obj is a string, is it quoted correctly? Does it contain a " and need escaping? Printout 'query' to check it got assembled as expected. > Encountered "" at line 5, column 86. The parser expected more characters.

Re: SPARQL does not match xsd:hexBinary literals?

2020-07-09 Thread Andy Seaborne
e the hexBinary length makes a difference - the long literal leads to a failed test, the short one does not. Because the short one, 'A', isn't a legal lexical form for the xsd:hexBinary. On Thu, Jul 9, 2020 at 1:21 PM Andy Seaborne wrote: Would it be possible to reduce the comp

Re: load rules file via class loader (as a resource)

2020-07-09 Thread Andy Seaborne
consider this divergence between the Windows and Mac platform undesirable. Not sure if it's the JVM or Apache Jena code that causes this...though. Kind regards, Barry -Original Message- From: Andy Seaborne Sent: maandag 6 juli 2020 17:08 To: users@jena.apache.org Subject: Re: load

Re: SPARQL does not match xsd:hexBinary literals?

2020-07-09 Thread Andy Seaborne
Would it be possible to reduce the complexity? For example - Is it essential to use ParameterizedSparqlString? Use a short lexical form, not one that is 512 characters long. Or is it significant it is 512 characters long? Ditto subject and predicate. Do they need to be as shown? Andy On

Re: 3.15 fuskei can not run

2020-07-09 Thread Andy Seaborne
There is a problem with the Apache Jena Fuseki v3.15.0 combined jar (fuseki-server.jar, not the war file packaging, nor the non-UI jena-fuseki-server form). It is a bug in v 3.15.0 only, not in 3.14.0, and will be fixed in 3.16.0. The link I sent you: https://stackoverflow.com/questions/625068

Re: Blank node URI scheme

2020-07-08 Thread Andy Seaborne
id syntax in principle, but does execute successfully using execSelect(). How should that be interpreted? On Mon, Jul 6, 2020 at 11:28 AM Andy Seaborne wrote: "bound()" is not a function in the strict sense. Another case where variables are necessary is "AS ?var" Long vers

Re: load rules file via class loader (as a resource)

2020-07-07 Thread Andy Seaborne
then again it suggests no base URI. Thanks for the pointers to a custom "cp:" LocationMapper...I'll check it out, although I do consider this divergence between the Windows and Mac platform undesirable. Not sure if it's the JVM or Apache Jena code that causes this...though. Kin

Re: load rules file via class loader (as a resource)

2020-07-06 Thread Andy Seaborne
Hi Barry, Plain is a relative URI so it is going to be resolved in parsing the assembler to file:///.../some.rules before it even looks for the rules. Finding files will include the classpath but it would need a trick to get round the resolution. will ve left alone and the resource looke

Re: Blank node URI scheme

2020-07-06 Thread Andy Seaborne
7;s internal queries to "switch off" graph patterns (as I understand it) in the absence of the ?maxCount binding. It does not seem to have the same effect with VALUES. On Mon, Jul 6, 2020 at 11:28 AM Andy Seaborne wrote: "bound()" is not a function in the strict sense.

Re: Blank node URI scheme

2020-07-06 Thread Andy Seaborne
uery string: SELECT (count(*) AS ?cardinality) WHERE { <http://spinrdf.org/spin#Templates> <http://spinrdf.org/spin#body> ?value FILTER bound(0) } HAVING ( ?cardinality < 0 ) On Sun, Jul 5, 2020 at 10:31 PM Andy Seaborne wrote: On 05/07/20

Re: Blank node URI scheme

2020-07-05 Thread Andy Seaborne
rks nearly always but is affected by variable name scopes - scopes, like subquery, didn't exist when the mechanism was introduced. ParameterizedSparqlString builds which is parsed so you should be able to put in <_:>. Andy On Sun, Jul 5, 2020 at 8:53 PM Andy Seaborne wr

Re: Blank node URI scheme

2020-07-05 Thread Andy Seaborne
<_:label> is a syntax feature, not built into the storage or query execution. model.createResource("_:" + id)); creates a resource with a strange URI (which is actually illegal by RFC 3986/7). There are various ways: 1/ The app can put the bnode into the QSM and injected at execution - it

Re: repeated ThriftConvert WARN visit: Unrecognized:

2020-07-03 Thread Andy Seaborne
On 03/07/2020 17:02, Chris Tomlinson wrote: Hi Andy, On Jul 3, 2020, at 8:41 AM, Andy Seaborne wrote: On 02/07/2020 21:55, Chris Tomlinson wrote: grep -v "ThriftConvert WARN visit: Unrecognized: " catalina.out Is there any signature as to when they occur? Two PUTs o

Re: repeated ThriftConvert WARN visit: Unrecognized:

2020-07-03 Thread Andy Seaborne
tions broken? high load on the server? Time of day? Anything else that looks like a characteristic? Andy On 03/07/2020 00:13, Chris Tomlinson wrote: On Jul 2, 2020, at 17:44, Andy Seaborne wrote:  On 02/07/2020 21:55, Chris Tomlinson wrote: From what I can see, it (WARN) isn'

Re: repeated ThriftConvert WARN visit: Unrecognized:

2020-07-02 Thread Andy Seaborne
On 02/07/2020 21:55, Chris Tomlinson wrote: From what I can see, it (WARN) isn't database related. No it seems to me to be related to getting the payload off the wire. I think you said the same payload had been sent before. ?? ... Even the concurrency looks OK because it locally writes

Re: repeated ThriftConvert WARN visit: Unrecognized:

2020-07-02 Thread Andy Seaborne
On 01/07/2020 17:34, Chris Tomlinson wrote: Hi Andy, On Jul 1, 2020, at 7:59 AM, Andy Seaborne <mailto:a...@apache.org>> wrote: Presumably the client is in java using RDFConnectionFactory.connectFuseki? Yes the clients are in java 1.8 also on Debian 4.9. Fuseki is running o

Re: repeated ThriftConvert WARN visit: Unrecognized:

2020-07-02 Thread Andy Seaborne
07/2020 18:37, Chris Tomlinson wrote: Hi Andy, On Jul 2, 2020, at 10:22 AM, Andy Seaborne wrote: The log done not contain "Unrecognized". Is the "ThriftConvert WARN visit:" message from a different process? Sorry. I should have been much clearer: I have attac

Re: repeated ThriftConvert WARN visit: Unrecognized:

2020-07-02 Thread Andy Seaborne
t even print "Body:" You could run with RDFConnectionRemote - what RDFConnectionFuseki does is switch to thrift encodings, RDFConnectionRemote uses the standards ones. Andy On 01/07/2020 17:34, Chris Tomlinson wrote: Hi Andy, On Jul 1, 2020, at 7:59 AM, Andy Seaborne <mailto:a..

Re: repeated ThriftConvert WARN visit: Unrecognized:

2020-07-01 Thread Andy Seaborne
Presumably the client is in java using RDFConnectionFactory.connectFuseki? Do you have the data from 120611? Could the request have got truncated? The fact later PUTs stall suggest (does not prove) that the earlier operation broken somehow but I'd expect a stacktrace in the log. Overlapping s

Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-07-01 Thread Andy Seaborne
/StageGenerator Andy What weirds me out is that this only happens during debugging. On Wed, Jul 1, 2020 at 9:56 AM Andy Seaborne wrote: On 30/06/2020 23:11, Martynas Jusevičius wrote: Andy, where do you put JenaSystem.init() in unit tests, for example? Using 3.16.0-SNAPSHOT, I&#x

Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-07-01 Thread Andy Seaborne
3.16.0-SNAPSHOT pom On Mon, Jun 29, 2020 at 11:40 PM Martynas Jusevičius wrote: On Mon, Jun 29, 2020 at 6:34 PM Andy Seaborne wrote: On 29/06/2020 14:47, Martynas Jusevičius wrote: Hi, I've got a class that is initialized with Jena's registered languages: And h

Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-06-29 Thread Andy Seaborne
On 29/06/2020 14:47, Martynas Jusevičius wrote: Hi, I've got a class that is initialized with Jena's registered languages: And how/when is that called? I presume you don't use Jena initialization mechanism. https://jena.apache.org/documentation/notes/system-initialization public M

Re: Upload an N-Quads file to Fuseki via curl

2020-06-26 Thread Andy Seaborne
On 26/06/2020 18:28, Andreas Harth wrote: Thanks both of you for the quick reply! On 6/26/20 6:11 PM, Andy Seaborne wrote: It seems to work for me (current version) (not checked with "-n") The authentication with -n works, given that I can create and delete datasets. Which v

Re: Upload an N-Quads file to Fuseki via curl

2020-06-26 Thread Andy Seaborne
It seems to work for me (current version) (not checked with "-n") Which version are you running? 1/ Try the dataset URL : "http://localhost/triplestore/crawl"; 2/ Could you try running the server with "-v"? (Hard in Tomcat) It details the HTTP interaction. The UI used HTML form file upload, not

Re: location-mapping found but not used

2020-06-26 Thread Andy Seaborne
On 25/06/2020 10:51, Martynas Jusevičius wrote: RDFDataMgr is that functionality. So RDFDataMgr does the location-mapping but not the Model caching? Yes. RDFDataMgr itself is a collection of convience functions to call RDFParser builder and if you want detailed control, use that: RDF

Re: OntDocumentManager and LocatorClassLoader

2020-06-26 Thread Andy Seaborne
Ont models so I'm in the dark about the details) Andy Thanks, Chris On Jun 25, 2020, at 8:55 AM, Andy Seaborne wrote: On 25/06/2020 12:55, Chris Tomlinson wrote: Hi Andy, Sorry, I put the version at the bottom. :-) given the other email, I didn't read that far. Sorry

Re: OntDocumentManager and LocatorClassLoader

2020-06-25 Thread Andy Seaborne
ading imports from an indirected aren't going to know it was indirected. Up to 3.15.0 this code had not changed in a long time IIRC so it is a different issue to thread about location-mapping. Andy Thanks, Chris On Jun 25, 2020, at 2:31 AM, Andy Seaborne wrote: Jena version? On 25/

Re: location-mapping found but not used

2020-06-25 Thread Andy Seaborne
On 25/06/2020 09:16, Martynas Jusevičius wrote: Andy, answers inline. On Thu, Jun 25, 2020 at 9:18 AM Andy Seaborne wrote: How are you using it? Indeed, what are you using it for? It's very old and has been replaced by StreamManager - with compatibility (though that only applie

Re: OntDocumentManager and LocatorClassLoader

2020-06-25 Thread Andy Seaborne
Jena version? On 25/06/2020 02:59, Chris Tomlinson wrote: Hi, I've got a problem with OntDocumentManager when fetching resources from an element of the classpath via relative urls like. When I use: OntDocumentManager odm = new OntDocumentManager("A/B/C/ont-policy.rdf") or Ont

Re: Jena ARQ

2020-06-25 Thread Andy Seaborne
On 24/06/2020 22:49, Martynas Jusevičius wrote: I had this problem with 3.15.0. Upgraded to 3.16.0-SNAPSHOT and the problem went away. I think the issue is that Apache Commons Codec 1.14 contains the MurmurHash3 class while for example 1.11 does not. You probably got an older Codec version on

Re: location-mapping found but not used

2020-06-25 Thread Andy Seaborne
e) ; // and then Graph g = cache.getOrFill(filenameOrURI, RDFDataMgr::loadGraph); Andy On Sun, Jun 21, 2020 at 11:00 AM Andy Seaborne wrote: On 19/06/2020 22:49, Martynas Jusevičius wrote: Hi, I'm trying to get location-mapping.n3 used by Jena 3.16.0-SNAPSHOT. Which one? What

Re: TDB2 parallel load on cloud SSD and other observations/questions

2020-06-24 Thread Andy Seaborne
tever those 3 threads are doing. And is three anyway to address it? thanks for your help! best, Isroel On 2020/06/21 21:38:50, Andy Seaborne wrote: > > And when it says "nq" is really quads or all data for the default > >

Re: RDFXML write in plain with properties

2020-06-23 Thread Andy Seaborne
Hi Chavdar, Here's an example of setting properties specific to the RDF/XML writer. https://github.com/apache/jena/blob/master/jena-arq/src-examples/arq/examples/riot/ExRIOT_RDFXML_WriteProperties.java RDFFormat.RDFXML_PLAIN wil get you the unnested form. It's a two step way to define the cont

Re: TDB2 parallel load on cloud SSD and other observations/questions

2020-06-21 Thread Andy Seaborne
for SPO but you seem to have no triples) =3 Phase 2: two threads =2 Phase 3: three threads =3 Andy On 21/06/2020 22:11, Andy Seaborne wrote: Hi there, Thanks for reporting the findings. On 20/06/2020 16:10, Isroel Kogan wrote: Hi, I am also a newcomer to the RDF world - and particula

Re: TDB2 parallel load on cloud SSD and other observations/questions

2020-06-21 Thread Andy Seaborne
Hi there, Thanks for reporting the findings. On 20/06/2020 16:10, Isroel Kogan wrote: Hi, I am also a newcomer to the RDF world - and particularly Jena, which I started using this week. A couple of observations I have made over the last few days exploring different options. Local Machine (

Re: location-mapping found but not used

2020-06-21 Thread Andy Seaborne
On 19/06/2020 22:49, Martynas Jusevičius wrote: Hi, I'm trying to get location-mapping.n3 used by Jena 3.16.0-SNAPSHOT. Which one? What is the build time? Very recent, at a guess. JENA-1917. And are you using all the apache-jena-lib jars? (there are two LocationMappers - RIOT's, and a leg

Re: FUSEKI_BASE is not writable

2020-06-20 Thread Andy Seaborne
se that was the problem. I'm at a loss for what could be the problem. My next step is going to be to try and write my own web app to test writing to that directory. Ken On Fri, Jun 19, 2020 at 2:57 AM Andy Seaborne wrote: Weird. That looks right What's the user for process for the

Re: slow loading in TDB with Lucene

2020-06-19 Thread Andy Seaborne
TextDatasetFactory.create(... closeIndexOnDSGClose = true) - using the GUI Luke in lucene-8.5.2 is useful to inspect Lucene index Jean-Marc Vanel <http://semantic-forms.cc:9112/display?displayuri=http://jmvanel.free.fr/jmv.rdf%23me> +33 (0)6 89 16 29 52 Le sam. 6 juin 2020 à 11:45

Re: FUSEKI_BASE is not writable

2020-06-19 Thread Andy Seaborne
Weird. That looks right What's the user for process for the tomcat process? At least for me, the user/group is "tomcat8" for a default installation of Tomcat and the tomcat java process runs with that user. Andy On 19/06/2020 08:06, Kenneth Keefe wrote: I should have mentioned that I h

Re: Check a plain literal by API

2020-06-18 Thread Andy Seaborne
On 18/06/2020 09:28, Jean-Marc Vanel wrote: Literals can have annoying errors like "Illegal escape sequence value" . These errors create exceptions by Turtle parser. But the API does not check anything: NodeFactory.createLiteral("ggg\\ "\\" is single \ in scala/java. That is illegal in Turtl

Re: How to delete dataset and lucene (write.lock) over API

2020-06-17 Thread Andy Seaborne
typefuseki:Server ; ja:loadClass"org.apache.jena.query.text.TextQuery"; # End triples. . On Fri, Jun 12, 2020 at 10:42 AM Andy Seaborne wrote: Hi Ivan, The "delete database" only works with databases created via the UI, not via a provided configuration file (actually ones lai

Re: Posting query over HTTP on Fuseki (webapp) on Tomcat

2020-06-16 Thread Andy Seaborne
If you just dropped in the fuseki.war, then the Fuseki server is at http://localhost:8080/fuseki/ and the URL is: http://localhost:8080/fuseki/model1/ You can replace the ROOT webapp then no "fuseki/" should work. Andy On 16/06/2020 10:49, Martynas Jusevičius wrote: I think the port is

Re: Wikidata in Apache Jena

2020-06-14 Thread Andy Seaborne
ore details see the comments here: https://issues.apache.org/jira/browse/JENA-1909 Andy Seaborne suggested posting this here. Thanks to everyone for Apache Jena! Cheers Jonas

Re: How to delete dataset and lucene (write.lock) over API

2020-06-12 Thread Andy Seaborne
Hi Ivan, The "delete database" only works with databases created via the UI, not via a provided configuration file (actually ones laid out in the /run/ area if you want to mimic that). When I tried it I got a different error: """ [2] There are 0 configuration files, not one. """ and no stac

Re: Resource requirements and configuration for loading a Wikidata dump

2020-06-10 Thread Andy Seaborne
t query benchmarks. Marco On Tue, Jun 9, 2020 at 10:27 AM Andy Seaborne wrote: It maybe that SSD is the important factor. 1/ From a while ago, on truthy: https://lists.apache.org/thread.html/70dde8e3d99ce3d69de613b5013c3f4c583d96161dec494ece49a412%40%3Cusers.jena.apache.org%3E before tdb2.tdb

Re: Data backup and restore

2020-06-09 Thread Andy Seaborne
s. To be robust, consider locking so connector files can't created or deleted while the back of the database runs. For restore, the plan is to take the application offline to ensure data integrity. Regards, Tim On 6/8/2020 5:50 PM, Andy Seaborne wrote: Hi Tim, Some context for our re

Re: Literal, variable, resource in one object?

2020-06-09 Thread Andy Seaborne
On 09/06/2020 12:23, Steve Vestal wrote: I'm curious if there is an elegant, Jena-style way to do the following (which can be done pragmatically in many ways). I'd like to have a single object that can be any of a literal, a variable, or a resource in a specific model. RDFNode can be either

Re: Resource requirements and configuration for loading a Wikidata dump

2020-06-09 Thread Andy Seaborne
It maybe that SSD is the important factor. 1/ From a while ago, on truthy: https://lists.apache.org/thread.html/70dde8e3d99ce3d69de613b5013c3f4c583d96161dec494ece49a412%40%3Cusers.jena.apache.org%3E before tdb2.tdbloader was a thing. 2/ I did some (not open) testing on a mere 800M and tdb2.tdb

Re: Data backup and restore

2020-06-08 Thread Andy Seaborne
Hi Tim, Some context for our readers: gTDB and xTDB are different ways of using TDB. Last I heard, it was TDB1, not that makes very much difference here. gTDB - one graph stored in the default graph of a TDB database. Many graphs, many databases. xTDB - single, shared TDB database with grap

Re: Resource requirements and configuration for loading a Wikidata dump

2020-06-08 Thread Andy Seaborne
Hi Johannes, On 08/06/2020 16:54, Hoffart, Johannes wrote: Hi, I want to load the full Wikidata dump, available at https://dumps.wikimedia.org/wikidatawiki/entities/latest-all.ttl.bz2 to use in Jena. I tried it using the tdb2.tdbloader with $JVM_ARGS set to -Xmx120G. Initially, the progress

Re: Resource requirements and configuration for loading a Wikidata dump

2020-06-08 Thread Andy Seaborne
Hi Johannes, On 08/06/2020 16:54, Hoffart, Johannes wrote: Hi, I want to load the full Wikidata dump, available at https://dumps.wikimedia.org/wikidatawiki/entities/latest-all.ttl.bz2 to use in Jena. I tried it using the tdb2.tdbloader with $JVM_ARGS set to -Xmx120G. Initially, the progress

Re: [Jena Permissions] Fuseki Main

2020-06-06 Thread Andy Seaborne
call to FusekiFilter! https://gist.github.com/afs/0fc46097c4f8930ac12da9ca69fc42a8 Minimally tested. Andy On 06/06/2020 09:51, Andy Seaborne wrote: Hi Barry, On 05/06/2020 14:44, Nouwt, B. (Barry) wrote: Hi all, thanks for Apache Jena. We are using Fuseki Main (embedded) together w

Re: slow loading in TDB with Lucene

2020-06-06 Thread Andy Seaborne
On 04/06/2020 10:25, Jean-Marc Vanel wrote: Hi It took hours loading a TTL document with text indexing (in TDB 3.15.0). The TTL document is Taxrefld_taxonomy_classes.ttl (size: 2_676_428 triples) in zip taxref12-core.zip

Re: [Jena Permissions] Fuseki Main

2020-06-06 Thread Andy Seaborne
Hi Barry, On 05/06/2020 14:44, Nouwt, B. (Barry) wrote: Hi all, thanks for Apache Jena. We are using Fuseki Main (embedded) together with a password file that configures Jetty's security settings. We are also using Jena Permissions and a custom SecurityEvaluator and we are wondering how to im

Re: one jena-shacl question - was Re: two jena-shacl questions

2020-06-01 Thread Andy Seaborne
onstraint* On May 31, 2020, at 9:40 AM, Andy Seaborne wrote: Do we agree that this is a test case? (one file, data and shapes combined) Only command line tools needed. I agree that the combined data and shapes file exhibits differences in report results, when interchanging bds:Person

Re: one jena-shacl question - was Re: two jena-shacl questions

2020-05-31 Thread Andy Seaborne
tests show that there is an unexpected dependence on a shape name in the JS library and not in the TQ library. I think this is an error and I can open a JIRA issue if appropriate. A consideration I have is that we want to be able to use the fuseki shacl endpoint for some processing and hence need

Re: the problem of jar in the fuseki folder

2020-05-29 Thread Andy Seaborne
The binaries directory has: http://archive.apache.org/dist/jena/binaries/apache-jena-fuseki-3.14.0.zip (not the source code) which has the file "apache-jena-fuseki-3.14.0/fuseki-server.jar" in it.     Andy  27019009  2020-01-05 17:24 apache-jena-fuseki-3.14.0/fuseki-server.jar On 29/05/20

Re: two jena-shacl questions

2020-05-29 Thread Andy Seaborne
On 28/05/2020 20:47, Chris Tomlinson wrote: Hi, I have a two questions regarding behavior I’m seeing w/ jena-shacl in 3.14.0. The data file is P707_nameErrs02.ttl , the shape graph is at ShapeName_01.ttl , and the test code is S

Re: Remote Transactions using RDF Connection

2020-05-28 Thread Andy Seaborne
On 28/05/2020 14:57, Siddharth Trikha wrote: I have TDB databse which we are thinking of hosting on a Apache Fuseki Server. So my application in Java would connect to the Fuseki server and write code to execute SPARQL queries on the TDB database like:

Re: SPIN constraint validation differs on 3.0.1 and 3.16.0-SNAPSHOT

2020-05-26 Thread Andy Seaborne
y for each of them? https://github.com/spinrdf/spinrdf/blob/master/src/main/java/org/spinrdf/constraints/SPINConstraints.java#L604 On Tue, May 26, 2020 at 1:07 PM Andy Seaborne wrote: On 24/05/2020 10:45, Martynas Jusevičius wrote: Andy, but Jena itself supports initial bindings in Que

Re: SPIN constraint validation differs on 3.0.1 and 3.16.0-SNAPSHOT

2020-05-26 Thread Andy Seaborne
The SPARQL overhead would be significant andthe suggestion of VALUE batching is added complexity. I guess I would need to start with a simple test suite. On Sun, May 24, 2020 at 12:08 AM Andy Seaborne wrote: Martynas, Two things: 1:: IIRC it is the queries that back various features that

Re: SPIN constraint validation differs on 3.0.1 and 3.16.0-SNAPSHOT

2020-05-23 Thread Andy Seaborne
to be replaced with syntax rewriting -- SPIN functions or the initial bindings? Do you think it's possible to rewrite SPINRDF in a more SPARQL compliant and less ARQ-dependent way? On Thu, May 21, 2020 at 10:54 AM Andy Seaborne wrote: On 20/05/2020 22:11, Martynas Jusevičius wrote: h

Re: SPIN constraint validation differs on 3.0.1 and 3.16.0-SNAPSHOT

2020-05-21 Thread Andy Seaborne
gt; | | - 3.0.1 | this | TYPE_CLASS | objCount | pr

Re: Fuseki 3.15.0 logging problems

2020-05-21 Thread Andy Seaborne
And thanks for letting us know. Andy On 20/05/2020 22:30, Franco Venturi wrote: The script worked for me. Thanks again Andy, Franco On 5/20/20, 1:00 PM, "Andy Seaborne" wrote: -- > https://issu

Re: SHACL validation of updates with Fuseki

2020-05-20 Thread Andy Seaborne
Hi Ben, Not currently I'm afaird but certainly something to provide. Question to everyone: Would it work if the same SHACL rules applied to all graphs? Or are there cases where different graph have different sets of shapes? It is possible to prune the validation work significantly because ma

Re: Fuseki 3.15.0 logging problems

2020-05-20 Thread Andy Seaborne
> https://issues.apache.org/jira/browse/JENA-1900 Emergency fix: https://gist.github.com/afs/a862c0e71b37ce617cd0a592b60609f1 This bash script downloads jena-fuseki-server-3.15.0.jar which does not have the same problem, extract the "Log4j2Plugins.dat", then replaces the file in fuseki-server

Re: SHACL Endpoint questions

2020-05-20 Thread Andy Seaborne
Just come across this: https://www.w3.org/TR/2016/WD-shacl-20160814/#filterShape that didn't make the final SHACL spec. (can be used on targets and on individual sh:property's). Andy On 19/05/2020 19:08, Andy Seaborne wrote: On 19/05/2020 18:44, Chris Tomlinson wrote

Re: Fuseki 3.15.0 logging problems

2020-05-20 Thread Andy Seaborne
Recorded as https://issues.apache.org/jira/browse/JENA-1900 The extra transformer plugin seems to fix the problem. The problem is that there are several log4j2 "dat" files (in a manner similar to ServiceLoader files loading META-INF/services) and shading without modification will pick one, not

Re: SHACL Endpoint questions

2020-05-19 Thread Andy Seaborne
in question. I’m getting closer to being able to formulate a plausible extension to the shacl endpoint. looking forward to it. Having ?graph=..&node=.. makes sense. Thank you again for your help in the midst of all the 3.15.0 work, Chris On May 16, 2020, at 5:45 AM, Andy Seaborne w

Re: Fuseki 3.15.0 logging problems

2020-05-19 Thread Andy Seaborne
Franco, Thank you very much for the report and investigation. It does indeed impact the shaded jar in the apache-jena-fuseki download. The war file form works. The other one shaded jar - jena-fuseki-server AKA "Fuseki main" also seems to work although I can't see why they are different. (this

Re: SPIN constraint validation differs on 3.0.1 and 3.16.0-SNAPSHOT

2020-05-19 Thread Andy Seaborne
That's a long jump. (and it's a SpinRDF question) >> Are there some obvious suspects here or do I need to create a >> reproducible example? reproducible example (noting that the query has custom functions which have names that suggest they are not proper "functions" (i.e. their return is not

[ANN] Apache Jena 3.15.0

2020-05-19 Thread Andy Seaborne
The Apache Jena development community is pleased to announce the release of Apache Jena 3.15.0. This release includes experimental support for RDF* in Fuseki. https://jena.apache.org/documentation/rdfstar/ == Contributions and notable JIRA For a full list of tickets for this release, see: ht

Re: SHACL Endpoint questions

2020-05-17 Thread Andy Seaborne
Related/minor: https://issues.apache.org/jira/browse/JENA-1897 ?graph= tidied up so that GSP and SHACL validation service have the same behaviour. Andy On 16/05/2020 11:45, Andy Seaborne wrote: On 15/05/2020 00:57, Chris Tomlinson wrote: Hello Andy, I have standalone code using

Re: SHACL Endpoint questions

2020-05-16 Thread Andy Seaborne
rget clause (inc implicit targets) has to be something that would include the node. I’m happy to raise an issue and create a PR if that makes sense. Great. Andy Thank you again very much, Chris On May 14, 2020, at 4:16 PM, Andy Seaborne wrote: On 14/05/2020 19:06, Chris Tomlinso

Re: SHACL Endpoint questions

2020-05-14 Thread Andy Seaborne
report = ShaclValidator.get().validate(shapesGraph, data); on a remote data graph. I hope this clarifies what I’m wanting to accomplish. I probably don’t understand what validate(shapes, graph, node) is supposed to do. Thanks for your patience, Chris On May 14, 2020, at 12:34 PM, Andy

Re: SHACL Endpoint questions

2020-05-14 Thread Andy Seaborne
your help, Chris On May 13, 2020, at 12:16 PM, Andy Seaborne wrote: On 13/05/2020 16:03, Chris Tomlinson wrote: Hi Andy, Thank you for the reply. I can get your example to work as you indicate, but have some questions: 1) I went through the latest SHACL draft <https://w3c.github.io/da

Re: SHACL Endpoint questions

2020-05-13 Thread Andy Seaborne
evant at all". Andy The graph for P707 that is submitted would only have references to P705, with no properties on P705, since that resource is in its own graph. I thought this is pretty much how validate(Shapes Graph, Node) would work, where Graph would be the union da

Re: SHACL Endpoint questions

2020-05-12 Thread Andy Seaborne
Chris, Here's a shape that always executes and tests for an empty data graph. # No violation shacl validate -v -shapes ex-shapes.ttl -data not-empty.ttl # Violation shacl validate -v -shapes ex-shapes.ttl -data empty.nt "sh:targetNode" always executes. With this pattern, the SPARQL query can

Re: SHACL Endpoint questions

2020-05-11 Thread Andy Seaborne
ustration would help ... Anyway sorry to bother , Chris On May 11, 2020, at 10:19 AM, Chris Tomlinson wrote: Hi Andy, On May 10, 2020, at 2:53 PM, Andy Seaborne mailto:a...@apache.org>> wrote: On 08/05/2020 21:34, Chris Tomlinson wrote: 2) In any event, when I call the endpo

Re: check the validity of RDF representation

2020-05-11 Thread Andy Seaborne
On 11/05/2020 15:54, Siddharth Trikha wrote: Hi, My server would get requests containing various RDF representations like Turtle, RDF/XML, N3, etc and getting a "representation" attribute which tells in what format the RDF is. On the server i need to check the validity of RDF representation

Re: SHACL Endpoint questions

2020-05-10 Thread Andy Seaborne
On 08/05/2020 21:34, Chris Tomlinson wrote: Hello, I’ve enabled a shacl endpoint as described in Apache Jena Shacl and have some questions. Our objective in using the endpoint is to be able to validate a given resource graph in the tdb:unionDe

Re: Fwd: benchmark results

2020-05-10 Thread Andy Seaborne
ion) there is an active real thread limit there. Fuseki 2.0 was a lonng time ago but the source is available to you. Andy On Thu, May 7, 2020 at 12:47 PM Andy Seaborne wrote: Hi Hashim, > Jena-TDB (Fuseki) Version 2.0 with a Java heap size set to 16GB, When you reference Jena

Re: Fwd: benchmark results

2020-05-07 Thread Andy Seaborne
Hi Hashim, > Jena-TDB (Fuseki) Version 2.0 with a Java heap size set to 16GB, When you reference Jena or Fuseki the first time, it should be the full form such as "Apache Jena Fuseki"; after that you can use the shorter name "Fuseki" (this is the general conventional way to handle trademarks,

Re: TDB2 store grows unexpectedly

2020-05-02 Thread Andy Seaborne
On 27/04/2020 09:30, Jan Šmucr wrote: Hello Andy, It’s TDB2. See this graph: https://ibb.co/SPScf9V At the end of the day it’s up to twice the size if compacting daily. So as I understand, it’s an implementation detail, right? Yes, that's right. Jan On 2020/04/24 20:27:29,

Re: TDB bug: IRI with accent é and _ is altered in TDB

2020-05-02 Thread Andy Seaborne
%3Cdev.jena.apache.org%3E Jean-Marc Vanel +33 (0)6 89 16 29 52 Réseau social http://semantic-forms.cc:1952/ Le sam. 2 mai 2020 à 11:31, Andy Seaborne a écrit : Same: JENA-1890 On 02/05/2020 08:21, Jean-Marc Vanel wrote: An IRI with an accent é and _ is altered in TDB. Example of such an IRI

Re: Migrate Web Application from TDB to TDB2

2020-05-02 Thread Andy Seaborne
On 01/05/2020 21:08, Bart van Leeuwen wrote: Hi, I'm trying to migrate a web application which uses TDB to use TDB2 From everything I have ready it should be pretty straight forward, but I immediately run into exceptions like: java.nio.channels.OverlappingFileLockException I don't know

Re: TDB bug: IRI with accent é and _ is altered in TDB

2020-05-02 Thread Andy Seaborne
Same: JENA-1890 On 02/05/2020 08:21, Jean-Marc Vanel wrote: An IRI with an accent é and _ is altered in TDB. Example of such an IRI: http://Théodore_Monod The test prints: (triple �Monod>

Re: Lucene integration

2020-05-01 Thread Andy Seaborne
(Sorry for the delay) On 28/04/2020 16:47, Nouwt, B. (Barry) wrote: Hi all, I have a short question about the Lucene Index that can be integrated with an Apache Jena Dataset (https://jena.apache.org/documentation/query/text-query.html#). Would inferred triples (by a forward GenericRuleReasone

Re: Lucene integration

2020-05-01 Thread Andy Seaborne
(Sorry for the delay) On 28/04/2020 16:47, Nouwt, B. (Barry) wrote: Hi all, I have a short question about the Lucene Index that can be integrated with an Apache Jena Dataset (https://jena.apache.org/documentation/query/text-query.html#). Would inferred triples (by a forward GenericRuleReasone

Re: Fuseki inference not triggered with incoming data

2020-04-30 Thread Andy Seaborne
on a UUID and be able to fetch the generation of the data the current read transaction is acting on. Andy Any comments are welcome. Nicola On 2020/04/29 08:08:43, Andy Seaborne wrote: Sascha, (aside) For my general understanding: What level of reasoning are you and your student interested in

Re: Fuseki inference not triggered with incoming data

2020-04-29 Thread Andy Seaborne
e.org Subject: Re: Fuseki inference not triggered with incoming data so Sascha in short try to use one of the Jena build-in reasoners if this is not bound to a pellet specific task. if it is you will have to bring this request up with the pellet maintainers. On Tue, Apr 28, 2020 at 5:20 PM Andy Sea

Re: Fuseki inference not triggered with incoming data

2020-04-28 Thread Andy Seaborne
On 27/04/2020 09:49, Meckler, Sascha wrote: Hi *, I have a question about Fuseki: We have a Fuseki server with one dataset for actual data and one dataset with reasoning based on the default union graph (=data from first dataset). When I insert new data into the first dataset, the inference

Re: regd: geosparql query

2020-04-28 Thread Andy Seaborne
The raw response shows the datatype is there. It is just the display not putting it on the screen. On 27/04/2020 00:10, manoj deshpande wrote: Hello all, Jena Fuseki shows successful storage of values with datatype GEO["wktLiteral"] in screenshot1 , But when using it in sparql endpoint show

Re: DatasetAccessor deprecated

2020-04-28 Thread Andy Seaborne
r.java We have separate clients for each of those, so RDFConnection doesn't help. On Tue, Apr 28, 2020 at 9:58 AM Andy Seaborne wrote: RDFConnection which is a collection of interfaces including 2 for dataset operations (read and write). On 27/04/2020 13:33, Martynas Jusevičius wrote: Hi, Wh

Re: DatasetAccessor deprecated

2020-04-28 Thread Andy Seaborne
RDFConnection which is a collection of interfaces including 2 for dataset operations (read and write). On 27/04/2020 13:33, Martynas Jusevičius wrote: Hi, Why is DatasetAccessor marked as deprecated in the latest Jena? https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/query/

Re: Some malediction in http://dbpedia.org/resource/User_guide => StringIndexOutOfBoundsException in TDB

2020-04-25 Thread Andy Seaborne
org/resource/User_guide> . <http://dbpedia.org/resource/User_guide> <http://www.w3.org/2002/07/owl#sameAs> <http://de.dbpedia.org/resource/Gebrauchsanleitung> . <http://dbpedia.org/resource/User_guide> <http://www.w3.org/2002/07/owl#sameAs> <http://id.dbpedia.org/reso

Re: TDB2 store grows unexpectedly

2020-04-24 Thread Andy Seaborne
Hi Jan, You don't say whether this is TDB1 and TDB2 - they behave differently, both grow though by varying degrees, TDB1 somewhat less quickly than TDB2. What's more with small databases like 40M, TDB2 has a compaction function which, in effect, does the dump/restore but faster and with no

Re: Some malediction in http://dbpedia.org/resource/User_guide => StringIndexOutOfBoundsException in TDB

2020-04-24 Thread Andy Seaborne
On 24/04/2020 15:17, Jean-Marc Vanel wrote: How to reproduce with 3.14.0 bin/*tdbloader* --loc TDB --graph=http://dbpedia.org/resource/User_guide \ --verbose http://dbpedia.org/resource/User_guide Did the log say anything? As this is a remote URL, did it all arrive and parse without war

Re: subproperty as qualifiers

2020-04-22 Thread Andy Seaborne
On 21/04/2020 10:21, Lorenz Buehmann wrote: What is a "qualifier" in RDF? You should look at the Wikidata data model, they are using such a concept which is basically done via some kind of reification on the statements (triples). Their approach is very thorough, you might reuse it for your da

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