Custom SERVICE HTTP requests

2017-01-01 Thread Martynas Jusevičius
Hey, happy 2017 :) I am wondering if there is a way to "intercept" the HTTP request that is being generated by the SERVICE clause? As you might know, some triplestores (RDF4J, Dydra) provide an extension of the SPARQL protocol that allows sending query bindings separately from the query string.

Re: Custom SERVICE HTTP requests

2017-01-03 Thread Martynas Jusevičius
On Sun, Jan 1, 2017 at 6:59 PM, Andy Seaborne wrote: > > > On 01/01/17 12:53, Martynas Jusevičius wrote: >> I am wondering if there is a way to "intercept" > > > Any thing can be intercepted with a custom OpExecutor. Any examples? What should it extend/where

Re: Code for SpinRDF for Jena

2017-01-04 Thread Martynas Jusevičius
I have opened an issue for this: https://github.com/spinrdf/spinrdf/issues/2 Any comments? On Fri, Dec 30, 2016 at 5:34 PM, Martynas Jusevičius wrote: > I'll have a thing or two to contribute. This behavior is especially > annoying for us :) > > "Queries using sp:text

Re: Code for SpinRDF for Jena

2017-01-04 Thread Martynas Jusevičius
Looks like Java was repackaged under "org.spinrdf" but the Maven artifact is still under TopBraid namespace? Is that intended? 4.0.0 org.topbraid spin jar 3.0.0 TopBraid SPIN API http://spinrdf.org/ BTW, shouldn't we change the version to 3.0.0-SNAPSHOT until any releases are planned/made? On Fr

Re: Code for SpinRDF for Jena

2017-01-05 Thread Martynas Jusevičius
https://github.com/spinrdf/spinrdf/pull/5 On Thu, Jan 5, 2017 at 2:16 PM, Andy Seaborne wrote: > > > On 04/01/17 23:58, Martynas Jusevičius wrote: >> >> Looks like Java was repackaged under "org.spinrdf" but the Maven >> artifact is still under TopBraid

Re: Code for SpinRDF for Jena

2017-01-05 Thread Martynas Jusevičius
https://github.com/spinrdf/spinrdf/pull/4 On Thu, Jan 5, 2017 at 12:23 AM, Martynas Jusevičius wrote: > I have opened an issue for this: https://github.com/spinrdf/spinrdf/issues/2 > > Any comments? > > On Fri, Dec 30, 2016 at 5:34 PM, Martynas Jusevičius > wrote: >> I&#

Re: JSON-LD questions

2017-01-11 Thread Martynas Jusevičius
Paul, isn't that what SPARQL CONSTRUCT is doing? On Wed, Jan 11, 2017 at 3:18 PM, Paul Tyson wrote: > > > On Jan 10, 2017, at 18:06, Grahame Grieve > wrote: > >>> >>> statements to describe the graph itself, e.g. here's a graph which >>> identifies a particular person as the foaf:primaryTopic

Re: Likely bug: short form for the CONSTRUCT query + GRAPH => syntax error

2017-02-16 Thread Martynas Jusevičius
It has to be a basic pattern: https://www.w3.org/TR/sparql11-query/#constructWhere On Thu, 16 Feb 2017 at 21.31, Jean-Marc Vanel wrote: > Indeed adding syntaxARQ brings a progress: > QueryFactory.create(query, Syntax.syntaxARQ) > > GRAPH is tolerated, > but OPTIONAL is not: > > Exception in thre

Re: ResultSetLang and RDFLanguages

2017-02-22 Thread Martynas Jusevičius
I agree with George that it makes sense to keep Model and ResultSet formats separate. In a framework like JAX-RS serialization is done by providers implementing MessageBodyWriter/Reader, MessageBodyWriter/Reader etc., so it is easy to implement conneg if one can simply iterate over Langs for each c

Re: Fuseki / ARQ DESCRIBE query to include ?s ?p

2017-03-03 Thread Martynas Jusevičius
Isn't Fuseki already doing the same as Pubby? On Fri, Mar 3, 2017 at 11:13 AM, Beetz, J. wrote: > Dear community, > > I have set up a Pubby http://wifo5-03.informatik.uni-mannheim.de/pubby/ > frontend to allow dereferencing/content-negotiation/browser-navigation of a > vocabulary served by Fuse

