[3.0.1] listSuperClasses() does not traverse?

2017-10-24 Thread Martynas Jusevičius
Hi, I thought I understood how OntClass.listSuperClasses() works, but maybe I don't. I have such a class structure in my ontology (superclass is at the top): 3. https://www.w3.org/ns/ldt/document-hierarchy/domain#Item 2. http://atomgraph.com/ns/platform/domain#Item 1. https://localho

Re: Does order of JOIN clauses affect performance

2017-10-24 Thread Martynas Jusevičius
Maybe this article can help: http://wwwconference.org/www2008/papers/pdf/p595-stocker1.pdf It's about BGPs not graph patterns, but I guess selectivity still applies. On Wed, 25 Oct 2017 at 03.17, Dimov, Stefan wrote: > Let’s consider the following JOIN: > > SELECT $subj > FROM NAMED ng1 > FROM

Re: [3.0.1] listSuperClasses() does not traverse?

2017-10-25 Thread Martynas Jusevičius
Thanks Dave. We are materializing inferences during ontology initialization to avoid using reasoner subsequently (as it impacts performance). So in that case I need to traverse the chain myself, correct? On Wed, Oct 25, 2017 at 9:33 AM, Dave Reynolds wrote: > On 24/10/17 23:51, Marty

Re: [3.0.1] listSuperClasses() does not traverse?

2017-10-25 Thread Martynas Jusevičius
, 2017 at 12:36 PM, Dave Reynolds wrote: > On 25/10/17 11:10, George News wrote: > >> On 2017-10-25 11:54, Dave Reynolds wrote: >> >>> Hi Martynas, >>> >>> On 25/10/17 10:33, Martynas Jusevičius wrote: >>> >>>> Thanks Dave. >>&

Re: [3.0.1] listSuperClasses() does not traverse?

2017-10-25 Thread Martynas Jusevičius
I ended up using JenaUtil.getAllSuperClasses() from SPINRDF: https://github.com/spinrdf/spinrdf/blob/a7fc9a1ca7badecb9a8d858f7a8a33bb106e629f/src/main/java/org/spinrdf/util/JenaUtil.java#L401 On Wed, Oct 25, 2017 at 1:22 PM, Martynas Jusevičius wrote: > Dave, > > I think I get it no

Re: distinct in SPARQL group_concat

2017-11-07 Thread Martynas Jusevičius
I think that literals with the same value but different language tags ar not identical. On Tue, Nov 7, 2017 at 3:34 PM, Mikael Pesonen wrote: > > Hi, > > in FOAF schema there are values > > rdfs:label ww.w3.org%2F2000%2F01%2Frdf-sche

Re: Loading dataset with relative IRIs

2017-11-21 Thread Martynas Jusevičius
You cannot. RDF data model is based on absolute URIs. On Tue, Nov 21, 2017 at 3:35 PM, Mohammad Noorani Bakerally < noorani.bakera...@gmail.com> wrote: > I have a dataset in a trig file with resources having relative iris, when > loading them with the method RDFDataMgr.loadDataset, all the relati

Re: Loading dataset with relative IRIs

2017-11-21 Thread Martynas Jusevičius
era...@gmail.com> wrote: > is it possible to explicitly set a base when loading the dataset ? > > > > ‌ > > On Tue, Nov 21, 2017 at 3:46 PM, Martynas Jusevičius < > marty...@atomgraph.com > > wrote: > > > You cannot. RDF data model is based on absolu

Re: problem with VALUES querybuilder

2017-11-23 Thread Martynas Jusevičius
You should start a new thread instead of adding to an unrelated one. On Thu, Nov 23, 2017 at 2:20 AM, Neda Alipanah wrote: > Hello there, > I have a quick question. I am loading a 25 Meg Owl file to the memory > using the following commands. My code is working fine through the > IDE(IntelliJ), b

Finding (sub)class instance in raw Model

2017-12-02 Thread Martynas Jusevičius
Hi, what would be the most effective way to find a Resource that - belongs to a raw Model - in an instance of class X in an InfModel (which is based on the Model above) ? I came up with something which iterates instances and filters by membership (lambda syntax not tested): infModel.listSubjects

