Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-07-01 Thread Martynas Jusevičius
Thanks. What jar is missing though? I have apache-jena-libs as a dependency. I can see it includes TDB and TDB2. 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 wro

Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-06-30 Thread Martynas Jusevičius
raintTest { static { JenaSystem.init(); } Or is this unrelated to the JenaSystem.init()? POM: org.apache.jena apache-jena-libs 3.16.0-SNAPSHOT pom On Mon, Jun 29, 2020 at 11:40 PM Martynas Jusevičius wrote: &

Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-06-29 Thread Martynas Jusevičius
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 how/when is that called? > > I presume you don't us

ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-06-29 Thread Martynas Jusevičius
Hi, I've got a class that is initialized with Jena's registered languages: public MediaTypes() { this(RDFLanguages.getRegisteredLanguages(), UTF8_PARAM); } protected MediaTypes(Collection registered, Map parameters) { ... Iterator langIt =

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

2020-06-26 Thread Martynas Jusevičius
Try the —data-binary option. Newlinea get mangled otherwise, as far as I remember. On Fri, 26 Jun 2020 at 17.18, Andreas Harth wrote: > Hi, > > after a lot of tweaking I am able to delete and create RDF datasets in > Fuseki from the command line with curl. > > # delete old dataset > curl -n

Re: location-mapping found but not used

2020-06-25 Thread Martynas Jusevičius
> RDFDataMgr is that functionality. So RDFDataMgr does the location-mapping but not the Model caching?

Re: location-mapping found but not used

2020-06-25 Thread Martynas Jusevičius
On Thu, Jun 25, 2020 at 10:32 AM Andy Seaborne wrote: > > > > 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?

Re: location-mapping found but not used

2020-06-25 Thread Martynas Jusevičius
ttps://github.com/AtomGraph/Core/blob/master/src/main/java/com/atomgraph/core/util/jena/DataManager.java https://github.com/AtomGraph/Web-Client/blob/master/src/main/java/com/atomgraph/client/util/DataManager.java > On 24/06/2020 22:58, Martynas Jusevičius wrote: > > Hi Andy, &g

Re: location-mapping found but not used

2020-06-24 Thread Martynas Jusevičius
mportantly loadModel()? Did they just go away with no replacement? 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. > >

Re: Jena ARQ

2020-06-24 Thread Martynas Jusevičius
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 the classpath which then gets used by Jena. On

Re: location-mapping found but not used

2020-06-23 Thread Martynas Jusevičius
Renaming to location-mapping.ttl helped, thanks. On Sun, 21 Jun 2020 at 11.00, 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? Wh

location-mapping found but not used

2020-06-19 Thread Martynas Jusevičius
Hi, I'm trying to get location-mapping.n3 used by Jena 3.16.0-SNAPSHOT. I placed it in etc/location-mapping.n3 and I can see in the logs it's being read -- but not used afterwards. When http://spinrdf.org/sp# is resolved, Jena thinks it's not mapped and proceeds to read from HTTP. Also it looks

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

2020-06-16 Thread Martynas Jusevičius
I think the port is 3030 by default. On Tue, 16 Jun 2020 at 11.28, Glenn TheMan wrote: > I am running Fuseki (3.14.0) as a webapp on Tomacat on localhost:8080. > The Fusekia interface is accessible on > http://localhost:8080/fuseki/index.html but what port is used for posting > a SPARQL query

Re: Wikidata in Apache Jena

2020-06-14 Thread Martynas Jusevičius
Nice. But what about query/update performance? On Sun, Jun 14, 2020 at 9:26 PM Hans-Juergen Rennau wrote: > > That's impressive!Hans-Jürgen > > Am Sonntag, 14. Juni 2020, 20:59:10 MESZ hat Jonas Sourlier > Folgendes geschrieben: > > Hi all > > I recently loaded a full dump of Wikidata

Re: Resource requirements and configuration for loading a Wikidata dump

2020-06-08 Thread Martynas Jusevičius
Wouldn't it be a good idea to have a page in the Fuseki/TDB2 documentation with benchmark results and/or user-reported loading statistics, including hardware specs? It would also be useful to map such specs to the AWS instance types: https://aws.amazon.com/ec2/instance-types/ On Mon, Jun 8, 2020

Re: SelectBuilder from query string?

2020-06-08 Thread Martynas Jusevičius
No solution to this? Kind of diminishes the utility of having a query builder if it can't parse an existing query. On Tue, May 26, 2020 at 10:40 AM Martynas Jusevičius wrote: > > Hi, > > I have an existing SELECT query string that I want to add VALUES to. > > I found that

Re: Anyone have recipes for ephemeral use of Jena SPARQL + Colab notebooks?

2020-06-04 Thread Martynas Jusevičius
Docker image for Fuseki: https://github.com/AtomGraph/fuseki-docker There is WIP on an official Jena image. On Thu, 4 Jun 2020 at 16.08, John A. Fereira wrote: > Hi Dan, > I am not familiar with Google Colab but I’ve been using Fuseki with VIVO > for a long time and if you can run Jetty in

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

2020-05-26 Thread Martynas Jusevičius
n/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 QueryExecutionFactory? > > https:/

SelectBuilder from query string?

2020-05-26 Thread Martynas Jusevičius
Hi, I have an existing SELECT query string that I want to add VALUES to. I found that I can build VALUES with SelectBuilder like this: sb.addWhereValueVar(Converters.makeVar("this"), instances.toArray()) However, I don't see any method to initialize SelectBuilder from a query string. Is

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

2020-05-24 Thread Martynas Jusevičius
PARQL > > 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: > >>> https://github.com/spinrdf/spinrdf/issues/22 > >&

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

2020-05-22 Thread Martynas Jusevičius
5/2020 22:11, Martynas Jusevičius wrote: > > https://github.com/spinrdf/spinrdf/issues/22 > > > > On Wed, May 20, 2020 at 10:57 PM Martynas Jusevičius > > wrote: > >> > >> Andy, > >> > >> I was able to isolate a standalone example: > >> ht

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

2020-05-20 Thread Martynas Jusevičius
https://github.com/spinrdf/spinrdf/issues/22 On Wed, May 20, 2020 at 10:57 PM Martynas Jusevičius wrote: > > Andy, > > I was able to isolate a standalone example: > https://github.com/namedgraph/spinrdf-test > > With 3.0.1 it succeeds. Change Jena version to 3.16.0-SNAPS

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

2020-05-20 Thread Martynas Jusevičius
PM Martynas Jusevičius wrote: > > Hi, > > I've narrowed down the differences to the counts produced by > spl:objectCount() SPIN function. > > SELECT * > WHERE > { ?this a ?TYPE_CLASS > { BIND(<http://spinrdf.org/spl#objectCount&g

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

2020-05-20 Thread Martynas Jusevičius
t; > 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 a function of their arguments alone and they access the > data graph .. which might be a query). > > I c

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

2020-05-19 Thread Martynas Jusevičius
With 3.0.1, no such internal *violations* are produced. On Tue, May 19, 2020 at 2:03 PM Martynas Jusevičius wrote: > > Hi, > > After upgrading our code as well as SPINRDF from 3.0.1 to > 3.16.0-SNAPSHOT, some constraint violation-related tests are failing. > > With 3.16

SPIN constraint validation differs on 3.0.1 and 3.16.0-SNAPSHOT

2020-05-19 Thread Martynas Jusevičius
Hi, After upgrading our code as well as SPINRDF from 3.0.1 to 3.16.0-SNAPSHOT, some constraint violation-related tests are failing. With 3.16.0-SNAPSHOT, it seems that a bunch of constraint violations are coming from the SPIN vocabulary iself, e.g. "Attribute spin:body : [0,1]" on

Re: Method org/spinrdf/util/DatasetWrappingDatasetGraph.supportsTransactions()Z is abstract

2020-05-18 Thread Martynas Jusevičius
My bad, I guess I still had a mix of Jena versions in my build. Made sure SPINRDF depends on 3.16.0-SNAPSHOT and the problem went away. On Mon, May 18, 2020 at 4:43 PM Martynas Jusevičius wrote: > > Hi, > > now that I'm upgrading our code to Jena 3.16.0-SNAPSHOT,

Method org/spinrdf/util/DatasetWrappingDatasetGraph.supportsTransactions()Z is abstract

2020-05-18 Thread Martynas Jusevičius
Hi, now that I'm upgrading our code to Jena 3.16.0-SNAPSHOT, I have to do it for the SPINRDF dependency as well. It builds fine with 3.16.0-SNAPSHOT, but during the constraint validation I get the following error (which I didn't used to get using 3.0.1): java.lang.AbstractMethodError: Method

