Re: Fuseki growing in size and need for compaction

2024-04-24 Thread Martynas Jusevičius
Andy, Not directly related, but would different storage backend address issues like this? It might sound a bit like the legacy SDB, but AFAIK oxigraph, Stardog and another commercial triplestore use RocksDB for storage. https://github.com/oxigraph/oxigraph

Re: rdf:parseType="literal" vs. rdf:datatype="...XMLLiteral"

2024-04-19 Thread Martynas Jusevičius
*not* rdf:datatype On Fri, Apr 19, 2024 at 7:10 PM Martynas Jusevičius wrote: > > AFAIK for XMLLiterals you need to use rdf:parseType="Literal", rdf:datatype: > https://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-XML-literals > > On Fri, 19 Apr 2024 at 18.18,

Re: rdf:parseType="literal" vs. rdf:datatype="...XMLLiteral"

2024-04-19 Thread Martynas Jusevičius
AFAIK for XMLLiterals you need to use rdf:parseType="Literal", rdf:datatype: https://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-XML-literals On Fri, 19 Apr 2024 at 18.18, Thomas Francart wrote: > Hello > > The RDF/XML parsing of the following succeeds: > > > > href=" >

Re: Requesting advice on Fuseki memory settings

2024-03-07 Thread Martynas Jusevičius
If it helps, I have a setup I have used to profile Fuseki in VisualVM: https://github.com/AtomGraph/fuseki-docker On Thu, 7 Mar 2024 at 22.55, Andy Seaborne wrote: > > > On 07/03/2024 13:24, Gaspar Bartalus wrote: > > Dear Jena support

Re: Checking that SPARQL Update will not validate SHACL constraints

2023-12-14 Thread Martynas Jusevičius
help. > It can be used to capture the adds and deletes. It can then be validated > (all data or only the data changing). Flush the changes to the database > just before the end of the request in the proxy level commit. > > If the proxy is in a different JVM, then only certain constraints

Checking that SPARQL Update will not validate SHACL constraints

2023-12-13 Thread Martynas Jusevičius
Hi, I have an objective to only persist constraint-validated data in Fuseki. I have a proxy layer that validates all incoming GSP PUT and POST request graphs in memory and rejects the invalid ones. So far so good. What about SPARQL Update requests though? For simplicity's sake, let's say they

Re: Problem running AtomGraph/fuseki-docker

2023-12-06 Thread Martynas Jusevičius
Hi Steve, This looks like Windows shell issue. For some reason /ds is resolved as a filepath where it shouldn’t. Can you try —mem '/ds' with quotes? I’m running Docker on WSL2 and never had this problem. Martynas On Wed, 6 Dec 2023 at 21.05, Steve Vestal wrote: > I am running a VM with

Re: Querying URL with square brackets

2023-11-24 Thread Martynas Jusevičius
On Fri, Nov 24, 2023 at 12:50 PM Laura Morales wrote: > > > If you want a page for every book, don't use fragment URIs. Use > > http://example.org/book/1 or http://example.org/book/1#this instead of > > http://example.org/book#1. > > yes yes I agree with this. I only tried to present an example

Re: Querying URL with square brackets

2023-11-24 Thread Martynas Jusevičius
On Fri, Nov 24, 2023 at 11:46 AM Laura Morales wrote: > > > > in the case that I want to use these URLs with a web browser. > > > > I don't understand what the trouble with the above example is? > > The problem with # is that browsers treat them as the start of a local > reference. When you open

Re: Querying URL with square brackets

