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

2012-06-24 Thread Claude Warren
On Sat, Jun 23, 2012 at 6:59 AM, Dimitris Spanos dimi.s...@gmail.comwrote: is where the transformation that I'm considering comes into play. The nodes of the transformed tree will be mere Op extensions that would just hold the extra ancestor variable information, nothing fancy that would

Re: Strange behaviour of XMLLiterals in RDF/XML

2012-06-26 Thread Claude Warren
On Mon, Jun 25, 2012 at 12:57 PM, Martynas Jusevičius marty...@graphity.org wrote: Both br/ and br/br are well-formed and equivalent in the XML context, so why the difference in serialization? I'm using Jena 2.6.4 and ARQ 2.8.7. Martynas graphity.org Back in the bad old days br/ was not

JPA like annotations for Jena

2012-06-29 Thread Claude Warren
Greetings, I have a package that implements JPA like annotations for Jena. However, it takes a twist on JPA by assuming that the data are in models not in a database and so there are some interesting differences like the ability to remove one object from a set of objects that match subject,

Re: Round-trip OWL-Java mapping

2012-08-24 Thread Claude Warren
I have recently released persistence annotations 4 RDF which may do what you want. https://sourceforge.net/projects/pa4rdf/ On Fri, Aug 24, 2012 at 1:47 PM, Zachary Whitley zachary.whit...@semantalytics.com wrote: You might want to look into Empire. https://github.com/mhgrove/Empire On

Re: Storage and Query Questions

2012-11-24 Thread Claude Warren
Just my 2-cents here but I recall reading the the schema of the NoSQL storage (e.g. key and lots of values per row) can significantly impact the ability to support the graph search operations (e.g find all triples that have a given predicate). If you are creating a NoSQL database to underpin a

Re: arq - accept header in remote SPARQL update

2012-12-05 Thread Claude Warren
I have a system that does conneg and returns different bodies for SELECT statements, we don't support UPDATE but if we did I suspect that we would also return different bodies in that case. On Wed, Dec 5, 2012 at 11:52 AM, Andy Seaborne a...@apache.org wrote: On 03/12/12 12:44, Simon Gábor

Listeners and weak references

2012-12-07 Thread Claude Warren
I am looking at a case where I need to register a listener to the model. The default implementation then converts that to a graph listener, so my question applies to both. I don't have a way to detect when my class will be garbage collected (OK, I could use finalize() but that is not guaranteed

Fwd: Jena Security Framework

2012-12-09 Thread Claude Warren
I have created a dynamic proxy based security framework for jena based Graphs and Models. All of the code is in https://github.com/Claudenw/JenaSecurity Implementations must implement the SecuirtyEvaluator interface. Security framework works at either a high level (access to the graph/model

Re: Listeners and weak references

2012-12-12 Thread Claude Warren
On Wed, Dec 12, 2012 at 7:33 PM, Stephen Allen sal...@apache.org wrote: I am strongly* against implementing listeners with weak references. After I posted the question, I thought some more about it and decided that I would have to agree with Stephen on some points. I now believe that the best

Re: Problem with a federated query

2013-02-08 Thread Claude Warren
On Fri, Feb 8, 2013 at 8:29 AM, Andy Seaborne a...@apache.org wrote: On 07/02/13 21:31, Adrian Gschwend wrote: On 07.02.13 19:22, Andy Seaborne wrote: Hi Andy, Can't test but my guess is that the some of the ?munidstr coming back from DBpedia are not valid integer strings. ah didn't

Re: Jena 2.10.0 : request for pre-release testing

2013-02-12 Thread Claude Warren
Andy, Is that information on a webpage somewhere? I'd like to be able to point to it in any posts. thx, Claude On Tue, Feb 12, 2013 at 9:12 AM, Andy Seaborne a...@apache.org wrote: We're gearing up for the Jena 2.10.0 and we'd like to ask for your help testing it before the release. This

TDB getDefaultModel null pointer

2013-03-02 Thread Claude Warren
First some background. I am debugging an app and did kill the app in the middle of an execution. code dataset = TDBFactory.createDataset( ./jena ); model = dataset.getDefaultModel(); /code the getDefaultModel() method throws a null pointer. in DatasetPrefixesTDB.readPrefixMap() code

Re: TDB getDefaultModel null pointer

