Slow property graph query

2020-10-04 Thread Martynas Jusevičius
Hi, The following (generated) query takes 1 minute to execute over a dataset of 175862 quads in Fuseki 3.16.0. Isn't that slow? If I remove the SAMPLE and the last OPTIONAL, it executes immediately. PREFIX dct: PREFIX foaf: PREFIX

Streaming data to Fuseki

2020-10-12 Thread Martynas Jusevičius
Hi, how would it go if I would stream quads to the Fuseki quad store endpoint? Can Fuseki (3.16.0) cope with streaming say 10 quads over HTTP or do I need to split it into multiple requests? Martynas

Re: Streaming data to Fuseki

2020-10-16 Thread Martynas Jusevičius
.jena.apache.org%3E > > > > On Tue, Oct 13, 2020 at 10:15 AM Andy Seaborne wrote: > >> > >> > >> > >> On 12/10/2020 22:35, Martynas Jusevičius wrote: > >>> Hi, > >>> > >>> how would it go if I would stream quads to

Validating streaming RDF

2020-10-16 Thread Martynas Jusevičius
Hi, we're moving more and more RDF I/O to streaming implementations, and that doesn't work well with another important feature -- constraint validation. I'm wondering if it is possible, even in theory, to validate streaming RDF data, e.g. with SPARQL/SPIN/SHACL? My intuition says no, or maybe

Re: owl:hasKey supported by http://jena.hpl.hp.com/2003/OWLFBRuleReasoner?

2020-10-09 Thread Martynas Jusevičius
Maybe because owl:hasKey is from OWL 2 and Jena only supports OWL 1? On Thu, Oct 8, 2020 at 11:45 PM Kevin Tyson wrote: > > Hello, > I am trying to run Fuseki with an OWL reasoner so that I can take advantage > of owl:sameAs. I'v modified the configuration generated by defining the > TDB backed

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-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:/

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
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

How does one materialize an InfModel?

2020-09-21 Thread Martynas Jusevičius
Hi, I want to load an ontology with imports into an inference model, but then materialize the triples as no further changes will be made to the model and we would like to avoid the reasoner overhead for read-only access. How does one do the materialization? Simple add() doesn't seem to cut it:

Re: How does one materialize an InfModel?

2020-09-21 Thread Martynas Jusevičius
f inferred statements. If > you want to count the size of an inference model you will need to iterate > over the statements and count those directly as the Javadoc implies > > Rob > > On 21/09/2020, 10:27, "Martynas Jusevičius" wrote: > > Alternatively, h

Re: How does one materialize an InfModel?

2020-09-21 Thread Martynas Jusevičius
350> but was:<2264> On Mon, Sep 21, 2020 at 11:02 AM Martynas Jusevičius wrote: > > Hi, > > I want to load an ontology with imports into an inference model, but > then materialize the triples as no further changes will be made to the > model and we would like to avoid the r

Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-07-01 Thread Martynas Jusevičius
I know. I have no explanation. Maybe the NetBeans are messing with me. On Wed, Jul 1, 2020 at 2:52 PM Andy Seaborne wrote: > > > > On 01/07/2020 09:58, Martynas Jusevičius wrote: > > Thanks. > > > > What jar is missing though? I have apache-jena-libs as a depende

Re: Blank node URI scheme

2020-07-05 Thread Martynas Jusevičius
ons.singletonMap("s", bnode); > query = QueryFactory.create("SELECT * { ?s ?p ?o }"); > query = QueryTransformOps.transformQuery(query, substitutions); > > Forms 2 and 3 have the advantage of not relying on how execution works - > QSMs are ingested inthe start of execution

Re: Blank node URI scheme

2020-07-05 Thread Martynas Jusevičius
FILTER bound(0) } HAVING ( ?cardinality < 0 ) On Sun, Jul 5, 2020 at 10:31 PM Andy Seaborne wrote: > > > > On 05/07/2020 20:36, Martynas Jusevičius wrote: > > Thanks for the explanation. > > > > What do you mean with "inject" in

Re: SPARQL does not match xsd:hexBinary literals?

2020-07-09 Thread Martynas Jusevičius
I managed to create a test case that returns a result on 3.0.1 but not on 3.16.0-SNAPSHOT: https://issues.apache.org/jira/browse/JENA-1936 On Thu, Jul 9, 2020 at 12:36 AM Martynas Jusevičius wrote: > > I managed to reproduce something, I think - the BGP with an explicit > ^^xsd:hexBin