2023-11-24 Thread Martynas Jusevičius
On Fri, Nov 24, 2023 at 10:31 AM Laura Morales wrote: > > Thank you a lot. FILTER(STR(?id) = "...") works, as suggested by Andy. I do > recognize though that it is a hack, and that URLs should probably not have a > [. > > But now I have trouble understanding UTF8 addresses. I would use random

Re: Ever-increasing memory usage in Fuseki

2023-11-01 Thread Martynas Jusevičius
There were several long threads about this issue in the past months. I think the consensus was it's Jetty-related, but I don't know if the issue is addressed. https://lists.apache.org/thread/31ytzp3p2zg3gcsm86t1xlh4nsmdcfkc https://lists.apache.org/thread/b64trj1c9n9rt0xjowqt4j23h9cy3v4c

Re: HTTP QueryExecution has been closed

2023-10-27 Thread Martynas Jusevičius
What I meant: can try-with-resources call qex.close() before constructQuads even does the checkNotClosed() check? On Fri, Oct 27, 2023 at 11:31 PM Martynas Jusevičius wrote: > > Can try-with-resources call qex.close() before constructDataset() does here? > https://github.com/apache/

Re: HTTP QueryExecution has been closed

2023-10-27 Thread Martynas Jusevičius
Can try-with-resources call qex.close() before constructDataset() does here? https://github.com/apache/jena/blob/main/jena-arq/src/main/java/org/apache/jena/sparql/exec/QueryExecDataset.java#L232 On Fri, Oct 27, 2023 at 11:18 PM Martynas Jusevičius wrote: > > Hi, > > I'm trying t

HTTP QueryExecution has been closed

2023-10-27 Thread Martynas Jusevičius
Hi, I'm trying to understand in which circumstances can the following code try (QueryExecution qex = QueryExecution.create(getQuery(), rowModel)) { return qex.execConstructDataset(); } throw the "HTTP QueryExecution has been closed" exception? Full code here:

Re: How to reconstruct a Literal from a SPARQL SELECT row element?

2023-10-26 Thread Martynas Jusevičius
iteral(objectDataValue); > System.err.println("objectLiteral: " + objectDataValue + " " + > dataLiteral.getDatatypeURI()); > > always says type is http://www.w3.org/2001/XMLSchema#string > > > On 10/26/2023 5:26 AM, Martynas Jusevičius wrote: > > You need

Re: How to reconstruct a Literal from a SPARQL SELECT row element?

2023-10-26 Thread Martynas Jusevičius
You need Model::createTypedLiteral https://jena.apache.org/documentation/notes/typed-literals.html#basic-api-operations On Thu, 26 Oct 2023 at 12.24, Steve Vestal wrote: > If I reconstruct using > > Literal dataLiteral = resultGraph.createLiteral(objectDataValue); > > it always says the

Re: How to reconstruct a Literal from a SPARQL SELECT row element?

2023-10-26 Thread Martynas Jusevičius
I think DATATYPE() is what you are looking for: https://kgdev.net/specifications/sparql11-query/expressions/SparqlOps/func-rdfTerms/#func-datatype On Thu, 26 Oct 2023 at 11.17, Steve Vestal wrote: > What is the best way to reconstruct a typed Literal from a SPARQL SELECT > result? > > I have a

Re: General RDFDatatype factory?

2023-10-24 Thread Martynas Jusevičius
Maybe this? https://jena.apache.org/documentation/notes/typed-literals.html#user-defined-non-xsd-data-types On Tue, 24 Oct 2023 at 19.17, Steve Vestal wrote: > https://jena.apache.org/documentation/notes/typed-literals.html#xsd says > "These are all available as static member variables >

Re: General RDFDatatype factory?

2023-10-24 Thread Martynas Jusevičius
Ah sorry Steve, I think I misread your question :) On Tue, 24 Oct 2023 at 19.07, Martynas Jusevičius wrote: > > https://jena.apache.org/documentation/javadoc/jena/org.apache.jena.core/org/apache/jena/rdf/model/ResourceFactory.html#createTypedLiteral(java.lang.

Re: General RDFDatatype factory?

2023-10-24 Thread Martynas Jusevičius
https://jena.apache.org/documentation/javadoc/jena/org.apache.jena.core/org/apache/jena/rdf/model/ResourceFactory.html#createTypedLiteral(java.lang.String,org.apache.jena.datatypes.RDFDatatype) On Tue, 24 Oct 2023 at 18.38, Steve Vestal wrote: > Is there a factory to create an RDFDatatype

Re: read-only Fuseki TDB2

2023-09-18 Thread Martynas Jusevičius
This looks like the configuration that you need: https://jena.apache.org/documentation/fuseki2/fuseki-configuration.html#read-only-service On Mon, Sep 18, 2023 at 2:43 PM Jim Balhoff wrote: > > Hi, > > Is it possible to run a Fuseki server using a read-only TDB2 directory? I’d > like to run a

Re: Mystery memory leak in fuseki

2023-08-31 Thread Martynas Jusevičius
Does Fuseki have direct code dependency on Jetty? Or would it be possible to try switching to a different servlet container such as Tomcat? JAX-RS, which I’ve advocated here multiple times, provides such a higher-level abstraction above servlets that would enable easy switching. On Fri, 25 Aug

Re: Commercial Fuseki operational support

2023-08-25 Thread Martynas Jusevičius
Nicholas, Fuseki is present on the AWS marketplace, if you follow your own link :) The product is built using CDK, CloudFormation and Docker. If you’d be interested to collaborate on that, send me an email off-list. Martynas atomgraph.com On Fri, 25 Aug 2023 at 10.52, Nicholas Car wrote: >

Re: Re: Mystery memory leak in fuseki

2023-07-21 Thread Martynas Jusevičius
There is one more variable in this picture: Java’s container awareness https://developers.redhat.com/articles/2022/04/19/java-17-whats-new-openjdks-container-awareness Whether it has an impact in this case, I have no idea :) On Thu, 20 Jul 2023 at 11.48, Conal McLaughlin wrote: > Hey Andy, > >

Re: Dataset management API

2023-07-13 Thread Martynas Jusevičius
I realised the dataset management API is only available in fuseki-webapp and not fuseki-main. That's unfortunate. On Thu, Jul 13, 2023 at 10:09 PM Martynas Jusevičius wrote: > > Andy, > > Where are the dataset definitions created through the API persisted? > Are they merged wi

