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: Updating Tuples in the graph

2012-05-30 Thread Andy Seaborne
On 30/05/12 08:25, Don S wrote: HI, My server if Fuseki. and the server configuration is *java -Xmx1200M -jar fuseki-server.jar --update --mem /ds/data * You seem to be using Fuseki as a plain HTTP server by dropping files in the /pages area. You are not using the dataset are /ds. *

Re: Ideas for an efficient TDB check?

2012-05-30 Thread Andy Seaborne
On 30/05/12 08:36, Dr. André Lanka wrote: Another crucial point is the possibility to sparql the original(=unmodified) data during a write transaction (from the same thread). If you have two datasets t the same lcoation, one read on the original data, and one write, that will work. It's

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-04 Thread Andy Seaborne
On 04/06/12 02:20, Don S wrote: HI, I was trying to run the function UpdateExecutionFactory.createRemote. I installed jena-arq-2.9.1- 20120601.050620-20 /.* files to run SPARQl update remotely. But I cannot find these files inside Files : *

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
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 one of these roots have children... Version of Jena used? I have each ontology in a NAMED GRAPH And you are querying the union graph?

Re: Fuseki+TDB+reasoner

2012-07-05 Thread Andy Seaborne
On 05/07/12 06:54, Federico López wrote: Is some documentation useful to integrate reasoners like Pellet with Fuseki+TDB triple Store? I try to do it with an assembler but I couldn't make this works fine using TDB... In Fuseki using mem I could made it. Start by getting an assembler working

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: ARQ function

2012-07-11 Thread Andy Seaborne
is not in the triple data itself - RDF is always about absolute IRIs. Andy -- Cong Wang Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Wednesday, July 11, 2012 at 5:33 PM, Andy Seaborne wrote: On 11/07/12 17:19, Dave Reynolds wrote: On 11/07/12 16:26, Cong Wang wrote: Hi all

Re: Fuseki 0.2.3 performance / StatsMatcher warnings

2012-07-12 Thread Andy Seaborne
On 12/07/12 10:14, Andy Seaborne wrote: On 11/07/12 20:57, Michael Brunnbauer wrote: but it could be the transaction overhead +1 Not that simple ... another prime candidate is not managing connections in the same way e.g. connection caching as is managing the dataset with open/close

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: Start Fuseki Server from eclipse

2012-07-18 Thread Andy Seaborne
On 18/07/12 14:39, Heiner Oberkampf wrote: Hi, I originally use jetty server with xstream library to handle my xml-requests. Now i want to use fuseki server to create some sparql endpoint. I don't want to run the fuseki server from the commandline I downloaded the fuseki libaray, and tried to

Re: NullPointerException when writing Unicode data

2012-07-19 Thread Andy Seaborne
(switch to the users list) On 19/07/12 17:53, Elli Schwarz wrote: Hello, I am attempting to write a graph stored in Fuseki out as RDF/XML, and I get a NullPointerException from line 199 of LangRDFXML. It looks like the variable errorHandler is null. There is actually a warning that ...

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: Basic federation in Jena

2012-07-31 Thread Andy Seaborne
On 31/07/12 09:30, Andy Seaborne wrote: (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

Re: Failing to load N3 encoded rdf using HTTP ...

2012-08-01 Thread Andy Seaborne
On 31/07/12 19:37, Jim Karavias wrote: Hi, I've been trying to load a dataset using an assembler when starting Fuseki. I have no trouble loading RDF/XML when specifying external content using an http: url. Fuseki fails to load n3 data served the same way. Hi there - there was a bug in

Re: Basic federation in Jena

2012-08-01 Thread Andy Seaborne
On 01/08/12 16:50, Olivier Rossel wrote: 4/ You can use a subselect to restrict the remote query part: SERVICE ... { SELECT * { ... } LIMIT 300 } I tried this query: SELECT DISTINCT ?comment WHERE { SERVICE http://api.talis.com/stores/bbc-backstage/services/sparql {

Re: Limiting the sub-SELECT of a CONSTRUCT

2012-08-01 Thread Andy Seaborne
On 01/08/12 17:35, Olivier Rossel wrote: Hi jena-users (and Steve :) I am sending this query to my 4store 1.1.4: CONSTRUCT { ?Anl0 http://data.bnf.fr/ontologie/hasExpression ?Expression1 . ?Anl0 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://rdvocab.info/uri/schema/FRBRentitiesRDA/Anl }

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: Load Dataset in memory

2012-08-05 Thread Andy Seaborne
On 05/08/12 17:42, Stefan Scheffler wrote: Am 05.08.2012 18:36, schrieb Andy Seaborne: On 05/08/12 15:39, Stefan Scheffler wrote: Hi All, Is it possible to load a Dataset, which is stored in a directory (as TDB), completly in the memory? Or is this done automaticly by jena? TDB caches

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: SPARQL Update on default RDF model

2012-08-08 Thread Andy Seaborne
On 08/08/12 12:24, Enes Bulut wrote: 2012/8/8 Damian Steer d.st...@bristol.ac.uk -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/08/12 07:51, Enes Bulut wrote: Hi all, First I create a default model. Model model= new ModelFactory.createDefaultModel(); ... Query string is something

Re: Change in execution order between Jena 2.7.2 and 2.7.3

2012-08-10 Thread Andy Seaborne
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 returns Test in 272 but null in 273. The query is really simple: SELECT * WHERE

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: examples how to do CRUD using Java API with Fuseki

2012-08-15 Thread Andy Seaborne
On 15/08/12 11:03, Robby Pelssers wrote: Hi all, Are there any good examples (perhaps blog) available how to create / delete / update fuseki from Java? There are two ways: SPARQL Update SPARQL Graph Store Protocol The latter is hhttp/CRUD like. I have a pretty tight deadline and

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: com.hp.hpl.jena.query.QueryExecution.close()

2012-08-28 Thread Andy Seaborne
On 27/08/12 18:58, Damian Steer wrote: On 27 Aug 2012, at 18:51, Stephen Allen sal...@apache.org wrote: Would it be possible to use a buffer? For small-ish result sets you would get the behaviour Andy suggests, but avoid the OOM issue. Something like setFetchSize() [1]? Oracle [2]

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: Merge from Remote named graph and local RDF file

2012-08-31 Thread Andy Seaborne
On 30/08/12 19:34, Frank Lee wrote: One more question: What will be the best way to merge tow endpoints, one is the namedGraph at remote server and one is the local RDF file. For example, the graph does not have status value, but the local rdf file has. Thanks. Cheers, Frank. Just add the

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

  1   2   3   4   5   6   7   8   9   10   >