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

Re: JENA Loader Benchmarks

2019-06-14 Thread Martynas Jusevičius
What about SSD disks, don't they make a difference? On Sat, Jun 15, 2019 at 12:36 AM Marco Neumann wrote: > > that did the trick Andy, very good might be a good idea to add this to the > distribution in jena-log4j.properties > > I am getting these numbers for a midsize dedicated server, very

Re: Creating plain numeric literals using jena

2019-06-12 Thread Martynas Jusevičius
UpdateAction.parseExecute( update, model ); > model.write( System.out, "TTL" ); > > ... but I would prefer Jena API if possible. > > -Original Message- > From: Martynas Jusevičius > Sent: keskiviikko 12. kesäkuuta 2019 15.22 > To: jena-users-ml > Subject: R

Re: Creating plain numeric literals using jena

2019-06-12 Thread Martynas Jusevičius
AFAIK there are no "plain numeric literals". That's just syntactic sugar for numbers in Turtle: https://www.w3.org/TR/turtle/#abbrev The semantics of both forms are the same, so does it really matter? On Wed, Jun 12, 2019 at 2:07 PM Miika Alonen wrote: > > Hi, > > I have existing system that

Re: trying to start up the geosparql fuseki server

2019-06-10 Thread Martynas Jusevičius
Ultimately I think it would be great to have it Docker-ized. @Andy Seaborne was there any progress with that? I've made my Dockerfile, feel free to reuse it: https://github.com/AtomGraph/fuseki-docker/blob/master/Dockerfile On Mon, Jun 10, 2019 at 5:02 PM wrote: > > This works with

Re: application/sparql-results+json,*/* Accept header returns XML

2019-05-31 Thread Martynas Jusevičius
Lorenz, I was about to reply the same. But I think */* in the Accept header should match the RDF graph media types? Even if application/sparql-results+json does not. On Fri, May 31, 2019 at 12:26 PM Lorenz B. wrote: > > Hello Mikael, > > JSON Format is for SELECT and ASK. > > CONSTRUCT creates

Multi-tenant Fuseki

2019-05-21 Thread Martynas Jusevičius
Hi, I have a use case for deploying triplestores dynamically. They should provide SPARQL Protocol and GSP endpoints on unique URLs and isolate the datasets from each other, while also having a minimal footprint. I'm thinking of using Fuseki Docker image for this [1]. Would I need to run a new

Use same endpoint URL for both SPARQL query and update

2019-04-27 Thread Martynas Jusevičius
Hi, I want both Fuseki's query and update endpoints on /sparql. I read the answers to this question multiple times: https://stackoverflow.com/questions/39401777/use-same-url-for-both-query-and-update but I still don't get what the solution is? I have pretty much the same setup as the OP:

Re: Migrate CVS data into RDF

2019-04-09 Thread Martynas Jusevičius
And there is also CSV2RDF which uses SPARQL query as a transformation: https://github.com/AtomGraph/CSV2RDF On Tue, Apr 9, 2019 at 12:11 PM Andy Seaborne wrote: > > Yet another choice is tarql: > > https://github.com/tarql/tarql > > On 08/04/2019 14:13, Glenn Eriksson wrote: > > Hi, > > > > I am

Re: Creating RDF database and queryring from Fuseki server

2019-04-04 Thread Martynas Jusevičius
Probably easiest to use a Docker image, for example: https://hub.docker.com/r/stain/jena-fuseki/ https://hub.docker.com/r/atomgraph/fuseki/ On Thu, Apr 4, 2019 at 11:47 AM Harun-Or-Roshid wrote: > > I want to create an RDF database for my university. And I want to Query the > database form a

Re: sparql.org allows invalid Turtle

2019-04-04 Thread Martynas Jusevičius
So a bug in sparql.org then? :) On Wed, Apr 3, 2019 at 11:16 PM Andy Seaborne wrote: > > riot --strict > > produces > > ERROR [line: 3, col: 5 ] Base directive not terminated by a dot > > Andy > > On 03/04/2019 20:45, Martynas Jusevičius wrote: > >