Re: Finding (sub)class instance in raw Model

2017-12-02 Thread Martynas Jusevičius
efore the > InfModel is really required? > > ajs6f > > > On Dec 2, 2017, at 12:27 PM, Martynas Jusevičius > wrote: > > > > Hi, > > > > what would be the most effective way to find a Resource that > > - belongs to a raw Model > > - in an ins

Overriding JsonLdOptions / disabling HTTP call

2017-12-03 Thread Martynas Jusevičius
Hi, I have noticed that after I upgraded to Jena 3.0.1 some time ago, JSON-LD writer stopped working. This is due to Exception occurred in target VM: org/apache/http/impl/client/SystemDefaultHttpClient java.lang.NoClassDefFoundError: org/apache/http/impl/client/SystemDefaultHttpClient at com.gith

Re: Overriding JsonLdOptions / disabling HTTP call

2017-12-03 Thread Martynas Jusevičius
rBase.loadClass(WebappClassLoaderBase.java:1167) ... 40 more On Sun, Dec 3, 2017 at 7:40 PM, ajs6f wrote: > Can you give a complete stack trace? > > ajs6f > > > On Dec 3, 2017, at 1:27 PM, Martynas Jusevičius > wrote: > > > > Hi, > > > > I have noticed that after I upgr

Specifying Dataset as in SPARQL Protocol

2017-12-27 Thread Martynas Jusevičius
Hey, I am implementing some of the last bits in the SPARQL Protocol, namely 2.1.4 Specifying an RDF Dataset and 2.2.3 Specifying an RDF Dataset. Would the following be a correct interpretation given a default Jena Dataset? public Dataset specifyDataset(Dataset defaultDataset, List defaultGra

Re: Specifying Dataset as in SPARQL Protocol

2017-12-27 Thread Martynas Jusevičius
Thank you! On Wed, Dec 27, 2017 at 9:58 PM, Andy Seaborne wrote: > Look at > class DynamicDatasets > use of DatasetDescription > SPARQL_Query.decideDataset > > Andy > > > On 27/12/17 20:37, Martynas Jusevičius wrote: > >> Hey, >> >>

[3.0.1] Models (not) isomorphic

2018-01-02 Thread Martynas Jusevičius
Hi, I am writing a unit test for an RDF parser: https://github.com/AtomGraph/Core/blob/master/src/test/java/com/atomgraph/core/riot/lang/RDFPostReaderTest.java I have constructed two Models which only differ in blank nodes, yet wanted.isIsomorphicWith(got) returns false. Here are the wanted.toSt

Re: [3.0.1] Models (not) isomorphic

2018-01-03 Thread Martynas Jusevičius
t;http://predicate5> "literal3"^^<http://type> . On Wed, Jan 3, 2018 at 11:22 AM, Andy Seaborne wrote: > Martynas, > > Do you have anything readable? > > If you write-and-read-back each model do that test isomorphic to > themselves? To ea

Re: Jena with RDBMS or alternative graph DB

2018-01-03 Thread Martynas Jusevičius
Can't you use ontop or D2RQ to get RDF and SPARQL access? https://github.com/ontop/ontop On Thu, Jan 4, 2018 at 12:02 AM, Dimov, Stefan wrote: > Thanks Andy, > > I wanna clarify my questions. > > In case we don’t use TDB, the alternative is already chosen (whether we > like it or not). It’s a sp

Re: [3.0.1] Models (not) isomorphic

2018-01-03 Thread Martynas Jusevičius
8 at 9:52 PM, Andy Seaborne wrote: > Can't see anything. > > maybe try cutting down the example to the triple(s) that matter? > have you checked for upgrading from RDF 1.0? > > Andy > > > On 03/01/18 17:01, Martynas Jusevičius wrote: > >> S

Re: [3.0.1] Models (not) isomorphic

2018-01-04 Thread Martynas Jusevičius
t; "literal", new BaseDatatype("http://type";)); > System.out.println(n1.equals(n2)); > --> false > > > > On 04/01/18 00:33, Martynas Jusevičius wrote: > >> Andy, >> >> it looks like the new BaseDatetype

