[basex-talk] Bulk Processing of JSON

2014-04-09 Thread Shaun Flynn
Hello there, I am working in a project to work with train schedules. Sadly, the data is given to me as a series of JSON objects which need to be read in line by line. Is there a way of batch processing JSON, or do I have to submit line by line? Shaun

Re: [basex-talk] Bulk Processing of JSON

2014-04-09 Thread Shaun Flynn
Spot on! Thank you very much xx On 9 Apr 2014 11:19, Shaun Flynn scf...@googlemail.com wrote: Hello there, I am working in a project to work with train schedules. Sadly, the data is given to me as a series of JSON objects which need to be read in line by line. Is there a way of batch

[basex-talk] Progress monitoring of XML import

2017-01-22 Thread Shaun Flynn
Hello there, I am writing an application using JavaFx 8. A facility I would like to have is a progress bar showing how the db:add command is running, similar to what the Basex GUI shows when creating a new database. Is it possible to send updates from BaseX to another application? Shaun

[basex-talk] Importing XML using Java Classes vs Direct Commands

2017-01-26 Thread Shaun Flynn
Hello there, I am attempting to create a database and add a resource to it programatically in Java. If I use this code: public static void main(String[] args) { try (ClientSession session = new ClientSession("localhost", 1984, "admin", "admin")) { session.execute("SET

Re: [basex-talk] Large CSV File (~1M rows)

2016-10-16 Thread Shaun Flynn
Thank you -- I will give a go and let you know. SCF xx On 16 Oct 2016 10:02, "Christian Grün" wrote: > > The parsing runs out memory. I also tried doubling the memory to 1024MB, > and > > still the same issue. > > Memory consumption should be much lower if you create

Re: [basex-talk] Large CSV File (~1M rows)

2016-10-16 Thread Shaun Flynn
Hello there, The parsing runs out memory. I also tried doubling the memory to 1024MB, and still the same issue. Kind regards On 16 Oct 2016 09:15, "Christian Grün" wrote: Hi Shaun, > I do this through the MS DOS prompt, but -Xmx does not appear to be a > parameter

[basex-talk] (no subject)

2016-10-15 Thread Shaun Flynn
Hello there, I am trying to parse a large CSV file into XML by the following xquery: let $file := fetch:text("D:\BPLAN\tlk.txt") let $convert := csv:parse($file, map { 'header' : true(), 'separator' : 'tab'}) return fn:put( {for $row in $convert/csv/record return {$row/*} },

[basex-talk] Peculiar External Binding and Casting Behaviour

2017-10-30 Thread Shaun Flynn
Hello there, I am having issues with the following query: declare default element namespace "http://www.tracsis.com/TTVP_Interface;; declare variable $date := "2017-07-10"; declare variable $daysRun := 3; declare variable $diagrams :=

[basex-talk] xquery:eval Issue with bindings

2017-10-21 Thread Shaun Flynn
Hello there, I am trying to use xquery:eval method supplying bindings as map, and following the example on the website where the bindings are supplied as a map. However, when I run the following query, I get the error "Items of type map(*) cannot be atomized". What am I doing wrong? (:Filter out

Re: [basex-talk] Peculiar External Binding and Casting Behaviour

2017-10-31 Thread Shaun Flynn
? Shaun On 31 Oct 2017 06:20, "Shaun Flynn" <scf...@googlemail.com> wrote: > Hello there, > > I found the problem! My code added a trailing space to the values of the > variables when binding. > > After tokenizing in the XQuery, this creates a zero length stri

[basex-talk] Issue with selecting child nodes

2018-06-13 Thread Shaun Flynn
Hello there, I have the following query: declare variable $queryPath external := "D:\NROD Projects\xqCrews\diagrams.v3\"; declare variable $testSet := doc($queryPath || "tests\testSet1.xml"); $testSet where testSet1.xml is: Foobar Foobar When I run $testSet/*, I would

[basex-talk] Cancelling long running query

2018-06-26 Thread Shaun Flynn
Hello there, I have had a look in the documentation and was wondering, is it possible to cancel a query once it has been submitted using ClientQuery/ClientSession? Would calling close() on ClientQuery do that? Shaun

[basex-talk] Issue with HTTP Server

2018-11-09 Thread Shaun Flynn
Hello there, I am using BaseX 9.1, and Java version 8. When I use the basexhttp command, the server appears to start fine, but when I navigate to http:\\localhost:8984\rest, I get the following response below. What am I doing wrong? HTTP ERROR 500 Problem accessing /rest. Reason: Server

[basex-talk] Serving Static Content from Tomcat

2019-01-01 Thread Shaun Flynn
Hello there, I am using BaseX 9.1.1 inside a Tomcat server trying to build a webapp using RESTXQ. I have studied the DBA xqm files, and see that there is static content delivered to the generated login page, located in dba/static folder. When I try to replicate this in my app, I get 404 errors

Re: [basex-talk] Serving Static Content from Tomcat

2019-01-01 Thread Shaun Flynn
Hello there, Further to the below, I have found the common.xqm module which has the resource function to do this. Happy New Year :) Shaun On Tue, 1 Jan 2019, 12:26 Shaun Flynn Hello there, > > I am using BaseX 9.1.1 inside a Tomcat server trying to build a webapp > using RESTXQ. &

Re: [basex-talk] BaseX-Talk Digest, Vol 110, Issue 29

2019-02-23 Thread Shaun Flynn
Hello there Marco, This might be down to the choice of regex. Assume $path = "path" app/{$path=.+} Will match "app/path=1234" And "app/path=1234/input" Which I think would be matched by ".+" part of the expression, as "/input" would match ".+". Kind regards On Sat, 23 Feb 2019, 11:00 ,