[basex-talk] Setting a default collation for a database

2017-12-18 Thread Jonathan Robie
I would like to set a default collation for a database, a collation that will be used for all queries unless the user asks for a different collation. My use case: a database in Greek will never be sensibly sorted using an English collation, and I don't want users to need to specify collations

[basex-talk] Handling exceptions in the Python Client API

2017-12-18 Thread Jonathan Robie
I am now happily using BaseX from Jupyter Notebooks for Greek data - see these links: http://jonathanrobie.biblicalhumanities.org/blog/2017/12/08/jupyter-tutorial/ http://jonathanrobie.biblicalhumanities.org/assets/greeksyntax-tutorial-proiel.html But I need to know how to handle exceptions,

Re: [basex-talk] Handling exceptions in the Python Client API

2017-12-19 Thread Jonathan Robie
Thanks! The try/except part is the part I understand. The part I don't understand is how to find the exception thrown by BaseX, I want to show syntax errors in a user friendly way like what you see in the GUI so people don't always have to go back to the GUI to figure out what's wrong with their

[basex-talk] Deploying BaseX + data + client

2018-05-25 Thread Jonathan Robie
I have written a Python package for querying Greek syntax from Jupyter Notebook. It relies on BaseX and one or more open data resources found in GitHub repositories. I want to make it available to the public in a way that is easy to install. One possibility is to write a Python script that uses

[basex-talk] JSON input files

2018-02-07 Thread Jonathan Robie
I would like to add a JSON file to a collection that is otherwise composed of XML files. I'm hitting two issues: 1. Is there any way to import both JSON and XML files at the same time when creating a database? 2. I would like to import the JSON as an XQuery/XPath map, without mapping it to XML.

[basex-talk] One document per database or multiple?

2018-02-06 Thread Jonathan Robie
If I have a set of related documents (a text, a lexicon, frequency counts, a discourse analysis, etc), how should I decide when to put more than one document in a single database at different paths, as opposed to putting one document in each database? When I create a database from the GUI, it

Re: [basex-talk] One document per database or multiple?

2018-02-06 Thread Jonathan Robie
n.uni-konstanz.de [mailto: > basex-talk-boun...@mailman.uni-konstanz.de] *De la part de* Jonathan Robie > *Envoyé :* mardi 6 février 2018 23:31 > *À :* BaseX > *Objet :* [basex-talk] One document per database or multiple? > > > > If I have a set of related documents (a te

Re: [basex-talk] Handling exceptions in the Python Client API

2017-12-21 Thread Jonathan Robie
quot;7 + 3 = 10'. Posting here in case someone else finds it helpful. Thanks! Jonathan On Tue, Dec 19, 2017 at 11:41 AM, Jonathan Robie <jonathan.ro...@gmail.com> wrote: > Thanks! The try/except part is the part I understand. The part I don't > understand is how to find the except

Re: [basex-talk] Scaling and Jsoniq

2019-01-02 Thread Jonathan Robie
As an author of both JSONiq and XQuery 3.1, I generally think of XQuery 3.1 as the standard that implemented what JSONiq did. Some authors of JSONiq see this very differently, preferring the JSONiq way of doing things. Is there anything JSONiq can do that XQuery 3.1 can't? Jonathan On Wed, Jan

Re: [basex-talk] Stack Overflow: Try tail recursion

2019-02-18 Thread Jonathan Robie
To make it tail-recursive, make the recursive call the last operation in the function. https://en.wikipedia.org/wiki/Tail_call The else() clause is what keeps it from being tail recursive. Something like this should work: *declare variable* *$bookstore* := story 50.00 smith

[basex-talk] Websites that use BaseX

2020-06-23 Thread Jonathan Robie
I have recommended BaseX to some people who are writing an application. The developers, who are more comfortable with SQL, have asked for a list of websites that use BaseX. I imagine they would be happy with other happy customers too, they want to have basic confidence in the tool. So which