Re: [3.0.1] Models (not) isomorphic

2018-01-04 Thread Martynas Jusevičius
Thanks, I will :) On Thu, Jan 4, 2018 at 2:12 PM, Andy Seaborne wrote: > Fix RDFPostReader? L201 an L218. > > > On 04/01/18 11:34, Martynas Jusevičius wrote: > >> Right... I guess for the purposes of the test I'll just use a built-in >> datatype. >> >>

Re: [3.0.1] Models (not) isomorphic

2018-01-04 Thread Martynas Jusevičius
the fix here? Is it RDFPostReader handling the datatype wrong or the ReaderRIOTBase? On Thu, Jan 4, 2018 at 2:14 PM, Martynas Jusevičius wrote: > Thanks, I will :) > > On Thu, Jan 4, 2018 at 2:12 PM, Andy Seaborne wrote: > >> Fix RDFPostReader? L201 an L218. >> >>

Re: [3.0.1] Models (not) isomorphic

2018-01-04 Thread Martynas Jusevičius
pe)); assertIsomorphic(a, b); On Thu, Jan 4, 2018 at 2:53 PM, Andy Seaborne wrote: > Then trace through and see where the datatype is created. > > Works fine on current Jena but then various things have been improved > since 3.0.1. > > Andy > > > On 04/01/1

Re: [3.0.1] Models (not) isomorphic

2018-01-04 Thread Martynas Jusevičius
Sorry once again, I was getting confused. I changed the original test method to construct Model with RDFDatatype datatype = TypeMapper.getInstance().getSafeTypeByName(" http://type";); and now it passes. Thanks! On Thu, Jan 4, 2018 at 5:46 PM, Martynas Jusevičius wrote: &

Re: RDFa ...

2018-01-13 Thread Martynas Jusevičius
Does it support RDFa 1.1? Can it read both XHTML and HTML(5)? On Sat, Jan 13, 2018 at 8:47 PM, Jean-Marc Vanel wrote: > Yes, > it's already possible if you use my fork from source. > It will be easier when there will be a new release of Java-RDFa in Maven > Central Repository. > The current rel

Re: RDFa ...

2018-01-15 Thread Martynas Jusevičius
all tests in http://rdfa.info/test-suite/test-cases > > > > - check results by RDF graph comparison > > - add 10 new test classes > > - old test classes should be FIXED or removed > > - results are green in majority, but lot of red ! :(

Re: GenericRuleReasoner with limited scope

2018-01-16 Thread Martynas Jusevičius
There is also something like this: https://www.researchgate.net/publication/307934931_SPARQL_Commands_in_Jena_Rules On Tue, Jan 16, 2018 at 12:21 PM, Lorenz Buehmann < buehm...@informatik.uni-leipzig.de> wrote: > > I would like the GenericRuleReasoner to take the SPARQL query into > account when

Re: validate an RDF/XML file with bad URL's

2018-01-20 Thread Martynas Jusevičius
I agree that fixing at the source is way to go. Checking (but not fixing) an URI in XSLT 2.0 could be as simple as @rdf:about castable as xs:anyURI On Sat, 20 Jan 2018 at 10.28, Conal Tuohy wrote: > On 20 January 2018 at 18:37, Jean-Marc Vanel > wrote: > > > 2018-01-20 0:15 GMT+01:00 Andy Seab

Re: Inconsistency in Ontologies

2018-01-22 Thread Martynas Jusevičius
You should probably ask on https://sourceforge.net/p/dbpedia/mailman/dbpedia-ontology/ On Mon, Jan 22, 2018 at 4:16 PM, javed khan wrote: > Hello > > What are the possible examples (chances) of inconsistencies in ontologies? > Like one I know is if we take same instance of classes that are disjo

Re: Extending Sparql with New Keywords

2018-02-05 Thread Martynas Jusevičius
Berkin, unless this is some kind of exercise, is this really a good idea? What would be the adoption rate of your new language? All SPARQL 1.1 processors will report errors in your extended syntax. On Mon, Feb 5, 2018 at 9:42 PM, Berkin Özdemir Bengisu < berkinozdemirbeng...@gmail.com> wrote: >