2013-03-03 Thread Claude Warren
On Sat, Mar 2, 2013 at 5:19 PM, Andy Seaborne a...@apache.org wrote: On 02/03/13 10:02, Claude Warren wrote: First some background. I am debugging an app and did kill the app in the middle of an execution. code dataset = TDBFactory.createDataset( ./jena ); model

Re: custom algebra optimizer

2013-03-21 Thread Claude Warren
Diogo, When I implemented similar functionality for Granatum I implemented a QueryEngine by extending QueryEngineMain and overriding modifyOp(Op). I was able to make extensive modifications to the query (including inserting service calls). It is not trivial but it is doable. I assume you are

Re: RDF description of Jena Assembler vocabulary.

2013-03-21 Thread Claude Warren
First, let me start with donations are always welcomed. I do now know if the documents exist, but certainly they are not at the URLs you specified. The jena project no longer has control over the jena.hpl.hp.com URL, so that one is problematic. I'm certain Andy will be able to point you to any

Architecture Direction

2013-03-27 Thread Claude Warren
Currently Jena seems to require the use of Fuseki (or other web front end) to handle multiple applications talking to the same dataset/model/graph. Is this an intended (planned) direction or has there been any thought put to the idea that a Jena server at a lower level. Something akin to the

Re: Architecture Direction

