[basex-talk] Geo Module Not found

2015-11-27 Thread E. Wray Johnson
I am getting the following error: [XQST0059] Module 'http://expath.org/ns/geo' not found. I used the Windows exe setup. What am I missing?

[basex-talk] Broken Links on website

2015-12-05 Thread E. Wray Johnson
On: http://docs.basex.org/wiki/Java_Examples Links in the following text seem to be broken: XQJ API > > The implementation of the BaseX XQJ API > (closed-source) has been written by Charles Foster. It uses the > client/server architecture. The basex-examples repository

Re: [basex-talk] Broken Links on website

2015-12-07 Thread E. Wray Johnson
The first link works now. Wray Johnson (m) 704-293-9008 > On Dec 7, 2015, at 12:50 PM, "Christian Grün" > wrote: > > Hi E. Wray, > >> The broken links are: >> >> http://xqj.net/basex/ >>

[basex-talk] Extracting binary stored zip into database as binary stored elements not working

2015-12-11 Thread E. Wray Johnson
My zip file has files nested in subfolders. First I used db:store to store delta.zip into the database. My first problem was I got an error " *invalid entry CRC: expected 0x0 but got..."* The raw stored file was slightly larger *than the original zip.* So I replaced the zip file in the raw folder

Re: [basex-talk] Extracting binary stored zip into database as binary stored elements not working

2015-12-11 Thread E. Wray Johnson
This is happening in the call to db:store where the path is 'alpha/bravo/charlie/delta.zip/subfolder/subfile.ext' The error is: Stopped at ., 1/216: >> > [FODC0002] Resource 'delta.zip' does not exist. Could it have something to do with a default archive parser for archives in the Java Client

Re: [basex-talk] Extracting binary stored zip into database as binary stored elements not working

2015-12-11 Thread E. Wray Johnson
utility. On Fri, Dec 11, 2015 at 2:05 PM, E. Wray Johnson <wray.john...@gmail.com> wrote: > Steps: > >1. Create or choose a database (e.g. named 'db') >2. Store in BaseX a raw zip file (e.g. >'alpha/bravo/charlie/delta.zip'). My zip file has files in folders. >

Re: [basex-talk] Extracting binary stored zip into database as binary stored elements not working

2015-12-11 Thread E. Wray Johnson
What is the format for an absolute path for db:store? Neither of the following works: - '/db/alpha/bravo/charlie/delta.zip/subfolder/subfile.ext' - and '/'alpha/bravo/charlie/delta.zip/subfolder/subfile.ext' However my original code works in the BaseX GUI, just not through the Java Client.

[basex-talk] Problem with 3rd party jars in repository

2015-12-15 Thread E. Wray Johnson
I have a 3rd party jar which is open source, which has no startup eligible classes. The classes I need to use have class names (not package name) that are all lower case. This seems to be a problem for BaseX. So, I tried to create a wrapper class, and the wrapper class loads but BaseX cannot load

[basex-talk] Concurrency model

2015-12-10 Thread E. Wray Johnson
What is the best way to manage multiple users in a multi-threaded environment like servlets?

Re: [basex-talk] Extracting binary stored zip into database as binary stored elements not working

2015-12-11 Thread E. Wray Johnson
hristian Grün <christian.gr...@gmail.com> wrote: > Could you please provide me with a minimized example that shows the > problem, and which I can run both in the GUI and via the Java client? > > > On Fri, Dec 11, 2015 at 6:24 PM, E. Wray Johnson <wray.john...@gmail.com> &g

[basex-talk] archive:extract:-binary can cause OutOfMemoryException

2016-01-02 Thread E. Wray Johnson
I have written an XQuery that properly extracts binary(raw) archive resource contents to binary(raw) resources. However since archive:extract:-binary returns the contents as xs:base64Binary and not streamable items, large archive contents are loaded completely into memory and will often cause an

[basex-talk] Remote vs local performance

2016-01-06 Thread E. Wray Johnson
Using a Java client, we are seeing operations take much longer (e.g. 2x+) when BaseX is remote vs when local (on the same machine). All machines are virtual Windows. Any ideas why?

[basex-talk] Mimicking RDBMS uniqueness constraints

2016-01-08 Thread E. Wray Johnson
What is the best practice in BaseX to implement a uniqueness constraint similar to a RDBMS? Given a database, a path to the documents, an optional RegEx expression on files in the path, and one or more XPaths to the constraint elements/attributes. Can I create an index of this nature? Can the

[basex-talk] Cant add raw files explicitly or text index ms office docs