sparql.org allows invalid Turtle

2019-04-03 Thread Martynas Jusevičius
Hi, I've started using http://sparql.org/data-validator.html instead of http://ttl.summerofcode.be. However given such invalid Turtle with a trailing dot missing on the first line @base . the former parsed it into

Re: missing xml:base

2019-02-22 Thread Martynas Jusevičius
at 12:18 AM Chris Tomlinson wrote: > > No. > > If you run the test case you see that RDF/XML writes out xmlns defns of > prefixes and uses the prefixes in the serialization. Perhaps you are thinking > of n-triples. > > Thanks, > Chris > > > On Feb 22, 2019, at 16

Re: missing xml:base

2019-02-22 Thread Martynas Jusevičius
Isn't it so that RDF/XML writer always writes absolute URIs, so xml:base is unnecessary because it would have no effect anyway? On Fri, Feb 22, 2019 at 11:20 PM Chris Tomlinson wrote: > > Hello, > > We are trying to serve various ontology files in a variety of serializations, > principally

Re: Delete all nested triples

2019-02-21 Thread Martynas Jusevičius
You cannot. SPARQL is based on pattern matching. But why would you need to? Maybe back up and explain that. On Thu, Feb 21, 2019 at 6:32 AM ganesh chandra wrote: > > Thanks fo the solution. I was hoping if there was some way we can write > something iterative in the query. > > Thanks, > Ganesh

Re: CSV to rdf

2019-02-14 Thread Martynas Jusevičius
https://github.com/AtomGraph/CSV2RDF Not XSLT but SPARQL-based, yet the transformation concept is similar. I'm the author :) On Thu, Feb 14, 2019 at 2:59 PM elio hbeich wrote: > > Dear all > > Do you have any suggestion about tools or XSLT that can transform CSV to > RDF > > Thank you in

Re: QueryExecution.exec stops working in Java Web Application

2019-02-13 Thread Martynas Jusevičius
Are you closing the QueryExecution objects? I've experienced similar stuff with Apache HTTP Client that would reach the limit of connections per route and then would just hang without any error messages. On Wed, Feb 13, 2019 at 10:04 AM Bart van Leeuwen < bart_van_leeu...@netage.nl> wrote: > So

Re: bottom-up semantics

2019-02-01 Thread Martynas Jusevičius
I'd suggest to start by checking the algebra of your query: http://sparql.org On Fri, Feb 1, 2019 at 1:53 PM Élie Roux wrote: > > Dear Jean users, > > In short, I'm wondering if there could be an option somewhere for a > top-down SPARQL evaluation mechanism. > > Long version: the dataset I'm

Re: wrong content-types in s-get | Re: Export named graph from TDB to several ntriples files

2019-01-31 Thread Martynas Jusevičius
Vincent, can you start by explaining what you are trying to do and why, rather describing how you're doing it? On Thu, Jan 31, 2019 at 2:20 PM vincent ventresque wrote: > > Sorry, I should have explained more clearly : the previous messages > where about default settings in s-get, and when

Re: jena-csv

2019-01-15 Thread Martynas Jusevičius
May I add: https://github.com/AtomGraph/CSV2RDF It's not that feature rich (supports minimal mode only), but has already proved to be pretty scalable. On Tue, Jan 15, 2019 at 1:19 PM Andy Seaborne wrote: > > More, and these looks like active projects: > >

Re: Fuseki 2: Serving RDF/XML over HTTP

2019-01-14 Thread Martynas Jusevičius
You might want to check if URLConnection really sends the HTTP headers you think it does. I had issues with it adding some headers by default. On Mon, Jan 14, 2019 at 4:53 PM Kevin Dreßler wrote: > > Sorry for double posting but I might add that with this code I get the > following Exception: >

Re: csvw java implementations?