Re: Updating triples that originate from a specific named file.

2018-02-09 Thread Martynas Jusevičius
I think what you want is to import each RDF document into a named graph and then do Graph Store Protocol PUT with the graph URI: https://www.w3.org/TR/sparql11-http-rdf-update/#http-put On Fri, Feb 9, 2018 at 8:31 PM, Jeffrey C. Witt wrote: > I have a question about updating triples in TDB via F

Re: Updating triples that originate from a specific named file.

2018-02-09 Thread Martynas Jusevičius
Which is s-put in Jena: https://jena.apache.org/documentation/fuseki2/soh.html#soh-sparql-http On Fri, Feb 9, 2018 at 10:36 PM, Martynas Jusevičius wrote: > I think what you want is to import each RDF document into a named graph > and then do Graph Store Protocol PUT with the graph URI: &

Re: Vocabulary for provenance

2018-02-22 Thread Martynas Jusevičius
Since you mention "provenance", PROV ontology would be one option: https://www.w3.org/TR/prov-o/ But your usage looks more like VoID, more specifically void:inDataset: https://www.w3.org/TR/void/#backlinks PROV and VoID can be combined of course. On Thu, Feb 22, 2018 at 11:35 AM, Laura Morales

ResourceImpl subclass constructors with extra arguments

2018-02-25 Thread Martynas Jusevičius
Hi, we are extensively using Jena's polymorhism, by implementing classes that extend ResourceImpl, with such constructors: public SomeImpl(Node n, EnhGraph g) { super(n, g); } This works nicely for polymorphic purposes, but it also means that we cannot pass extra arguments th

Re: Use PREFIXes by default

2018-02-27 Thread Martynas Jusevičius
I don't think sending results without prefixes is possible, as it would make them invalid in respect to their format. Sounds like a really bad idea TBH. On Tue, Feb 27, 2018 at 12:48 PM, Laura Morales wrote: > Do these libraries also add PREFIXes for the output? For example I send a > query, get

Re: AW: URI of anonymous classes

2018-02-27 Thread Martynas Jusevičius
Jos, this reminds me of a similar issue I had: https://www.mail-archive.com/users@jena.apache.org/msg06279.html Ideally you should have explicit rdfs:isDefinedBy statements for each term, linking them to their defining ontology. On Tue, Feb 27, 2018 at 7:59 PM, Jos Lehmann < jos.lehm...@bauhaus-l

Re: Fuseki errors with concurrent requests

2018-03-06 Thread Martynas Jusevičius
Maybe you can make a reproducible using JMeter or such. On Tue, Mar 6, 2018 at 11:24 AM, Mikael Pesonen wrote: > > Yes, clean install of Ubuntu, Jena etc. > > > > > On 5.3.2018 17:40, Andy Seaborne wrote: > >> >> >> On 05/03/18 15:04, Mikael Pesonen wrote: >> >>> >>> We are using GSP and our tes

Re: Get the restrictions imposed on a class to the individuals of that type

2018-03-07 Thread Martynas Jusevičius
First of all, your class example is not valid OWL and not even RDF. I think you can model this using owl:hasValue restrictions: https://www.w3.org/TR/owl-ref/#hasValue-def On Wed, Mar 7, 2018 at 10:28 AM, Amar Banerjee wrote: > Hi folks !! > > I have been trying to create a sparql query to get

Re: Streaming CONSTRUCT/INSERTs in TDB