Re: Fuseki support other query languages

2017-03-04 Thread Martynas Jusevičius
> My goal is simply to learn more about graph databases, so I want to install > and use one. I've installed Fuseki, but I found SPARQL to be overly complex > compared to other query languages. It's a little like wanting to use RDBMS but finding SQL overly complex. Sure, there is probably some qu

Re: Ontology Imports

2017-03-31 Thread Martynas Jusevičius
Some of the code (at least OntDocumentManager) is still using FileManager I believe. The proper way IMO is to have a location-mapping and read ontology (namespace) URI, not physical file URIs, and let LocationMapper take care of the rest. https://jena.apache.org/documentation/notes/file-manager.ht

Re: Why we need Fuseki

2017-04-03 Thread Martynas Jusevičius
By using uniform protocols such as HTTP and SPARQL (over HTTP), you decouple server implementation from client implementation. You can execute SPARQL commands on Fuseki using PHP, C#, JavaScript or any other language. But that involves networking. You can only use the Jena API from Java (and then

Re: tdbloader2 ignore ill-formed nquads

2017-04-07 Thread Martynas Jusevičius
This question comes up regurarly: http://markmail.org/message/seqiw74hhdx2u64j On Fri, Apr 7, 2017 at 2:10 PM, Laura Morales wrote: > I'm trying to import the LOV dump [1] into Fuseki using tdbloader2. > Unfortunately some quads are "broken" in the sense that they're not > well-formed. For exam

Re: Predicates with no vocabulary

2017-04-12 Thread Martynas Jusevičius
It would not be an error as long it is a valid URI. Conceptually non-HTTP URIs go against Linked Data principles because normally they cannot be dereferenced. Therefore it makes sense to give it a little thought and choose an http:// namespace that you control. On Wed, Apr 12, 2017 at 6:31 PM, L

Re: RDF API or Jena rule

2017-04-16 Thread Martynas Jusevičius
I think you are confused. Rules are for inference, RDF API is for manipulating RDF from Java. They are orthogonal. On Sun, Apr 16, 2017 at 1:01 PM, javed khan wrote: > Is there any advantage of Jena rule (speed etc) over RDF API? For example, > a functionality in our application we achieve using

Re: Problem by Ingesting a file with a named graph

2017-04-21 Thread Martynas Jusevičius
Turtle does not support named graphs, TriG does. On Fri, 21 Apr 2017 at 10.57, max wrote: > For testing I just want to upload this single file. It 1.4 Kb later I > want to upload 27 Mb. > > I made a back up from an existing installation and now I want to upload > the content in another fuseki in

Re: Fuseki support text/plain

2017-04-24 Thread Martynas Jusevičius
text/plain is not supported by SPARQL Protocol, but you can try application/sparql-query. https://www.w3.org/TR/sparql11-protocol/#query-operation On Mon, 24 Apr 2017 at 08.21, Laura Morales wrote: > Right now when I send POST requests to Fuseki, it seems to accept > "application/x-www-form-url

Re: Jena native store indexes

2017-04-24 Thread Martynas Jusevičius
"Should have been, could have been". It is how it is, your opinion is just one of many and you will achieve nothing by complaining on this list. Go create a W3C Community Group and initiate some real work to achieve the standardisation that you think is required. On Mon, 24 Apr 2017 at 13.30, wro

Re: RDF to HTML

2017-05-09 Thread Martynas Jusevičius
Do you mean HTML+RDFa or plain HTML? https://www.w3.org/TR/xhtml-rdfa-primer/ On Tue, May 9, 2017 at 1:29 PM, Laura Morales wrote: > Can RIOT, or some other Jena command-line tools, convert a RDF file into HTML > (static pages)? I feel like this could be pretty useful to explore datasets, > bu

Re: RDF to HTML

2017-05-09 Thread Martynas Jusevičius
You can try a Linked Data browser. For example: https://github.com/AtomGraph/Web-Client It uses XSLT 2 to convert RDF/XML to XHTML. On Tue, May 9, 2017 at 2:00 PM, Laura Morales wrote: >> Do you mean HTML+RDFa or plain HTML? > > I mean simple HTML like this http://data.nobelprize.org/page/laurea

