Re: The TDB dataset created in windows can not be used in Linux

2012-05-16 Thread Andy Seaborne
On 16/05/12 15:43, 王瑞期 wrote: When use Jena to create TDB dataset in Linux ,the TDB data can be used in Windows,too.But if I create one in Windows and then copy to Linux , there is no result when excute sparql query.The Java code are the same,and I test this problem in three

Re: A fault-tolerant and replicated data publishing solution (by Epimorphics)... and how to calculate the triples to add/remove?

2012-05-20 Thread Andy Seaborne
On 18/05/12 17:35, Paolo Castagna wrote: Hi, I've just read this blog post from Andy: http://www.epimorphics.com/web/wiki/epimorphics-builds-data-publish-platform-environment-agency It describes a quite simple fault-tolerant and replicated data publishing solution using Apache Jena and Fuseki.

Re: TDB transaction documentation Not Found

2012-05-22 Thread Andy Seaborne
On 22/05/12 08:32, Dave Reynolds wrote: The link from the TDB page is: http://jena.apache.org/documentation/tdb/tdb_transactions.html which works. Dave On 21/05/12 22:45, Stephan Zednik wrote: http://jena.apache.org/documentation/tdb/transactions Not Found The requested URL

Re: Fuseki stable download

2012-05-23 Thread Andy Seaborne
Chris, https://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-fuseki/0.2.2-SNAPSHOT/ has various fixes in it so it's more stable (in deployment) than the stable release. While it is not necessarily the case that snapshots are more stable, at the moment the

Re: Setting up shop with SDB

2012-05-24 Thread Andy Seaborne
On 23/05/12 16:15, Mike Jones wrote: On 23 May 2012, at 15:55, Benson Margulies wrote: One of my collegues is puzzled as to the maven dependencies necessary to use SDB. Is this on the website someplace? I think I used the information from here: http://jena.apache.org/download/maven.html

Re: Ideas for an efficient TDB check?

2012-05-26 Thread Andy Seaborne
On 25/05/12 09:40, Dr. André Lanka wrote: Hello Jena-Users, we are using Jena+TDB in production and are looking for an efficient method to check the validity of the TDB files on disk. Our situation is as follows. With Jena 2.6.4 and TDB 0.8.10 each of our servers stores triples in up to 4000

Re: Problem creating a tdb model

2012-05-27 Thread Andy Seaborne
On 27/05/12 17:08, Milorad Tosic wrote: Hi, When we started to use Jena, we had a similar problem: under Tomcat everything was fine but under Resin we got Xerces related exception. We solve it by adding the following configuration: web-app xmlns=http://caucho.com/ns/resin; !-- xml --

Re: Updating Tuples in the graph

2012-05-29 Thread Andy Seaborne
On 29/05/12 05:00, Don S wrote: HI, I am developing a semantic application. As a first step to understand the concept I made a simple ontology using protege and used Jena for query the data under eclipse platforms. Its working fine. But when I tried to update the triples in the graph it is not

Re: Jena + Pellet + Slick in an applet

2012-06-03 Thread Andy Seaborne
On 03/06/12 09:29, nat lu wrote: Sandbox security policy seems to be causing you an issue. Looks like it. Pellet is trying to initialize and doing something that is security checked. Try asking the Pellet people about this; it's not a Jena class causing the request. Andy On

Re: Updating Tuples in the graph remotely

2012-06-11 Thread Andy Seaborne
On 11/06/12 03:27, Don S wrote: HI, What does the Fuseki log say? No message in the Fuseki log. Before running the main program, I execute this command first ruby s-put http://localhost:3030/ds2/data default per2.owl to put the file in the server. which puts it into the default model of

Re: Updating Tuples in the graph remotely

2012-06-12 Thread Andy Seaborne
On 12/06/12 06:49, Don S wrote: HI, The modification didn't help me to update the ontology remotely.The program just display the names in the console window with no updation. I think some where I am doing wrong. I have a doubt regarding the owl file . Currently I have per2.owl in two

Re: Performance/optimization of minus queries

2012-06-12 Thread Andy Seaborne
On 11/06/12 22:17, Alex Hall wrote: I started a Fuseki server (using the latest 0.2.3-SNAPSHOT release) with a TDB database using a default configuration, and loaded a file with ~500K triples into a graph calleddata:input. Now, I'm trying to do some validation on that data, specifically find

Re: tdbdump Exception

2012-06-13 Thread Andy Seaborne
On 13/06/12 06:46, Michael Brunnbauer wrote: hi all I have another question: Can I run tdbdump on a TDB used by Joseki as long as I do not cause any SPARQL updates via Joseki ? No. Fuseki has a facility to run a backup (live) while running. POST to

Re: importing ntriples into tdb without stop at an error