Re: Dataset management API

2023-07-13 Thread Martynas Jusevičius
Andy, Where are the dataset definitions created through the API persisted? Are they merged with the datasets defined in the config file, or how does it work? Martynas On Sun, 2 Jul 2023 at 19.03, Andy Seaborne wrote: > > > On 02/07/2023 13:23, Martynas Jusevičius wrote: > > Hi

Re: Mystery memory leak in fuseki

2023-07-04 Thread Martynas Jusevičius
You can profile it in the container as well :) https://github.com/AtomGraph/fuseki-docker#profiling On Tue, 4 Jul 2023 at 11.12, Rob @ DNR wrote: > Does this only happen in a container? Or can you reproduce it running > locally as well? > > If you can reproduce it locally then attaching a

Re: Mystery memory leak in fuseki

2023-07-03 Thread Martynas Jusevičius
There have been a few similar threads: https://www.mail-archive.com/users@jena.apache.org/msg19871.html https://www.mail-archive.com/users@jena.apache.org/msg18825.html On Mon, 3 Jul 2023 at 15.20, Dave Reynolds wrote: > We have a very strange problem with recent fuseki versions when running

Dataset management API

2023-07-02 Thread Martynas Jusevičius
Hi, Can I see an example of the data that needs to be POSTed to /$/datasets in order to create a new dataset+service? The API is documented here but the data example is missing: https://jena.apache.org/documentation/fuseki2/fuseki-server-protocol.html#adding-a-dataset-and-its-services I hope

Re: CONSTRUCT query with rsparql

2023-06-14 Thread Martynas Jusevičius
Sorry, I meant this: CONSTRUCT { ?s ?p ?o . } WHERE { ?s ?p?o ; <http://purl.org/dc/terms/title> "the message" } On Wed, Jun 14, 2023 at 12:23 PM Martynas Jusevičius wrote: > > No syntax issue, but with ?o being not bou

Re: CONSTRUCT query with rsparql

2023-06-14 Thread Martynas Jusevičius
sage" } On Wed, Jun 14, 2023 at 12:13 PM Hashim Khan wrote: > > Thanks for the quick response. I would ask if you write the exact query > please. By, ?o not bound, you mean that we can not execute such a > construct query? Or is there a syntax issue? > > On Wed, Jun

Re: CONSTRUCT query with rsparql

2023-06-14 Thread Martynas Jusevičius
?o is not bound in your WHERE pattern. On Wed, Jun 14, 2023 at 11:50 AM Hashim Khan wrote: > > Hi, > > ./rsparql --service http://localhost:8890/sparql --query query.sparql > --results=ntriples I want to save the triples in NT format as returned by > the construct query given here. > CONSTRUCT

Re: Executing SHACL over Fuseki dataset

2023-06-06 Thread Martynas Jusevičius
t:3030/ds/shacl?graph=default' > > Best regards, > Øyvind > > > On Tue, Jun 6, 2023 at 11:27 AM Martynas Jusevičius > wrote: > > > Hi, > > > > What is the approach to validating data stored in Fuseki with SHACL? > > Without having to retrieve a da

Executing SHACL over Fuseki dataset

2023-06-06 Thread Martynas Jusevičius
Hi, What is the approach to validating data stored in Fuseki with SHACL? Without having to retrieve a data dump first. I have found some generic projects that claim to translate SHACL to SPARQL: https://github.com/rdfshapes/shacl-sparql https://github.com/Shape-Fragments/SHACL2SPARQL Has anyone

Re: XSD date functions broken?

2023-04-18 Thread Martynas Jusevičius
Neither 1649185973 nor “1649185973” is a valid xsd:date value. Isn’t that the issue? On Tue, 18 Apr 2023 at 14.00, Enrico.Daga wrote: > Hi Simon, > > > The question is what the function should do?? > > Convert a timestamp into a date time format (and then later into a > readable string). > >

RDF-syntax-check GH action

2023-02-28 Thread Martynas Jusevičius
Hi, I made a riot-based RDF syntax checking GH action: https://github.com/AtomGraph/RDF-syntax-check Maybe it can be of use :) Martynas

Re: [SHACL] sh:prefixes

2023-02-28 Thread Martynas Jusevičius
co] <https://www.w3.org/TR/shacl/#sparql-prefixes> > <https://www.w3.org/TR/shacl/#sparql-prefixes> > > in your case it would be skos: as subject. > > Holger > > > On 28 Feb 2023, at 12:56 pm, Martynas Jusevičius > wrote: > > Hi, > > Does Jena's S

[SHACL] sh:prefixes

2023-02-28 Thread Martynas Jusevičius
Hi, Does Jena's SHACL engine support sh:prefixes? Or am I using them wrong? The following test shape @prefix skos: . @prefix sh: . <#ConceptBroaderCycleShape> a sh:NodeShape ; sh:targetClass skos:Concept ;