2019-01-14 Thread Martynas Jusevičius
;, > "datatype": "string", > "propertyUrl": "schema:url", > "valueUrl": "#gid-{GID}" > }, { > "name": "species", > "titles": "Species", >

Re: csvw java implementations?

2019-01-12 Thread Martynas Jusevičius
Hi Miika, a few years too late :) We have recently published https://github.com/AtomGraph/CSV2RDF -- a streaming, transforming CSV to RDF converter based on Jena and univocity CSV parser. Not sure this is exactly what you were looking for. So far we've used it to generate up to 25 million

Re: Distro package

2018-12-23 Thread Martynas Jusevičius
ub somewhere? So we could make > > pull requests and such. > > > > Martynas > > On Thu, Oct 11, 2018 at 2:06 PM Andy Seaborne wrote: > >> > >> The Dockerfile (which is WIP) is for running the "main" (embedded > >> server). My need is dep

Re: JSON & JENA Re: ✅ Literals as subjects Re: Toward easier RDF: a proposal

2018-11-29 Thread Martynas Jusevičius
d2rq more convenient but am open to new ideas. > > btw I never quite know who is posting on ajs6f hence the misnomer > > On Thu 29. Nov 2018 at 14:29, Martynas Jusevičius > wrote: > > > Marco, > > > > FYI XSLT 3.0 supports JSON transformations: > > https://www.

Re: JSON & JENA Re: ✅ Literals as subjects Re: Toward easier RDF: a proposal

2018-11-29 Thread Martynas Jusevičius
Marco, FYI XSLT 3.0 supports JSON transformations: https://www.w3.org/TR/xslt-30/#json Martynas On Thu, Nov 29, 2018 at 2:27 PM Marco Neumann wrote: > > good to know that we are on the same page here Adam. With regards to json > let's limit the scope of the discussion here to the Jena project

Re: INSERT INTO

2018-11-24 Thread Martynas Jusevičius
That document predates the specification. It's not the standard. The spec on updates is here: https://www.w3.org/TR/2013/REC-sparql11-update-20130321/ On Sat, Nov 24, 2018 at 7:33 PM Laura Morales wrote: > > Sometimes I see "INSERT INTO" queries like here for example >

Re: Parsing from stdin breaks in 3.9.0

2018-11-22 Thread Martynas Jusevičius
"riot --syntax trix". The issue is in "riot", the > superclass of turtle, trix etc. > > But why not > > riot kaunas.ttl > > ? > > Andy > > On 22/11/2018 21:58, Martynas Jusevičius wrote: > > cat kaunas.ttl | riot --synt

Re: Parsing from stdin breaks in 3.9.0

2018-11-22 Thread Martynas Jusevičius
pts would > break. > > You can use "riot --syntax ttl" > > Andy > > On 22/11/2018 20:22, Martynas Jusevičius wrote: > > Sorry, this is the correct Turtle file: > > > > @prefix def: . > > @prefix dct:<http://purl.org/dc/terms/&

Re: Parsing from stdin breaks in 3.9.0

2018-11-22 Thread Martynas Jusevičius
uot; . On Thu, Nov 22, 2018 at 9:20 PM Martynas Jusevičius wrote: > > Hi, > > I have such a simple Turtle file called kaunas.ttl: > > ./create-container.sh \ > -b https://linkeddatahub.com:4443/demo/city-graph/ \ > -f "cert.pem" \ > -p "test1234" \

Parsing from stdin breaks in 3.9.0

2018-11-22 Thread Martynas Jusevičius
Hi, I have such a simple Turtle file called kaunas.ttl: ./create-container.sh \ -b https://linkeddatahub.com:4443/demo/city-graph/ \ -f "cert.pem" \ -p "test1234" \ --title "Kaunas" \ --slug "kaunas" \ https://linkeddatahub.com:4443/demo/city-graph/ It parses from command line using 3.6.0:

Is JENA_HOME the same as JENAROOT?

2018-11-22 Thread Martynas Jusevičius
Hi, the current documentation is unclear IMO: https://jena.apache.org/documentation/tools/index.html#common-issues-with-running-the-tools It says $JENAROOT needs to be set, but then proceeds to show how to check $JENA_HOME. Which one is it? Or both? Martynas

Re: Converting TriX to N-Quads with riot

2018-11-11 Thread Martynas Jusevičius
lities > > or... you know... just make a list (or a graph). > > > > > Sent: Sunday, November 11, 2018 at 4:38 PM > From: "Martynas Jusevičius" > To: users@jena.apache.org > Subject: Re: Converting TriX to N-Quads with riot > Nice to know, thanks! &

Re: Converting TriX to N-Quads with riot

2018-11-11 Thread Martynas Jusevičius
but that's the way it > is, unless somebody implements it. > > > > > Sent: Sunday, November 11, 2018 at 11:00 AM > From: "Martynas Jusevičius" > To: jena-users-ml > Subject: Re: Converting TriX to N-Quads with riot > I'm on Jena 3.9.0 now. > > While w

Re: Converting TriX to N-Quads with riot

2018-11-11 Thread Martynas Jusevičius
-- > > > > > > > >http://example.org/s > >http://example.org/p > >http://example.org/o > > > > > > > > > > > > On 10/11/2018 15:16, ajs6f wrote: > >> Please file a ticket for this, with

Re: Converting TriX to N-Quads with riot

2018-11-10 Thread Martynas Jusevičius
> Please file a ticket for this, with a file that shows the problem and a > > complete invocation that fails. > > > > ajs6f > > > >> On Nov 10, 2018, at 10:04 AM, Martynas Jusevičius > >> wrote: > >> > >> Yes, .as I wrote, with

Re: Converting TriX to N-Quads with riot

2018-11-10 Thread Martynas Jusevičius
the --syntax flag works? > > ajs6f > > > On Nov 10, 2018, at 9:49 AM, Martynas Jusevičius > > wrote: > > > > There are some issues with non-canonical XMLLiterals, but in principle > > the files parse. > > > > I think --syntax TriX doesn't work though,

Re: Converting TriX to N-Quads with riot

2018-11-10 Thread Martynas Jusevičius
10, 2018 at 3:32 PM Laura Morales wrote: > >> > >> It should yes. Maybe you have some errors in your file? Did you try riot > >> --validate yourfile.xml? Maybe you missed the > >> xmlns="http://www.w3.org/2004/03/trix/trix-1/;? > >> > >>

Re: Converting TriX to N-Quads with riot

2018-11-10 Thread Martynas Jusevičius
ou try riot > --validate yourfile.xml? Maybe you missed the > xmlns="http://www.w3.org/2004/03/trix/trix-1/;? > > > > Sent: Saturday, November 10, 2018 at 3:19 PM > From: "Martynas Jusevičius" > To: jena-users-ml > Subject: Re: Converting TriX to N-Quads

Re: Converting TriX to N-Quads with riot

2018-11-10 Thread Martynas Jusevičius
rix > > 3. riot --output nq example.trix > > > > > > > > > >> Sent: Saturday, November 10, 2018 at 2:31 PM > >> From: "Martynas Jusevičius" > >> To: jena-users-ml > >> Subject: Converting TriX to N-Quads with riot > >>

Converting TriX to N-Quads with riot

2018-11-10 Thread Martynas Jusevičius
Hi, I have some large TriX files that I want to convert to N-Quads from command line (and later on to RDF HDT). The files validate against the TriX XML schema, so I assume they're good. I couldn't find a standalone trix script in the /bin folder, so I tried riot --syntax=TriX KORT10.1.xml

Re: Loosely converting JSON/XML to RDF

