Re: loading data into different graphs

2013-02-14 Thread Martynas Jusevičius
Stefan, I presume you have to use N-Quads or TriX syntax to do this in one go -- RDF/XML and Turtle do not support named graphs. Alternatively you could import one graph at a time? Martynas graphity.org On Thu, Feb 14, 2013 at 9:29 AM, Stefan Scheffler sscheff...@avantgarde-labs.de wrote:

Re: ReverseProxy

2013-02-07 Thread Martynas Jusevičius
Rurik, not sure what your use case is exactly, but I recently replaced Apache with Varnish as the frontend for Tomcat. It seems to work fine, and additionally you get HTTP cache. Maybe it could be useful: https://www.varnish-cache.org Martynas graphity.org On Thu, Feb 7, 2013 at 11:46 PM, Rurik

Re: A Model's URI

2013-02-06 Thread Martynas Jusevičius
Mark, ontologies usually have URIs, but Models don't (named graphs come close, but that's in triplestores). As Model is just a set of statements, there might be multiple ontologies in one Model. You can list ontologies in OntModel:

ResourceFactory.createPlainLiteral(String, String)

2013-02-06 Thread Martynas Jusevičius
Hey, seems to me that a method to create an untyped Literal with language tag is missing from ResourceFactory? I mean this form: http://jena.apache.org/documentation/javadoc/jena/com/hp/hpl/jena/rdf/model/Model.html#createLiteral(java.lang.String, java.lang.String) Martynas graphity.org

Re: Retrieving CONSTRUCT results as n3

2013-01-09 Thread Martynas Jusevičius
Olivier, what are you trying to achieve? Wouldn't QueryEngineHTTP help you here? http://jena.apache.org/documentation/javadoc/arq/com/hp/hpl/jena/sparql/engine/http/QueryEngineHTTP.html On Wed, Jan 9, 2013 at 2:22 PM, Olivier Rossel olivier.ros...@gmail.com wrote: QueryExecutionFactory

Re: arq - accept header in remote SPARQL update

2012-12-06 Thread Martynas Jusevičius
If Jena would be consistent in its HTTP handling and use an established API such as JAX-RS, things could be much easier. Martynas graphity.org On Thu, Dec 6, 2012 at 6:04 PM, Rob Vesse rve...@yarcdata.com wrote: My two cents: In my experience of writing a HTTP connector for Dydra for

Re: arq - accept header in remote SPARQL update

2012-12-06 Thread Martynas Jusevičius
) within Linked Data -- what else do we need? Martynas On Thu, Dec 6, 2012 at 10:36 PM, Rob Vesse rve...@yarcdata.com wrote: On 12/6/12 12:31 PM, Andy Seaborne a...@apache.org wrote: On 06/12/12 20:03, Martynas Jusevičius wrote: If Jena would be consistent in its HTTP handling and use

Ontology caching per request?

2012-11-16 Thread Martynas Jusevičius
Hey all, I'm having a little problem with a trade-off between ontology caching and consistency. I'm using JAX-RS resources with default per-request life-cycle (an object is created for each request). Resource instance reads an OntModel from ontology file using OntDocumentManager (caching turned

Re: Multithreads with Jena

2012-11-11 Thread Martynas Jusevičius
Hey Uri, I was just reading about concurrency in Jena, might be relevant for you as well: http://jena.sourceforge.net/how-to/concurrency.html Martynas graphity.org On Sun, Nov 11, 2012 at 1:01 PM, Uri Shani sh...@il.ibm.com wrote: Is Jena thread-safe? What would be the limitations on that

Re: ARQNotImplemented exception thrown by ARQ function calls

2012-10-29 Thread Martynas Jusevičius
There's another way to modify queries dynamically - as RDF using SPIN vocabulary: http://www.w3.org/Submission/2011/SUBM-spin-modeling-20110222/ Example QueryBuilder class: https://github.com/Graphity/graphity-ldp/blob/master/src/main/java/org/graphity/util/QueryBuilder.java Martynas

Re: named owl:Restriction classes

2012-10-25 Thread Martynas Jusevičius
Hey Milorad, not 100% sure but could this thread be relevant? http://lists.w3.org/Archives/Public/semantic-web/2012Jul/0082.html Martynas graphity.org On Thu, Oct 25, 2012 at 12:07 PM, Milorad Tosic mbto...@yahoo.com wrote: Hi, I may missed something fundamental about OWL, so would someone

Re: Planning for a new framework for Jena

2012-07-26 Thread Martynas Jusevičius
Joan, take a look at the recent Graphity release, which enables a full read/write RDF round-trip with Jena- and JAX-RS-compatible components: https://github.com/Graphity/graphity-browser Martynas graphity.org On Tue, Jun 26, 2012 at 1:27 AM, Joan Iglesias joan.igles...@live.com wrote: I've

Re: Can SDB 1.3.4 be used with Jena 2.7.1?

2012-06-26 Thread Martynas Jusevičius
Have you tried TDB? I think it's currently more actively developed and more performant. On Jun 26, 2012 1:55 AM, Holger Knublauch hol...@knublauch.com wrote: Yes this is my hope, assuming SDB still works for us. Holger On 6/26/2012 9:46, Martynas Jusevičius wrote: Holger, does that also

Re: Property not removed?

2012-06-26 Thread Martynas Jusevičius
Note that the statement seems to point to a bNode so a simple remove is probably not enough anyway. Dave, can you elaborate on this a little? What I'm trying to do, is to replace such ORDER BY expression sp:orderBy ([ a sp:Desc ; sp:expression

Re: Strange behaviour of XMLLiterals in RDF/XML

2012-06-25 Thread Martynas Jusevičius
Thanks, I didn't realize XMLLiterals have to be canonical. You don't mean XMLLiterals are going away, do you? Escaped XML would cut off all XML processing tools (I heavily use XSLT on RDF/XML, for example). Martynas On Mon, Jun 25, 2012 at 2:43 PM, Damian Steer d.st...@bristol.ac.uk wrote:

Re: Planning for a new framework for Jena

2012-06-25 Thread Martynas Jusevičius
Joan, could Graphity approach be similar to what you have in mind? http://www.w3.org/2011/09/LinkedData/ledp2011_submission_1.pdf You can see what kind of UI it can render on http://linkeddata.dk. Martynas graphity.org On Mon, Jun 25, 2012 at 7:57 PM, Joan Iglesias joan.igles...@live.com

Re: Planning for a new framework for Jena

2012-06-25 Thread Martynas Jusevičius
Joan, Graphity also allows defining XHTML templates, so the layout and functionallity is fully customizable. You can include all the libraries you want, but the platform doesn't deal with client-side much -- linkeddata.dk is just one of the possible layouts. Do you mean http://www.zkoss.org? If

Re: Can SDB 1.3.4 be used with Jena 2.7.1?

2012-06-25 Thread Martynas Jusevičius
Holger, does that also mean a new release of SPIN API which will be packaged with the latest Jena? Martynas On Tue, Jun 26, 2012 at 1:33 AM, Holger Knublauch hol...@knublauch.com wrote: We are now starting the process of upgrading our platform to the latest Jena version(s). I noticed that SDB

Re: ARQ: Traversing and processing a SPARQL Algebra (Op) tree

2012-06-22 Thread Martynas Jusevičius
It might not be the traditional solution, but I've done some SPARQL query transformations with RDF/XML and XSLT 2. It doesn't work on the algebra level, but rather on the SPIN serialization. It might or might not be easier than Java code. I don't know if that applies in your case. Martynad

<    3   4   5   6   7   8