Re: Thread safety/reuse if Query ?

2014-12-05 Thread Claude Warren
tion e) { // expected in some cases -- do nothing } } return NodeFactory.createLiteral(LiteralLabelFactory.create(o)); } On Thu, Dec 4, 2014 at 4:56 PM, Andy Seaborne wrote: > On 04/12/14 15:08, Claude Warren wrote: >> >> Not sure if this will s

Re: Thread safety/reuse if Query ?

2014-12-04 Thread Claude Warren
I have to go to the code to look but I think that foaf:Person in this case might be better written as , a URI resource with the value of foaf:person. I'll look into it in the next few days. On Thu, Dec 4, 2014 at 4:56 PM, Andy Seaborne wrote: > On 04/12/14 15:08, Claude Warren wrote: &

Re: Thread safety/reuse if Query ?

2014-12-04 Thread Claude Warren
sume I'd be able to put a bunch of > different "SelectBuilders" in static scope somewhere and repeatedly > call "build" on that instead. I'll see how that stacks up. > > Thanks > > Kristian > > > 2014-12-04 16:08 GMT+01:00 Claude Warren :

Re: Thread safety/reuse if Query ?

2014-12-04 Thread Claude Warren
Yeah, I ended up not modifying the base query object. But now that the querybuilder is complete we could go back and modify access or provide access methods for those variables. On Thu, Dec 4, 2014 at 4:00 PM, Claude Warren wrote: > You could call build them in static and then call cl

Re: Thread safety/reuse if Query ?

2014-12-04 Thread Claude Warren
Not sure if this will solve all the problems but have you looked at the QueryBuilder? http://jena.apache.org/documentation/extras/querybuilder/index.html I would be interested to know how it stacks up against your performance requirements. Claude On Thu, Dec 4, 2014 at 3:01 PM, Kristian Rosenvo

Re: Some very suspicious-looking NumberFormat usage....

2014-12-02 Thread Claude Warren
+1 for patch. I perfer my edge living choices in my code not my libraries. ;) Claude On Tue, Dec 2, 2014 at 9:13 AM, Kristian Rosenvold wrote: > While patching the FastDateFormat I came across several static > instances of NumberFormat and DecimalFormat, and all of them look like > a violation

Re: Overriding default methods - performance impact?

2014-12-01 Thread Claude Warren
Mon, Dec 1, 2014 at 2:06 PM, Joshua TAYLOR wrote: > On Mon, Dec 1, 2014 at 9:04 AM, Claude Warren wrote: > > I can find no documentation that indicates that the @Override speeds up > > processing. All documentation that I have found on @Override indicates > > that it is a h

Re: Overriding default methods - performance impact?

2014-12-01 Thread Claude Warren
On the other hand if you're asking about the ovrriding vs not overriding I can see that if not overridden the JVM has to scan the class hierarchy to find the instance to call, but I would expect that to be very fast and negligable. On Mon, Dec 1, 2014 at 2:04 PM, Claude Warren wrote: &

Re: Overriding default methods - performance impact?

2014-12-01 Thread Claude Warren
Andy, I can find no documentation that indicates that the @Override speeds up processing. All documentation that I have found on @Override indicates that it is a hint to the IDE to let the user know when changing a signature may be an issue in large and complex classes. Infact the Override annot

Re: Patching to FastDateFormat in commons-lang3 ?

2014-12-01 Thread Claude Warren
I don't have a problem with this. I think it is probably a good addition. On Mon, Dec 1, 2014 at 1:17 PM, Kristian Rosenvold wrote: > I'd be interested in patching jena to use the thread-safe > FastDateFormat of commons-lang3 3.3.2 (or 2.6). The current use of the > non-threadsafe SimpleDateFor

Re: Better name than "RDF Tools for Apache Hadoop"?

2014-11-26 Thread Claude Warren
*Elephas* Apache Jena Elephas Elephas is the genus of the Asian Elephant. conveys Hadoop by logo, and size by semantic and aural association with elephant. http://en.wikipedia.org/wiki/Elephas On Wed, Nov 26, 2014 at 3:53 PM, Phil Coates wrote: > kabuki? > > On 26 November 2014 at 14:22, Ro

Re: Better name than "RDF Tools for Apache Hadoop"?