2018-11-07 Thread Martynas Jusevičius
check your > JSON data to ensure that it complies with that restriction. > > I think Martynas Jusevičius is absolutely right to say that different RDF > syntaxes and RDF conversion techniques are better suited to different types > of data sources. Personally, I like to use XSLT to

Re: Loosely converting JSON/XML to RDF

2018-11-07 Thread Martynas Jusevičius
The same could be said about RDF/XML. It depends in what context (e.g. ETL pipeline, client/server side) you want to use the data. That's the beauty of RDF as an abstract model - you can choose the syntax that best fits your use case, and convert between them if necessary, without losing

Re: Loosely converting JSON/XML to RDF

2018-11-05 Thread Martynas Jusevičius
Transform XML to RDF/XML or TriX using XSLT: https://www.w3.org/TR/xslt20/ XSLT 3.0 can also transform JSON: https://www.w3.org/TR/xslt-30/#json On Mon, Nov 5, 2018 at 8:34 AM Laura Morales wrote: > > I have a mixed set of datasets in XML, JSON, and RDF formats. I would like to > convert all

Re: Distro package

2018-11-03 Thread Martynas Jusevičius
triplestore service, no direct UI. > > You could add FUSEKI_HOME, FUSEKI_BASE setting or add including the > "webapp" directory. > > Andy > > On 10/10/18 12:12, Martynas Jusevičius wrote: > > Andy, > > > > I successfully built an image us

Re: Inference

2018-10-30 Thread Martynas Jusevičius
d in some > vocabularies. > > > > > Sent: Tuesday, October 30, 2018 at 10:13 AM > From: "Martynas Jusevičius" > To: jena-users-ml > Subject: Re: Inference > Maybe this can help: > https://github.com/jfmunozf/Jena-Fuseki-Reasoner-Inference/wiki/Configuring-Apache-Jena

Re: Inference

2018-10-30 Thread Martynas Jusevičius
Maybe this can help: https://github.com/jfmunozf/Jena-Fuseki-Reasoner-Inference/wiki/Configuring-Apache-Jena-Fuseki-2.4.1-inference-and-reasoning-support-using-SPARQL-1.1:-Jena-inference-rules,-RDFS-Entailment-Regimes-and-OWL-reasoning On Tue, Oct 30, 2018 at 8:22 AM Laura Morales wrote: > > Is

Re: Distro package

2018-10-10 Thread Martynas Jusevičius
to be able to output or change it. Is the Dockerfile on GitHub somewhere? On Wed, Oct 3, 2018 at 4:00 PM Andy Seaborne wrote: > > > > On 03/10/18 14:58, Martynas Jusevičius wrote: > > What about VOLUME for data persistence? > > WIP! > Send a suggested modification! > &

Re: Distro package

2018-10-03 Thread Martynas Jusevičius
ot;, "-jar", \ >"-Dlog4j.configuration=file:/apache-jena/log4j.properties", \ >"/apache-jena/fuseki-server.jar" \ >] > > ## Command line arguments are those for Fuseki. > CMD []

Re: Distro package

2018-10-03 Thread Martynas Jusevičius
self than contribute to the trend of bloated app > virtualization... > > > > Sent: Wednesday, October 03, 2018 at 2:30 PM > From: "Martynas Jusevičius" > To: jena-users-ml > Subject: Re: Distro package > I think Docker would be a more portable platform. Fus

Re: Distro package

2018-10-03 Thread Martynas Jusevičius
I think Docker would be a more portable platform. Fuseki could have an image based on this: https://hub.docker.com/r/stain/jena-fuseki/ I also think I know what the maintainers will answer: this is an open-source project, so contributions are welcome ;) On Wed, Oct 3, 2018 at 2:28 PM Laura

[3.0.1] Upgrading to 3.8.0

2018-09-17 Thread Martynas Jusevičius
Hi, now that SPIN API has done that, we are finally forced to do (a long overdue) upgrade from 3.0.1 to 3.8.0. This brings up a few deprecated/removed methods that I would like to ask some help with: 1. ReaderRIOT.setErrorHandler() 2. ReaderRIOT.setParserProfile() 3. ParserProfile.setBaseURI()