Re: SHACLC and RDFLanguages

2022-12-15 Thread Martynas Jusevičius
51, Martynas Jusevičius wrote: > > Could RDFParserRegistry::getRegistered and > > ResultSetReaderRegistry::getRegistered be added? > > Consistent naming would be registered(). > > Andy > > > On Fri, May 20, 2022 at 9:01 PM Andy Seaborne wrote: > >> > &g

Re: Replacement for CSVInput and TSVInput?

2022-12-15 Thread Martynas Jusevičius
Thanks. On Mon, Dec 12, 2022 at 7:55 PM Andy Seaborne wrote: > > ResultsSetMgr which uses ResultsReader > > > On 12/12/2022 15:45, Martynas Jusevičius wrote: > > Hi, > > > > I'm upgrading Jena 4.5.0 to 4.6.1. > > > > I can see that org.

Replacement for org.apache.jena.rdfxml.xmloutput.impl.Basic

2022-12-15 Thread Martynas Jusevičius
Hi, org.apache.jena.rdfxml.xmloutput.impl.Basic is gone in 4.6.1. How do I rewrite the following code then? RDFWriterI writer = new Basic(); writer.setProperty("allowBadURIs", true); // round-tripping RDF/POST with user input may contain invalid URIs writer.write(model, baos, null);

Replacement for CSVInput and TSVInput?

2022-12-12 Thread Martynas Jusevičius
Hi, I'm upgrading Jena 4.5.0 to 4.6.1. I can see that org.apache.jena.sparql.resultset.CSVInput is gone and org.apache.jena.sparql.resultset.TSVInput is deprecated. What are the replacements for them? My code was the following: if

Re: How to Use Fuseki Backup API

2022-11-27 Thread Martynas Jusevičius
On Sun, Nov 27, 2022 at 7:20 PM Bruno Kinoshita wrote: > > Ah, at the top of this page: > https://jena.apache.org/documentation/fuseki2/fuseki-main#fuseki-docker > > It says: "Fuseki main is a packaging of Fuseki as a triple store without a > UI for administration." The coupling between the UI

Re: Encoding URI component

2022-11-10 Thread Martynas Jusevičius
Got it. I found the URL on SO: https://stackoverflow.com/a/67021655/1003113 On Thu, Nov 10, 2022 at 9:40 PM Andy Seaborne wrote: > > > > On 10/11/2022 18:57, Martynas Jusevičius wrote: > > Hi, > > > > What's the current way of encoding a URI component? E.g. query s

Encoding URI component

2022-11-10 Thread Martynas Jusevičius
Hi, What's the current way of encoding a URI component? E.g. query string value, or a fragment. I'm guessing there is something in the IRIx package, but its Javadoc is down: https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/irix/package-summary.html Martynas

Re: Fuseki container is OOMKilled

2022-09-30 Thread Martynas Jusevičius
On Fri, Sep 30, 2022 at 5:06 PM Andy Seaborne wrote: > > On 30/09/2022 12:39, Martynas Jusevičius wrote: > > On Fri, Sep 30, 2022 at 11:40 AM Andy Seaborne wrote: > >> > >> Depends on what "runs out of memory means". > > > > MEM% in docker st

Re: Fuseki container is OOMKilled

2022-09-30 Thread Martynas Jusevičius
es, different Docker > > container, different Fuseki version ... > > > > > > I think Andy will have better explanations and maybe also others like > > Rob or people already using Fuseki@Docker > > > > On 29.09.22 16:45, Martynas Jusevičius wrote: >

Re: Fuseki container is OOMKilled

2022-09-29 Thread Martynas Jusevičius
Still hasn't crashed, so less heap could be the solution in this case. On Thu, Sep 29, 2022 at 3:12 PM Martynas Jusevičius wrote: > > I've lowered the heap size to 4GB to leave more off-heap memory (6GB). > It's been an hour and OOMKilled hasn't happened yet unlike before. > MEM% in

Re: Fuseki container is OOMKilled

2022-09-29 Thread Martynas Jusevičius
I've lowered the heap size to 4GB to leave more off-heap memory (6GB). It's been an hour and OOMKilled hasn't happened yet unlike before. MEM% in docker stats peaks around 70%. On Thu, Sep 29, 2022 at 12:41 PM Martynas Jusevičius wrote: > > OK the findings are weird so far... > > Un

Re: Fuseki container is OOMKilled

2022-09-29 Thread Martynas Jusevičius
at tell us? On Thu, Sep 29, 2022 at 11:58 AM Martynas Jusevičius wrote: > > Hi Eugen, > > I have the debugger working, I was trying to connect the profiler :) > Finally I managed to connect from VisualVM on Windows thanks to this > answer: > https://stackoverflow.com/questions

Re: Fuseki container is OOMKilled