Re: 3.15 fuskei can not run

2020-07-09 Thread Martynas Jusevičius
These are some logging errors. Not sure why though. On Thu, Jul 9, 2020 at 10:13 AM XiangLei wrote: > > Hi there, I was using 3.12 on my PC. Now I want to use 3.15 fuskei on my LP, > and I did install Java 1.8 xx . The errors are listed below: > > 2020-07-09 16:01:44,865 main ERROR Unrecognized

Re: SPARQL does not match xsd:hexBinary literals?

2020-07-09 Thread Martynas Jusevičius
ct and predicate. Do they need to be as shown? > > Andy > > On 09/07/2020 11:01, Martynas Jusevičius wrote: > > I managed to create a test case that returns a result on 3.0.1 but not > > on 3.16.0-SNAPSHOT: > > https://issues.apache.org/jira/browse/JENA-1936 > >

Re: SPARQL does not match xsd:hexBinary literals?

2020-07-08 Thread Martynas Jusevičius
After double checking, this does not return results with 3.0.1 either... On Wed, Jul 8, 2020 at 11:53 AM Martynas Jusevičius wrote: > > Hi, > > after the upgrade to 3.16.0-SNAPSHOT some queries that worked with > 3.0.1 do not return results anymore. > > I tried to narrow i

SPARQL does not match xsd:hexBinary literals?

2020-07-08 Thread Martynas Jusevičius
Hi, after the upgrade to 3.16.0-SNAPSHOT some queries that worked with 3.0.1 do not return results anymore. I tried to narrow it down to a test case: private final String data = "

Re: SPARQL does not match xsd:hexBinary literals?

2020-07-09 Thread Martynas Jusevičius
My bad. "a0" is legal, right? Updated the test once again. On Thu, Jul 9, 2020 at 6:58 PM Andy Seaborne wrote: > > > > On 09/07/2020 13:32, Martynas Jusevičius wrote: > > Now also replaced URIs with bnodes. > > > > On Thu, Jul 9, 2020 at 1:40 PM Martyn

Re: Blank node URI scheme

2020-07-06 Thread Martynas Jusevičius
The same problem (invalid query string) using QueryTransformOps.transformQuery(). On Sun, Jul 5, 2020 at 11:34 PM Martynas Jusevičius wrote: > > ParameterizedSparqlString does not work either (not related to bnodes). > > With a mapping ?minCount => 0, it produces an inval

Re: Blank node URI scheme

2020-07-06 Thread Martynas Jusevičius
n value > is that it preserves the original variable. > > Contrast the difference between these two: > >QueryFactory.create("SELECT * { VALUES ?s {"+bn+"} ?s ?p ?o }"); > QueryFactory.create("SELECT * { "+bn+" ?p ?o }"); >

Re: Blank node URI scheme

2020-07-06 Thread Martynas Jusevičius
: > >QueryFactory.create("SELECT * { VALUES ?s {"+bn+"} ?s ?p ?o }"); >QueryFactory.create("SELECT * { "+bn+" ?p ?o }"); > > BIND(?minCount AS ?mc) FILTER bound(?mc) > > Andy > > On 06/07/2020 09:56, Martynas Jusevičius w

Re: ParseError while parsing entity in TriX

2020-07-13 Thread Martynas Jusevičius
e "" is an invalid XML character. > > The "Message:" line isn't from Jena. > > ReaderTriX.java > > } catch (XMLStreamException ex) { > staxError(parser.getLocation(), "XML error: > "+ex.getMessage()) ; > } &g

Re: ParseError while parsing entity in TriX

2020-07-13 Thread Martynas Jusevičius
to ~350 lines, but if I remove a single extra triple or even a line of string, the warning goes away. Can I send it off-list to you? On Mon, Jul 13, 2020 at 11:22 AM Martynas Jusevičius wrote: > > Thanks Andy. I was making an example when I got your message :) > > I've found th

Re: ParseError while parsing entity in TriX