2013-03-27 Thread Claude Warren
at the graph/model layer. The server process would make the lower level calls to the underlying storage layer. Is this what you had in mind? This is similar to how some of the object persistence technologies have been architected. -Original Message- From: Claude Warren [mailto:cla

Re: Architecture Direction

2013-03-27 Thread Claude Warren
does not meet your needs. For example, maybe your dataset is fairly small and you need the performance characteristics of the in-memory datastore. Dom On Mar 27, 2013, at 8:31 AM, Claude Warren cla...@xenei.com wrote: I believe that there are C libraries for MySQL that use a low level

Re: Re: Architecture Direction

2013-03-28 Thread Claude Warren
USE CASES AND GOALS * Use Cases All use cases are shared data across multiple endpoints. 1. Multiple SPARQL servers utilizing a single RDF server. 2. Multiple Model based applications utilizing a single RDF server such as a mix of live data feeds, bath update feeds, and

jdbc4sparql

2013-04-02 Thread Claude Warren
Rob, I took a quick look at your JDBC experimental project. I didn't see where it provided a SQL interface. Am I missing something? I have a JDBC4SPARQL project as well -- due to the SQL parser it is not entirely Apache licensed -- the instance I have talks so SPARQL endpoints or any Jena

same code returns 2 different readers

2013-04-02 Thread Claude Warren
I am running some test cases. When I run the tests (TestReaderEvent) from within Jean (2.10.1) it works fine. When I run it using the testing jar from a different project (using the same setup) it does not. Under Jena 2.10.1 The call calls are: model.getReader(N-TRIPLE)

Re: same code returns 2 different readers

2013-04-03 Thread Claude Warren
Reynolds dave.e.reyno...@gmail.comwrote: Hi Claude, On 02/04/13 23:14, Claude Warren wrote: I am running some test cases. When I run the tests (TestReaderEvent) from within Jean (2.10.1) it works fine. When I run it using the testing jar from a different project (using the same setup) it does

Re: same code returns 2 different readers

2013-04-03 Thread Claude Warren
the readers to ensure that they are correctly reporting events. Perhaps it does not belong on the model test at all. -- Claude On Wed, Apr 3, 2013 at 8:48 AM, Andy Seaborne a...@apache.org wrote: Hi Claude, On 02/04/13 23:14, Claude Warren wrote: I am running some test cases. When I run

Re: Architecture Direction

2013-04-03 Thread Claude Warren
/ch03.html I would be interested in something similar in Jena. Is jena-client going in that direction? Sören Am 28.03.2013 21:42, schrieb Claude Warren: USE CASES AND GOALS * Use Cases All use cases are shared data across multiple endpoints. 1. Multiple SPARQL servers

Re: same code returns 2 different readers

2013-04-04 Thread Claude Warren
Thanks for the quick response. I suspect the TTL for N-TRIPLE was a typo. I will delve into it again this evening but I think we can assume that the issue is closed. -- Claude On Thu, Apr 4, 2013 at 1:19 PM, Andy Seaborne a...@apache.org wrote: (from memory) The TestReaderEvent tests that

Security Module

2013-04-11 Thread Claude Warren
I have a security framework for Jena ( https://github.com/Claudenw/JenaSecurity) that wraps any Apache Jena graph or model to provide a authorization layer. The module includes an assembler and a query engine to handle ARQ queries. The framework is licensed under the Apache 2 license. The

Re: Security Module

2013-04-11 Thread Claude Warren
for integrating/linking different data sets. Security is a hot topic for the customer. Not all users may have access to all triples although they are linked to triples to which they do have access. Johan, 2013/4/11 Claude Warren cla...@xenei.com I have a security framework for Jena

Re: How to display rdf data graphically??

2013-04-15 Thread Claude Warren
If you are running a query then the results are basically a table and could be displayed as such. I submitted a patch ( https://issues.apache.org/jira/browse/JENA-349) that displays the fuseki query results in a table. If you are executing a construct I can see that you would have a graph to

Re: Abnormal CPU consumption by Fuseki

2013-04-16 Thread Claude Warren
Tao, I think I had a similar problem and discovered it was a bug in the JVM. Now I am doing all of this from memory so some of the info below may be incorrect. I captured thread dumps and ran http://java.net/projects/tda I think the TDA documentation will tell you how to capture thread dumps

enhanced iterators

2013-04-19 Thread Claude Warren
FYI the enhanced iterators found in the Apache Jena project will soon be included in the apache commons collections v4.x under the org.apache.commons.collections.iterators.enhanced package. It does not yet appear in the build but https://issues.apache.org/jira/browse/COLLECTIONS-442 indicates

Re: transformation of ontology into relational database

2013-04-25 Thread Claude Warren
Are you looking to map the classes in the ontology into relational tables? Or, do you want to create a set of relational tables to store the RDF data as a graph? If you want to build relational tables to match the ontology I have a project (https://github.com/Claudenw/jdbc4sparql) that does

Re: Client Server Architecture using Jena and Tomcat

2013-05-01 Thread Claude Warren
My experience is with medical research on large distributed SPARQL servers queried from a single server. Our server rewrote queries which it sent to endpoints and then recombined to present solutions to the clients. In this configuration we were dealing with fairly large data sets. In the end

Re: Java 1.6 or 1.7?

2013-05-20 Thread Claude Warren
1.6 is approaching EOL, I would go with 1.7 On Mon, May 20, 2013 at 3:08 PM, Charles Li charlesqua...@gmail.com wrote: Hi, I am starting Jena development with the latest Jena version. I have a choice of Java version. Should I use 1.6 or 1.7? Thanks a lot! Charles -- I like: Like

Re: converting the Java objects tree to RDF

2013-05-29 Thread Claude Warren
Shameless self agrandizing plug you might look at http://pa4rdf.sourceforge.net/ though it may be more than you are looking for. Claude On Tue, May 28, 2013 at 8:52 PM, Serge Vilvovsky serge...@gmail.com wrote: I am looking for an advice. I have the model defined in POJO. For example

Re: GC limit using ResultSet.outputAsXML - way to optimize my code?

2013-06-06 Thread Claude Warren
I have not followed this discussion very closely so please excuse any items that have already been discussed. You state you are serializing the result set to XML apply a style sheet and output as json. Does your XML processing use the XML Dom or SAX processor? (DOM results in a memory footprint

Persistence Annotations for RDF v1.1 Released

2013-07-12 Thread Claude Warren
The newest version of Persistence Annotations for RDF (PA4RDF) has been released (http://pa4rdf.sourceforge.net/index.html) This version introduces 2 new properties of the Predicate annotation: impl indicates that a concrete method is being annotated, and postExec which will execute a method

IRIResolver / StreamManager interaction?

2013-07-12 Thread Claude Warren
I am looking at TestModelRead.testSimpleLoadImplictBase() where the test cases are being read from the jena-core tests jar v 2.10.1. public void testSimpleLoadImplictBase() throws IRIException, FileNotFoundException { final Model mBasedImplicit = createModel(); final String fn = IRIResolver

Re: transactions and multiple threads

2013-07-22 Thread Claude Warren
At one time I had a similar requirement, we did not have a requirement for an update to be immediately available. My solution was to wrap the model/graph layer so that all writes were written to a queue and a single thread processed the writes. We ended up writing transaction blocks to the queue

Re: Achieving reasonably performing federated queries

2013-07-24 Thread Claude Warren
I did something like this a year ago (I should probably write it up). In our case we had what we called a roadmap that could identify properties various sparql endpoints that were logically the same (e.g. foo:molecularWeight, bar:molecular_weight and baz:atomic_weight might all be the same). We

Re: Jena and Hbase Integration

2013-07-24 Thread Claude Warren
I have seen a number of papers describing efforts and issues in using noSQL type DB for triple storage. There may be more information at http://SemanticWeb.org or http://answers.SemanticWeb.com but I have not actively searched. Claude On Wed, Jul 24, 2013 at 8:38 AM, Andy Seaborne

memory dataset and urn:x-arq:UnionGraph

2013-07-27 Thread Claude Warren
I believe that I have come across this before but I can't find my notes. Q: is it true that DatasetFactory.creteMem() will return a dataset for which dataset.getNamedModel(urn:x-arq:UnionGraph) will return a model but will not contain a union of all the models in the dataset? Q: is it true that

Re: Backing code for Fuseki *.html

2013-08-02 Thread Claude Warren
Lewis, It has been awhile since I was in this part of the code base but in the tpl you will find: [snip] #set( $ds = $mgt.dataset($request, ) ) #set( $srvQuery = $mgt.serviceQuery($ds) ) [snip] form action=${ds}/${srvQuery} method=GET accept-charset=UTF-8 [snip] so when the form is

Re: NPE when submitting query to Jena

2013-08-02 Thread Claude Warren
Lewis, I just responded to your later post so if you follow that look at where the dsRef is being constructed in the servlet configuration code. I expect that for some reason the dataset name is missing. Perhaps it is missing in your assembler file? Claude On Fri, Aug 2, 2013 at 12:06 AM,

Security Package (jena-security)

2013-08-02 Thread Claude Warren
I have contributed a Jena Security Package. This is a framework and implementation that wraps graphs and models in a security blanket. The security layer makes calls to a SecurityEvaluator (that must be implemented by the developer) to determine if the user has access to the data requested. The

Re: Strange Results

2013-08-04 Thread Claude Warren
: Claude, Too abstract. A complete, minimal example would be helpful. e.g. what is the storage? Andy On 04/08/13 08:36, Claude Warren wrote: I am attempting to build a minimal set to demonstrate this problem, however I would like to know if anyone has seen anything like this before

Re: Strange Results

2013-08-04 Thread Claude Warren
/XMLSchema#long datatype return an Integer when the value is within the Integer range? Would I not ask for a http://www.w3.org/2001/XMLSchema#int if I wanted an Integer? Claude Dataset On Sun, Aug 4, 2013 at 9:59 AM, Claude Warren cla...@xenei.com wrote: Working on minimal example. Problem

Re: Strange Results

2013-08-05 Thread Claude Warren
The issue was an annotation library that was resetting the class returned by TypeMapper for xsd:string. Fixing the annotation library solved the problem. On Sun, Aug 4, 2013 at 4:09 PM, Claude Warren cla...@xenei.com wrote: After a long and tortuous exploration I find the following

Re: RIOT language selection logic

2013-08-26 Thread Claude Warren
Is there a test case for this problem? On Mon, Aug 26, 2013 at 9:48 AM, Andy Seaborne a...@apache.org wrote: On 26/08/13 02:56, Holger Knublauch wrote: On 8/25/2013 3:49, Andy Seaborne wrote: On 23/08/13 00:10, Holger Knublauch wrote: On 8/23/2013 2:06, Andy Seaborne wrote: Based on

Max insertion rates for TDB, et. al.

2013-08-27 Thread Claude Warren
Does anyone have a measure of max insertion rate for TDB and/or other storage implementations? I am trying to determine if it is feasible to use Jena in an environment with frequent small (7-19 triples) inserts and infrequent (7x day) reads. This is essentially a system to store some application

Re: Impact on deprecation of BulkUpdateHandler on SDB

2013-09-03 Thread Claude Warren
As I recall the discuss around this topic dealt with the idea that you could add each triple inside a transaction and when the transaction committed transaction code would do the bulk update if supported. However I may be way off base here. I have no objection to retaining the BUH. Claude On

Re: Impact on deprecation of BulkUpdateHandler on SDB

2013-09-04 Thread Claude Warren
I opened https://issues.apache.org/jira/browse/JENA-528 for this. Please add comments there, vote it up and perhaps watch it. Claude On Wed, Sep 4, 2013 at 1:32 AM, Holger Knublauch hol...@knublauch.comwrote: On 9/4/2013 3:15, Claude Warren wrote: As I recall the discuss around this topic

Re: Impact on deprecation of BulkUpdateHandler on SDB

2013-09-04 Thread Claude Warren
On 04/09/13 01:32, Holger Knublauch wrote: On 9/4/2013 3:15, Claude Warren wrote: As I recall the discuss around this topic dealt with the idea that you could add each triple inside a transaction and when the transaction committed transaction code would do the bulk update if supported

jena-security

2013-09-09 Thread Claude Warren
Arthur, I moved this discussion to it's own subject rather than flood the Approaching release conversation with details of the security implementation. Jena-security is more of a framework that ensures that whatever implementation you want to apply is easy to execute. The work comes from my

Re: jena-security

2013-09-09 Thread Claude Warren
, and for this explanation. In my opinion the explanation you give here is a little clearer than the one on the site. I'll surely use this when it will be release. VAISSE-LESTEVEN Arthur. De : Claude Warren cla...@xenei.com À : users@jena.apache.org; Arthur Vaïsse-Lesteven

Re: an iterator for serialized stmt/triple listing ?

2013-09-12 Thread Claude Warren
The code you are looking for is probably in com.hp.hpl.jena.xmloutput.impl.Basic.java protected void writeRDFStatements( Model model, PrintWriter writer ) { ResIterator rIter = model.listSubjects(); while (rIter.hasNext()) writeRDFStatements( model, rIter.nextResource(), writer ); }

Re: an iterator for serialized stmt/triple listing ?

2013-09-12 Thread Claude Warren
something like protected void writeRDFStatements( Model model, PrintWriter writer ) { SetResource subjects = new TreeSetResource(); subjects.addAll( model.listSubjects().asSet() ); IteratorResource rIter = subjects.iterator() while (rIter.hasNext())

Re: History of BulkUpdateHandler changes

2013-09-13 Thread Claude Warren
Holger, Would it not make sense for the TransactionHandler to track all the updates and delete that occur within a transaction and submit them to the underlying db in blocks while calling the listener methods on the graph at commit? Does this provide the path you are looking for to keep bulk

Re: an iterator for serialized stmt/triple listing ?

2013-09-13 Thread Claude Warren
Chan, You are using a HashMap, this means that the objects will be retrieved in hashCode order. Not what you want. Look at the java.util.Comparator interface. Implement one of those that extracts the name for comparison and returns the results in the order you want. something like: new

Re: How to design large volume data ingest with Jena?

2013-09-23 Thread Claude Warren
Seems to me it would be faster to load the data at the jena interface rather than at the fuseki interface. Since duplicates are ignored you could just open a connection to the model and start adding triples as you read them from the json file. if you don't want to take your system offline to do

Re: EC2, GitHub, Heroku and Jena

2013-09-25 Thread Claude Warren
I've been considering writing a Casandra based graph and queryengine for Jena. I think Casandra will run on EC2 If anyone is interested in pursuing this let me know and perhaps we can work out a strategy to move forward. Claude On Wed, Sep 25, 2013 at 9:26 AM, Ian Dickinson

Re: Jena with Ontology

2013-10-09 Thread Claude Warren
If you want on the fly cardinality checks you could extend something like PA4RDF (https://sourceforge.net/projects/pa4rdf/) to do the validation on read/write On Mon, Oct 7, 2013 at 9:12 PM, Márcio Vinicius marciosena@gmail.comwrote: One question that still lingers in my head, which would

Re: Should model.read emit addedStatements ?

2013-11-01 Thread Claude Warren
in new_tests the model Contract test ( https://svn.apache.org/repos/asf/jena/Experimental/new-test/src/test/java/com/hp/hpl/jena/rdf/model/ModelContractTests.java) is: @Test public void testRead_InputStream_String_String() throws Exception { InputStream is =

Re: Jena property change listener

2013-11-04 Thread Claude Warren
When a property is changed the graph sees both a delete and add notification. On Mon, Nov 4, 2013 at 5:17 PM, Parastoo Delgoshaei apa_1...@yahoo.comwrote: Hi everyone, I was wondering if Jena supports model property change listener. i.e. there is a mechanism to be notified if a value of and

Re: Jena property change listener

2013-11-05 Thread Claude Warren
of rule checking. Thanks, -P. On Monday, November 4, 2013 3:50 PM, Claude Warren cla...@xenei.com wrote: When a property is changed the graph sees both a delete and add notification. On Mon, Nov 4, 2013 at 5:17 PM, Parastoo Delgoshaei apa_1...@yahoo.com wrote: Hi everyone, I

Re: Upgrade from Jena 2.6.4 to Jena 2.10.1

2014-01-15 Thread Claude Warren
I did have them testing against the new-test graph contract tests. On Wed, Jan 15, 2014 at 9:35 AM, Andy Seaborne a...@apache.org wrote: On 15/01/14 02:18, ashish nijhara wrote: Hello, We recently upgraded our Jena release to Jena 2.10.1. We noticed a couple of deprecated APIs like some

Re: Upgrade from Jena 2.6.4 to Jena 2.10.1

2014-01-20 Thread Claude Warren
. Lets take it from there. Thanks, Ashish On Thu, Jan 16, 2014 at 3:41 AM, Claude Warren cla...@xenei.com wrote: I did have them testing against the new-test graph contract tests. On Wed, Jan 15, 2014 at 9:35 AM, Andy Seaborne a...@apache.org wrote: On 15/01/14 02:18, ashish nijhara

Re: Sparql To SQL

2014-03-30 Thread Claude Warren
as mentioned D2RQ maps data from SQL to RDF so that SPARQL statements can execute against the SQL data. It can also be used to extract the relational data as RDF. The newest versions are supposed to do updates of the SQL as well, but I have not played with those versions. In the cases I had

Re: Jena ARQ to HBase Scan

2014-04-03 Thread Claude Warren
I'm not familiar with HBase and it's query capability, so I am going to assume that it has a query language that works something like SQL and go with the standard answer: extend GraphBase (com.hp.hpl.jena.graph.impl.GraphBase) as a starting point. It is not the algebra but it will present the

Re: Jena ARQ to HBase Scan

2014-04-04 Thread Claude Warren
statement of SPARQL query? On 4/3/14, 2:28 PM, Claude Warren cla...@xenei.com wrote: I'm not familiar with HBase and it's query capability, so I am going to assume that it has a query language that works something like SQL and go with the standard answer: extend GraphBase

Re: Dropping Java 6 Support?

2014-04-28 Thread Claude Warren
Should we change version numbers when Java 6 is dropped? On Mon, Apr 28, 2014 at 6:52 PM, Rob Vesse rve...@dotnetrdf.org wrote: Yes I can call a vote, what I will likely propose is that we do one more release that is Java 6 and then drop Java 6 support for subsequent releases Rob On

Re: how to put output of sparql query in jtable

2014-05-03 Thread Claude Warren
In the past when displaying the results of a SPARQL query in a browser I have used javascript and taken the SPARQL result from Fuseki in a JSON format. This makes it rather trivial do do. I am unfamiliar with the JTable properties, but if it can parse and display JSON or XML you might use the

Re: ARQ Security

2014-05-19 Thread Claude Warren
The security package is actually a permissions package (perhaps it should be renamed) and it works at the Graph or Model level. It has not been extended to handle federated queries or datasets. Datasets could/should be included but are not yet. The assumption for federated queries is that the

preloading data into TDB with Assembler

2014-06-24 Thread Claude Warren
Greetings, Is there a mechanism to specify that a TDB database in assembler should be initially populated from a file (or collection of files)? I am looking for something like the ja:content predicate to work with TDB. Claude -- I like: Like Like - The likeliest place on the web

Re: D2R Server and Jena TDB.

2014-07-07 Thread Claude Warren
Frederic, I am not certain why you would want to do this. Jena TDB is a graph/model store D2R is a tool that makes a relational database appear as a graph/model store. I think to use D2R you would have to dump the TDB and then find a way to load it into the relational tables. Why do you want

TDB Transactions and read/write

2014-07-21 Thread Claude Warren
Does anyone know if there is a way to get do something like this in TDB: Property p = ResourceFactory.createProperty(http://example/Foo;); dataset.begin( ReadWrite.WRITE ) QueryExecution qe = QueryExecutionFactory.create( QueryFactory.create( select ?x { query here }), dataset );

TDB, transactions and SELECT FROM or SELECT FROM NAMED

2014-07-27 Thread Claude Warren
Using apache-jena-libs 2.11.2 I have the following code: Dataset retval = TDBFactory.createDataset(); retval.begin(ReadWrite.WRITE); // read file:/home/claude/git/roadmap/target/test-classes/MockRoadmap.ttl URL url = ReadTest.class.getResource(/MockRoadmap.ttl); Model model =

Re: TDB, transactions and SELECT FROM or SELECT FROM NAMED

2014-07-27 Thread Claude Warren
-- but that may not work for http or ftp protocols. Thoughts? On Sun, Jul 27, 2014 at 10:10 AM, Andy Seaborne a...@apache.org wrote: On 27/07/14 09:44, Claude Warren wrote: Using apache-jena-libs 2.11.2 I have the following code: Dataset retval = TDBFactory.createDataset(); retval.begin

Re: Configuring in-memory dataset

2014-08-06 Thread Claude Warren
Simple solution is to use the TDB In memory version. TDBFactory.createDataset(); On Wed, Aug 6, 2014 at 11:40 PM, Arthur Ryman ry...@ca.ibm.com wrote: Is it possible to configure an in-memory dataset so that the unnamed graph is the union of all named graphs? I know how to do this for TDB

Re: RDF Streaming timestamp annotated triples/quads in Jena: Create a Quadruple in Jena and store it as a file, or outputstream

2014-10-02 Thread Claude Warren
With respect to time series data I thought that the data cube vocabulary ( http://www.w3.org/TR/vocab-data-cube/) was supposed to support that. Don't know if this meets your need however. Claude On Thu, Oct 2, 2014 at 8:39 AM, Wetz Peter peter.w...@tuwien.ac.at wrote: Thanks for your response

Re: SDB Databases Supported - SQL Server ver

2014-10-08 Thread Claude Warren
My 2 cents on this topic: SDB will support more than a few million triples, but you may have to hand tune the database tables using partitioning and such. It will support more than a few million triples without tuning but insert and search times will increase dramatically. The problem is, as

Re: Good Style to interact with Jena

2014-10-22 Thread Claude Warren
Benjamin, I am not certain what you are trying to do. If you are looking to create Java classes that map to ontology classes you might look at PA4RDF ( http://pa4rdf.sourceforge.net/) as it allows you to define functions that access the Jena Model Resource properties directly. Claude On Thu,

Re: ApacheCon EU 2014?

2014-11-07 Thread Claude Warren
Sorry I'm going to miss it. :( Claude On Thu, Nov 6, 2014 at 8:29 PM, Andy Seaborne a...@apache.org wrote: I'll be there Saturday to Thursday, staying at the conference hotel. It'll be good to meet up. The entire programme is http://apacheconeu2014.sched.org/ with the linked data talks

Re: Using Model inside Java Objects.

2014-11-21 Thread Claude Warren
If you want a half way step, take a look at PA4RDF ( http://pa4rdf.sourceforge.net/) -- Persistence Annotations for RDF. This package takes interfaces, abstract classes or concrete classes, and through the magic of annotations and dynamic proxies overlays them onto a graph so that a specific node

Re: Using Model inside Java Objects.

2014-11-28 Thread Claude Warren
PA4RDF works by mapping java methods to values in the graph and returning those values converted to the proper Java type. It uses the graph data directly (i.e. it does not make a copy) so that given a properly annotated interface like: interface X { String getName(); void setName(String

Re: Using Model inside Java Objects.

2014-11-28 Thread Claude Warren
) PS : is there a godd design pattern to implement (optimistic) locks with PA2RDF? I could not figure out a correct one when I used Elmo. On Fri, Nov 28, 2014 at 9:38 AM, Claude Warren cla...@xenei.com wrote: PA4RDF works by mapping java methods to values in the graph and returning those

Re: Upgrading from RDB to TDB want to use Jena Security

2015-01-02 Thread Claude Warren
false for the entire model. So essentially what was happening for me is, if user can't see one triple they can't see any triples. Plus my other question is what is difference between Graph and Model. Ok, thanks so much for your help. On Thu, Jan 1, 2015 at 7:49 PM, Claude Warren cla...@xenei.com

Re: Upgrading from RDB to TDB want to use Jena Security

2015-01-01 Thread Claude Warren
Trevor, I saw your question on stackoverflow http://stackoverflow.com/questions/27706124/jena-security-with-reification and answered it there. I would have answered here first had I seen this first. But it is possible and I provided what I hope is a detailed explanation of how to do what you

Re: Fusek2 Jetty SSL

2015-01-23 Thread Claude Warren
I don't have an example but I do know that Shiro has some switches to force SSl and such. On Fri, Jan 23, 2015 at 6:30 PM, Trevor Donaldson tmdona...@gmail.com wrote: I know this is probably the wrong user group but does someone have an example jetty ssl configuration? I am having some

Re: Question

2015-01-23 Thread Claude Warren
Your data did not come through in a table format. Is the table really in a database or is it a CSV file or just how is it stored? In general, most conversions convert each column to a property and create a URI for each row. Then you can link them together by whatever property values are the

Re: Question

2015-01-23 Thread Claude Warren
image 1] On Fri, Jan 23, 2015 at 8:22 PM, Claude Warren cla...@xenei.com wrote: Your data did not come through in a table format. Is the table really in a database or is it a CSV file or just how is it stored? In general, most conversions convert each column to a property and create a URI

Re: Using DatasetAccessor how to I create a model with a graph name if it doesn't exist

2015-02-04 Thread Claude Warren
for some reason I thought that getModel would get the model if it exists and create it if it doesn't. On Wed, Feb 4, 2015 at 5:02 PM, Trevor Donaldson tmdona...@gmail.com wrote: Not sure if this is right but I am pretty much implementing this logic. boolean modelExist = true;

Re: shiro.ini with custom realm fuseki2

2015-01-18 Thread Claude Warren
It's been awhile since I played with the Shiro ini file but as I recall there are at least 2 ways to specify the Shiro configuration. Make sure that Fuseki is actually using the shiro file you are editing. (not sure how to do this). Claude On Mon, Jan 19, 2015 at 1:40 AM, Trevor Donaldson

Re: Third Party Libraries in Fuseki 2

2015-01-16 Thread Claude Warren
I am anticipating working with Trevor to get a cookbook for how to apply Jena-Security in the Fuseki environment. So we should have a document that covers 3rd party jars then. On Fri, Jan 16, 2015 at 3:16 PM, Trevor Donaldson tmdona...@gmail.com wrote: well, it is in the war. :-) I haven't

Re: How do I run fuseki.war in debug mode?

2015-01-22 Thread Claude Warren
We are on the very edge of my knowledge but.. The logging system must be configured somewhere (perhaps via the tomcat logging configuration) If you turn the logging on for the fuseki stuff (org.apache.jena.fuseki) it might work. Not really sure. On Thu, Jan 22, 2015 at 3:42 PM, Trevor

Re: Add Http Headers to Arq Query

2015-01-26 Thread Claude Warren
The security layer may have access to the currently authenticated user via Shiro. so that bit of code already exists. I think I did authenticated SPARQL calls a while back using the HttpAuthenticator methods. But I don't recall much about it.

Re: Time series (energy data) in jena

2015-01-28 Thread Claude Warren
Ashley, I worked for the National Renewable Energy Labratory in Golden, CO, USA several years ago. They were doing lots of work with linked open data and energy -- you might find some good information there (http://www.nrel.gov/) As for time series data, I think that there was a group at the

Re: Assembler config bug with fuseki.war? Maybe?

2015-01-23 Thread Claude Warren
Trevor, I used an embedded Jetty with a modified Fuseki (v1) to create the Granatum query engine (www.granatum.org). It worked well. We did not have any issues with Jetty. Claude On Fri, Jan 23, 2015 at 1:56 AM, Trevor Donaldson tmdona...@gmail.com wrote: Hold off on answering this

Re: Add Http Headers to Arq Query

2015-01-27 Thread Claude Warren
Trevor, If you're digging around in the code to figure out how to do this, then submit your changes as a fix to allow it. On Tue, Jan 27, 2015 at 1:04 PM, Trevor Donaldson tmdona...@gmail.com wrote: I would like to request the ability to add Http Headers as a future enhancement request. On

Re: How to update fuseki from a local model?

2015-01-10 Thread Claude Warren
We could extend the QueryBuilder in extras to handle creating the strings for INSERT DATA and DELETE DATA. On Fri, Jan 9, 2015 at 8:50 PM, Andy Seaborne a...@apache.org wrote: On 09/01/15 19:47, Trevor Donaldson wrote: Could I possible do this ? For the adds, yes. DatasetAccessor

Re: Jena Security and Fuseki

2015-01-06 Thread Claude Warren
To use Jena Security with Fuseki you have Fuseki serve your Secured Models. (I don't know that his has been done but I did something very similar before I wrote the Security Module). It works like this: - Fuseki uses Jetty. - Jetty allows you to define the Authentication and

  1   2   3   >