2022-09-29 Thread Martynas Jusevičius
and port is listening, open (confirm with > docker ps) connect to it to debug. > > Good luck, > > On 29.09.2022 11:22, Martynas Jusevičius wrote: > > On Thu, Sep 29, 2022 at 9:41 AM Lorenz Buehmann > > wrote: > >> > >> You're working on an in-memory dataset? >

Re: Fuseki container is OOMKilled

2022-09-29 Thread Martynas Jusevičius
t neither jstatd nor JMX connections worked... Now I want to run VisualVM inside the container itself but this requires changing the Docker image in a way that I haven't figured out yet. > > On 28.09.22 20:23, Martynas Jusevičius wrote: > > Hi, > > > > We have a

Fuseki container is OOMKilled

2022-09-28 Thread Martynas Jusevičius
Hi, We have a dockerized Fuseki 4.5.0 instance that is gradually running out of memory over the course of a few hours. 3 datasets, none larger than 10 triples. The load is negligible (maybe a few bursts x 10 simple queries per minute), no updates. Dockerfile:

Re: Re: TDB2 bulk loader - multiple files into different graph per file

2022-08-29 Thread Martynas Jusevičius
On Sun, Aug 28, 2022 at 11:00 AM Lorenz Buehmann wrote: > > Hi Andy, > > thanks for fast response. > > I see - the only drawback with wrapping the streams into TriG is when we > have Turtle syntax files (or lets say any non N-Triples format) - afaik, > prefixes aren't allowed inside graphs, i.e.

Re: Cannot invoke "String.equals(Object)" because "prefix" is null

2022-07-13 Thread Martynas Jusevičius
, I'm afraid... On Wed, Jul 13, 2022 at 5:51 PM Martynas Jusevičius wrote: > > I can see that this.getPrefixFor( value ) returns null, where value is > "http://www.w3.org/2001/XMLSchema#;. > https://github.com/apache/jena/blob/main/jena-core/src/main/java/org/apache/jena

Re: Cannot invoke "String.equals(Object)" because "prefix" is null

2022-07-13 Thread Martynas Jusevičius
I can see that this.getPrefixFor( value ) returns null, where value is "http://www.w3.org/2001/XMLSchema#;. https://github.com/apache/jena/blob/main/jena-core/src/main/java/org/apache/jena/rdfxml/xmloutput/impl/BaseXMLWriter.java#L229 No idea why though. On Wed, Jul 13, 2022 at 5:03 PM Mar

Cannot invoke "String.equals(Object)" because "prefix" is null

2022-07-13 Thread Martynas Jusevičius
Hi, Never seen this exception before and not sure yet what causes it: java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because "prefix" is null org.apache.jena.rdfxml.xmloutput.impl.BaseXMLWriter.checkLegalPrefix(BaseXMLWriter.java:845)

Re: Fuseki https certificate problems

2022-07-07 Thread Martynas Jusevičius
Can't you just provide a keystore password? https://stackoverflow.com/questions/12862655/using-an-empty-keystore-password-used-to-be-possible On Thu, Jul 7, 2022 at 11:42 AM Andy Seaborne wrote: > > Hi Nikolaos, > > > On 06/07/2022 11:04, Nikolaos Beredimas wrote: > > While trying to get Fuseki

Re: Restricting SPARQL update to a single named graph

2022-06-13 Thread Martynas Jusevičius
On Fri, Jun 10, 2022 at 5:13 PM Martynas Jusevičius wrote: > > On Tue, Jun 7, 2022 at 9:15 PM Andy Seaborne wrote: > > > > On 07/06/2022 10:47, Martynas Jusevičius wrote: > > > Hi, > > > > > > I have implemented PATCH method for the Graph Store Protoc

Re: Restricting SPARQL update to a single named graph

2022-06-10 Thread Martynas Jusevičius
On Tue, Jun 7, 2022 at 9:15 PM Andy Seaborne wrote: > > On 07/06/2022 10:47, Martynas Jusevičius wrote: > > Hi, > > > > I have implemented PATCH method for the Graph Store Protocol: > > https://www.w3.org/TR/sparql11-http-rdf-update/#http-patch > > > > T

Re: Restricting SPARQL update to a single named graph

2022-06-09 Thread Martynas Jusevičius
manipulation, that would be appreciated. On Thu, Jun 9, 2022 at 12:21 PM Martynas Jusevičius wrote: > > On Thu, Jun 9, 2022 at 11:03 AM Martynas Jusevičius > wrote: > > > > On Wed, Jun 8, 2022 at 12:22 PM Andy Seaborne wrote: > > > > > > > > > >

Re: Restricting SPARQL update to a single named graph

2022-06-09 Thread Martynas Jusevičius
On Thu, Jun 9, 2022 at 11:03 AM Martynas Jusevičius wrote: > > On Wed, Jun 8, 2022 at 12:22 PM Andy Seaborne wrote: > > > > > > > > On 08/06/2022 09:22, Martynas Jusevičius wrote: > > > On Tue, Jun 7, 2022 at 9:15 PM Andy Seaborne wrote: > > >&

Re: Restricting SPARQL update to a single named graph