2015-11-25 Thread E. Wray Johnson
Here is what I want to do: For a given folder and all its subfolders on my physical dive, mirror its contents including the contents of archives, parsing xml, json,html, text, etc. using their respective parser skipping invalids, and adding all other files as raw. I want archive files (*.zip,

Re: [basex-talk] Cant add raw files explicitly or text index ms office docs

2015-11-26 Thread E. Wray Johnson
- You want archive files >> extracted, others might want not to do this. In the end we would end up with >> a very complex definition language - And what's the point if we already have >> a standardized query language like XQuery, which can achieve the same thing? >> &g

[basex-talk] XML embedded in JSON

2016-01-12 Thread E. Wray Johnson
We have JSON that has string/text values which are XML. Is there a way o have the XML as sub-elements value and not be encoded/escaped string? Wray Johnson

[basex-talk] XML Commands

2016-01-12 Thread E. Wray Johnson
How do you execute XML commands from the BaseX GUI? Why can't multiple XML commands be executed from the BaseXClient.java? How can database options (e.g. autooptimize) be changed from the GUI without opening the database and locking it?

[basex-talk] Java client and binary files

2016-01-15 Thread E. Wray Johnson
When using the sample Java client to store/retrieve binary/raw files I have to execute separate open/close commands. It is my understanding that this locks the database. In a multi-user scenario, such locking is undesirable as binary/raw files can be quite large. And since there is no

Re: [basex-talk] Java client and binary files

2016-01-29 Thread E. Wray Johnson
.out.println("Size of binary data: " + data.length); > } finally { > client.close(); > } > > > [1] > https://github.com/BaseXdb/basex/blob/master/basex-examples/src/main/java/org/basex/examples/api/BaseXClient.java > > > On Thu, Jan 28, 201

Re: [basex-talk] Java client and binary files

2016-01-29 Thread E. Wray Johnson
t; >> > if (!ok()) { > >> > throw new IOException(info); > >> > } > >> > } > >> > > >> > > >> > On Thu, Jan 28, 2016 at 10:01 AM, Christian Grün > >> > <christian.gr.

Re: [basex-talk] Java client and binary files

2016-01-28 Thread E. Wray Johnson
e: > >> > >> See here: http://docs.basex.org/wiki/Serialization > >> > >> Am 28.01.2016 7:13 vorm. schrieb "E. Wray Johnson" > >> <wray.john...@gmail.com>: > >>> > >>> With 8.4... > >>> > >>&g

Re: [basex-talk] REST API not working

2016-09-02 Thread E. Wray Johnson
http://localhost:8984/rest/ Still hanging. Where is the log file where I can see what's going on? Wray Johnson > On Sep 2, 2016, at 8:36 PM, E. Wray Johnson <wray.john...@gmail.com> wrote: > > C:\Users\Administrator>basexserver -d > BaseX 8.5.3 [Server] > Server

[basex-talk] Fwd: REST API not working

2016-09-02 Thread E. Wray Johnson
sole output? > Cheers, Dirk > > > On 08/31/2016 04:41 PM, E. Wray Johnson wrote: > > I apologize, by 12 I meant Windows Server 2012. > BaseX version is 8.5.3 > By TCP vs REST I mean for REST I was using default port 8984 instead of > the default server TCP port 1984 > For e

Re: [basex-talk] REST API not working

2016-09-02 Thread E. Wray Johnson
OK, I was running basexserver instead of basexhttp. It's been months since I used basex and simply forgot. On Fri, Sep 2, 2016 at 9:59 PM, E. Wray Johnson <wray.john...@gmail.com> wrote: > http://localhost:8984/rest/ > > Still hanging. > Where is the log file where I ca

[basex-talk] REST API not working

2016-08-31 Thread E. Wray Johnson
Windows 12 server, running basexserver. Server is listening but hangs and never returns anything. When server is killed behavior is different so I can tell the server was listening on the REST port when running. I am not confusing the TCP port with REST port.

Re: [basex-talk] REST API not working

2016-08-31 Thread E. Wray Johnson
gt; console output and how you try to reach the REST endpoint. Also, I don't > know what you mean by you are not confusing TCP and REST port. This > statement doesn't really make sense, as REST uses TCP... > > Cheers > > Dirk > > > On 08/31/2016 02:09 PM, E. Wray Johnson

Re: [basex-talk] id generation and updates

2017-11-27 Thread E. Wray Johnson
ple', 'tests') > On Sat, Nov 18, 2017 at 4:00 AM, Christian Grün <christian.gr...@gmail.com> wrote: > You might want to try db:output. See our documentation on performing > returning updates and returning output. > > > > Am 18.11.2017 01:44 schrieb "E. Wray Johnson&quo

Re: [basex-talk] Issue preserving namespaces with json:parse