Re: Creating AWriter for StreamRDF

2018-08-21 Thread Martynas Jusevičius
Or should I use WriterStreamRDFFlat instead of WriterStreamRDFPlain? Can't really understand the difference, except that they extend different classes... On Tue, Aug 21, 2018 at 2:11 PM, Martynas Jusevičius wrote: > Hi, > > I'm extending WriterStreamRDFPlain to implement a streaming CSV

Creating AWriter for StreamRDF

2018-08-21 Thread Martynas Jusevičius
Hi, I'm extending WriterStreamRDFPlain to implement a streaming CSV parser. Its constructor [1] states: Output tuples, using UTF8 output See StreamRDFLib.writer(java.io.OutputStream) for ways to create a AWriter object. Then I'm looking at StreamRDFLib, but there are no methods that create

Re: Retrieving SPARQL-results xml using curl

2018-06-28 Thread Martynas Jusevičius
You're doing a POST request but supplying a URL query as if it was GET? https://www.w3.org/TR/sparql11-protocol/#query-operation On Thu, Jun 28, 2018 at 12:24 PM, Brice Sommacal wrote: > Hello, > > I use the last distribution of Fuseki which is initialized with a TDB2 > dataset [1]. > Working

Re: Customizing RDF/XML writer for quads

2018-06-13 Thread Martynas Jusevičius
if > > anything happened since then, and I haven't found it? > > > > Many thanks > > Alexandra > > > > On Thu, Jun 9, 2016 at 4:58 PM, Martynas Jusevičius < > marty...@atomgraph.com> > > wrote: > > > >> I found the "abandoned" di

Re: Jena writing TURTLE instead of TRIG

2018-06-03 Thread Martynas Jusevičius
*do not On Sun, Jun 3, 2018 at 2:48 PM, Martynas Jusevičius wrote: > Try reading RDF 1.1 Primer, it should help: https://www.w3.org/TR/ > rdf11-primer/#section-trig > > BTW use Factory classes as Andy mentioned, do now instantiate *Impl > classes yourself. > > On Sun, J

Re: Jena writing TURTLE instead of TRIG

2018-06-03 Thread Martynas Jusevičius
ne wrote: > > > > > > On 03/06/18 13:21, agate.m...@gmail.com wrote: > > > > > > > > > On 2018/06/03 11:46:26, Martynas Jusevičius > wrote: > > >> TriG without named graphs is Turtle, AFAIK. > > >> > > >>

Re: Jena writing TURTLE instead of TRIG

2018-06-03 Thread Martynas Jusevičius
TriG without named graphs is Turtle, AFAIK. And you can't have named graphs in Model since it only contains triples, not quads. If you want named graphs (but you're not using them right now), you should look into Dataset:

Re: Fuseki user-defined Web Services

2018-05-24 Thread Martynas Jusevičius
thout significant > replumbing of JAX-RS as Fuseki dispatch changes as datasets are added and > deleted. Fuseki needs to respect the SPARQL protocols 9query, update, GSP). > > Andy > > > On 24/05/18 16:12, Martynas Jusevičius wrote: > >> No, just this: >> https://w

Re: Fuseki user-defined Web Services

2018-05-24 Thread Martynas Jusevičius
No, just this: https://www.mail-archive.com/users@jena.apache.org/msg08805.html On Thu, May 24, 2018 at 5:05 PM, Adam Soroka <aj...@apache.org> wrote: > Was there a PR associated with that suggestion? > > Adam > > On 2018/05/24 14:29:51, Martynas Jusevičius <marty..

Re: Fuseki user-defined Web Services

2018-05-24 Thread Martynas Jusevičius
I had long ago suggested that Jena should build on JAX-RS, which is the RESTful API for Java. You can see how that can be done here: https://github.com/AtomGraph/Core/blob/master/src/main/java/com/atomgraph/core/model/impl/QueriedResourceBase.java On Thu, May 24, 2018 at 4:19 PM, Piotr Nowara