2022-06-09 Thread Martynas Jusevičius
On Wed, Jun 8, 2022 at 12:22 PM Andy Seaborne wrote: > > > > On 08/06/2022 09:22, Martynas Jusevičius wrote: > > On Tue, Jun 7, 2022 at 9:15 PM Andy Seaborne wrote: > >> > >> On 07/06/2022 10:47, Martynas Jusevičius wrote: > >>> Hi, > >>&g

Re: Restricting SPARQL update to a single named graph

2022-06-08 Thread Martynas Jusevičius
On Tue, Jun 7, 2022 at 9:15 PM Andy Seaborne wrote: > > On 07/06/2022 10:47, Martynas Jusevičius wrote: > > Hi, > > > > I have implemented PATCH method for the Graph Store Protocol: > > https://www.w3.org/TR/sparql11-http-rdf-update/#http-patch > > > > T

Restricting SPARQL update to a single named graph

2022-06-07 Thread Martynas Jusevičius
Hi, I have implemented PATCH method for the Graph Store Protocol: https://www.w3.org/TR/sparql11-http-rdf-update/#http-patch The PATCH is applied to a named graph. I am missing this bit however: " If a SPARQL 1.1 Update request is used as the RDF payload for a PATCH request that makes changes to

Re: SHACLC and RDFLanguages

2022-05-23 Thread Martynas Jusevičius
Could RDFParserRegistry::getRegistered and ResultSetReaderRegistry::getRegistered be added? On Fri, May 20, 2022 at 9:01 PM Andy Seaborne wrote: > > > > On 20/05/2022 14:05, Martynas Jusevičius wrote: > > Andy, is that correct? > > Yes > > Andy > > &

Re: SHACLC and RDFLanguages

2022-05-20 Thread Martynas Jusevičius
Andy, is that correct? On Tue, May 17, 2022 at 1:33 PM Martynas Jusevičius wrote: > > On Tue, May 17, 2022 at 1:19 PM Andy Seaborne wrote: > > > > RDFLanguages is a general registry of names (Lang's) in the system. > > > > It is not for functional

Re: xsd:DateTime not working

2022-05-19 Thread Martynas Jusevičius
Works for me: PREFIX xsd: select * where { bind (xsd:dateTime("2014-06-05T10:10:10+05:00") as ?asDate) }

Re: SHACLC and RDFLanguages

2022-05-17 Thread Martynas Jusevičius
iterate RDFLanguages::getRegistered and check each Lang against RDFParserRegistry::isRegistered/ResultSetReaderRegistry::isRegistered? > > Andy > > On 17/05/2022 09:54, Martynas Jusevičius wrote: > > Hi, > > > > After upgrading from 4.3.2 to 4.5.0, some of our RDF w

SHACLC and RDFLanguages

2022-05-17 Thread Martynas Jusevičius
Hi, After upgrading from 4.3.2 to 4.5.0, some of our RDF writing code started failing. It seems that this is due to RDFLanguages.isTriples(Lang.SHACLC) returning true, which messes up our content negotiation as it attempts to write Models as SHACLC. Can this be rectified? The RDFLanguages

Re: Apache Jena - 10 years as an Apache Project.

2022-04-19 Thread Martynas Jusevičius
Congrats :) User since 2006 I think. On Tue, Apr 19, 2022 at 9:50 PM wrote: > > It's especially impressive because we are thriving with new contributions. > Go us! > > Adam > > On Mon, Apr 18, 2022, 3:51 PM Dan Brickley wrote: > > > On Mon, 18 Apr 2022 at 17:39, Andy Seaborne wrote: > > > > >

Re: querying lots of quad files in block storage

2022-04-14 Thread Martynas Jusevičius
There was a related thread https://www.mail-archive.com/users@jena.apache.org/msg18577.html On Thu, 14 Apr 2022 at 22.42, Justin wrote: > Hello, > > I am looking to see if Jena is a good fit for querying many billion quads > (in thousands of .nq files) sitting in block storage (like AWS S3).

Re: Ontology URI vs document URI

2022-04-03 Thread Martynas Jusevičius
On Fri, Apr 1, 2022 at 1:13 PM Andy Seaborne wrote: > > > > On 26/03/2022 15:46, Martynas Jusevičius wrote: > > Hi, > > > > Using the ontology API, if one owl:imports an ontology URI such as > > <http://www.w3.org/ns/org#> into ontology model, the impo

Re: Ontology URI vs document URI

2022-03-26 Thread Martynas Jusevičius
Jusevičius wrote: > > Could OntDocumentManager.ReadHook be used for this? > https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/ontology/OntDocumentManager.ReadHook.html > > On Sat, Mar 26, 2022 at 4:46 PM Martynas Jusevičius > wrote: > > > > Hi, > >

Re: Ontology URI vs document URI