2012-06-13 Thread Andy Seaborne
On 13/06/12 14:19, Damian Steer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/06/12 14:03, Stefan Scheffler wrote: Hello, I need to import large n-triple files (dbpedia) into a tdb. The problem is, that many of the triples are not valid (like missing '' or invalid chars) and

Re: importing ntriples into tdb without stop at an error

2012-06-13 Thread Andy Seaborne
of Cray Inc Software Engineer, Bay Area m: 925.960.3941 | o: 925.264.4729 | @: rve...@yarcdata.com | Skype: rvesse 6210 Stoneridge Mall Rd | Suite 120 | Pleasanton CA, 94588 On 6/13/12 7:13 AM, Stefan Schefflersscheff...@avantgarde-labs.de wrote: Am 13.06.2012 15:55, schrieb Andy

Re: tdbdump Exception

2012-06-14 Thread Andy Seaborne
On 13/06/12 15:18, Michael Brunnbauer wrote: Hello Andy, On Wed, Jun 13, 2012 at 03:01:20PM +0100, Andy Seaborne wrote: com.hp.hpl.jena.tdb.store.DateTimeNode.unpackDateTime(DateTimeNode.java:169) I don't recognize the error (and the line numbers are 0.8.10 so don't align

[ANN] Apache Jena 2.7.1 and Jena Fuseki 0.2.2 releases.

2012-06-18 Thread Andy Seaborne
We are pleased to announce Apache Jena 2.7.1, the first Apache release of Jena as a top level project, together with Jena Fuseki 0.2.2. The website for Apache Jena is http://jena.apache.org/ == Mailing lists The new list name is users@jena.apache.org Send email to

Re: SPARUL grammar question for ARQ

2012-06-18 Thread Andy Seaborne
On 18/06/12 20:38, Tim Harsch wrote: According to sparql.org this parses: DELETE WHERE { ?s ?p ?o } According to the spec empty brackets are required in the construct template. http://www.w3.org/Submission/SPARQL-Update/#rConstructTemplate Is this an extension for ARQ, or am I mis-reading the

Re: SPARUL grammar question for ARQ

2012-06-18 Thread Andy Seaborne
On 18/06/12 21:34, Tim Harsch wrote: Doh, Google did it to me again. I should have noticed it in the URL. Get people to stop clicking on it and the spec will return to being first - they seem to alternate :-) Andy thanks, tim

Re: Fuseki Server Warning Message

2012-06-19 Thread Andy Seaborne
On 19/06/12 05:09, Don S wrote: HI, I was experiencing with http://localhost:3030/sparql.tpl for updating the tuples and search queries. The Update command is PREFIX owl:http://localhost:3030/ds2/search.owl# This should be the URI for OWL PREFIX owl: http://www.w3.org/2002/07/owl#

Re: Fuseki Server Warning Message

2012-06-20 Thread Andy Seaborne
On 20/06/12 04:38, Don S wrote: HI, Thank you for the valuable suggestions.My real concern is updating the tuples in the file rather than updating the database. As you mentioned earlier it is only updating the databases. So is their any way to update the file either by script control or by

Re: [jena-dev] Sparql Query Get Resource Details

2012-06-20 Thread Andy Seaborne
On 20/06/12 14:57, Stefan Scheffler wrote: if you get an empty result set and no error, maybe the resource is not in the data store? The query Select distinct ?s where{?s ?p ?o}. list all resources in the store. And maybe it is a problem because you don't use a URI. Resources should look like

Re: just trying to read in an RDF file ...

2012-06-24 Thread Andy Seaborne
On 24/06/12 09:23, Paolo Castagna wrote: Jena has moved to the Apache Software Foundation and it is not a TLPc (i.e. top level project). s/not/now/ Jena is a TLP. Andy

Re: Strange behaviour of XMLLiterals in RDF/XML

2012-06-25 Thread Andy Seaborne
On 25/06/12 12:57, Martynas Jusevičius wrote: Hey list, I'd like to know why the following triple @prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# . @prefix awol: http://bblfish.net/work/atom-owl/2006-06-06/AtomOwl.html# . _:smth awol:xml 'div

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

2012-06-25 Thread Andy Seaborne
On top of the visitor pattern, there is a subsystem to rewrite algebra expressions: Have a look at some of the ARQ transforms e.g. TransformUnionQuery The Transform instance can have state. and this is driven by teh tree walker com.hp.hpl.jena.sparql.algebra.Transformer Op

Re: TDBLoader2 Performance on Empty vs Existing Store (WAS: Import Messures)

2012-06-25 Thread Andy Seaborne
On 22/06/12 17:22, Rob Vesse wrote: Off the top of my head I believe loading into an empty database is always faster because of the way it generates the index files and node tables. When loading to an existing dataset it tends to be slower because it has to add to the existing files rather than