Re: Update Query Parsing error

2018-05-22 Thread Martynas Jusevičius
I think you should open a JIRA ticket. On Tue, May 22, 2018 at 4:53 PM, Bart van Leeuwen < bart_van_leeu...@netage.nl> wrote: > Hi, > > Although you are correct this should be ?g in both cases, it does not fix > the issue. > > Met Vriendelijke Groet / With Kind Regards > Bart van Leeuwen > > >

Re: linked data and URLs

2018-05-22 Thread Martynas Jusevičius
Why generate URIs at all in the beginning, can't you use blank nodes? Rewriting URIs is generally a bad idea in a Linked Data setting. Make one datasource canonical and let the other one deal with that. Or maybe you can configure your proxy in a way that hides the port number and you don't need

Re: Clearing and reloading ontology and its imports

2018-04-07 Thread Martynas Jusevičius
org/ns/ldt/core/templates#] Notice how imports for https://localhost:4443/demo/iswc-2017/ns/templates# differ. How is that possible, and how do I avoid this? On Fri, Apr 6, 2018 at 3:19 PM, Martynas Jusevičius <marty...@atomgraph.com> wrote: > I guess dynamic imports is what I need. But wil

Re: Clearing and reloading ontology and its imports

2018-04-06 Thread Martynas Jusevičius
I guess dynamic imports is what I need. But will they get triggered if I remove and then re-add the whole Model (as shown in my example), rather than statements? I could probably removeAll() statements from it instead of removing it from cache. On Fri, Apr 6, 2018 at 1:59 PM, Martynas Jusevičius

Clearing and reloading ontology and its imports

2018-04-06 Thread Martynas Jusevičius
Hi, we have an ontology editor that stores ontologies and their terms in a triplestore. On the other end, they are being loaded by OntDocumentManager. The question is: what is the proper way to clear and reload an ontology and its imports in OntDocumentManager? Because, for example, a user

Re: CONSTRUCT ... ORDER BY

2018-03-29 Thread Martynas Jusevičius
Yes, SELECT. Or you can use rdf:List to store an ordered list. On Thu, 29 Mar 2018 at 09.02, Laura Morales wrote: > OK, makes sense. > Is there no way however to return a sorted list of triples? Only SELECT > can return sorted results? > > > > > Sent: Thursday, March 29, 2018

Re: reading a JSON string from sparql results

2018-03-26 Thread Martynas Jusevičius
Take a look at ResultSetFactory: https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/query/ResultSetFactory.html On Mon, Mar 26, 2018 at 6:48 PM, Élie Roux wrote: > Dear All, > > I'm trying to transform a String in the format of a SPARQL Select JSON

Re: Parameterized queries

2018-03-26 Thread Martynas Jusevičius
You would be better of asking on the Python rdflib mailing list then. Looks like prepared queries could help: https://rdflib.readthedocs.io/en/stable/intro_to_sparql.html#prepared-queries On Mon, Mar 26, 2018 at 2:10 PM, Laura Morales wrote: > Yes but I'd need this to work

Re: Reciprocal relation output with RDF/XML

2018-03-26 Thread Martynas Jusevičius
Maybe you should provide some examples? On Sun, Mar 25, 2018 at 4:07 PM, Bardo Nelgen < mailing.list.in...@bnnperformances.de> wrote: > > Hi all, > > is there any insight, if there are reciprocal connections between two > things (like with dct:references and dct:isReferencedBy), how Jena weighs

Re: Splitting data into graphs vs datasets

2018-03-20 Thread Martynas Jusevičius
Provenance. With named graphs, it's easier to track where data came from: who imported it, when etc. You can also have meta-graphs about other graphs. Also editing and updating data. You can load named graph contents (of smallish size) in an editor, make changes and then store a new version in