Re: Jena transpiled to TypeScript/JavaScript?

2020-05-15 Thread Martynas Jusevičius
://www.saxonica.com/saxon-js/index.xml On Fri, May 15, 2020 at 7:54 PM Adrian Gschwend wrote: > > On 15.05.20 12:39, Martynas Jusevičius wrote: > > Hi > > > RDF JavaScript frameworks are still ~20 years behind Java. So this had > > me thinking for a while -- instead of r

Re: Jena transpiled to TypeScript/JavaScript?

2020-05-15 Thread Martynas Jusevičius
u can check more what is going on with jsonld here: > https://github.com/json-ld > > Best > Silvio > > On 2020/05/15 10:39:07, Martynas Jusevičius wrote: > > Hi, > > > > RDF JavaScript frameworks are still ~20 years behind Java. So this had > > me think

Jena transpiled to TypeScript/JavaScript?

2020-05-15 Thread Martynas Jusevičius
Hi, RDF JavaScript frameworks are still ~20 years behind Java. So this had me thinking for a while -- instead of reinventing the wheel, would it be possible to transpile Jena to TypeScript or JavaScript? ARQ would probably be my number #1 target, but RIOT would also be useful. >From what I've

Re: DatasetAccessor deprecated

2020-04-28 Thread Martynas Jusevičius
operations > >> (read and write). > > extends > RDFDatasetAccessConnection > RDFDatasetConnection > > Andy > > On 28/04/2020 09:11, Martynas Jusevičius wrote: > > I see that I can achieve the same with RDFConnection as with > > DatasetAccessor. &