2017-11-24 Thread E. Wray Johnson
"gml:Point":{ > "gml:coordinates":"0,0" > } } }', $opt )/json/coords/* > > …and I’m pretty sure you’ll see what is wrong if you compare the > result with the examples in the documentation > (http://docs.basex.org/wiki/Geo_Module#geo:di

[basex-talk] Issue preserving namespaces with json:parse

2017-11-24 Thread E. Wray Johnson
What is wrong with this code? import module namespace geo = 'http://expath.org/ns/geo'; declare namespace gml='http://www.opengis.net/gml'; let $opt := map { "lax": true() } let $y := json:parse('{ "coords":{ "gml:Point":{ "gml:coordinates":"0,0" } } }', $opt ) let $x :=

[basex-talk] GEO module not found with BaseX GUI

2017-11-10 Thread E. Wray Johnson
Error: Stopped at D:/projects/xquery/geo test.xq, 1/57: [XQST0059] Module not found: http://expath.org/ns/geo. Query: import module namespace geo = "http://expath.org/ns/geo;; declare namespace gml='http://www.opengis.net/gml'; for $x in db:open('geonames2','country') where index-of(['US'],

Re: [basex-talk] GEO module not found with BaseX GUI

2017-11-11 Thread E. Wray Johnson
apshot? > > Thanks in advance, > Christian > > > > > > Am 11.11.2017 16:37 schrieb "E. Wray Johnson" <wray.john...@gmail.com>: > >> This happens in the BaseX GUI not Server. >> >> Error: >> Stopped at D:/projects/xquery/geo test.xq

Re: [basex-talk] GEO module not found with BaseX GUI

2017-11-11 Thread E. Wray Johnson
This happens in the BaseX GUI not Server. > Error: > Stopped at D:/projects/xquery/geo test.xq, 1/57: > [XQST0059] Module not found: http://expath.org/ns/geo. > > Query: > import module namespace geo = "http://expath.org/ns/geo;; declare namespace > gml='http://www.opengis.net/gml'; for $x in

Re: [basex-talk] GEO module not found with BaseX GUI

2017-11-11 Thread E. Wray Johnson
talled 8.6.7 on a clean system (Windows 10), and the Geo module is >>> correctly detected when running basexgui.bat. I can confirm, however, that >>> it is not found when running BaseX.exe. >>> >>> Maybe it helps to delete and reinstall BaseX? If it doesn’t, feel

[basex-talk] Update/Delete JSON

2017-11-11 Thread E. Wray Johnson
What is the best way to update JSON objects (only some object values) by unique id? What is the best way to delete JSON objects by unique id? Wray Johnson (m) 704-293-9008

[basex-talk] Spatial Reference not working

2017-11-11 Thread E. Wray Johnson
I can’t get the geo:srid() to work. I have tried many combinations of @srsName values. Can anyone provide examples? E. Wray Johnson

[basex-talk] Update operations on JSON objects are not working