Re: SPARQL to check if a specific URI exists

2017-05-15 Thread Martynas Jusevičius
If you want to handle both triples (default graph) and quads (named graphs), you should use a UNION: ASK WHERE { { ?p ?o } UNION { GRAPH ?g { ?p ?o } } } On Mon, May 15, 2017 at 1:48 PM, Laurent Rucquoy wrote: > Hello, > > I want to write a SPARQL query to attest the existence of a specifi

Re: Sparquling an entire collection (rdf:List) -- Anyone ?

2017-05-17 Thread Martynas Jusevičius
Have you looked on StackOverflow? https://stackoverflow.com/questions/10162052/rdfcollection-in-sparql On Wed, May 17, 2017 at 3:23 PM, Bardo Nelgen wrote: > > Hello, > > is there no-one around who has tried this ? > > Best, > > Bardo > > > On 15.05.17 10.41 Uhr, Bardo Nelgen wrote: >> >> >> Hi

Re: Data or Object properties as String value

2017-08-05 Thread Martynas Jusevičius
I think you might be confusing literal datatypes in RDF/SPARQL and object/datatype properties in OWL. You don't need an ontology to be able to run a query. Just make sure datatypes in your query match your data. If you need to define your domain in an ontology, then you need to define properties

Re: Error in query

2017-08-24 Thread Martynas Jusevičius
This means your query hasn't matched anything. Show us your data. On Thu, Aug 24, 2017 at 10:42 PM, javed khan wrote: > In response to my question earlier, I replace this > > ResultSet results = (ResultSet) qexec.execConstruct() ; > > with > > Model results = qexec.execConstruct() ; > results.

Re: Error in query

2017-08-24 Thread Martynas Jusevičius
I did not understand the code. Why we assign the result to a Model? Why > not resultset. > > Model results = qexec.execConstruct() ; > > On Thu, Aug 24, 2017 at 11:44 PM, Martynas Jusevičius < > marty...@atomgraph.com> wrote: > > > This means your query hasn't matched

Re: SPARQL vs Jena rules

2017-08-25 Thread Martynas Jusevičius
One main point to consider is that rules are Jena-specific, while SPARQL is standard and portable. On Fri, Aug 25, 2017 at 12:57 PM, tina sani wrote: > Thank you Lorenz. > > We are working on different small projects. Currently, how to get inference > (as Jena rule do) from CONSTRUCT query and w

Re: Construct query for Rules

2017-09-11 Thread Martynas Jusevičius
Javed, show the data and the errors. exp: NoOfPublications is property (with space in the middle). On Mon, Sep 11, 2017 at 1:09 PM, javed khan wrote: > Hello Lorenz yes it did not work for me. İ have about sixteen similar types > of rules and not sure if İ need a separate SPARQL Construct quer

Re: Construct query for Rules

2017-09-11 Thread Martynas Jusevičius
* not a valid property On Mon, Sep 11, 2017 at 1:19 PM, Martynas Jusevičius wrote: > Javed, > > show the data and the errors. > > exp: NoOfPublications is property (with space in the middle). > > On Mon, Sep 11, 2017 at 1:09 PM, javed khan wrote: > >> Hello Lorenz

Re: Loop through non-blank nodes

2017-09-25 Thread Martynas Jusevičius
You cannot "loop", but you can select them. You probably want to use FILTER (!isBlank(?node)). On Mon, 25 Sep 2017 at 09.18, Laura Morales wrote: > How can I loop through all non-blank nodes in my default graph? I'm using > Fuseki, so I think I can use limit-offset, but how can I exclude all bla

Re: Getting xml with s-get

2017-10-02 Thread Martynas Jusevičius
Which would mean you were getting Turtle into dump.rdf, not RDF/XML? On Mon, Oct 2, 2017 at 2:37 PM, Mikael Pesonen wrote: > > That was easily solved once took a look at s-put. Had to change input file > extension to ttl. > > Thanks! > > > On 2.10.2017 14:50, Andy Seaborne wrote: > >> The s-* sc