Re: DatasetAccessor deprecated

2020-04-28 Thread Martynas Jusevičius
(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/DatasetAccessor.html > > > > What is meant to replace it? > > > > Martynas > >

DatasetAccessor deprecated

2020-04-27 Thread Martynas Jusevičius
Hi, Why is DatasetAccessor marked as deprecated in the latest Jena? https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/query/DatasetAccessor.html What is meant to replace it? Martynas

Re: Union different dataset in Fuseki

2020-04-23 Thread Martynas Jusevičius
SELECT ?s ?p ?o WHERE { { ?s ?p ?o } UNION { SERVICE { ?s ?p ?o } } } This validates, you can check here: http://sparql.org/ Should work :) On Thu, Apr 23, 2020 at 6:55 PM Glenn TheMan wrote: > > Well I maybe be a

Re: Union different dataset in Fuseki

2020-04-23 Thread Martynas Jusevičius
I think for querying across two different datasets you need federation? Which is done using SERVICE in SPARQL: https://www.w3.org/TR/sparql11-federated-query/ On Thu, Apr 23, 2020 at 12:09 PM Lorenz Buehmann wrote: > > what do you mean by "merge"? What is the result? A proper RDF dataset? > Then

Re: ResultSetFactory.makeResults() does not recognize ASK result?

2020-04-03 Thread Martynas Jusevičius
type true > > sounds a bit odd, right? > > > [1] > https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/sparql/resultset/SPARQLResult.html > > On 02.04.20 23:32, Martynas Jusevičius wrote: > > Hi, > > > > I'm trying to create a ResultSet fr

Re: ResultSetFactory.makeResults() does not recognize ASK result?

2020-04-02 Thread Martynas Jusevičius
Same with version 3.0.1 as well as 3.15.0-SNAPSHOT. On Thu, Apr 2, 2020 at 11:32 PM Martynas Jusevičius wrote: > > Hi, > > I'm trying to create a ResultSet from a boolean using > ResultSetGraphVocab (as I haven't found a simpler way): > > Model m = ModelFacto

ResultSetFactory.makeResults() does not recognize ASK result?