2014-11-26 Thread Claude Warren
What is the brief synopsis of what "RDF Tools for Apache Hadoop" does? On Wed, Nov 26, 2014 at 1:29 PM, Andy Seaborne wrote: > On 26/11/14 11:56, Rob Vesse wrote: > >> While certainly accurate and descriptive it is somewhat cumbersome to both >> say and write. It would be nice to have a snappie

Re: git commit: hashCode and .equals (auto-generated)

2014-11-04 Thread Claude Warren
= hashResult; return this.hash; } Since the hash does not change calculating it multiple times will not result in an error thus synchronization is not required. On Tue, Nov 4, 2014 at 9:28 AM, Andy Seaborne wrote: > On 04/11/14 08:19, Claude Warren wrote: > >> Andy, >> >> Yo

Re: git commit: hashCode and .equals (auto-generated)

2014-11-04 Thread Claude Warren
Andy, You might consider caching the hash code once it is calculated. I assume you use this object in hash maps or hash sets where the hash code needs to be retrieve many times - O(log(n)? per operation. In this case caching may show a performance improvement. Claude On Mon, Nov 3, 2014 at 8:

Re: pom.xml fixes

2014-10-29 Thread Claude Warren
We can always contribute back a change that supports our config if necessary. On Wed, Oct 29, 2014 at 3:31 PM, Andy Seaborne wrote: > Can the rat plugin be made to > > 1/ skip files in the module level directories? > (but the build runs either in or / > > 2/ Be customized per module? Or does th

is this a bug?

2014-10-28 Thread Claude Warren
I think I am doing this correctly but I want to make sure before I open a bug. public static void main( final String[] args ) throws Exception { String qry = "SELECT (sum(?x) as ?y) WHERE { [] < http://example.com/int> ?x }"; Model m = ModelFactory.createDefaultModel();

[jira] [Commented] (JENA-778) Remove TripleMatch interface

2014-10-23 Thread Claude Warren (JIRA)
[ https://issues.apache.org/jira/browse/JENA-778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14181471#comment-14181471 ] Claude Warren commented on JENA-778: I think I am confused by #2. Shouldn't t

Re: [jira] [Commented] (JENA-777) Remove interface GraphAdd

2014-10-23 Thread Claude Warren
TripleMatch may cause a problem for Security, but I would have to check. And any change would be minor. Claude On Thu, Oct 23, 2014 at 12:34 PM, Andy Seaborne (JIRA) wrote: > > [ > https://issues.apache.org/jira/browse/JENA-777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-ta

Re: javadocs on Jena page

2014-10-19 Thread Claude Warren
The skeleton.html lists the directories, but I don't see anything that moves the javadocs that are generated by the modules into the directory tree. Does this mean that they are done by hand? On Sun, Oct 19, 2014 at 2:24 PM, Andy Seaborne wrote: > On 19/10/14 13:11, Claude Warr

javadocs on Jena page

2014-10-19 Thread Claude Warren
I have looked and scoured and can not find the info for adding javadocs to the javadoc dropdown on the jena home page. Does this documentation get automatically updated somehow? Any help would be appreciated. Claude -- I like: Like Like - The likeliest place on the web

Re: Fuseki 2 build issue

2014-10-18 Thread Claude Warren
the version actually in the parent directory. No change. I removed my existing ~/.m2/repository to force a download off all referenced components and the build worked. Must have been something in my local repository. Claude On Sat, Oct 18, 2014 at 12:59 PM, Andy Seaborne wrote: > On 17/10/14 2

Fuseki 2 build issue

2014-10-17 Thread Claude Warren
I have checked out the complete Jena tree but it does not build. The fuseki2 build seems to be missing the javax.servlet package. When I tried to add javax.servlet to the POM the package was not found, though mvnrepository.com lists it as existing. In addition the jetta-webapp jar contains a pom

extras, build and javadoc

2014-10-13 Thread Claude Warren
I have added the extras to the documentation and checked in the source with a POM. But I have a couple of questions. I think that the extra package should be built after the apache-jena-libs is built, and I suppose that can be done with a Jenkins job, but how do we configure the build so that it

web site menu

2014-10-12 Thread Claude Warren
Where is the website menu data stored? Specifically I want to add another link to the "Learn" section. Claude -- I like: Like Like - The likeliest place on the web LinkedIn: http://www.linkedin.com/in/claudewarren

snapshot documentation

2014-10-12 Thread Claude Warren
I can't seem to find my bookmark to the snapshot HTML documentation. Does someone have a URL? -- I like: Like Like - The likeliest place on the web LinkedIn: http://www.linkedin.com/in/claudewarren

[jira] [Closed] (JENA-795) Security Graph test does not properly test PrefixMapping

2014-10-11 Thread Claude Warren (JIRA)
[ https://issues.apache.org/jira/browse/JENA-795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claude Warren closed JENA-795. -- > Security Graph test does not properly test PrefixMapp

[jira] [Resolved] (JENA-795) Security Graph test does not properly test PrefixMapping

2014-10-11 Thread Claude Warren (JIRA)
[ https://issues.apache.org/jira/browse/JENA-795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claude Warren resolved JENA-795. Resolution: Fixed Fixed with last change > Security Graph test does not properly test PrefixMapp

[jira] [Updated] (JENA-795) Security Graph test does not properly test PrefixMapping

2014-10-11 Thread Claude Warren (JIRA)
[ https://issues.apache.org/jira/browse/JENA-795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claude Warren updated JENA-795: --- Component/s: Security Fix Version/s: Jena 2.12.1 Assignee: Claude Warren > Secur

Re: Query Builder

2014-10-11 Thread Claude Warren
what goes there > - so thanks for already creating a web page for that. > CheersBruno > > From: Andy Seaborne > To: dev@jena.apache.org > Sent: Saturday, October 11, 2014 2:01 PM > Subject: Re: Query Builder > > +1 > > > > On 11/10/14 16:58, Claud

Re: Query Builder

2014-10-11 Thread Claude Warren
Should we use the name Lab Util Extras I'm leaning toward jena-extras as the top level maven module and a web page that explains that these are packages outside the normal package that may make development of some projects easier. That the list includes utilities as well as packages that are big

Re: Query Builder

2014-10-09 Thread Claude Warren
nder it. c.f. jena-jdbc > > (drop "commons-" for sub-artifacts?) > > jena-commons -+- jena-config > | > +- jena-querybuilder > > > I don't have a strong preference (at the moment :-) for nested vs flat > hierarchies. What do others

Re: Query Builder

2014-10-08 Thread Claude Warren
ther users to understand how the query was being built (pun intended :) >> >> So you'll probably already have 1 user to annoy you with bug and feature >> requests in the future. >> CheersBruno >> >> >>From: Claude Warren >> To: dev@jena.apache.

Query Builder

2014-10-07 Thread Claude Warren
Does anyone have an objection to adding the query builder code to the jena project? Does anyone have a suggestion for where to put it? I assume we don't want it in ARQ (though the code is currently ARQ package based). It seems to me that it is a nice to have utility and should be packaged with o

Re: [VOTE] Release Jena 2.12.1 and Fuseki 1.1.1 (RC 2)

2014-10-06 Thread Claude Warren
+1 Checked on Ubuntu On Mon, Oct 6, 2014 at 11:23 AM, Rob Vesse wrote: > +1 > > Rob > > --- > > Checking needed: > > + does everything work on Linux? > > Not tested > > + does everything work on MS Windows? > > Not tested > > + does everything work on OS X? > > Yes > > + is the GPG signature fin

TDB, inferencing and OOM

2014-10-06 Thread Claude Warren
I have the following code data = TDBFactory.createDataset( dir.getAbsolutePath() ); data.begin( ReadWrite.WRITE); // read 2 files into the model (approx 3.5K triples) Model dataM = loadDir( ctxt, "/WEB-INF/resources/rdf/documents"); // read http://www.w3.or

Re: Security Tests

2014-10-05 Thread Claude Warren
The issue was in SecuredPrefixMappingTest.java around line 62 is should read if (m.isAnnotationPresent(Test.class)) but it did read if ( ! m.isAnnotationPresent(Test.class)) On Sat, Oct 4, 2014 at 11:39 PM, Andy Seaborne wrote: > On 04/10/14 19:29, Claude Warren wrote: > &

Re: Security Tests

2014-10-05 Thread Claude Warren
laude On Sat, Oct 4, 2014 at 11:39 PM, Andy Seaborne wrote: > On 04/10/14 19:29, Claude Warren wrote: > >> Andy, >> >> Have you attempted to build with the new tests I checked in? If so did >> it work? If it did I will close the open issue. >> > > Cla

Security Tests

2014-10-04 Thread Claude Warren
Andy, Have you attempted to build with the new tests I checked in? If so did it work? If it did I will close the open issue. Thanks, Claude -- I like: Like Like - The likeliest place on the web LinkedIn: http://www.linkedin.com/in/claudewarren

Re: [] Release Jena 2.12.1 and Fuseki 1.1.1 (RC 2)

2014-10-03 Thread Claude Warren
I think the changes I just checked in will fix the problem. I was able to build and test on Ubuntu using Java 8. On Fri, Oct 3, 2014 at 7:22 PM, Claude Warren wrote: > I found an issue in the source. Though I don't know how it ever worked. > I have built from scratch. > > On

[jira] [Created] (JENA-795) Security Graph test does not properly test PrefixMapping

2014-10-03 Thread Claude Warren (JIRA)
Claude Warren created JENA-795: -- Summary: Security Graph test does not properly test PrefixMapping Key: JENA-795 URL: https://issues.apache.org/jira/browse/JENA-795 Project: Apache Jena Issue

Re: [] Release Jena 2.12.1 and Fuseki 1.1.1 (RC 2)

2014-10-03 Thread Claude Warren
I found an issue in the source. Though I don't know how it ever worked. I have built from scratch. On Fri, Oct 3, 2014 at 4:17 PM, Andy Seaborne wrote: > I'm still having problems with jena-security from the source-release. > > From the git tag works and the file trees for jena-security check

unlocking a locked prefixmapping

2014-10-03 Thread Claude Warren
Currently there is no way to unlock a locked prefix mapping I assume this is by design. Does anyone remember why? -- I like: Like Like - The likeliest place on the web LinkedIn: http://www.linkedin.com/in/claudewarren

Problems building.

2014-10-03 Thread Claude Warren
I found the bug that Andy reported with the TDB Security tests and made some changes. However, when I attempted to compile and test the entire build on my rather underpowered machine I came across this error: Running com.hp.hpl.jena.test.TestPackage WARN [main] (MoreTests.java:169) - Encoding mi

Re: [] Release Jena 2.12.1 and Fuseki 1.1.1

2014-10-02 Thread Claude Warren
Seems like that change only applies to hashSet and it made no contract concerning the order of retrieval. Thx for the heads up though. On Wed, Oct 1, 2014 at 7:19 PM, Kristian Rosenvold wrote: > I believe Set iteration order has changed for java 8, at least for some > sets. This can break britt

Re: [] Release Jena 2.12.1 and Fuseki 1.1.1

2014-10-02 Thread Claude Warren
Looking at the code I can't figure out how any of them pass. I'll spend more time on it this evening. On Wed, Oct 1, 2014 at 11:14 AM, Andy Seaborne wrote: > I'm having problems building the source-release with java8. > > * jena-security consistently fails with java8 (1.8.0_20) > * It does buil

Re: 2.12.1 Release?

2014-09-30 Thread Claude Warren
I would like to add the querybuilder code. However that is not critical and could be released in 2.12.2. The code tree is all org.apache.jena so it should merge quickly. test cases are included. but there has been minimal testing. On Mon, Sep 29, 2014 at 11:56 AM, Rob Vesse wrote: > Now we a

Re: Migration from svn to git

2014-09-23 Thread Claude Warren
I think I have anything to do as the only downstream job I think I have is the new tests, they are in experimental and that is still on SVN right? Claude On Mon, Sep 22, 2014 at 6:29 PM, Andy Seaborne wrote: > On 21/09/14 19:17, Andy Seaborne wrote: > >> On 19/09/14 10:52, Andy Seaborne wrote:

Re: Query Builder

2014-09-21 Thread Claude Warren
fixed. On Sat, Sep 20, 2014 at 10:57 PM, Andy Seaborne wrote: > On 20/09/14 21:27, Claude Warren wrote: > >> Andy, >> >> 1 and 2 implemented. >> > > Off by one error :-) > > SelectBuilder sb = new SelectBuilder() ; > sb.addPrefix("abcd

Re: Query Builder

2014-09-20 Thread Claude Warren
ler.addWhere( > WhereHandler.java:129) > org.apache.jena.arq.querybuilder.SelectBuilder. > addWhere(SelectBuilder.java:194) > org.apache.jena.arq.querybuilder.SelectBuilder. > addWhere(SelectBuilder.java:206) > dev.QBuild.main(QBuild.java:34) > - > while > (&qu

Re: Query Builder

2014-09-19 Thread Claude Warren
I have added license and javadoc comments as well as a readme.md In addition the above mentioned bug is now fixed and addVar( "*" ) works as expected. On Fri, Sep 19, 2014 at 1:24 PM, Claude Warren wrote: > I started looking at it this AM. I think the proper solution is to acce

Re: Query Builder

2014-09-19 Thread Claude Warren
I started looking at it this AM. I think the proper solution is to accept "*" as a var in the selecthandler. I will look at it over the weekend and will add documentation (javadoc at least) On Fri, Sep 19, 2014 at 10:14 AM, Andy Seaborne wrote: > On 19/09/14 05:18, Bruno P. Kinoshita wrote:

Query Builder

2014-09-17 Thread Claude Warren
Greetings, I have created a QueryBuilder that builds a query without constructing the text version first. The classes (AskBuilder, ConstructBuilder, and SelectBuilder) allows you to construct the query by adding Construct, Dataset, Prolog Select SolutionModifer and Where clauses. In addition the

SDB viability

2014-09-12 Thread Claude Warren
Greetings, I am designing an application and I want to use some semantic technologies to solve some tricky queries. However, the environment I am in does not support storing directly to disk (you have to use one of their services) so TDB can not be used. I know that we no longer do any work on S

[jira] [Commented] (JENA-214) Allow to set Fuseki (or a single dataset) in read-only mode (and eventually, back into read-write mode)

2014-09-05 Thread Claude Warren (JIRA)
[ https://issues.apache.org/jira/browse/JENA-214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14122920#comment-14122920 ] Claude Warren commented on JENA-214: This could be implemented using the Secu

[jira] [Created] (JENA-778) Remove TripleMatch interface

2014-09-04 Thread Claude Warren (JIRA)
Claude Warren created JENA-778: -- Summary: Remove TripleMatch interface Key: JENA-778 URL: https://issues.apache.org/jira/browse/JENA-778 Project: Apache Jena Issue Type: Task

TripleMatch: jena3 removal candidate?

2014-09-04 Thread Claude Warren
It seems to me that TripleMatch falls in the same category as GraphAdd. An interface for no defined purpose. I propose it as a candidate for removal in Jena3. Does anyone have an objection? If not I'll open the Jira ticket for it. Claude -- I like: Like Like - The likeliest place on the web

Re: Jena3 - proposal

2014-09-03 Thread Claude Warren
Sounds good to me. I would like to see Jena 3 added to Jira so we can begin to log requested features against it (e.g. remove the GraphAdd interface) On Wed, Sep 3, 2014 at 11:47 AM, Andy Seaborne wrote: > I had a go at refactoring to have both org.apache.jena and com.hp.hpl.jena > APIs (my

Re: prepared statements in Jena

2014-09-02 Thread Claude Warren
o a SPARQL string would not > always be valid integers according to SPARQL and depending on where they > were inserted would not necessarily be immediate syntax errors either but > might only manifest as unexpected runtime behaviour > > Rob > > On 02/09/2014 13:51, "Claud

Re: prepared statements in Jena

2014-09-02 Thread Claude Warren
re was some talk about doing the parameterisation at the query/algebra > level. Certainly some of the plumbing that supports parameterisation at > the algebra level already exists because it is used by optimisations > > Maybe you could elaborate more on what you intend? > > Rob >

idea: streaming union

2014-09-02 Thread Claude Warren
I have had several cases where I have unions of service calls. since the service calls take time and since the operation is not sensitive to the order of the items being unioned I was thinking of implementing a union operation for service endpoints such that both endpoints would be opened and the

prepared statements in Jena

2014-09-02 Thread Claude Warren
I recall a discussion of prepared statements in Jena awhile back. Now my google search has turned up using bind to do something like a prepared statement, but for some reason I thought there was a proposal to do real prepared statement with replacable parameters. Somthing that would work with ser

Re: Graph SPI Contract

2014-09-01 Thread Claude Warren
I added information on https://cwiki.apache.org/confluence/display/JENA/SPI+Contract+Details to cover this discussion. Please review and comment. On Sun, Aug 24, 2014 at 2:19 PM, Andy Seaborne wrote: > On 23/08/14 18:07, Claude Warren wrote: > >> Andy, >> >&g

Re: Graph SPI Contract

2014-08-23 Thread Claude Warren
ent thread: > if no exception > graph contains t > else if AddDeniedException > graph contains t if and only if the graph contained t before. > > Listeners are same-thread callbacks so they are in the same transaction as > the update. Complex systems on top of this

Re: Graph SPI Contract

2014-08-23 Thread Claude Warren
cle.com/javase/7/docs/api/java/util/ConcurrentModificationException.html > with the following caveat: > >- If the find is taking place within a transaction and the current >thread has not modified the underlying data the >ConcurrentModificationException may not be thrown. > > > Thoughs? &g

Re: Graph SPI Contract

2014-08-17 Thread Claude Warren
place within a transaction and the current thread has not modified the underlying data the ConcurrentModificationException may not be thrown. Thoughs? Claude On Mon, Aug 11, 2014 at 6:19 PM, Andy Seaborne wrote: > On 08/08/14 22:13, Claude Warren wrote: > >> This is a m

Re: Graph SPI Contract (Transactions)

2014-08-12 Thread Claude Warren
view type graph. So do view level graphs support transactions? if so does the TransactionHandler.begin() start a write transaction? On Tue, Aug 12, 2014 at 9:18 AM, Andy Seaborne wrote: > On 12/08/14 08:58, Claude Warren wrote: > >> On Mon, Aug 11, 2014 at 6:19 PM, And

Re: Graph SPI Contract (Transactions)

2014-08-12 Thread Claude Warren
On Mon, Aug 11, 2014 at 6:19 PM, Andy Seaborne wrote: > > > Transactions: > > The text around transactions does not distinguish being inside or outside > a transaction. > > There are 2 base kinds of graphs - ones in datasets (views) and standalone > ones, then things like InfGraph and other added

Graph SPI Contract

2014-08-08 Thread Claude Warren
This is a message stack for Graph SPI Contract testing. It covers only the Jena 2 Graph Contract. This an attempt to document the current Graph contract. Any correction should specify the bullet point number. 1. add() -- technically from GraphAdd 1. when a triple is added to a graph al

Re: SPIs and Testing

2014-08-07 Thread Claude Warren
onality. > > Andy > > > On 06/08/14 18:46, Claude Warren wrote: > >> I think I have some time again to look at testing some more. The last >> time >> I dove into it I learned quite a bit, but I don't think I improved on the >> existing testing

SPIs and Testing

2014-08-06 Thread Claude Warren
I think I have some time again to look at testing some more. The last time I dove into it I learned quite a bit, but I don't think I improved on the existing testing at all. However, with time to reflect and movement forward of the system I think that perhaps we should think about defining the SP

Re: Jena on Nosql

2014-08-04 Thread Claude Warren
Andrea, I am not certain that Cassandra will work for a Jena graph store because of the requirement for the primary key column. But... The easiest mechanism for extension is to extend GraphBase. As the documentation states: GraphBase is an implementation of Graph that provides some convenient

packaging

2014-07-30 Thread Claude Warren
I just realized that the jena-security jar is in the apache-jena-libs package but not the apache-jena-.zip|tgz I must have misconfigured something way back when. If someone can point me to the proper options I'll make the fix. thx, Claude -- I like: Like Like - The likeliest place on the web <

Re: Module Structuring and Release Cycles

2014-07-30 Thread Claude Warren
I am a fan of JRE as it ensure that everything works together at that point in time. That being said, perhaps we should define what is "Jena Core". As opposed to jena-core, "Jena Core" are the components that provide the basic functionality that we want to promote for Jena. At this time it is pr

Re: Joinable Transactions?

2014-07-24 Thread Claude Warren
ort() ; > > and endLevel does a "commit()" when the level count returns to zero. > > > > Assume a QueryResult object that comprises the result set from > > a query and the dataset it was run against. > > Surely the right way is to create a detached result s

Re: Joinable Transactions?

2014-07-24 Thread Claude Warren
t set from > > a query and the dataset it was run against. > > Surely the right way is to create a detached result set? (no tied to the > transaction or the query execution) > > Andy > > > On 24/07/14 10:32, Claude Warren wrote: > >> As you can pro

Re: detecting changes in a dataset.

2014-07-24 Thread Claude Warren
12:25 PM, Andy Seaborne wrote: > On 24/07/14 12:03, Claude Warren wrote: > >> Is there a listener like interface for datasets? I can't find it. I need >> to detect when any of the models in the dataset change, or when models are >> added or remo

detecting changes in a dataset.

2014-07-24 Thread Claude Warren
Is there a listener like interface for datasets? I can't find it. I need to detect when any of the models in the dataset change, or when models are added or removed. Is there anything like that? Claude -- I like: Like Like - The likeliest place on the web LinkedIn:

Joinable Transactions?

2014-07-24 Thread Claude Warren
As you can probably guess from my recent posts here, I am working with transactions, datasets, and web applications. In Spring there is this concept of "joining a transaction". Basically it works like this: When calling begin() If a transaction is in progress and is the proper type (Write reque

Re: transactions and model locks.

2014-07-23 Thread Claude Warren
Seaborne wrote: > On 23/07/14 11:37, Claude Warren wrote: > >> Are there any known issues mixing transactions on datasources and model >> locks (e.g. model.enterCriticalSection(Lock.WRITE)) ? >> >> >> > No. Well, not known to me :-) > > But I would hazard a gu

transactions and model locks.

2014-07-23 Thread Claude Warren
Are there any known issues mixing transactions on datasources and model locks (e.g. model.enterCriticalSection(Lock.WRITE)) ? -- I like: Like Like - The likeliest place on the web LinkedIn: http://www.linkedin.com/in/claudewarren

Strange TDB transaction error

2014-07-22 Thread Claude Warren
I have seen this error 2x now (or at least I think I have). I am able to duplicate it but I don't have a small self contained example (yet) In the current code I have a couple of threads working on a single Dataset. I am using transactions and as far as I can tell I am in a transaction when the

Re: Other build jobs

2014-07-22 Thread Claude Warren
I suppose I set them up incorrectly. Any idea how to make it do that? On Tue, Jul 22, 2014 at 7:48 PM, Andy Seaborne wrote: > On 22/07/14 18:42, Claude Warren wrote: > >> Jenna Commons was supposed to build the jena-commons experimental code. >> >> Jena New Tests we

TDB inconsistency warning.

2014-07-22 Thread Claude Warren
What should I be looking for if I find this error? WARN org.slf4j.impl.Log4jLoggerAdapter - Inconsistency: base.allocOffset() = 4121905 : allocOffset = 4121855 I suspect that it is some sort of write without transaction or something like that. Claude -- I like: Like Like - The likeliest place

TDB transactions

2014-07-22 Thread Claude Warren
Are there any tools to help with debugging multi-threaded TDB Transactions? I know that I must have some sort of weird error as I create a transaction but when I try to commit I get the "Not active" errors. :( Claude -- I like: Like Like - The likeliest place on the web

Re: Other build jobs

2014-07-22 Thread Claude Warren
Jenna Commons was supposed to build the jena-commons experimental code. Jena New Tests were supposed to build the experimental new tests. On Tue, Jul 22, 2014 at 12:49 PM, Andy Seaborne wrote: > I have found two triggered builds - "Jena New Tests" and "Jena Commons" - > both of which don't b

Re: QueryBuilder

2014-07-22 Thread Claude Warren
Seaborne wrote: > > > > > On 21/07/14 20:34, Claude Warren wrote: > >> I have code for a query builder that I would like to contribute... but I >> don't see a good place to put the code. >> >> It is not Jena specific. >> > > So it's string based

QueryBuilder

2014-07-21 Thread Claude Warren
I have code for a query builder that I would like to contribute... but I don't see a good place to put the code. It is not Jena specific. it has the following methods addFilter() addGraph() addOptional() addOrderBy() addPrefix() addSubQuery() addUnion() addVar() addWhere() build() clone() the b

Re: additional method in dataset

2014-06-30 Thread Claude Warren
steners on the combined model graph be notified. So I had to implement that. It seems to me that the Union Graph implementation should announce the changes to the base graphs to the listeners of the union graph. Claude On Mon, Jun 30, 2014 at 11:43 AM, Andy Seaborne wrote: > On 30/06/14

additional method in dataset

2014-06-30 Thread Claude Warren
I would like to see a method added to dataset as follows: /** Returns the union of the dataset. Returns the union of all named models in the dataset as a single model. If the default model is not one of the named models it is also included and is not the union model, it must also be included. */

Re: Java8 and iterators

2014-06-25 Thread Claude Warren
I believe that for the in memory models the iterators fail if the model is modified, However for TDB (Andy ,keep me honest here) if you are using transactions you can modify the graph and the iterator will not fail. I don't know what SDB used to do, but I suspect that it allowed you to modify the

Re: Preparing for 2.12.0 - Java7 language upgrades

2014-06-24 Thread Claude Warren
Thx. I just went through the change log. Looks good from here. Claude On Tue, Jun 24, 2014 at 5:14 PM, Andy Seaborne wrote: > On 24/06/14 16:17, Claude Warren wrote: > >> Andy, >> >> Thanks for the hard work. Just for clarification, the security changes >>

Re: Preparing for 2.12.0 - Java7 language upgrades

2014-06-24 Thread Claude Warren
Andy, Thanks for the hard work. Just for clarification, the security changes were just removing code right? There are, as of yet, no new methods to handle. Is that correct? Claude On Tue, Jun 24, 2014 at 4:02 PM, Andy Seaborne wrote: > Clearing up the code now done and hopefully reasonably

Re: GSoC : SPARQL in Rules : mid-term checkpoint

2014-06-23 Thread Claude Warren
Just a quick difference of opinion. I think that @Test(expected=Rule.SparqlRuleParserException.class) public void sparqlInRule_NN() { parseRuleString("...") ; } is a bad pattern, and that tests where an exception is expected are better served with try catch blocks catching the expected exceptio

Re: reply: TDB OPTIMIZER question:a puzzled of RULE language about " VAR and TERM "

2014-06-12 Thread Claude Warren
Quick question: Would it make sense to have an immutable flag that would tell the optimizer (or other processes) that a dataset/model/graph is not likely to change? More of a hint rather than a rule. On Thu, Jun 12, 2014 at 2:15 PM, Rob Vesse wrote: > You may be interested in the follow

Re: Should Jena serialise a BASE declaration when the Base URI is implicit?

2014-06-11 Thread Claude Warren
does the SPARQL Service recommendation say anything about this case? On Wed, Jun 11, 2014 at 12:20 PM, Rob Vesse wrote: > Hi All > > On behalf on my employer I reported an interesting quirk of ARQ that may be > a bug/feature depending on your point of view. You can read the full > details and

Re: Testing Proposal

2014-06-11 Thread Claude Warren
Comments inline On Wed, Jun 11, 2014 at 12:27 PM, Andy Seaborne wrote: > On 10/06/14 11:25, Claude Warren wrote: > >> I would like to see Jena adopt a set of contract tests. I recently wrote >> an article for Dr. Dobb's [1] concerning contract testing. In it I use

Testing Proposal

2014-06-10 Thread Claude Warren
I would like to see Jena adopt a set of contract tests. I recently wrote an article for Dr. Dobb's [1] concerning contract testing. In it I use the experimental/new_tests as an example. The basic concept is we provide a set of contract tests for expected extension points like the Graph SPI. Imp

Re: How to safely apply transformations to custom algebra operators?

2014-06-10 Thread Claude Warren
Are there a class of operators that should not be done bottom up? I am thinking along the lines of there are classes of operators that are not transitive. Perhaps there is a name for this property. If we can identify it and name it, we could flag it in the operator implementation so that the tra

Re: Sketching for jena3

2014-06-07 Thread Claude Warren
I would still like to see Node as a serializable object, or some standard mechanism to get a serialized version of the node. Any thoughts along this path would be appreciated. I had thought about something along the lines of a type byte and raw data as a serialized form. But that would mean that

jena-commons

2014-06-07 Thread Claude Warren
Howdy, I have started a new experimental package jena-commons. This is intended to be a set of classes that implement or extend interfaces that are external to the Jena package. For example, the implementation I contributed is an implementation of the Apache Commons Configuration interface that

<    3   4   5   6   7   8   9   10   11   12   >