Re: Strange behaviour of XMLLiterals in RDF/XML

2012-06-25 Thread Andy Seaborne
On 25/06/12 13:43, Damian Steer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25/06/12 13:34, Andy Seaborne wrote: The best RDF-WG is going to do is make XMLLiteral less mandatory. 'Less mandatory'? :-) I was writing a similar reply as this came in. It's horrible trying

Re: Strange behaviour of XMLLiterals in RDF/XML

2012-06-25 Thread Andy Seaborne
/rdf-wg/track/issues/13 Andy Martynas On Mon, Jun 25, 2012 at 2:43 PM, Damian Steer d.st...@bristol.ac.uk wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25/06/12 13:34, Andy Seaborne wrote: The best RDF-WG is going to do is make XMLLiteral less mandatory. 'Less mandatory

Re: Reading JSON from Virtuoso OpenSource output

2012-06-26 Thread Andy Seaborne
#include everything Rob says about CONSTRUCT queries. 1/ But also the JSON results set parser has a bug in it - it is reading the link field as a string, but it should be an array. This is now fixed in SVN. The development snapshot build has the fix in it.

Re: Can SDB 1.3.4 be used with Jena 2.7.1?

2012-06-26 Thread Andy Seaborne
Yes (it's 1.3.4-SNAPSHOT) SDB is being built against Jena each night. You can check the POM for version - it says 2.7.2-SNAPSHOT but there are no changes from 2.7.1. Andy PS Your next question will be about a release. We need a way to test SDB on all, or at least most, of the

Re: How to convert assign URL to blank node?

2012-06-26 Thread Andy Seaborne
On 26/06/12 01:30, franswors...@googlemail.com wrote: How can I assign an URI to a blank node? The Resource class only provides getURI() or getId() methods, but the URI can't be set. Do I have to create a new Resource, copy all properties and delete the original node? Yes, you create a new

Re: memory issues using TDB from servlet

2012-06-26 Thread Andy Seaborne
a few questions and then a a suggestion: How much physical RAM does the machine have? Which version of the Jena software is this? Is this running on MS Windows? If you are on 64 bit hardware, then TDB uses out-of-heap memory as well as heap memory. But what I am most suspicious of is

Re: Queries with Multiple Aggregates in Select

2012-06-26 Thread Andy Seaborne
On 25/06/12 23:01, Stephen Allen wrote: All, I have a question about what the expected results are of a query with multiple aggregates when there are no matching solutions, specifically if one of them is COUNT. Take the following query for example: PREFIX books: http://example.org/book/

Re: Correct SPARQL query for all information for particular Individual

2012-06-26 Thread Andy Seaborne
I don't do RDF/XML :-) but this may achieve what you want. PREFIX DESCRIBE ?x { ?x IFC2X3_subset:hasName IFC2X3_subset:IfcBeam } The default for DESCRIBE is the bNode closure. If you know the structure, then you can use CONSTRUCT or extract into variables with SELECT. Andy On

Re: Rebuilding TDB index and updating stats file

2012-06-28 Thread Andy Seaborne
On 28/06/12 10:11, Sarven Capadisli wrote: Hi, I was wondering if there is a way to rebuild the TDB index from command-line and have it consequently update the stats file? There isn't a way to rebuild just one of the indexes from another in the TDB distribution. Is that you want to do?

Re: Rebuilding TDB index and updating stats file

2012-06-30 Thread Andy Seaborne
On 29/06/12 02:49, Sarven Capadisli wrote: On 2012-06-28 20:25, Andy Seaborne wrote: On 28/06/12 10:11, Sarven Capadisli wrote: I was wondering if there is a way to rebuild the TDB index from command-line and have it consequently update the stats file? There isn't a way to rebuild just one

Re: Rebuilding TDB index and updating stats file

2012-07-01 Thread Andy Seaborne
On 30/06/12 21:04, Sarven Capadisli wrote: On 2012-06-30 12:48, Andy Seaborne wrote: On 29/06/12 02:49, Sarven Capadisli wrote: On 2012-06-28 20:25, Andy Seaborne wrote: On 28/06/12 10:11, Sarven Capadisli wrote: I was wondering if there is a way to rebuild the TDB index from command-line

[ANN] Apache Jena 2.7.2 and Jena Fuseki 0.2.3 releases

2012-07-02 Thread Andy Seaborne
We are pleased to announce Apache Jena 2.7.2 and Jena Fuseki 0.2.3. This is primarily a maintenance release to address the issue of excessive logging in Fuseki when used with transactional TDB. It does also include improvements in ARQ contributed to the project. The website for Apache Jena

Re: ARQ doesn't support BINDINGS?

2012-07-02 Thread Andy Seaborne
On 02/07/12 20:22, Joshua TAYLOR wrote: On Mon, Jul 2, 2012 at 3:16 PM, Rob Vesse rve...@yarcdata.com wrote: Hi Joshua BINDINGS is being changed to be VALUES instead by the SPARQL working group which works similarly except that it can be applied more broadly i.e. Used throughout queries rather

Re: How to check if a graph is a sub-set of another graph?

2012-07-03 Thread Andy Seaborne
On 03/07/12 02:45, Holger Knublauch wrote: My use case is executing the OWL (RL) test cases from Michael Schneider et al. Basically they consist of two turtle files, one before and one after inferencing. I run inferences (using SPIN) myself and then want to check that all triples from Michael's

Re: Standard FILTERs?

2012-07-03 Thread Andy Seaborne
On 03/07/12 13:07, Joshua TAYLOR wrote: On Tue, Jul 3, 2012 at 7:47 AM, Claude Warren cla...@xenei.com wrote: 2 Quick questions: 1. Is there a list of standard filters that all SPARQL 1.1 must implement (w3c specified for example)? Looking at the SPARQL 1.1 docs, I don't see a particularly

Re: I need to get the root element of a ontology

2012-07-05 Thread Andy Seaborne
@jena.apache.org Sent: Thursday, July 5, 2012 5:28 PM Subject: Re: I need to get the root element of a ontology 2012/7/5 Andy Seaborne a...@apache.org On 05/07/12 06:49, Federico López wrote: I looking for a good quey that allows me to get the roots elements of a Ontology. Also, I need to know wich

Re: I need to get the root element of a ontology

2012-07-05 Thread Andy Seaborne
On 05/07/12 21:57, Milorad Tosic wrote: Would somebody please give us more details about what are dependencies between Fuseki and Jena/ARQ/TDB? That would be the POM files :-) http://repo1.maven.org/maven2/org/apache/jena/jena-fuseki/0.2.2/jena-fuseki-0.2.2.pom