2020-07-14 Thread Martynas Jusevičius
This looks like the bug: https://bugs.openjdk.java.net/browse/JDK-8059327 It should be fixed in Java 9. I'll try that, running on Java 8 right now. On Tue, Jul 14, 2020 at 3:14 PM Martynas Jusevičius wrote: > > OK. I had to do some debugging to understand what' going on. It looks

Re: ParseError while parsing entity in TriX

2020-07-14 Thread Martynas Jusevičius
ice on how to proceed? Thanks. On Tue, Jul 14, 2020 at 10:33 AM Andy Seaborne wrote: > > > > On 13/07/2020 20:07, Martynas Jusevičius wrote: > > Andy, > > > > I've switched the output to XML version 1.1 and started getting a lot > > of inexplicable and seemingly r

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: &

ParseError while parsing entity in TriX

2020-07-12 Thread Martynas Jusevičius
Hi, riot --strict --stop --syntax=TriX --output=nq gives me 21:40:07 ERROR riot :: [line: 2943360, col: 62] XML error: ParseError at [row,col]:[2943360,62] That line is in a and looks like this: - http://sprout.ics.uci.edu/past_projects/gac/index.html; I'm guessing it's

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

Re: Blank node URI scheme

2020-07-05 Thread Martynas Jusevičius
utions); > > Forms 2 and 3 have the advantage of not relying on how execution works - > QSMs are ingested inthe start of execution and e.g. aren't visible in > subqueries and also interact and bypass with query optimization. > > Andy > > On 05/07/2020 15:22, Martynas

Re: Blank node URI scheme

2020-07-06 Thread Martynas Jusevičius
Missed the BIND(?minCount AS ?mc) FILTER bound(?mc) suggestion, will try it now. On Mon, Jul 6, 2020 at 12:56 PM Martynas Jusevičius wrote: > > Andy, > > This is getting quite complicated compared to the QuerySolutionMap. I > get that we should rather be using alternatives, bu

Re: Blank node URI scheme

2020-07-06 Thread Martynas Jusevičius
asNode())); List values = Arrays.asList(bindingMap); query.setValuesDataBlock(variables, values); On Mon, Jul 6, 2020 at 3:45 PM Andy Seaborne wrote: > > > > On 06/07/2020 11:56, Martynas Jusevičius wrote: > > Andy, > > > > This is getting quite complicated

Re: SPARQL does not match xsd:hexBinary literals?

2020-07-08 Thread Martynas Jusevičius
which returns results on 3.0.1 and on 3.16.0-SNAPSHOT command line, but not in the 3.16.0-SNAPSHOT code. Does not make sense to me. On Wed, Jul 8, 2020 at 12:40 PM Martynas Jusevičius wrote: > > After double checking, this does not return results with 3.0.1 either... > > On Wed, Jul 8, 2

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

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-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. > >

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: 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

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: 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: 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: 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: 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: 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

Blank node URI scheme

2020-07-05 Thread Martynas Jusevičius
Hi, I came across a situation where I want to carry over a blank node ID in a QuerySolutionMap to QueryExecution, to match exact blank node resources rather than have them as variables. I found an old thread by Holger on this topic:

Re: Blank node URI scheme

2020-07-05 Thread Martynas Jusevičius
Jena version: 3.16.0-SNAPSHOT On Sun, Jul 5, 2020 at 4:22 PM Martynas Jusevičius wrote: > > Hi, > > I came across a situation where I want to carry over a blank node ID > in a QuerySolutionMap to QueryExecution, to match exact blank node > resources rather than have them a

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: Representing reciprocal blank node relationships in abbreviated syntax

2020-12-04 Thread Martynas Jusevičius
I don't think you can use the [ ] form to create cycles. On Fri, Dec 4, 2020 at 8:53 PM Jeffrey Kenneth Tyzzer wrote: > > Hi, Group. > > Consider this small model: > > a --relates--> b > b --relates--> c > b <--relatedBy-- c > > Note that the b to c relationship is reciprocal. > > I’d like to

Re: Help with OPTIONAL

2020-11-24 Thread Martynas Jusevičius
dy Seaborne wrote: > > Try the reference query engine. > > sparql --engine=ref ... > > and also without optimization on the the general engine --optimize=off > > Andy > > On 24/11/2020 14:19, Martynas Jusevičius wrote: > > I've just tried a third i

Re: Help with OPTIONAL