2018-03-11 Thread Martynas Jusevičius
OOME = Out of memory exception On Sun, Mar 11, 2018 at 10:27 PM, Adrian Gschwend wrote: > On 10.03.18 00:36, Andy Seaborne wrote: > > Hi Andy, > > > Executes in 2m 20s (java8) for me (and 1m 49s with java9 which is . > > Default heap which is IIRC 25% of RAM or 8G. Cold JVM, cold file cache. > >

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

2018-03-11 Thread Martynas Jusevičius
Hi, I'm getting the following JSON result from an ASK query: { "head": {}, "boolean": true } However, the method that usually works fine, will not parse it from InputStream (Jena 3.0.1): org.apache.jena.sparql.resultset.ResultSetException: Not a ResultSet result org.apache.jena.sparql.res

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

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

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 . >} >FILTER (CONTAINS( str(?th

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 the

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 NQuads form) from a St

Re: parse one quad?

2018-03-12 Thread Martynas Jusevičius
ng 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 > wrote: > > > > Maybe this? > >

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

2018-03-14 Thread Martynas Jusevičius
rne 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 Re

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 1

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 is restatement of J

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 softwar

Re: Example code

2018-03-20 Thread Martynas Jusevičius
earlier. On Tue, Mar 20, 2018 at 12:22 PM, David Moss wrote: > > > On 19/3/18, 9:40 pm, "Martynas Jusevičius" > wrote: > > David, > > >I gave you links but I take you haven't looked. The Web-Client project >> specifically renders RDF

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 the

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: 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 from Python. Thanks f

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 > Result into a org.apache.jena.

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 at 8:47 AM > From:

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 could

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

Re: Clearing and reloading ontology and its imports

2018-04-07 Thread Martynas Jusevičius
w.w3.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 wrote: > I guess dynamic imports is what I need. But will they get triggered if I &

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 th

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

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 wr

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 wrote: > Was there a PR associated with that suggestion? > > Adam > > On 2018/05/24 14:29:51, Martynas Jusevičius > wrote: > > I had long ago su

Re: Fuseki user-defined Web Services

2018-05-24 Thread Martynas Jusevičius
plumbing 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://www.mail-archive.com/use

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: https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/query/Dat

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
*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: Customizing RDF/XML writer for quads

2018-06-13 Thread Martynas Jusevičius
wondering 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 "aba

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 w

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 A

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 str

[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() 4.

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 Morales

Re: Distro package

2018-10-03 Thread Martynas Jusevičius
it myself 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

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-10 Thread Martynas Jusevičius
script 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 modificati

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 it

Re: Inference

2018-10-30 Thread Martynas Jusevičius
and are defined 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/Configur

Re: Distro package

2018-11-03 Thread Martynas Jusevičius
lestore 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 using

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 the

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 informatio

Re: Loosely converting JSON/XML to RDF

2018-11-07 Thread Martynas Jusevičius
nt to 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

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: Converting TriX to N-Quads with riot

2018-11-10 Thread Martynas Jusevičius
example.trix > > 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 >

Re: Converting TriX to N-Quads with riot

2018-11-10 Thread Martynas Jusevičius
Did you 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 t

Re: Converting TriX to N-Quads with riot

2018-11-10 Thread Martynas Jusevičius
Nov 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/";? > >> &g

Re: Converting TriX to N-Quads with riot

2018-11-10 Thread Martynas Jusevičius
; and removing 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&

Re: Converting TriX to N-Quads with riot

2018-11-10 Thread Martynas Jusevičius
rote: > > 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

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 t

Re: Converting TriX to N-Quads with riot

2018-11-11 Thread Martynas Jusevičius
some 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. &g

Re: Converting TriX to N-Quads with riot

2018-11-11 Thread Martynas Jusevičius
Nice to know, thanks! We should put together a Docker image with all these utilities ;) On Sun, 11 Nov 2018 at 16.02, Adrian Gschwend wrote: > On 11.11.18 18:36, Martynas Jusevičius wrote: > > > I got a tip that rapper should be able to convert N-Quads to N-Triples. > > http:/

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! > &g

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

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

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

Re: Parsing from stdin breaks in 3.9.0

2018-11-22 Thread Martynas Jusevičius
s all our CLI scripts 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/

Re: Parsing from stdin breaks in 3.9.0

2018-11-22 Thread Martynas Jusevičius
ssue. "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 --syntax ttl >

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 > https://www.w3.org/Submissi

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 fo

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

2018-11-29 Thread Martynas Jusevičius
jena/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:/

Re: Distro package

2018-12-23 Thread Martynas Jusevičius
on GitHub 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 n

  1   2   3   4   5   6   7   8   >