Re: Does Jena has property table store support?

2012-07-09 Thread Andy Seaborne
On 08/07/12 04:33, taogenie wrote: I found some research papers that gives Jena Property Table Implementation. I wonder whether it is integrated into current version of Jena? Which module(SDB, TDB or something else) provides support for it? Thanks taogenie Jena currently does not have

Re: Fuseki VALUES in combination with GROUP BY, SERVICE and CONSTRUCT/INSERT

2012-07-09 Thread Andy Seaborne
I have fixed a couple of things in SERVICE+VALUES (formatting of output, the machinery for turning algebra to query syntax) The OpAsQuery process of turning algebra back into queries for SERVICE works when VALUES was part of a group (only lightly tested) but when used on the query itself, a

Re: StatsCollector.gatherTDB replacement?

2012-07-09 Thread Andy Seaborne
On 09/07/12 15:54, Willie Milnor wrote: Hello, In TDB 0.9.2, StatsCollector.gatherTDB has been removed. Is there another call(s) I can use to achieve the same functionality? See Stats.gather(Graph) or Stats.gatherTDB(GraphTDB) (which version were you using before?) Andy

Re: Variables not bound in subquery

2012-07-10 Thread Andy Seaborne
On 10/07/12 06:05, Neubert Joachim wrote: In the following query PREFIX gnd: http://d-nb.info/standards/elementset/gnd# SELECT ?uri WHERE { BIND (http://d-nb.info/gnd/10244669 AS ?uri1) BIND (http://d-nb.info/gnd/1024466-9 AS ?uri2) { { SELECT (?uri1 AS ?uri) WHERE {

Re: Fuseki 0.2.3 host parameter and Jetty XML file