2020-04-02 Thread Martynas Jusevičius
Hi, I'm trying to create a ResultSet from a boolean using ResultSetGraphVocab (as I haven't found a simpler way): Model m = ModelFactory.createDefaultModel(); m.createResource(). addProperty(RDF.type, ResultSetGraphVocab.ResultSet).

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-27 Thread Martynas Jusevičius
This is getting off-topic, but I want to follow up on a few things. > If the input is 1B triples, it can't go into a default model - straight > to database is preferable even if it can be buffered. What prevents having a MessageBodyReader? > What would be useful is to contribute a JAX-RS module

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-27 Thread Martynas Jusevičius
On Fri, Mar 27, 2020 at 1:17 PM Andy Seaborne wrote: > Jersey is currently using httpclient 4.5.9 - what makes you think it > won't not work? With the latest Jersey - maybe. But Core is currently on Jersey 1.19... I was hoping I could upgrade one dependency at a time, but it looks like I'll

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-27 Thread Martynas Jusevičius
environment. It also > lets user choose how they do connection pooling, max connection limits, > custom SSL setups etc. > > Rob > > On 27/03/2020, 10:46, "Martynas Jusevičius" wrote: > > Andy, > > if I don't exclude Jena's HttpClient, it's going to

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-27 Thread Martynas Jusevičius
HTTP libraries. > > > I have had a go at switching all network interaction to using > java.net.http (Java11-onwards). As Jena currently uses HttPClient v4, > and the v5 interfaces are quite different change was eventually coming > anyway. > > But obv - Java11. > > https:/

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-26 Thread Martynas Jusevičius
Oh right, this is the code I tried - got the exception both ways: Model parsed = ModelFactory.createDefaultModel(); try (StringReader reader = new StringReader(validRDFPost)) { RDFDataMgr.read(parsed, reader, "http://base;, RDFLanguages.RDFPOST); }

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-26 Thread Martynas Jusevičius
/201712.mbox/%3ccae35vmygk-biq1fayp3zooyimikzhvja8dtuged3jayr98u...@mail.gmail.com%3e Not sure how to proceed. On Thu, Mar 26, 2020 at 10:34 PM Andy Seaborne wrote: > > > > On 26/03/2020 18:57, Martynas Jusevičius wrote: > > Need to match SPIN RDF API which is on 3.13.1... >

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-26 Thread Martynas Jusevičius
ot 3.14.0? > Or 3.15.0-SNAPSHOT because of JENA-1838. > > > On 26/03/2020 13:36, Martynas Jusevičius wrote: > > Hi, > > > > I'm working on a long overdue upgrade of Jena. > > > > So far the area where I can see most changes will be needed is the > > i

Re: Fuseki's Cache-Control

2020-03-19 Thread Martynas Jusevičius
to provide age information by retrieving the actual information from whatever source is used to generate the dynamic content: file,database, etc. https://www.w3.org/TR/chips/#gl6 On Thu, Mar 19, 2020 at 2:50 PM Adrian Gschwend wrote: > > On 19.03.20 12:05, Martynas Jusevičius wrote: >

Fuseki's Cache-Control

2020-03-19 Thread Martynas Jusevičius
Hi, why is Fuseki sending these headers by default? Cache-Control: must-revalidate,no-cache,no-store Pragma: no-cache They effectively disable HTTP caching, as I understand. Can they be configured somewhere?

Re: Identify SPARQL query's type

2020-03-18 Thread Martynas Jusevičius
I always wondered why there is no class hierarchy for SPARQL commands, similarly to SP vocabulary [1]. Something like Command Query Describe Construct Select Ask Update ... So that one could check command type doing instanceof Update or instance of Select instead of

Re: Visualising Jena model saved in RDF/XML in the browser

2020-03-09 Thread Martynas Jusevičius
Paul, as I've shown, XSLT is perfectly usable. Admittedly easier on a flat, non-nested output. RDF/XML is significant as a bridge format to the XML stack. Do you have an example of "useful schema-specific information presentations"? Martynas On Mon, Mar 9, 2020 at 3:56 AM Paul Tyson wrote: >

Re: Visualising Jena model saved in RDF/XML in the browser

2020-03-08 Thread Martynas Jusevičius
Hi Diptendu, you can try transforming it to SVG with this XSLT 2.0 stylesheet: https://github.com/AtomGraph/Web-Client/blob/master/src/main/webapp/static/com/atomgraph/client/xsl/converters/RDFXML2SVG.xsl You can execute it with this Saxon Docker image: https://hub.docker.com/r/atomgraph/saxon

Re: JSONLD and base URL

2020-03-04 Thread Martynas Jusevičius
URI.resolve() will not assume anything. Base URI normally ends with a /. Don’t know if this is the best reference, but close: https://tools.ietf.org/html/rfc3986#section-6.2.3 You need to check the URI RFC and its resolution algorithm. On Wed, 4 Mar 2020 at 16.57, Erich Bremer wrote: > This

Re: Introduce Model.createTypedResource ?

2020-03-03 Thread Martynas Jusevičius
Maybe Resource.inModel() is what you need? https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/rdf/model/Resource.html#inModel-org.apache.jena.rdf.model.Model- On Tue, Mar 3, 2020 at 12:55 PM Martin G. Skjæveland wrote: > > Hi, > > ModelCom has the following createResource

Re: Problem with sparql bind

2020-02-21 Thread Martynas Jusevičius
Yes. It's the bottom-up semantics. On Fri, Feb 21, 2020 at 10:21 AM Mikael Pesonen wrote: > > > Okay so separate graph statements make the scopes too separate even if > the graph is the same. > > Thanks Martynas! > > On 21/02/2020 11.16, Martynas Jusevičius wro

Re: Problem with sparql bind

2020-02-21 Thread Martynas Jusevičius
?s2 is undefined in the second GRAPH. On Fri, Feb 21, 2020 at 10:12 AM Mikael Pesonen wrote: > > Hi, > > I've got this query that first selects some resources (into ?s2), then > gets all the resource triplets. BIND clause below is more complicated > and i need to have the BIND there, but problem

Re: Fuseki 3.13.0 GET vs HEAD

2020-02-07 Thread Martynas Jusevičius
https://hub.docker.com/r/atomgraph/fuseki now uses 3.14.0. On Thu, Feb 6, 2020 at 11:03 AM Andy Seaborne wrote: > > > > On 06/02/2020 09:33, Martynas Jusevičius wrote: > > Hmm, where are the binaries located? I have > > > > ARG VERSION=3.14.0 > > ARG SRC

Re: Fuseki 3.13.0 GET vs HEAD

2020-02-06 Thread Martynas Jusevičius
-server-${VERSION}.jar but central.maven.org seems to be down :( On Thu, Feb 6, 2020 at 10:17 AM Martynas Jusevičius wrote: > > Missed this. Thanks! > > On Thu, Feb 6, 2020 at 10:16 AM Andy Seaborne wrote: > > > > https://issues.apache.org/jira/browse/JENA-1795 > &g

Re: Fuseki 3.13.0 GET vs HEAD

2020-02-06 Thread Martynas Jusevičius
; > > > On 05/02/2020 23:33, Martynas Jusevičius wrote: > > Any workarounds until the fix is released? Using curl. > > > > On Wed, Dec 11, 2019 at 1:52 PM Martynas Jusevičius > > wrote: > >> > >> https://issues.apache.org/jira/browse/JENA-1795 > >

Re: Fuseki 3.13.0 GET vs HEAD

2020-02-05 Thread Martynas Jusevičius
Any workarounds until the fix is released? Using curl. On Wed, Dec 11, 2019 at 1:52 PM Martynas Jusevičius wrote: > > https://issues.apache.org/jira/browse/JENA-1795 > > On Wed, Dec 11, 2019 at 1:31 PM Andy Seaborne wrote: > > > > Hi Martynas, > > >

Re: How to iterate over SELECT solutions?

2020-02-03 Thread Martynas Jusevičius
Use while (selectResult.hasNext()) instead? On Mon, Feb 3, 2020 at 5:25 PM Steve Vestal wrote: > > A beginner's question. I would like to iterate over all the solutions > from a select query. If I execute > > QueryExecution qexec = > QueryExecutionFactory.create(mySelectQuery,

Re: Docker image / Changing Fuseki's port number

2020-02-02 Thread Martynas Jusevičius
/master/Dockerfile The webapp container does the waiting for Fuseki and the loading over GSP and it's all much simpler now. On Thu, Jan 2, 2020 at 5:16 PM Martynas Jusevičius wrote: > > Now published as a separate fuseki-tdb branch/image: > https://github.com/AtomGraph/fuseki-docker/tree/f

Re: super slow filter

2020-01-21 Thread Martynas Jusevičius
What’s “relatively large”? 100 ms doesn’t sound that bad. Re. syntax, I think you could shorten the query using FILTER (?resp IN (...)) https://www.w3.org/TR/sparql11-query/#func-in On Tue, 21 Jan 2020 at 20.03, Élie Roux wrote: > P.S.: some triples were missing for the dataset to work, here's

Re: Docker image / Changing Fuseki's port number

2020-01-02 Thread Martynas Jusevičius
Now published as a separate fuseki-tdb branch/image: https://github.com/AtomGraph/fuseki-docker/tree/fuseki-tdb https://hub.docker.com/r/atomgraph/fuseki-tdb On Tue, 17 Dec 2019 at 17.01, Martynas Jusevičius wrote: > Andy, > > I think it's easier to show what I mean instead of talk

Re: [3.0.1] JenaException: No such graph

2019-12-20 Thread Martynas Jusevičius
| at org.apache.jena.update.UpdateAction.execute(UpdateAction.java:185) On Fri, Dec 20, 2019 at 2:09 PM Martynas Jusevičius wrote: > > Hi, > > why is this happening? The code: > > Dataset dataset = DatasetFactory.create(model); > UpdateAction.execute(update, dataset); &g

[3.0.1] JenaException: No such graph

2019-12-20 Thread Martynas Jusevičius
Hi, why is this happening? The code: Dataset dataset = DatasetFactory.create(model); UpdateAction.execute(update, dataset); Throws an exception: homepage_1 | org.apache.jena.shared.JenaException: No such graph:

Re: Docker image / Changing Fuseki's port number

2019-12-17 Thread Martynas Jusevičius
seki image? On Mon, Dec 16, 2019 at 4:22 PM Martynas Jusevičius wrote: > > We were looking at different mysql entrypoint scripts. Not sure why > there are two, but this repo says it's the "official image": > https://github.com/docker-library/mysql/blob/master/8.0/docker-e

Re: Resource ID created by service

2019-12-17 Thread Martynas Jusevičius
Do you really need URIs? Can't you send blank nodes? On Tue, Dec 17, 2019 at 3:10 PM Mikael Pesonen wrote: > > > Thanks for the link, answer #2 is how we could do it with SPARQL. I'm > still interested in how user should tell in data that service has to > create ID. Is there some standard

Re: Docker image / Changing Fuseki's port number

2019-12-16 Thread Martynas Jusevičius
gt; all the work is done by > > docker-entrypoint.sh > > whcih si a 200 line shall script. > > and includes: > > "$@" --initialize-insecure > > an argument to mysqld, not a feature specific to the docker container image. > > Andy > > > O

Re: Docker image / Changing Fuseki's port number

2019-12-16 Thread Martynas Jusevičius
See "Initializing a fresh instance": https://hub.docker.com/_/mysql On Mon, Dec 16, 2019 at 12:20 PM Martynas Jusevičius wrote: > > That's the thing: I don't want to execute docker run multiple times, > or remap ports manually. (In general we're using docker-compose much >

Re: Docker image / Changing Fuseki's port number

2019-12-16 Thread Martynas Jusevičius
available in the Fuseki jar file. "docker run" once to build > on the volume for setup, "docker run" again to start and run Fuseki. > > Using java -cp fuseki-server.jar has always worked and is convenient > when working on a remote server. (The commands take

Docker image / Changing Fuseki's port number

2019-12-13 Thread Martynas Jusevičius
Hi, is it possible to change the default port 3030 to something else by means of configuration? This is related to the Dockerfile which is a long time coming :) https://issues.apache.org/jira/browse/JENA-909 I need some init scripts that execute on Fuseki's launch (e.g. import mounted data) -

Fuseki 3.13.0 GET vs HEAD

2019-12-11 Thread Martynas Jusevičius
Hi, I would expect the same response status and headers for GET and HEAD, minus the body. However GET returns 200 and HEAD 400: GET /ds/ HTTP/1.1 Host: localhost:3030 User-Agent: curl/7.47.0 Accept: */* HTTP/1.1 200 OK Date: Wed, 11 Dec 2019 09:49:11 GMT Fuseki-Request-ID: 6 Vary:

Re: XML Model read and datatypes

2019-11-26 Thread Martynas Jusevičius
@cp:class.attribute "650.00"; is also a string. In Turtle, typed literals need a datatype: @cp:class.attribute "650.00"^^xsd:float; The spec: https://www.w3.org/TR/turtle/#abbrev In RDF/XML, that would be http://www.w3.org/2001/XMLSchema#float;>650.00 On Tue, Nov 26, 2019 at

Re: Issue while reading Model or Graph from Trig Strings

2019-11-22 Thread Martynas Jusevičius
I think you want to read a Dataset: https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/riot/RDFDataMgr.html#read-org.apache.jena.query.Dataset-java.io.StringReader-java.lang.String-org.apache.jena.riot.Lang- On Fri, 22 Nov 2019 at 16.45, Marc Agate wrote: > Hi all, > > I need to

Re: Caching in Fuseki service

2019-11-21 Thread Martynas Jusevičius
Varnish is a reverse proxy cache: https://varnish-cache.org/docs/trunk/tutorial/introduction.html On Fri, 22 Nov 2019 at 01.33, Amandeep Srivastava < amandeep.srivastava1...@gmail.com> wrote: > Thanks Andy, ajs6f > > I wanted to use the soft links because I'll be updating my database once >

Re: Simple Addition Example ?

2019-11-21 Thread Martynas Jusevičius
Can you post the full query string and the expected result? On Thu, Nov 21, 2019 at 10:01 AM Bardo Nelgen wrote: > > ?One + 1 anyone ? > > That’s all I hope to achieve… > > – Bardo > > > On 20.11.19 15.31 Uhr, Bardo Nelgen wrote: > > Hi all, > > > > I am really sorry asking for your time to

Re: ElementPathBlock comparison

2019-11-19 Thread Martynas Jusevičius
SPIN can convert SPARQL to RDF. See sp:TriplePattern: https://spinrdf.org/sp.html#sp-TriplePattern On Tue, Nov 19, 2019 at 3:04 PM Nouwt, B. (Barry) wrote: > > I found the following possible solution on stack overflow: >

Re: Possible bug in RDFDataMgr

2019-11-02 Thread Martynas Jusevičius
Chavdar, you should provide a sample of your RDF/XML data. I don’t think rdfs:Literal attribute is a part of RDF/XML spec. You should provide the literal value simply as text content within the element. Looks like Jena generates a (blank node?) value instead of the missing one, which might be a

Re: UUID per binding

2019-10-27 Thread Martynas Jusevičius
wrote: > > Hi Martynas, > > I don't quite understand what this query is intended to achieve, but you > could try wrapping the contents of the 2nd OPTIONAL into a sub-SELECT. > > Richard > > > > On 26 Oct 2019, at 20:43, Martynas Jusevičius > > wrote: >

Re: UUID per binding

2019-10-26 Thread Martynas Jusevičius
OK. So I guess I’m out of luck. Is this under-specified in SPARQL 1.1? Something to be addressed in 1.2? On Sat, 26 Oct 2019 at 21.58, Andy Seaborne wrote: > JENA-880 > > On 26/10/2019 20:43, Martynas Jusevičius wrote: > > Hi, > > > > I have this simplified quer

UUID per binding

2019-10-26 Thread Martynas Jusevičius
Hi, I have this simplified query PREFIX owl: CONSTRUCT { ?s ?ab. } { BIND (STRUUID() AS ?a) ?s a owl:Class . OPTIONAL { ?s ?p ?o . BIND (STRUUID() AS ?b) } OPTIONAL { ?x ?y ?z . BIND (STRUUID() AS ?c) } BIND (CONCAT(?a, "/",

Re: [ANN] AtomGraph Processor 2.0.4

2019-10-11 Thread Martynas Jusevičius
I've scheduled to do a walk-through of the Processor for Marco Neumann on Monday the 14th, 12 AM GMT+2. Anyone is welcome to join. Google Hangouts link: https://meet.google.com/kdq-udur-pae On Sun, Sep 22, 2019 at 10:27 PM Martynas Jusevičius wrote: > > And here is the link :) >

Re: Analyzing SPARQL Queries

2019-10-07 Thread Martynas Jusevičius
Hi Bart, SPIN would help you to turn the SPARQL query into RDF: https://spinrdf.org/sp.html#sp-TriplePattern Then you could probably add SPIN Rules on top to infer what you need: https://spinrdf.org/spin.html#spin-rules-construct On Mon, Oct 7, 2019 at 3:13 AM Bart van Leeuwen wrote: > Hi, >

Re: Loading trig file directly with Fuseki

2019-10-01 Thread Martynas Jusevičius
So, is it now possible to configure Fuseki's ja:RDFDataset with a quads dataset? If not, can I use both --config and --file at the same time? What happens then re. the dataset? On Mon, Nov 20, 2017 at 6:17 PM ajs6f wrote: > > I think loading quads into Fuseki/TDB actually does make sense in an

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

2019-09-25 Thread Martynas Jusevičius
This might help: https://github.com/AtomGraph/Web-Client/blob/master/src/main/java/com/atomgraph/client/update/InsertDataBuilder.java#L80 Uses SPIN API. On Wed, 25 Sep 2019 at 15.10, Andy Seaborne wrote: > INSERT DATA does not take quads directly. > > The form is > > INSERT DATA { GRAPH {

Re: [ANN] AtomGraph Processor 2.0.4

2019-09-22 Thread Martynas Jusevičius
And here is the link :) https://github.com/AtomGraph/Processor On Sun, Sep 22, 2019 at 10:27 PM Martynas Jusevičius wrote: > > Hi, > > we wanted to share a new release of Processor: ontology-driven Linked > Data processor and server for SPARQL backends. > > The idea

[ANN] AtomGraph Processor 2.0.4

2019-09-22 Thread Martynas Jusevičius
Hi, we wanted to share a new release of Processor: ontology-driven Linked Data processor and server for SPARQL backends. The idea is that one supplies an ontology with Linked Data Templates [1] and a SPARQL service, and gets a fully configurable, extendable, reusable Linked Data API. The

% character in mailto: URI

2019-08-31 Thread Martynas Jusevičius
Hi, I'm getting this warning from riot (Jena 3.6.0): Bad IRI: Code: 30/ILLEGAL_PERCENT_ENCODING in PATH: The host component a percent occurred without two following hexadecimal digits. Is not a legal mailto: URI? Or does it need to be encoded somehow?

Re: JSON2RDF

2019-08-16 Thread Martynas Jusevičius
; It would be nice to compare the RDF models. > > Cheers, > Reto > > -----Original Message- > From: Martynas Jusevičius > Sent: Friday, August 16, 2019 6:12 PM > To: users@jena.apache.org > Subject: Re: JSON2RDF > > Yes indeed! I’m considering adding built-in

Re: JSON2RDF

2019-08-16 Thread Martynas Jusevičius
on JSON data. > > See: https://github.com/linked-solutions/jarql > > Cheers, > Reto > > -----Original Message- > From: Martynas Jusevičius > Sent: Thursday, August 15, 2019 11:30 PM > To: jena-users-ml > Subject: JSON2RDF > > Hi all, > > just wan

JSON2RDF

2019-08-15 Thread Martynas Jusevičius
Hi all, just wanted to let you know that in addition to CSV2RDF we've now published JSON2RDF: https://github.com/AtomGraph/JSON2RDF It's a Jena-based generic JSON2RDF converter which reads JSON and writes streaming N-Triples output. Such output is well-suited for further transformation with

Re: StreamRDF.base()

2019-08-14 Thread Martynas Jusevičius
uce <https://localhost/term> instead, correct? On Wed, Aug 14, 2019 at 12:32 PM Andy Seaborne wrote: > > Yes. > > More efficient is to create a resolver with IRIResolver.create and use > that. Includes caching of resolved strings. > > See the turtle parser. > >

Re: StreamRDF.base()

2019-08-14 Thread Martynas Jusevičius
rtain but if that is the case > > perhaps we should note it in the javadocs. > > > > I do note that StreamRDF says it is for output, in which case I am not > > certain why the base() is needed at all. > > > > Claude > > > > > > > > On T

StreamRDF.base()

2019-08-13 Thread Martynas Jusevičius
Hi, I'm trying to understand what the purpose/usage of StreamRDF.base() is. Isn't it supposed to set the base URI that relative URIs in the stream resolve against? I've made a simple test: StreamRDF rdfStream = StreamRDFLib.writer(new BufferedWriter(new OutputStreamWriter(System.out)));

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

2019-08-13 Thread Martynas Jusevičius
ARQL UPDATE, and reject the > update if the rule would be violated by it? > > Thanks! > —Jeff > > > [image: email_sig_logo_vert.png] > > Jeff Lerman > > AI Scientist > > Mobile: 510-495-4621 > > www.invitae.com > > [image: email_sig_social_linke

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

2019-08-13 Thread Martynas Jusevičius
You could also SPARQL as SPIN constraints: https://www.w3.org/Submission/spin-modeling/#spin-constraints Can be implemented using SPIN API: https://github.com/spinrdf/spinrdf On Tue, Aug 13, 2019 at 4:07 PM Andy Seaborne wrote: > > > > On 13/08/2019 06:31, Lorenz Buehmann wrote: > > The rules

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

2019-08-07 Thread Martynas Jusevičius
Pierre, what are you trying to do? Does the INSERT contain some variables/do some pattern matching? If not (e.g. it's INSERT DATA), then you might be better off using the Graph Store Protocol: https://jena.apache.org/documentation/fuseki2/soh.html#soh-sparql-http On Wed, Aug 7, 2019 at 9:49 AM

Re: XML vs RDF namespaces

2019-07-05 Thread Martynas Jusevičius
> 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. If you can’t change the existing XSLT stylesheet, you could pipeline the RDF/XML through a second one which

Re: UUID vs compact id

2019-07-02 Thread Martynas Jusevičius
URIs do not have semantic meaning, they are opaque identifiers. https://www.w3.org/DesignIssues/Axioms.html#opaque On Tue, 2 Jul 2019 at 17.06, Siddhesh Rane wrote: > If the URL is some REST endpoint then you can map UUID in the URL to > binary keys in the database. > If your URLs are RDF

Re: Fuseki graph constraints

2019-06-16 Thread Martynas Jusevičius
In relation to RDF, constraints usually mean SHACL or SPIN. https://www.w3.org/TR/shacl/ https://spinrdf.org/spin.html#spin-constraints On Sun, Jun 16, 2019 at 3:04 PM Laura Morales wrote: > > Does Fuseki support graph constraints? Something like the equivalent of > "composite primary keys" in

<    1   2   3   4   5   6   7   8   >