2022-03-26 Thread Martynas Jusevičius
Could OntDocumentManager.ReadHook be used for this? https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/ontology/OntDocumentManager.ReadHook.html On Sat, Mar 26, 2022 at 4:46 PM Martynas Jusevičius wrote: > > Hi, > > Using the ontology API, if one owl:imports an

Ontology URI vs document URI

2022-03-26 Thread Martynas Jusevičius
Hi, Using the ontology API, if one owl:imports an ontology URI such as into ontology model, the imported model gets cached under the "http://www.w3.org/ns/org#; key. However, given a owl:Ontology one can argue that this URI is of the

Re: SPARQL optional limiting results

2022-03-18 Thread Martynas Jusevičius
Can you provide a full query string and a data sample that illustrate the problem? Then it's easy to see what's going on, for example on http://sparql.org/sparql.html. On Fri, Mar 18, 2022 at 11:52 AM Mikael Pesonen wrote: > > > Is this a problem with query, not with Jena? > > On 15/03/2022

Re: [4.3.2] Cannot invoke "org.apache.jena.rdf.model.Property.asNode()" because "org.apache.jena.vocabulary.RDF.type" is null

2022-03-15 Thread Martynas Jusevičius
Hi, On Wed, Mar 9, 2022 at 12:34 PM Andy Seaborne wrote: > > > > On 09/03/2022 11:16, Martynas Jusevičius wrote: > > Hi, > > > > This appeared after Java upgrade from 11 to 17: > > > > WARN LocationMapper:188 -

Re: JSON-LD: 1.0 or 1.1

2022-03-15 Thread Martynas Jusevičius
Hi, Are the output "flavors" for JSON-LD 1.0 only then? https://jena.apache.org/documentation/io/rdf-output.html#json-ld On Fri, Mar 11, 2022 at 11:39 AM Andy Seaborne wrote: > > Jena has both JSON 1.0, provided by jsonld-java, and JSON-LD 1.1, > provided by Titanium. > > What should the

[4.3.2] Cannot invoke "org.apache.jena.rdf.model.Property.asNode()" because "org.apache.jena.vocabulary.RDF.type" is null

2022-03-09 Thread Martynas Jusevičius
Hi, This appeared after Java upgrade from 11 to 17: WARN LocationMapper:188 - Error in configuration file: Cannot invoke "org.apache.jena.rdf.model.Property.asNode()" because "org.apache.jena.vocabulary.RDF.type" is null I was looking at the LocationMapper code, but line 188 does not contain

Re: Can Fuseki SHACL-validate data before inserting them into the graph?

2022-03-06 Thread Martynas Jusevičius
Processor can validate request payloads against SPIN and SHACL. The constraints are defined as part of the LDT ontology. https://github.com/AtomGraph/Processor On Sat, 5 Mar 2022 at 19.35, Andy Seaborne wrote: > > > On 04/03/2022 17:24, Moritz Orth wrote: > > Hello everyone, > > > > I’m

Re: Fuseki context path?

2022-02-14 Thread Martynas Jusevičius
Adam, Why not use the WAR file then in a servlet container? On Mon, 14 Feb 2022 at 21.59, wrote: > I'm afraid that doesn't work because I'm interested in proxying the entire > application, not a single dataset. I want to expose the whole UI, admin, > SPARQL editor and all. > > I've tried

Re: Disabling BNode UID generation

2022-02-04 Thread Martynas Jusevičius
Hi Ryan, Isn't it easier to skolemize the bnodes into URIs that you control? If you only have URIs, then you could even hash the graph with SPARQL: https://stackoverflow.com/questions/65798817/how-to-generate-a-hash-of-an-rdf-graph-using-sparql It works but probably doesn't scale that well.

Re: Trying to count the properties used for each class

2022-01-24 Thread Martynas Jusevičius
You're counting the same thing you're grouping by. I think you need: SELECT ?c (COUNT(DISTINCT ?p) AS ?pcount) WHERE { ?s a ?c . ?s ?p ?o . } GROUP BY ?c

Mapping multiple files into the same namespace

2022-01-24 Thread Martynas Jusevičius
Hi, I want to merge multiple RDF files into a single ontology under one namespace URI. E.g. to add custom assertions to ontologies without touching their original files. Can LocationMapper/FileManager be made/extended to do this, or do I need to roll something of my own? Martynas atomgraph.com

Re: Dynamically restricting graph access at SPARQL query time

2022-01-24 Thread Martynas Jusevičius
estions, if you don't mind. > > Regards, > Vilnis > > On Fri, 21 Jan 2022 at 15:26, Martynas Jusevičius > wrote: > > > > WebAccessControl ontology might be relevant here: > > https://www.w3.org/wiki/WebAccessControl > > We're using a request filt

Re: Replacing FileManager with Dataset

2022-01-22 Thread Martynas Jusevičius
I meant map in FileManager... On Sat, Jan 22, 2022 at 9:14 PM Martynas Jusevičius wrote: > > Hi, > > We are using FileManager as part of the Ontology API. We noticed it's > Model cache related methods are marked deprecated: > https://jena.apache.org/documentation/javadoc/je