2017-11-11 Thread E. Wray Johnson
I have tried many ways of updating JSON objects and none seem to work. Using the BaseX GUI, the Result window seems to show the correct outcom, but the database is not modified. What am I missing? Do I need to explicitly start/stop a transaction? XQUERY: db:open('db','country')/json[countryId =

Re: [basex-talk] GEO module not found with BaseX GUI

2017-11-11 Thread E. Wray Johnson
; Maybe it helps to delete and reinstall BaseX? If it doesn’t, feel free to >> provide me with some steps how to reproduce the issue. >> >> >> >> >> >> Am 11.11.2017 16:49 schrieb "E. Wray Johnson" <wray.john...@gmail.com>: >>&g

[basex-talk] Can't update or delete JSON objects

2017-11-12 Thread E. Wray Johnson
I have tried XQUERY updates that should work but they don't work. My technique of storing JSON documents is perhaps not traditional. I have reduced my example to this simple example. FRIST CREATE DATABASE WITH ONE DOCUMENT: db:create('geography', json:parse('{ "code": "USA", "name": "United

Re: [basex-talk] Spatial Reference not working

2017-11-13 Thread E. Wray Johnson
/blob/master/ > basex-api/src/main/java/org/expath/ns/Geo.java > > > > Am 14.11.2017 12:23 vorm. schrieb "E. Wray Johnson" < > wray.john...@gmail.com>: > > I am sorry, I did not make myself clear. It always returns 0. There is a > way to set the spatial re

Re: [basex-talk] Spatial Reference not working

2017-11-13 Thread E. Wray Johnson
I am sorry, I did not make myself clear. It always returns 0. There is a way to set the spatial reference. Typically with the srsName attribute on the geometry. In this example that would be the gml:Polygon element. However, none of the valid values is recognized by JTS. It is as if the

[basex-talk] updating inside map:for-each

2017-11-13 Thread E. Wray Johnson
How can database updating be done inside map:for-each ?

Re: [basex-talk] Loading data

2017-11-20 Thread E. Wray Johnson
a map, rather than updating a map, iteratively. > > > > Kendall > > > > *From: *<basex-talk-boun...@mailman.uni-konstanz.de> on behalf of "E. > Wray Johnson" <wray.john...@gmail.com> > *Date: *Sunday, November 19, 2017 at 5:15 AM > *To: *Michael Seif

Re: [basex-talk] Loading data

2017-11-20 Thread E. Wray Johnson
ing data > > > > I hope that the tuple stream of a FLWOR expression does not accumulate > heap memory. Is that the case, Christian, or anyone? > > > > Kendall > > > > *From: *"E. Wray Johnson" <wray.john...@gmail.com> > *Date: *Monday, November 20, 2

Re: [basex-talk] Loading data

2017-11-19 Thread E. Wray Johnson
b2420bb29/raw/2bf258763c704f8ffd3ea9a3e81d25e2c6f6/cities.json') >> => json:parse() > For more info on our BaseX JSON-Module see: > http://docs.basex.org/wiki/JSON_Module > > > As I can only guess what your XQuery code actually looks like I hope this > comes somewhat

Re: [basex-talk] id generation and updates

2017-11-18 Thread E. Wray Johnson
ut(/myUrl) > , > file:write($filePath,$css,map { "method": "text"}) >) > > Hope We helped, > > > > > 2017-11-18 10:00 GMT+01:00 Christian Grün <christian.gr...@gmail.com>: >> You might want to try db:output. See our documentati

Re: [basex-talk] Spatial Reference not working

2017-11-18 Thread E. Wray Johnson
> <christian.gr...@gmail.com> wrote: > > Thanks for the hint! I’ll look at this later this day. > > > > > > Am 14.11.2017 00:51 schrieb "E. Wray Johnson" <wray.john...@gmail.com>: > >> > >> According to this: > >> > >>

[basex-talk] Loading data

2017-11-18 Thread E. Wray Johnson
I have a JSON file https://gist.githubusercontent.com/Miserlou/c5cd8364bf9b2420bb29/raw/2bf258763c704f8ffd3ea9a3e81d25e2c6f6/cities.json I want to load it into a database in a different XML format where I can use gml:Point in place of longitude and latitude as separate elements. However my

[basex-talk] basex-node binding objects

2017-11-15 Thread E. Wray Johnson
Andy, 1. I am pelase that JSON result objects are mapped to JavaScript objects. Are undefined values handled (e.g. XQuery () vs JavaScript undefined)? 2. I am using basex-node and having trouble binding objects in a query. I would like to have the object result in an XQUERY map.

Re: [basex-talk] Update/Delete JSON

2017-11-15 Thread E. Wray Johnson
Christian, Can you give an example of how to convert JSON data to atomic XQuery items (sepecifically strings, numbers and booleans)? Is it as simple as removing the curly brackets to bound an object? On Wed, Nov 15, 2017 at 11:05 AM, Kendall Shaw wrote: > On

Re: [basex-talk] Update operations on JSON objects are not working

2017-11-13 Thread E. Wray Johnson
> ___ > > [1] http://docs.basex.org/wiki/XQuery_Update > > > On Sun, Nov 12, 2017 at 6:12 AM, E. Wray Johnson <wray.john...@gmail.com> > wrote: > > I have tried many ways of updating JSON objects and none seem to work. > > Using the Base

Re: [basex-talk] GEO module not found with BaseX GUI

2017-11-12 Thread E. Wray Johnson
ferently than the server script (but are nearly identical). Could > you possibly send me your start scripts and the XQuery expression with > the Geo module import that caused the problems you reported? > > > > On Sat, Nov 11, 2017 at 11:46 PM, E. Wray Johnson > <wray.jo

[basex-talk] id generation and updates

2017-11-17 Thread E. Wray Johnson
How can I white a single XQUERY statement that assigns an auto-generated id to a node (using either generate-id(), or random:uuid() ) then inserts the node into a database and then returns the auto-generated id. I can do the id assignment and insert operation just fine using { }, I just don't

Re: [basex-talk] eq vs =

2018-12-13 Thread E. Wray Johnson
The value comparison operators (eq, lt, etc.) are designed for comparing single values (i.e. sequences of one value each). The general comparison operators (=, <, etc.) are designed for comparing sequences of more than one value. E. Wray Johnson > On Dec 13, 2018, at 4:16 AM, Leo Studer