Re: Problem with MAX when no result expected

2017-10-06 Thread Martynas Jusevičius
hasNext()? https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/query/ResultSet.html#hasNext-- On Fri, Oct 6, 2017 at 1:26 PM, George News wrote: > On 2017-10-06 11:25, Andy Seaborne wrote: > > The two result sets you show both have one row, with bindings. That's > > consistent with

Re: Inferencing by SPARQL

2017-10-06 Thread Martynas Jusevičius
Abduladem, you can use both CONSTRUCT and INSERT to infer new triples. Both OWL and SPARQL have their advantages. OWL forms ontologies that you can import etc., but often it produces too many (trivial) triples that you don't care about, and performance can be poor. With SPARQL you can be more pre

Re: Inferencing by SPARQL

2017-10-06 Thread Martynas Jusevičius
ynas. it realy helps. > Currently, I am wrting a report. I woud like to wrtie something like what > you mentioned in your email but I have to refernece it. do you any refrence > say what have said? > ThanksAbdul > > On Friday, 6 October 2017, 17:48:54 GMT+1, Martynas Jusevičius &

Re: loading many small rdf/xml files

2017-10-07 Thread Martynas Jusevičius
Run a script to convert them to N-Triples and then another to concatenate the files? On Sat, Oct 7, 2017 at 4:17 PM, Andrew U. Frank wrote: > i have to load the Gutenberg projects catalog in rdf/xml format. this is a > collection of about 50,000 files, each containing a single record as > attach

Re: loading many small rdf/xml files

2017-10-07 Thread Martynas Jusevičius
RDF/XML was the first RDF syntax. On Sat, 7 Oct 2017 at 20.27, Andrew U. Frank wrote: > thank you again! > > rereading your answers, i checked on the utilities xargs and riot, which > i had not ever used before. then i understood your approach (thank you > for putting the comand line in!) and fo

Re: Why RDF/XML? Was: loading many small rdf/xml files

2017-10-11 Thread Martynas Jusevičius
I wouldn't be so categorical :) We generate all the UI layouts straight from RDF/XML using XSLT 2.0: https://github.com/AtomGraph/Web-Client/blob/master/src/main/webapp/static/com/atomgraph/client/xsl/bootstrap/2.3.2/layout.xsl The prerequisite is that RDF/XML structure is predictable like Jena's

Re: Why RDF/XML? Was: loading many small rdf/xml files

2017-10-11 Thread Martynas Jusevičius
2017 at 18:53, Martynas Jusevičius > wrote: > > > I wouldn't be so categorical :) We generate all the UI layouts straight > > from RDF/XML using XSLT 2.0: > > https://github.com/AtomGraph/Web-Client/blob/master/src/ > > main/webapp/static/com/atomgraph/client

Re: Why RDF/XML? Was: loading many small rdf/xml files

2017-10-11 Thread Martynas Jusevičius
corresponds to RDF/XML nesting. Therefore it's more natural (in our case at least) to be able to simply invoke rather than On Wed, Oct 11, 2017 at 12:10 PM, Conal Tuohy wrote: > On 11 October 2017 at 19:30, Martynas Jusevičius > wrote: > > > TriX is not particularly

Re: Introduce Model.createTypedResource ?

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

Re: JSONLD and base URL

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

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

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

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

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

Re: Identify SPARQL query's type

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

Fuseki's Cache-Control

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

Re: Fuseki's Cache-Control

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

Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-26 Thread Martynas Jusevičius
Hi, I'm working on a long overdue upgrade of Jena. So far the area where I can see most changes will be needed is the implementation of ReaderRIOT streaming parser for RDF/POST: https://github.com/AtomGraph/Core/blob/master/src/main/java/com/atomgraph/core/riot/lang/RDFPostReader.java Is LangEng

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

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

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

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

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

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

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

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

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-27 Thread Martynas Jusevičius
mechanism they need for their environment. It also > lets user choose how they do connection pooling, max connection limits, > custom SSL setups etc. > > Rob > > On 27/03/2020, 10:46, "Martynas Jusevičius" wrote: > > Andy, > > if I don't exclu

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

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

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

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