2012-07-10 Thread Andy Seaborne
On 10/07/12 11:50, Michael Brunnbauer wrote: hi all the --host= parameter of fuseki has been disabled and it seems that people should create a Jetty XML file now and use --jetty-config= Yes - it gives better control (and --host didn't do what people thought it did! I listens to aninterface

Re: Performance issue with OPTIONAL in CONSTRUCT

2012-07-10 Thread Andy Seaborne
Paul, A few questions: 1/ Do you have some readable versions of those queries? 2/ What size is the data? 3/ Why is it written with los of FILTERs? Grounded patterns The presence of the OPTIONAL stops FILTER optimization - whether that's because the optimizer is too dumb to know it can

Re: Performance issue with OPTIONAL in CONSTRUCT

2012-07-11 Thread Andy Seaborne
SELECT vs CONSTRUCT wil make little difference - a CONSTRUCT is a SELECT with DISTINCT followed by making the RDF. It's easier to work with SELECT * for analysis of the query pattern. Having the optional first is a possible cause - your query asks for all of: OPTIONAL {?xyz

Re: Fwd: jena/sesame

2012-07-12 Thread Andy Seaborne
On 12/07/12 20:06, Adeel Ahmad wrote: Hello, fwd... Thanks, -- Forwarded message -- From: Adeel Ahmad aahmad1...@gmail.com Date: 12 July 2012 01:01 Subject: jena/sesame To: d...@jena.apache.org Hello, I wanted to query about the performance, scalability, and portability

Re: Does ARQ list:member work with TDB?

2012-07-12 Thread Andy Seaborne
On 12/07/12 17:48, Stephan Zednik wrote: I am transitioning from in-memory models to TDB on a system and all my queries that leverage ARQ's list:member are no longer fully functioning. specifically, list:member is not longer being asserted and as such members of lists are no longer being

Re: LARQ query with GRAPH clause

2012-07-13 Thread Andy Seaborne
On 13/07/12 17:04, Frank Budinsky wrote: Hi, We've noticed that this (unionDefaultGraph = true) query: SELECT ?subject ?predicate ?object ?score WHERE { (?object ?score) http://jena.hpl.hp.com/ARQ/property#textMatch cruise . ?subject ?predicate ?object . } ORDER BY

Re: Oracle-Fuseki TTL file sample

2012-07-29 Thread Andy Seaborne
On 19/07/12 22:27, johnny jebaraj wrote: Hi Jena mailing list, I am looking for a sample configuration for Oracle-Fuseki RDF ttl file which will enable the RDF service on top of Oracle RDF store, such that I can call from java and utilize the program. Thanks, Johnny This is probably a

Re: tdbdump Exception

2012-07-29 Thread Andy Seaborne
I've put some debugging in so that the term being unpacked it printed out. It looks like it is the timezone. Andy On 24/07/12 12:13, Michael Brunnbauer wrote: Hello Andy, On Thu, Jun 14, 2012 at 01:12:25PM +0100, Andy Seaborne wrote: I guess it would be a good idea to look

Re: tdbdump Exception

2012-07-29 Thread Andy Seaborne
On 24/07/12 12:24, Michael Brunnbauer wrote: Hello Andy, On Tue, Jul 24, 2012 at 01:13:59PM +0200, Michael Brunnbauer wrote: BTW: Here is some output from tdbloader2 for this TDB which shows that the tdbloader2 data phase runtime gets quite non-linear for very big datasets. I called

Re: tdbdump Exception

2012-07-29 Thread Andy Seaborne
On 29/07/12 17:05, Andy Seaborne wrote: I've put some debugging in so that the term being unpacked it printed out. It looks like it is the timezone. Andy (A) problem found : timezones with non-zero minutes. Recorded as JENA-287 Andy On 24/07/12 12:13, Michael Brunnbauer

Re: tdbdump Exception

2012-07-29 Thread Andy Seaborne
On 29/07/12 17:34, Andy Seaborne wrote: On 29/07/12 17:05, Andy Seaborne wrote: I've put some debugging in so that the term being unpacked it printed out. It looks like it is the timezone. Andy (A) problem found : timezones with non-zero minutes. Recorded as JENA-287 Fixed - data

Re: tdbdump Exception

2012-07-30 Thread Andy Seaborne
On 30/07/12 13:33, Michael Brunnbauer wrote: Hello Andy, On Sun, Jul 29, 2012 at 05:22:57PM +0100, Andy Seaborne wrote: How big are the node* files (node2id.dat, .idn, nodes.dat) in the resulting database in this case? node2id.dat 9470738432 bytes 9,470,738,432 = 9G node2id.idn 50331648

Re: Basic federation in Jena

2012-07-31 Thread Andy Seaborne
On 31/07/12 08:52, Olivier Rossel wrote: Oops, the webpage I mentionned had wrong code. The correct code to run my query is: QueryExeuction exec = QueryExecutionFactory.create(QueryFactory.create(yourfederatedquery, Syntax.syntaxARQ), new DatasetImpl(ModelFactory.createDefaultModel()));

Re: Basic federation in Jena

2012-07-31 Thread Andy Seaborne
(same question as yesterday) A few problems: 1/ Talis are turning off their online service so http://api.talis.com/... will stop working sometime. If this is a paid-for store, that wil be in several months; if hosted for free, it'll happen in the next few days. 2/ The services have a 30s

Re: SDB query..

2012-08-03 Thread Andy Seaborne
On 02/08/12 12:45, Damian Steer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/08/12 11:27, Cong Wang wrote: Hi Andy, I am trying to extend some code of sparql to sql in SDB.. Can you give some points where they are in SDB source code ? Try

Re: Custom HTTP headers in QueryEngineHTTP

2012-08-03 Thread Andy Seaborne
On 03/08/12 12:02, Ozga, Rafal wrote: Hi, Is there any simple way of setting some custom HTTP headers while sending SPARQL requests over HTTP ? Regards, Rafal Hi Rafal, What headers did you want to set? There's some support for custom query params but not HTTP headers. Andy

Re: Fuseki 0.2.3 performance / StatsMatcher warnings

2012-08-04 Thread Andy Seaborne
Hi Michael. (Michael has sent me a copy of this database he's using - a bit big too email even though it's only 157,809,969 triples and 44Gbytes). I can recreate this - I'm getting a total of 5006ms for the query set of 17 queries you're using. With a fix, it's 150ms made up of approx 50ms

Re: tdbdump Exception

2012-08-07 Thread Andy Seaborne
On 07/08/12 11:30, Michael Brunnbauer wrote: Hello Andy, On Sun, Jul 29, 2012 at 09:28:47PM +0100, Andy Seaborne wrote: (A) problem found : timezones with non-zero minutes. Recorded as JENA-287 Fixed - data on disk is not affected. It was a bug in reconstructing the date time. Thank you

Re: tdbloader2 performance for 1B+ triples

2012-08-10 Thread Andy Seaborne
On 10/08/12 18:40, Michael Brunnbauer wrote: It's an nquads file with 4,9 mio named graphs OK - that's a difference - may be related. I'll take a look although I need to create some test data first. If it is this, then a smaller heap and more manageable size of data is something I can

Re: Change in execution order between Jena 2.7.2 and 2.7.3

2012-08-11 Thread Andy Seaborne
On 11/08/12 00:50, Holger Knublauch wrote: On 8/10/2012 19:40, Andy Seaborne wrote: On 10/08/12 02:12, Holger Knublauch wrote: Andy, we are evaluating the move to 2.7.3 and have been immediately hit by what looks like a change of SPARQL semantics in ARQ. See the attached Java test which

Re: Change in execution order between Jena 2.7.2 and 2.7.3

2012-08-12 Thread Andy Seaborne
On 12/08/12 02:46, Holger Knublauch wrote: ... but we and our customers have an unknown number of queries in production ... TQ gets Jena for free. What would help is if TQ tested against the nightly snapshot builds especially just before a release. The project makes available development

Re: how to parameterize a date in a parametrized query?

2012-08-16 Thread Andy Seaborne
The problem is Java's idea of date or Calendar is not an xsd:date - it's an xsd:dateTime. Hence when converted to Java, you get a dateTime. In practice, the java-xsd mapping is a touch fraught for dates/calendars. It's a bit fragile for even numbers - whether to use xsd:int or xsd:integer

Re: Cleaning triples with Riot

2012-08-24 Thread Andy Seaborne
On 21/08/12 16:55, Leigh Dodds wrote: Hi, I'm doing some testing of TDB for a client. They have data in an older RDB database which accepted triples that TDB now rejects. What's being rejected? If it's syntax, then text processing n-triples is usually necessary. Is there a way I can run a

Re: com.hp.hpl.jena.query.QueryExecution.close()

2012-08-25 Thread Andy Seaborne
On 24/08/12 19:50, Jeremy Carroll wrote: On 8/24/2012 10:59 AM, Stephen Allen wrote: execAsk(), execConstruct(), and execDescribe() do (or if they don't currently, they should) close the QueryExecution before they return. In this case you calling close() is redundant, but can't hurt. -Stephen

Remote named graph

2012-08-28 Thread Andy Seaborne
Hi, Andy, It's easy to get the model for a named graph from local TDB dataset tdb_dir = c:\\tdb; ds = TDBFactory.createDataset(tdb_dir); String ngUri = http://xxx .. Model model = ds.getNamedModel(ngUri); However, if we run fuseki server with TDB remotely, how can we get the model for the

Re: Command line vs fuseki Sparql

2012-08-28 Thread Andy Seaborne
LET is an ARQ-extension and Fuseki is parsing with extensions enabled. In this case, BIND does the same thing.BIND is SPARQL 1.1 So either tell the command line the query is ARQ-extended SPARQL 1.1 (one of file extension .arq, --format ARQ, use the comman arq.arq) or use BIND(

Re: Cleaning triples with Riot

2012-08-28 Thread Andy Seaborne
, 2012 at 01:03:26PM +0100, Andy Seaborne wrote: On 21/08/12 16:55, Leigh Dodds wrote: Hi, I'm doing some testing of TDB for a client. They have data in an older RDB database which accepted triples that TDB now rejects. What's being rejected? If it's syntax, then text processing n-triples

Re: Sparql 11 Remote Update Query in J2EE container

2012-08-29 Thread Andy Seaborne
Which version of xml-apis is in your environment? Jena uses Xerces 2.10.0 which depends on xml-apis 1.4.01 which includes org/w3c/dom/ElementTraversal. xml-apis 1.3.0 does not include org/w3c/dom/ElementTraversal. Xerces 2.9.1 depends on xml-apis 1.3.0. What might well work is using Xerces

Re: s-put causes system to halt

2012-08-30 Thread Andy Seaborne
On 30/08/12 03:01, Yuhan Zhang wrote: actually, the file I used was 260MB... I tried something smaller than 1MB and it worked. seems like the s-put ruby script is stream-friendly.. do I have to break large files into parts? what's the recommended way to load large files? The Fuseki server

Re: s-put causes system to halt

2012-08-30 Thread Andy Seaborne
On 30/08/12 14:04, Andy Seaborne wrote: On 30/08/12 03:01, Yuhan Zhang wrote: actually, the file I used was 260MB... I tried something smaller than 1MB and it worked. seems like the s-put ruby script is stream-friendly.. do I have to break large files into parts? what's the recommended way

SDB - community testing RC

2012-08-30 Thread Andy Seaborne
At the moment, SDB is available as a snapshot build of the development system or as an old, non-Apache, build from some time ago. We'd like to do an Apache release of SDB -- we need your help to do so. The barrier to a release is testing - there are many more combinations and external factors

Re: FILTER with IN clause in subqueries

2012-08-31 Thread Andy Seaborne
... with ... Note that if the same FILTER is defined within the main query (commented line in previous queries), then it works in both cases. My configuration is like follows: arq-2.8.7.jar jena-2.6.4.jar tdb.0.8.9.jar Thanks, Milorad From: Andy Seaborne

Re: SDB Testing Report: Postgres 9.1

2012-08-31 Thread Andy Seaborne
Leigh, Thank you Andy On 30/08/12 18:33, Leigh Dodds wrote: Hi, Here is a contribution to SDB testing for Postgres 9.1 SDB Version (date of download, output of sdbprint --version): Jena: VERSION: 2.7.3 Jena: BUILD_DATE: 2012-08-03T11:40:41-0700 ARQ:VERSION:

Re: Sparql 11 Remote Update Query in J2EE container

2012-09-01 Thread Andy Seaborne
On 29/08/12 19:16, Bart van Leeuwen wrote: Hi Andy, That was a good hint ! I've moved to Xerces 2.9.1 in the Apache Jena 2.7.3 distribution and this works fine now. I think it would be smart to document this somehow, having guides on how to use Jena in a enterprise environment would be

Re: Sparql from Database

2012-09-04 Thread Andy Seaborne
://jena.apache.org/documentation/javadoc/arq/com/hp/hpl/jena/query/ParameterizedSparqlString.html Andy Dari: Andy Seaborne a...@apache.org Kepada: users@jena.apache.org Dikirim: Selasa, 4 September 2012 0:42 Judul: Re: Sparql from Database On 03/09/12

Re: SPARQL Update and Jena

2012-09-04 Thread Andy Seaborne
On 04/09/12 19:39, Paul Gearon wrote: This is very implementation dependent. For instance, it is permissible for an RDF database to store the same triple multiple times. It just needs to make sure there are no duplicates when it gets around to handling SPARQL requests. One case of this is for

Re: A simple TDB example

2012-09-05 Thread Andy Seaborne
On 05/09/12 14:51, Isaac Lera wrote: Hi! I make a simple program to test TDB but I don't reach the starting line. I attach the code: * Location directory = new Location(data/DB4); Dataset dataset = TDBFactory.createDataset(directory); OntModel model1 =

Re: A simple TDB example

2012-09-05 Thread Andy Seaborne
Forget the main part of the first reply - it's simpler than that :-) On 05/09/12 15:16, Andy Seaborne wrote: On 05/09/12 14:51, Isaac Lera wrote: Hi! I make a simple program to test TDB but I don't reach the starting line. I attach the code: * Location directory = new Location

Re: SDB and concurrent update

2012-09-10 Thread Andy Seaborne
On 10/09/12 20:40, Lebling, David (US SSA) wrote: Andy Seabourne suggested I try the SDB 1.3.5 release candidate once JENA-118 was identified as a likely culprit. Here are my findings so far. The tl;dr version is that JENA-118 seems to be fixed but I still have a few comments and questions.

Re: SDB and concurrent update

2012-09-14 Thread Andy Seaborne
is the case for the default instance. Result: NullPointerException, LocatorFile.java, line 95. Dave -Original Message- From: Andy Seaborne [mailto:andy.seaborne.apa...@gmail.com] On Behalf Of Andy Seaborne Sent: Monday, September 10, 2012 4:27 PM 3. A request, rather than a comment. During my

Re: Required Heap size for Fuseki ?

2012-09-14 Thread Andy Seaborne
. So does the log provide any clues? (Running with -v provides more details - including the updates). Andy On 13/09/12 18:04, Michael Brunnbauer wrote: Hello Andy, On Thu, Sep 13, 2012 at 05:46:50PM +0100, Andy Seaborne wrote: What is the update? is it just a DROP SILENT GRAPH http

Re: Required Heap size for Fuseki ?

2012-09-17 Thread Andy Seaborne
On 17/09/12 15:13, Michael Brunnbauer wrote: [line: 8, col: 92] \u003Ca href=http://palmaddict.typepad.com/palm_addict/files/bw_banner_clieuk.gif\u003E . (Very) bad data! It should be possible to protect against this but only by rejecting the update. There is no way to accept it or fix

Re: Required Heap size for Fuseki ?

2012-09-19 Thread Andy Seaborne
On 18/09/12 19:36, Michael Brunnbauer wrote: owl:sameAs rdf:resource=info:doi/10.1175/1520-0485(2001)0310005:TMOTOH2.0.CO;2/ That one is sort-of fixable with = %3C. = %3E but of course it's a different URI to match. \u003Ca

Re: Fuseki timeout question

2012-09-19 Thread Andy Seaborne
On 18/09/12 15:20, Bill Roberts wrote: Someone ran this query against one of our servers recently: SELECT DISTINCT ?class ?property WHERE { { ?s ?property ?o }. OPTIONAL { ?s rdf:type ?class } } LIMIT 50 OFFSET 0 (then ran it again for good measure when the first one didn't finish). The

Re: Change in execution order between Jena 2.7.2 and 2.7.3

2012-09-19 Thread Andy Seaborne
...@knublauch.com To: users@jena.apache.org Sent: Wednesday, August 15, 2012 3:20 AM Subject: Re: Change in execution order between Jena 2.7.2 and 2.7.3 On 8/13/2012 5:20, Andy Seaborne wrote: On 12/08/12 02:46, Holger Knublauch wrote: ... but we and our customers have an unknown number of queries

Re: Fuseki timeout question

2012-09-19 Thread Andy Seaborne
On 19/09/12 18:48, Bill Roberts wrote: Thanks Andy. Further info inline. Depending on load, but I doubt at 20e6 it's going to take 10+mins. It's not a cheap query but it's not completely bad. If GC went mad with close-to-full thrashing, then maybe but if so, then the query will probably

Re: fuseki presets

2012-09-20 Thread Andy Seaborne
On 20/09/12 07:37, Stefan Scheffler wrote: Hi, Is there a possibility to make some presets to the sparql/update textfields of fuseki over the config? I want to have a standardquery in the textareas, everytime i call fuseki and not a blank field. Regards Stefan Stefan, The pages that come

Re: multiple datasets on fuseki

2012-09-20 Thread Andy Seaborne
See http://jena.apache.org/documentation/serving_data/index.html#fuseki-configuration-file Andy On 20/09/12 20:48, Yuhan Zhang wrote: Hi all, I was able to run the fuseki server with one dataset using: java -jar fuseki-0.1.0-server.jar --update --loc=data /dataset it can be

Re: Search for Resource is case-sensitive?

2012-09-22 Thread Andy Seaborne
On 22/09/12 13:57, Paul Taylor wrote: Hello there again, I have a Jena model that is stored in an SDBStore backed by MySQL. I would like to know whether a particular Resource exists in the Model. I cannot use the model.getResource(uri) because according to javadoc this will always return a

Re: Remote named graph

2012-09-25 Thread Andy Seaborne
On 25/09/12 00:33, Frank Lee wrote: Hi, Andy, What will be better way to duplicate existing named graph remotely? Or duplicated many with different URIs. Is there any simple API to use for it? Thanks. Cheers Frank SPARQL Update: something like COPY g1 To g2 for a one to one copy: or

Re: Fw: Re: [jena-dev] Jena SDB: Nested transactions

2012-09-26 Thread Andy Seaborne
. It has been a few days since we have been looking into RDF and Jena. It seems to be very interesting for us and we are learning more every day. We will have more questions for you since both RDF and Jena are new to us. Please help. Thanks Regards, Suneetha --- On Tue, 25/9/12, Andy Seaborne

Re: Fw: Re: [jena-dev] Jena SDB: Nested transactions

2012-09-26 Thread Andy Seaborne
. T = Tuple. Andy --- On Wed, 26/9/12, Andy Seaborne a...@apache.org wrote: From: Andy Seaborne a...@apache.org Subject: Re: Fw: Re: [jena-dev] Jena SDB: Nested transactions To: users@jena.apache.org Date: Wednesday, 26 September, 2012, 1:06 PM On 25/09/12 12:46, Suneetha wrote

Re: Remote named graph

2012-09-28 Thread Andy Seaborne
: Remote named graph Thanks, Andy. It made good sense. Cheers, Frank From: Andy Seaborne a...@apache.org To: users@jena.apache.org Sent: Wednesday, September 26, 2012 11:31 AM Subject: Re: Remote named graph On 26/09/12 01:06, Frank Lee wrote: Thanks

  1   2   3   4   5   6   7   8   9   10   >