Replacing FileManager with Dataset

2022-01-22 Thread Martynas Jusevičius
Hi, We are using FileManager as part of the Ontology API. We noticed it's Model cache related methods are marked deprecated: https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/util/FileManager.html I don't see how OntDocumentManager can work without some sort of model cache. But

Re: Dynamically restricting graph access at SPARQL query time

2022-01-21 Thread Martynas Jusevičius
WebAccessControl ontology might be relevant here: https://www.w3.org/wiki/WebAccessControl We're using a request filter that controls access against authorizations using SPARQL. On Fri, Jan 21, 2022 at 4:13 PM Vilnis Termanis wrote: > > Hi, > > For a SPARQL query via Fuseki, we are trying to

Re: Trasforming and quering RDFs

2022-01-18 Thread Martynas Jusevičius
try to present the RDF in more readable formats such as N3 or Turtle? > > Rinor Sefa > > -----Original Message- > From: Martynas Jusevičius > Sent: Tuesday, 18 January 2022 17:38 > To: jena-users-ml > Subject: Re: Trasforming and quering RDFs > > Hi, > > S

Re: Trasforming and quering RDFs

2022-01-18 Thread Martynas Jusevičius
Hi, SPARQL is an RDF query language, so no. But there are tools that can help: https://github.com/AtomGraph/JSON2RDF https://sparql-anything.cc Martynas atomgraph.com On Tue, Jan 18, 2022 at 5:32 PM emri mbiemri wrote: > > Dears, > > In order to have a more scalable knowledge base and easy

Re: Using Fuseki to host IRIs / Using Fuseki as an LDP

2022-01-04 Thread Martynas Jusevičius
Hi Jakub, What you are describing looks like Linked Data backed by an RDF triplestore. Linked Data Templates (LDT) is a specification for this exact use case, it defines how Linked Data requests translate to SPARQL commands. https://atomgraph.github.io/Linked-Data-Templates/ Processor is an

Javadoc links are broken?

2021-12-25 Thread Martynas Jusevičius
Hi, Happy holidays! Is it just me or most Javadoc links are broken? Or is it a Google indexing problem? For example: https://jena.apache.org/documentation/javadoc/rdfconnection/org/apache/jena/rdfconnection/RDFDatasetConnection.html

Re: Read-only wrapper for Jena Model

2021-12-20 Thread Martynas Jusevičius
2/2021 22:00, Martynas Jusevičius wrote: > > Andy, > > > > A follow-up question: how would you create an immutable OntModel? > > > > OntModel ontModel = ModelFactory.createOntologyModel(ontModelSpec, > modelRO); > > > > Would the ontModel stil

Re: Convert JSON to RDF with Jena

2021-12-20 Thread Martynas Jusevičius
https://github.com/AtomGraph/JSON2RDF On Mon, 20 Dec 2021 at 12.29, emri mbiemri wrote: > Hello all, > > I would like to ask if there is any method to directly convert the below > JSON file to an RDF graph? If so then how can I do it? > > >

Re: Read-only wrapper for Jena Model

2021-12-18 Thread Martynas Jusevičius
Andy, A follow-up question: how would you create an immutable OntModel? OntModel ontModel = ModelFactory.createOntologyModel(ontModelSpec, modelRO); Would the ontModel still be mutable? On Sat, Aug 28, 2021 at 3:43 PM Andy Seaborne wrote: > > > > On 27/08/2021 12:23, Zak Mc Kracken wrote:

Re: [3.16.0] Repeating identical queries from SERVICE

2021-12-10 Thread Martynas Jusevičius
{ ?this a ?Type } } } } } } On Sat, Dec 11, 2021 at 12:39 AM Martynas Jusevičius wrote: > > Hi, > > I have query that federates between 2 Fuseki instances (the "remote" > one is fuseki-end-user): > > PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#&

[3.16.0] Repeating identical queries from SERVICE

2021-12-10 Thread Martynas Jusevičius
Hi, I have query that federates between 2 Fuseki instances (the "remote" one is fuseki-end-user): PREFIX rdfs: PREFIX acl: PREFIX lacl: PREFIX foaf:

Re: Apache Jena rules to find the minimum in a list of data property values

2021-12-05 Thread Martynas Jusevičius
You could use the CONSTRUCT query form as rules and augment your model with the constructed triples. Something like this (untested): PREFIX covidepid: <> PREFIX foaf: CONSTRUCT { ?person a covidepid:YoungestPerson . } WHERE { SELECT ?house ?person

Re: [3.16.0] Implementing ReaderRIOT

2021-10-27 Thread Martynas Jusevičius
On Tue, Oct 26, 2021 at 11:52 AM Andy Seaborne wrote: > > > On 26/10/2021 09:40, Martynas Jusevičius wrote: > > Hi, > > > > I'm implementing a Reader that extracts

  1   2   3   4   5   6   7   8   >