2020-11-24 Thread Martynas Jusevičius
/#this,https://localhost:4443/categories/3/#this,Confections Which would suggest that Dydra is the outlier here. On Tue, Nov 24, 2020 at 2:27 PM Martynas Jusevičius wrote: > > Hi, > > despite using SPARQL for years, cases where different implementations > return different r

Re: Help with OPTIONAL

2020-11-24 Thread Martynas Jusevičius
h > do you have matching the first and the second part? > > On 24.11.20 14:27, Martynas Jusevičius wrote: > > Hi, > > > > despite using SPARQL for years, cases where different implementations > > return different results leave me scratching my head. Can someone help > > me ou

Re: Help with OPTIONAL

2020-11-24 Thread Martynas Jusevičius
} } } } ORDER BY ?doc RDF4J now produces 9 results (same as Dydra), but Fuseki returns 2417 rows. On Tue, Nov 24, 2020 at 3:33 PM Martynas Jusevičius wrote: > > Yes, it looks like this is due to the different treatment of the named graphs. > > PREFIX schema: <ht

Help with OPTIONAL

2020-11-24 Thread Martynas Jusevičius
Hi, despite using SPARQL for years, cases where different implementations return different results leave me scratching my head. Can someone help me out with this? I have a rather simple query: PREFIX schema: PREFIX foaf: PREFIX sioc:

Re: Help with OPTIONAL