Re: Example code

2018-03-20 Thread Martynas Jusevičius
earlier. On Tue, Mar 20, 2018 at 12:22 PM, David Moss <admo...@gmail.com> wrote: > > > On 19/3/18, 9:40 pm, "Martynas Jusevičius" <marty...@atomgraph.com> > wrote: > > David, > > >I gave you links but I take you haven't looked. The Web-Clien

Re: Example code

2018-03-19 Thread Martynas Jusevičius
David, I gave you links but I take you haven't looked. The Web-Client project specifically renders RDF as HTML. The crucial class is this: https://github.com/AtomGraph/Web-Client/blob/master/src/main/java/com/atomgraph/client/writer/ModelXSLTWriter.java If you are looking to write generic

Re: Example code

2018-03-18 Thread Martynas Jusevičius
You can take a look here, these projects use Jena extensively: https://github.com/AtomGraph/Core https://github.com/AtomGraph/Processor https://github.com/AtomGraph/Web-Client On Sun, Mar 18, 2018 at 4:19 AM, David Moss wrote: > Nearly all the example code on the web for Jena

Re: Vocabularies for actions

2018-03-17 Thread Martynas Jusevičius
There are no "actions" (verbs) on Linked Data really, only resources (nouns). They have descriptions that you can retrieve/change using generic "verbs": HTTP methods GET, POST, PUT, DELETE. You can remodel your actions simply in terms of appending and updating resource descriptions. On Sat, Mar

Re: [3.0.1] ResultSetFactory.fromJSON() won't parse ASK JSON result

2018-03-14 Thread Martynas Jusevičius
<a...@apache.org> wrote: > JSONInput.make(InputStream) -> SPARQLResult > > Andy > > > On 12/03/18 10:13, Martynas Jusevičius wrote: > >> Hi Andy, >> >> I'm not using QueryExecution here, I'm trying to parse JSON read from HTTP >> InputStream using R

Re: parse one quad?

2018-03-12 Thread Martynas Jusevičius
t > one from a String without too much fuss. > > RDFDataMgr or RDFParser are usually the best tools for parsing, but I'm > looking for something a bit lighter-weight. > > ajs6f > > > On Mar 12, 2018, at 4:07 PM, Martynas Jusevičius <marty...@atomgraph.com> > wrote:

Re: parse one quad?

2018-03-12 Thread Martynas Jusevičius
Maybe this? https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/riot/RDFDataMgr.html#read-org.apache.jena.query.Dataset-java.io.InputStream-org.apache.jena.riot.Lang- On Mon, Mar 12, 2018 at 8:46 PM, ajs6f wrote: > I've got a use case for parsing one quad (in

Re: Getting Symmetric Concise Bounded Description with Fuseki

2018-03-12 Thread Martynas Jusevičius
I disagree about SCBD as the default. In a Linked Data context, DESCRIBE is usually used to return description of a resource, meaning the resource is in the subject position. And then bnode closure is added, because otherwise there would be no way to reach those bnodes. It's not about exploring

Re: FILTER (CONTAINS on a graph name : should order matter ?

2018-03-12 Thread Martynas Jusevičius
?thing is undefined within GRAPH in your second query. On Mon, Mar 12, 2018 at 3:59 PM, Jean-Marc Vanel wrote: > Hi ! > > This works as expected: > > SELECT DISTINCT ?thing > WHERE { >graph ?thing { > [] ?p ?O . >} >

Re: [3.0.1] ResultSetFactory.fromJSON() won't parse ASK JSON result

2018-03-12 Thread Martynas Jusevičius
? On Mon, Mar 12, 2018 at 9:46 AM, Andy Seaborne <a...@apache.org> wrote: > > > On 11/03/18 23:03, Martynas Jusevičius wrote: > >> Hi, >> >> I'm getting the following JSON result from an ASK query: >> >>{ "head": {}, "boo

  1   2   3   4   5   >