ResultSetFactory.makeResults() does not recognize ASK result?

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

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

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

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

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

Re: Union different dataset in Fuseki

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

Re: Union different dataset in Fuseki

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

DatasetAccessor deprecated

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

Re: DatasetAccessor deprecated

2020-04-28 Thread Martynas Jusevičius
set operations > (read and write). > > > On 27/04/2020 13:33, Martynas Jusevičius wrote: > > Hi, > > > > Why is DatasetAccessor marked as deprecated in the latest Jena? > > https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/query/DatasetAccessor.html > > > > What is meant to replace it? > > > > Martynas > >

Re: DatasetAccessor deprecated

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

Jena transpiled to TypeScript/JavaScript?

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

Re: Jena transpiled to TypeScript/JavaScript?

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

Re: Jena transpiled to TypeScript/JavaScript?

2020-05-15 Thread Martynas Jusevičius
ithub.com/beautifulinteractions/node-quadstore [2] http://www.saxonica.com/saxon-js/index.xml On Fri, May 15, 2020 at 7:54 PM Adrian Gschwend wrote: > > On 15.05.20 12:39, Martynas Jusevičius wrote: > > Hi > > > RDF JavaScript frameworks are still ~20 years behind Java. So this h

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

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

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

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

SPIN constraint validation differs on 3.0.1 and 3.16.0-SNAPSHOT

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

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

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

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

2020-05-20 Thread Martynas Jusevičius
oducible example? > > reproducible example (noting that the query has custom functions which > have names that suggest they are not proper "functions" (i.e. their > return is not a function of their arguments alone and they access the > data graph .. which might be a q

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

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

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

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

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

2020-05-22 Thread Martynas Jusevičius
20/05/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: > >&g

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

2020-05-24 Thread Martynas Jusevičius
to rewrite SPINRDF in a more SPARQL > > compliant and less ARQ-dependent way? > > > > On Thu, May 21, 2020 at 10:54 AM Andy Seaborne wrote: > >> > >> > >> > >> On 20/05/2020 22:11, Martynas Jusevičius wrote: > >>> https://github.com/spinrd

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 tha

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

2020-05-26 Thread Martynas Jusevičius
/master/src/main/java/org/spinrdf/constraints/SPINConstraints.java#L604 On Tue, May 26, 2020 at 1:07 PM Andy Seaborne wrote: > > > > On 24/05/2020 10:45, Martynas Jusevičius wrote: > > Andy, > > > > but Jena itself supports initial bindings in QueryExecutionFactory? &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 Goog

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

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 ov

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: location-mapping found but not used

2020-06-22 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? Wha

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

Re: location-mapping found but not used

2020-06-24 Thread Martynas Jusevičius
ost importantly loadModel()? Did they just go away with no replacement? On Sun, Jun 21, 2020 at 11:00 AM Andy Seaborne wrote: > > > > On 19/06/2020 22:49, Martynas Jusevičius wrote: > > Hi, > > > > I'm trying to get location-mapping.n3 used by Jena 3.16.0-SNAPSHOT.

Re: location-mapping found but not used

2020-06-25 Thread Martynas Jusevičius
esolver: https://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,

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
> RDFDataMgr is that functionality. So RDFDataMgr does the location-mapping but not the Model caching?

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 admi

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 = registered.i

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 yo

Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-06-30 Thread Martynas Jusevičius
ConstraintTest { 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 wro

Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

2020-07-01 Thread Martynas Jusevičius
Thanks. What jar is missing though? I have apache-jena-libs as a dependency. I can see it includes TDB and TDB2. What weirds me out is that this only happens during debugging. On Wed, Jul 1, 2020 at 9:56 AM Andy Seaborne wrote: > > > > On 30/06/2020 23:11, Martynas Jusevičius wro

Re: ConcurrentModificationException using RDFLanguages.getRegisteredLanguages()

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

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: https://mail-archives.apache.org/mod_mbox/jena-users/201308.mbox

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

Re: Blank node URI scheme

2020-07-05 Thread Martynas Jusevičius
Collections.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 star

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

<    1   2   3   4   5   6   7   8   >