2020-11-24 Thread Martynas Jusevičius
?reportsToEmployeeLabelGraph { ?reportsToEmployee > <http://purl.org/dc/terms/title> ?reportsToEmployeeLabel. } > } > } >} > > } > ORDER BY ?doc > > > So second OPTIONAL inside the first one. That makes sure second OPTIONAL > isn't left unbinded. >

Re: Returning a Triple from a QuerySolution for each Solution Variable

2020-12-23 Thread Martynas Jusevičius
has to be preserved > according to the SPARQL standard. > > Indeed, you might get lucky but this is basically implementation specific > > On 23.12.20 08:21, Martynas Jusevičius wrote: > > If ordering is required, you can use a sub-SELECT in CONSTRUCT: > > > >

Re: Returning a Triple from a QuerySolution for each Solution Variable

2020-12-23 Thread Martynas Jusevičius
Using OFFSET/LIMIT, that is. On Wed, Dec 23, 2020 at 9:24 AM Martynas Jusevičius wrote: > > True, but at least you get the right "window" of solutions, of which > the triples are then unordered. > > On Wed, Dec 23, 2020 at 9:16 AM Lorenz Buehmann > wrote: > >

Re: SelectBuilder

2020-12-18 Thread Martynas Jusevičius
We used to have a class that does something like that using SPIN: https://github.com/AtomGraph/Web-Client/blob/5d0988e3a2c35a2bb045815459d4653d7c23d503/src/main/java/com/atomgraph/client/query/QueryBuilder.java There's a SelectBuilder class in that folder as well. Later on this took its place:

Re: Returning a Triple from a QuerySolution for each Solution Variable

2020-12-22 Thread Martynas Jusevičius
If ordering is required, you can use a sub-SELECT in CONSTRUCT: CONSTRUCT { ?person :LastName ?LastName; :FirstName ?FirstName; :Address ?Address . ?Address :Street ?Street; :City ?City; :State ?State; :Zip ?Zip } { { SELECT ?person ?LastName ?FirstName ?Street ?City ?State

Re: Conversion exception, OntModel Individual is not an Individual or a Resource?

2020-12-20 Thread Martynas Jusevičius
What are the properties of http://adventiumlabs.com/ontology/fhowl/structuresintwoclasses#memBusEquiv_si8 ? On Sun, 20 Dec 2020 at 19.11, Steve Vestal wrote: > I am getting an exception that a Resource cannot convert to an > Individual in a list of Individuals, even when I'm iterating over it

Re: Slow property graph query

2020-11-08 Thread Martynas Jusevičius
Hi, still interested to know why this query performs so poorly in Fuseki. What I thought was an alternative is actually not equivalent. On Sun, Oct 4, 2020 at 8:39 PM Martynas Jusevičius wrote: > > Hi, > > The following (generated) query takes 1 minute to execute over a > da

Re: Copy triples in named graphs

2020-11-09 Thread Martynas Jusevičius
RE{GRAPH ?g {?s ?p ?o}} limit 5" -H 'Content-Type: > application/sparql-query' http://localhost:3030/ds > > BR, > Mikael > > On 09/11/2020 13.50, Martynas Jusevičius wrote: > > Are you sure you have named graphs in that dataset? > > > > On Mon, Nov 9, 2020 at

Re: Copy triples in named graphs

2020-11-09 Thread Martynas Jusevičius
Are you sure you have named graphs in that dataset? On Mon, Nov 9, 2020 at 12:42 PM Mikael Pesonen wrote: > > > Hi, > > this command returns triplets although content-type is set as requested: > > curl -H "Accept: application/n-quads" http://localhost:3030/ds > > Wondering what I'm doing wrong

TriX default

2021-01-02 Thread Martynas Jusevičius
Hi, some time ago we had an issue re. TriX: https://issues.apache.org/jira/browse/JENA-1211 I was looking at the W3C DTD again, specifically for elements: This made me wonder how the default graph should be represented if it has no URI. My understanding was that the default should have no

Re: TriX default

2021-01-03 Thread Martynas Jusevičius
p, consensus. > > (IIRC the Jena reader doesn't care about namespaces) > > Andy > > On 02/01/2021 17:48, Martynas Jusevičius wrote: > > Hi, > > > > some time ago we had an issue re. TriX: > > https://issues.apache.org/jira/browse/JENA-1211 &g

Identity of rdf:List

2021-05-12 Thread Martynas Jusevičius
Hi, I'm wondering why ARQ (3.15.0) is turning URIs in an rdf:List into blank nodes? I know bnodes are usually used in lists, but in this case it's not what I expect. Command: sparql --data rdf_list.ttl --query identity.rq rdf_list.ttl: .

Re: Identity of rdf:List

2021-05-13 Thread Martynas Jusevičius
you raise a JIRA please? > > Thanks > Andy > > > On 12/05/2021 16:23, Martynas Jusevičius wrote: > > N-Triples/N-Quads serialization does not exhibit this problem -- the > > example is round-tripped fine. > > > > On Wed, May 12, 2021 at 11:23 AM Ma

Re: SPARQL lite?

2021-05-18 Thread Martynas Jusevičius
Triple Pattern Fragments? https://linkeddatafragments.org/specification/triple-pattern-fragments/ On Tue, May 18, 2021 at 3:59 PM Steve Vestal wrote: > > PubChemRDF, OSLC, and probably others define their own light-weight > query protocol, conceptually similar to the Jena Graph interface. I was

Re: Identity of rdf:List

2021-05-12 Thread Martynas Jusevičius
N-Triples/N-Quads serialization does not exhibit this problem -- the example is round-tripped fine. On Wed, May 12, 2021 at 11:23 AM Martynas Jusevičius wrote: > > Hi, > > I'm wondering why ARQ (3.15.0) is turning URIs in an rdf:List into > blank nodes? I know bnodes are usuall

Re: Jena / Fuseki / SPARQL performance (new to the tech)

2021-05-20 Thread Martynas Jusevičius
Martin, Some of the OPTIONAL variables don't seem to be used anywhere else in the query. Rather than using SELECT to pull the data fields, can't you use it to only filter down the entities of interest, and wrap the whole thing into a DESCRIBE to retrieve their full descriptions as graphs?

Re: Jena / Fuseki / SPARQL performance (new to the tech)

2021-05-25 Thread Martynas Jusevičius
You get Turtle data because CONSTRUCT/DESCRIBE forms return a graph while ASK/SELECT return a tabular result set. You can try Accept: application/ld+json request header in order to get JSON-LD data: https://www.w3.org/TR/json-ld11/ If you need a connected node in the description, you'll need to

Re: Turtle

2021-07-05 Thread Martynas Jusevičius
https://issues.apache.org/jira/browse/JENA-2001 On Mon, Jul 5, 2021 at 10:51 AM Chavdar Ivanov wrote: > > Hello > > > > Noticed that now the Turtle is serializing rdf:type explicitly and not with > "a". > > Was it some issue around that or some new option to instruct the writer to > write

Re: Jena hangs while reading HTTP stream

2021-07-05 Thread Martynas Jusevičius
HTTPClient is not running out of connections? It is known to hang in such cases. On Mon, Jul 5, 2021 at 2:58 PM james anderson wrote: > > good afternoon; > > > On 2021-07-05, at 12:36:20, Andy Seaborne wrote: > > > > > > > > On 05/07/2021 10:01, Ivan Lagunov wrote: > >> Hello, > >> We’re facing

Re: Terms context

2021-04-29 Thread Martynas Jusevičius
If you have compound property names such as RealFriend.address and VirtualFriend.address, it’s a good indication that you should split up the relationship and make the address a standalone resource. Then you can reuse the address property for both cases. Which gives _:friend1 a :VirtualFriend ;

Re: Dumping RDF data as human readable table

2021-04-22 Thread Martynas Jusevičius
This is probably what you want: https://www.w3.org/TR/sparql11-results-csv-tsv/ Try curl -H "Accept: text/csv" with SELECT results. On Thu, Apr 22, 2021 at 11:30 AM Mikael Pesonen wrote: > > > Hi, > > not exactly Jena related, but does anyone know if there is a tool or > sparql query that would

Re: Dumping RDF data as human readable table

2021-04-22 Thread Martynas Jusevičius
triplets as they are, in cleaner > format, but it doesn't say anything about rearranging the data. > > On 22/04/2021 12.34, Martynas Jusevičius wrote: > > This is probably what you want: > > https://www.w3.org/TR/sparql11-results-csv-tsv/ > > > > Try curl

Re: Jena 4 and RDF/XML via Fuseki

2021-04-22 Thread Martynas Jusevičius
It's the same data, just formatted in a slightly different way. It seems that RDFXML_PLAIN is the default RDF/XML writer in Jena 4.0: https://jena.apache.org/documentation/io/rdf-output.html#rdfxml On Thu, Apr 22, 2021 at 5:27 PM Bardo Nelgen wrote: > > Sorry, of course you are right – both. >

Re: Jena 4 and RDF/XML via Fuseki

2021-04-22 Thread Martynas Jusevičius
Actually Andy explained in this thread why this change was introduced back in 3.15.0: https://issues.apache.org/jira/browse/JENA-1826 On Thu, Apr 22, 2021 at 6:44 PM Martynas Jusevičius wrote: > > It's the same data, just formatted in a slightly different way. It > seems that RDF

[ANN] LinkedDataHub 2.0: The New Knowledge Graph Experience

2021-03-30 Thread Martynas Jusevičius
Hi, we want to present LinkedDataHub 2.x -- a new release of our open-source RDF Knowledge Graph management system. https://atomgraph.com/blog/linkeddatahub-2-the-new-knowledge-graph-experience/ This release of LinkedDataHub provides multiple layout modes (including editing and force-directed

Re: Paging data with Jena

2021-03-09 Thread Martynas Jusevičius
COUNT(*) / LIMIT should give you the number of pages. On Tue, Mar 9, 2021 at 9:52 AM Donald McIntosh wrote: > > Hi.. > > I have an implementation where I would like to page through data retrieved > via a SPARQL query on Apache Jena on a UI. offset and limit features take me > some of the way

Re: Paging data with Jena

2021-03-09 Thread Martynas Jusevičius
Are you using TDB? Because it does have indices: https://jena.apache.org/documentation/tdb/architecture.html#triple-and-quad-indexes On Tue, 9 Mar 2021 at 17.58, Donald McIntosh wrote: > Thanks all for replies. > > Jean-Claude - yes I assume the same. It just scrolls through until it > gets

Re: Concurrent write requests in Fuseki

2021-03-01 Thread Martynas Jusevičius
1.2 could improve? On Sun, Feb 28, 2021 at 12:47 PM Andy Seaborne wrote: > > > > On 26/02/2021 14:41, Martynas Jusevičius wrote: > > Hi, > > > > How does Fuseki handle concurrent write requests? > > Serializably. > > If we are talking about TDB or TIM, it M

Re: Concurrent write requests in Fuseki

2021-03-01 Thread Martynas Jusevičius
I meant to improve the interoperability at least, if not the concurrency. BTW, how long is the queue of blocked requests permitted to grow? On Mon, Mar 1, 2021 at 9:52 AM Martynas Jusevičius wrote: > > Thanks for the explanation. > > But an implementation is also free to reject a se

Re: Concurrent write requests in Fuseki

2021-03-01 Thread Martynas Jusevičius
> > > > But an implementation is also free to reject a second request, per the > > specification? > > > > So for SPARQL 1.1 a write strategy portable across implementations > > should be sequential, i.e. one request has to complete before the next > > one is executed? > > Strange question - why do

Concurrent write requests in Fuseki

2021-02-26 Thread Martynas Jusevičius
Hi, How does Fuseki handle concurrent write requests? Both SPARQL update and GSP? Say if there's an active POST to the graph store and another one is received, what happens? The only mention of concurrency in the SPARQL specs that I can find says it's implementation-defined: "Each request should

Polymorphism: choosing the appropriate implementation

2021-04-12 Thread Martynas Jusevičius
Hi, I have a Service interface and multiple sub-interfaces that extend it, with their own Implementations. How do I cast a Resource to the most appropriate implementation? The following client code checks sub-interfaces first and falls back to the base interface: if

Re: problems running ARQ on Command line

2021-04-12 Thread Martynas Jusevičius
On Mon, Apr 12, 2021 at 7:24 PM Zlatareva, Neli (Computer Science) wrote: > > Hi Lorenz, thank you for the quick response. > bin/arq --help does not work (from ...\apache-jena-4.0.0 directory). > The error is > 'bin' is not recognized as an internal or external command, > operable program or

Re: Re: problems running ARQ on Command line

2021-04-13 Thread Martynas Jusevičius
If you're on Windows, you should use the .bat scripts, not the shell scripts (.sh). I tried with cmd now: C:\Users\pumba\WebRoot\AtomGraph\jena\apache-jena λ bat\arq JENA_HOME not set On Tue, Apr 13, 2021 at 2:46 PM Zlatareva, Neli (Computer Science) wrote: > > No, it has always been the same

Re: Find out in data if resources are connected

2021-02-12 Thread Martynas Jusevičius
SPARQL is based on pattern matching, so path traversal is not its strong point. You might want to try a different language like Gremlin. On Fri, 12 Feb 2021 at 15.05, Mikael Pesonen wrote: > > Sorry meant of course to find connections between known nodes, here x and > y: > > ASK { >

Dataset::append method?

2021-02-17 Thread Martynas Jusevičius
Hi, how does one append one Dataset to another? I know I can do stuff like d2.getDefaultModel().add(d1.getDefaultModel()); for (String name : d1.listNames()) d2 = d2.addNamedModel(d1.getNamedModel(name)); but that is not very concise, and probably not very performant either? I'm wondering

Re: Dataset::append method?

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

Re: Dataset::append method?

2021-02-18 Thread Martynas Jusevičius
In other words -- if we can do model1.add(model2) per https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/rdf/model/Model.html#add-org.apache.jena.rdf.model.Model- why can't we do dataset1.add(dataset2) ? On Thu, Feb 18, 2021 at 7:17 PM Martynas Jusevičius wrote: > > &

Rebasing URIs in a Model

2021-02-22 Thread Martynas Jusevičius
Hi, What would be the quickest way to change the base of URIs in a Model? Say from https://localhost: to https://localhost:.

Re: Jena 4 and RDF/XML via Fuseki

2021-04-23 Thread Martynas Jusevičius
gt; On 23.04.21 07.40 Uhr, Martynas Jusevičius wrote: > > Is your client reading the data as RDF or XML? > > > > You could apply an XSLT stylesheet to transform plain RDF/XML to pretty. > > > > On Fri, 23 Apr 2021 at 06.38, Bardo Nelgen < > > mailing.list.in..

Re: Jena 4 and RDF/XML via Fuseki

2021-04-22 Thread Martynas Jusevičius
t;, > > rather than improving it, has been the "easier" choice an the time; > though this does not change the fact, that I need my data formatted this > way and would like to learn how to get it. > > On 22.04.21 18.47 Uhr, Martynas Jusevičius wrote: > > A

Re: Read-only wrapper for Jena Model

2021-08-28 Thread Martynas Jusevičius
I remember asking a similar question 5 years ago :) https://mail-archives.apache.org/mod_mbox/jena-users/201610.mbox/%3cCAE35VmwR+QjzGiEcWwO0sVJcFcnb=CTYqHc-fp7iF550=1b...@mail.gmail.com%3e ModelFactory.createUnion() might to be an option.

<    1   2   3   4   5   6   7   8   >