Re: [basex-talk] king Henry VIII dalenda est

2020-10-05 Thread Liam R. E. Quin
On Mon, 2020-10-05 at 15:15 +0200, Christian Grün wrote: > Hi Liam, > > Did you find out why II et al. was ignored? Feel free to provide me > with a little test case. The markup in the surrogate files in the database turned out to be, Edward II Changing to Edward II made it work. Henry VIII

Re: [basex-talk] king Henry VIII dalenda est

2020-09-28 Thread Liam R. E. Quin
On Mon, 2020-09-28 at 19:32 -0400, Liam R. E. Quin wrote: > At > > https://words.fromoldbooks.org/Search/ > > a search for henry shows lots of matches, and sodoes a search for > henry > i, but henry ii and henry viis missing and so is henry viii. Actually it turns out (

[basex-talk] king Henry VIII dalenda est

2020-09-28 Thread Liam R. E. Quin
At https://words.fromoldbooks.org/Search/ a search for henry shows lots of matches, and sodoes a search for henry i, but henry ii and henry viis missing and so is henry viii. I can search for viii and find Henry VIII and also Charles VIII, but i also can't search for Charles VIII. I can search

Re: [basex-talk] Paging results of an XQuery-Search

2020-09-27 Thread Liam R. E. Quin
On Sun, 2020-09-27 at 14:43 +0200, Günter Dunz-Wolff wrote: > Thanks Gerrit, invoking search and passing all params per GET is the > way to go. For a public-facing example, see the search box in e.g. https://words.fromoldbooks.org/Chalmers-Biography/n/newton-sir-isaac.html works this way, doing

Re: [basex-talk] creating epub and odf with basex

2020-09-08 Thread Liam R. E. Quin
On Tue, 2020-09-08 at 17:07 +0200, Jos van den Oever wrote: > Thank you for making the improvements. This is much cleaner imho than > bash + > zip + xsltproc. :-) A minor addition - i've sometimes started with a base zip file with the uncompressed "mimetype" entry in it, and just added the rest

Re: [basex-talk] superfluous shape="area' when using html:parse()

2020-08-30 Thread Liam R. E. Quin
On Sun, 2020-08-30 at 14:01 +0200, Jos van den Oever wrote: > Hi all, > > When loading a document with html:parse(), an extra attribute is > added to > every element. > >   becomes This usually comes from the HTML 4 or XHTML 1.x DTDs. It is actually not incorrect behaviour, although i never

Re: [basex-talk] improving query performance

2020-08-23 Thread Liam R. E. Quin
On Sun, 2020-08-23 at 14:05 -0700, Bill Osmond wrote: > Indeed I have, with no positive results unfortunately. I'm now > testing to > see if having multiple return statements (as in Liam's queries) > helps, > although the results so far are basically the same. I tried to make clear what was going

Re: [basex-talk] improving query performance

2020-08-21 Thread Liam R. E. Quin
On Fri, 2020-08-21 at 17:28 -0700, Bill Osmond wrote: > I'm beginning to think that perhaps my performance hopes were a bit > too > inflated, given the size and complexity of our database. After a > fresh > optimization, and with -Xms2g -Xmx10g, the following query takes > 1492ms: [...] First

Re: [basex-talk] improving query performance

2020-08-21 Thread Liam R. E. Quin
On Fri, 2020-08-21 at 12:51 -0700, Bill Osmond wrote: > > declare namespace ernm="http://ddex.net/xml/ern/411;; > > for $r in /ernm:NewReleaseMessage > for $track_release in $r/ReleaseList/TrackRelease > for $party in $r/PartyList/Party > for $sound_recording in

Re: [basex-talk] xslt:transform function not working with XML Catalog

2020-07-10 Thread Liam R. E. Quin
On Fri, 2020-07-10 at 08:23 +0200, Imsieke, Gerrit, le-tex wrote: > I’d like to warmly > recommend paying him so that he can explore and fix the issue. :-) Thank you for the recommendation! The trick is to find the resolver output from setting verbose, as then you will see the strings that

Re: [basex-talk] xslt:transform function not working with XML Catalog

2020-07-09 Thread Liam R. E. Quin
On Thu, 2020-07-09 at 04:32 +, Lizzi, Vincent wrote: > Hi Liam, > > Thanks for the reply and suggestions. Based on your suggestion I > tried pragmas and strace, and had another go at > CatalogManager.properties, but they've not had any effect. use, strace -f java >& hugelogfile.txt and

Re: [basex-talk] xslt:transform function not working with XML Catalog

2020-07-08 Thread Liam R. E. Quin
On Wed, 2020-07-08 at 22:46 +, Lizzi, Vincent wrote: > I've encountered a problem using xslt:transform in to transform some > old XML that contains a DTD DOCTYPE system literal pointing to a non- > working URI and also uses ENTITYREF attributes to refer to image > files. I have the XML Catalog

Re: [basex-talk] Autocomplete with RESTXQ

2020-06-25 Thread Liam R. E. Quin
On Thu, 2020-06-25 at 18:31 +0200, Imsieke, Gerrit, le-tex wrote: > Hi List, > > Can anyone recommend a lightweight vanilla Javascript autocomplete > library that can easily be used together with BaseX RESTXQ? Maybe > even a > readily cloneable/modifiable example? Awesomeplete works for me, by

Re: [basex-talk] Websites that use BaseX

2020-06-23 Thread Liam R. E. Quin
On Tue, 2020-06-23 at 16:34 -0400, Joe Wicentowski wrote: > Hi all, > > I'd welcome any and all contributions to my list of XQuery-powered > resources: > > https://github.com/joewiz/xquery-power Not a major ecommerce site :) but... Most Web pages on From Old Books _dot_ Org -

Re: [basex-talk] Writing

2020-06-11 Thread Liam R. E. Quin
On Fri, 2020-06-12 at 03:46 +0200, Giuseppe G. A. Celano wrote: > Hi, > > I would like to print a comment containing only a dash (i.e., >) , but this is not allowed. This is not permitted in XML; it's a syntax error. A - in a comment must be followed by a character that is not a hyphen. You can

Re: [basex-talk] [FULLTEXT] How to search for underscore seperated words ?

2020-06-05 Thread Liam R. E. Quin
On Fri, 2020-06-05 at 12:38 +, ETANCHAUD Fabrice wrote: > Hi all BaseX users, > > When I search for 'YET_ANOTHER_SILLY_KEYWORD', ft:search gives me all > text nodes containing any of the YET ANOTHER SILLY KEYWORD words. Does it work to put the phrase in double quotes?

Re: [basex-talk] repeatedly full-text marking the same text node

2020-05-11 Thread Liam R. E. Quin
On Mon, 2020-05-11 at 22:29 +0200, Christian Grün wrote: > Providing access to the starts and ends may be difficult due to all > the logical operators that can be used A way to go from ($input, $phrases) to a $input autmented with db:milestone elements each containing starts="0 7 23" ends="2 6

Re: [basex-talk] repeatedly full-text marking the same text node

2020-05-10 Thread Liam R. E. Quin
On Sun, 2020-05-10 at 10:12 -0400, Graydon wrote: > > I now think this just isn't a full-text use case; In the past i used a text retrival package i wrote to solve the problem of inserting links automatically, choosing the longest & avoiding overlaps. I use some multi-threaded procedural code i

Re: [basex-talk] repeatedly full-text marking the same text node

2020-05-10 Thread Liam R. E. Quin
On Fri, 2020-05-08 at 14:52 -0400, Graydon Saunders wrote: > > > The idea would be to iterate through the list, marking up the node > with any > matches. Can you instead use standoff markup? E.g. store positions of start and end as word counts, and then merge them later? > -- Liam Quin,

Re: [basex-talk] Grouping words in phrasal matches with full-text indexes

2020-04-25 Thread Liam R. E. Quin
On Sat, 2020-04-25 at 13:46 -0400, Graydon Saunders wrote: > > I think I have figured out a way to connect the adjacent marked words > in > the phrasal term into a single mark element. I cannot convince myself > that > this is the right way; is there a better approach than tumbling > windows? I

Re: [basex-talk] Write output using proc:execute

2020-04-09 Thread Liam R. E. Quin
On Thu, 2020-04-09 at 16:00 -0400, Tim Thompson wrote: > > proc:execute("echo", ("hello!", "> hello.txt")) You could run, bash -c 'echo hello > hello.txt' instead, maybe? This is assuming you are using Linux or the Linux subsystem on Windows, or cygwin, or OS X... so bash is available. --

Re: [basex-talk] Memoize

2020-04-09 Thread Liam R. E. Quin
On Thu, 2020-04-09 at 10:08 +0200, Mickael Desfrenes wrote: > > My goal was to get faster results when a query is run multiple times. > Yes, that's probably premature optimization, but since I do require > these things in other application stacks I thought I'd ask. I have a Perl-based framework

Re: [basex-talk] Problem with attribute parsing?

2020-04-05 Thread Liam R. E. Quin
On Sun, 2020-04-05 at 22:21 +, Peter Villadsen wrote: > Hello > > I was doing some experiments and I ended up with this: > > let $c := This is an error because the braces surround expresions: would work. Similarly you can write { concat('dirt', 'noise') } of course. Liam -- Liam

Re: [basex-talk] Memoize

2020-03-30 Thread Liam R. E. Quin
On Mon, 2020-03-30 at 15:39 +0200, Christian Grün wrote: > I remember that some users have successfully utilized Memcached in > the past to cache BaseX query results. I did this for a while on fromoldbooks.org and it worked fine (you have to know when to invalidate the cache of course!). But

Re: [basex-talk] file:move() fails when moving to another file system

2020-02-12 Thread Liam R. E. Quin
On Wed, 2020-02-12 at 08:44 +, Zimmel, Daniel wrote: > > A last try: What do you get if you run it with basex (the > > standalone, not the client)? Looks to me like query/func/file/FileCopy.java uses Files.move() when it thinks i can, but this will fail on Unix-like systems if you try to move

Re: [basex-talk] An invalid XML character (Unicode: 0x1a) was found in the element content of the document

2020-01-16 Thread Liam R. E. Quin
On Thu, 2020-01-16 at 03:43 -0500, Geoff Alexander wrote: > > We're getting an "An invalid XML character (Unicode: 0x1a) was found > in the element content of the document" error Character 0x1A is indeed not allowed in an XML document. See e.g. https://www.w3.org/TR/REC-xml/#charsets One

Re: [basex-talk] Huge No of XML files.

2019-12-18 Thread Liam R. E. Quin
On Wed, 2019-12-18 at 11:10 +0530, Sreenivasulu Yadavalli wrote: > > > What exactly do you mean by moving collections around?. > > A: moving the collections in the same system. So, you use the Linux "mv" command to do this? Or what? What exactly do you mean by collections? I for one would

Re: [basex-talk] Huge No of XML files.

2019-12-17 Thread Liam R. E. Quin
On Tue, 2019-12-17 at 11:48 +0530, Sreenivasulu Yadavalli wrote: > > Every day we are moving collections around 55k to 60k no of xml files > large > account. Here, i just created a BaseX database with 80,000 XML files. It took under one minute on the Linux desktop system i use. > Its taking

Re: [basex-talk] Weird: mixed content trimmed unexpectedly

2019-12-09 Thread Liam R. E. Quin
On Mon, 2019-12-09 at 20:27 +0100, Arjan Loeffen wrote: > > In general: when the wiki states here: "Many XML documents include > whitespaces that have been added to improve readability. ", this > should not > apply to mixed content fragments as described. Only to start and end > of > "text

Re: [basex-talk] http:request parsing question

2019-10-22 Thread Liam R. E. Quin
On Tue, 2019-10-22 at 19:32 -0400, Bridger Dyson-Smith wrote: > > http://export.arxiv.org/oai2?verb=Identify'/>)//@status/data() > > returns '200', but trying > > http:send-request()/h:response/@status > > fails. I'm guessing that the first request sends you an auth token, and that you're

Re: [basex-talk] how to specify a database in a.xq FLOWR query?

2019-10-07 Thread Liam R. E. Quin
On Mon, 2019-10-07 at 03:38 -0700, thufir wrote: > From SO (and the fine manual), the solution is to use: basex -i > w3school_data titles.xq Seeing the filename propts me to note - w3schools (when i've looked at it) isn't a good place to learn from. They were never affiliated with W3C, and

Re: [basex-talk] // versus /*/

2019-10-07 Thread Liam R. E. Quin
On Sun, 2019-10-06 at 21:28 -0700, thufir wrote: > Do these have the same meaning? Might there be a subtle distinction, > or > might they be read differently but functionally identical? Are we doing your homework? :-) :-) //* is the same as /descendant-or-self::* //book means, search the

Re: [basex-talk] Passing through entities unchanged when serializing

2019-09-09 Thread Liam R. E. Quin
On Tue, 2019-09-10 at 02:59 +0200, Andreas Mixich wrote: > I wonder why the serialization behaves that way. It does not make > sense to > me. If a user has the need to escape XML, it should be thorough, > shouldn't it? XML entities are expanded by he XML parser, so by the time XQuery (or XSLT)

Re: [basex-talk] Passing through entities unchanged when serializing

2019-09-09 Thread Liam R. E. Quin
On Mon, 2019-09-09 at 15:04 +0200, Andreas Mixich wrote: > when serializing a string, that contains literal XML with entities, > how do I pass through those entities unchanged? One way is to use a character map, as Bridger Dyson-Smith described. Sometimes another way can be to have a version of

Re: [basex-talk] Nooby/#CitizenScientist REQUEST for HELP: Python implementation of this XQuery

2019-04-10 Thread Liam R. E. Quin
On Wed, 2019-04-10 at 14:52 -0600, Jim Salmons wrote: > [...] I _think_ what you are asking is, how so i interpolate values into a string in Python. If that is correct, then the first Google result for interpolate values into a string in Python is

Re: [basex-talk] Higher order functions in XSLT

2019-03-28 Thread Liam R. E. Quin
On Thu, 2019-03-28 at 11:48 +0100, nikos dimitrakas wrote: > [...] > XPST0003: Inline functions require support for higher-order- > functions, which needs Saxon-PE or higher. I am using Saxon EE > 9.9.1.2 (also tried PE 9.9.1.2) This suggests BaseX is picking up the wrong version of Saxon, or

Re: [basex-talk] Way to escape XML?

2019-03-24 Thread Liam R. E. Quin
On Sun, 2019-03-24 at 04:22 +0100, Andreas Mixich wrote: > let $xml as element() := Hello World > return serialize($xml, map{"method":"entity-escaped-string"} > > would result in > > xmlHello World/xml One way, declare function local:escapexml($input as item()*) as xs:string? {

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-13 Thread Liam R. E. Quin
On Wed, 2019-03-13 at 20:15 +0100, Imsieke, Gerrit, le-tex wrote: > > On 13.03.2019 19:55, Liam R. E. Quin wrote: > > Yes, they are a bit of a nightmare. Actually i’ve thought about > > having > > the ability to write a URI Resolver in XQuery, > > db:resol

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-13 Thread Liam R. E. Quin
On Wed, 2019-03-13 at 11:57 +0100, Christian Grün wrote: > > Note that i have a public identifier, so using prefer-public lets > > that > > be resolved. > > xmllint and BaseX seem to behave differently on my system. With > xmllint and xsltproc, your examples run fine. That's good at least... >

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-12 Thread Liam R. E. Quin
On Tue, 2019-03-12 at 13:46 +0100, Christian Grün wrote: > Hi Liam, > > Thanks for the enclosed example. I am still trying to figure out how > to run it, so I tried to simplify everything. > > As you can easily guess, my knowledge on XML catalogs is rather > limited: For example, when trying to

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-08 Thread Liam R. E. Quin
On Thu, 2019-03-07 at 13:19 +0100, Christian Grün wrote: > Hi Liam, > > > works if i uncomment the option declaration, but not otherwise. > > Interesting; seems I have overlooked something. And I must admit I > haven’t tried to run it by myself so far. Could you possibly send me > a > little

Re: [basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-03-06 Thread Liam R. E. Quin
On Tue, 2019-03-05 at 13:44 +0100, Christian Grün wrote: > Liam, > > Thanks a lot for your patch, very appreciated! Pull requests are even > handier for us, but any type of commit is welcome. Thanks! Awesome! I'll do a pull request next time. I've tried the snapshot and got it to work;

Re: [basex-talk] following-sibling axis -- real data example

2019-03-01 Thread Liam R. E. Quin
On Fri, 2019-03-01 at 13:50 -0800, Mark Bordelon wrote: > I have tried using the -w option’s true and false values, but my > results are always as above. > > Any ideas? Try removing all whitespace between tags that's not part of the actual document and see if you get different results; if so,

[basex-talk] supporting XML Catalog files in xslt:transform() (patch)

2019-02-26 Thread Liam R. E. Quin
The enclosed patch -- would you prefer a github pull request? -- makes xslt:transform() aware of XML catalog files, as other XML parsing already is. The same CATFILE preference is used (via the query context). I refactored CatalogWrapper slightly so it could be reused. I also took away the line

Re: [basex-talk] RESTXQ and regexp

2019-02-23 Thread Liam R. E. Quin
On Fri, 2019-02-22 at 12:05 +0100, Marco Lettere wrote: > (: Matches anything followed by /input :) > declare %rest:path("app/{$path=.+}/input") >function page:inputs($path) { ... }; > > (: Matches all other all paths starting with "app/" :) > declare %rest:path("app/{$path=.+}") >

Re: [basex-talk] proc:execute

2019-02-11 Thread Liam R. E. Quin
On Tue, 2019-02-12 at 01:42 +0100, Giuseppe G. A. Celano wrote: > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position > 5390: ordinal not in range(128) A guess - sounds like an encoding error - 0xE2 is â in Unicode, and 128 suggests US ASCII was expected - check the encoding

Re: [basex-talk] many distinct namespaces

2019-01-24 Thread Liam R. E. Quin
On Wed, 2019-01-16 at 15:31 +0100, Christian Grün wrote: > Hi Liam, > > > did this ever happen? > > What exactly? ;) sorry! support for more than 256 namespaces in one db. -- Liam Quin, https://www.delightfulcomputing.com/ Available for XML/Document/Information Architecture/XSLT/

Re: [basex-talk] many distinct namespaces

2019-01-15 Thread Liam R. E. Quin
On Fri, 2018-11-02 at 17:25 +0100, Christian Grün wrote: did this ever happen? > > Some more details: The current storage layout per node has been fixed > to 16 bytes. One byte (8 bits) is reserved for the namespace > reference. Here are a couple of hacky appraches in the spirit of

Re: [basex-talk] Support for XML with different file extension in GUI

2018-11-14 Thread Liam R. E. Quin
On Wed, 2018-11-14 at 19:20 +0100, Christian Grün wrote: > Good news: It has already been implemented, and it will be available > soon > after we’ve done some more testing! you people are beyond awesome! :D > -- Liam Quin - web slave for https://www.fromoldbooks.org/ with fabulous vintage

Re: [basex-talk] Support for XML with different file extension in GUI

2018-11-14 Thread Liam R. E. Quin
On Tue, 2018-11-06 at 18:32 +0100, Christian Grün wrote: > Hi Kevin, > > I’ll probably add an editable list of XML suffixes to the GUI > preference dialog. I think this would be very helpful - recently i was making an index of some epub files - they are zip'd directories of (mostly) XML, but i

Re: [basex-talk] First non-null value?

2018-09-14 Thread Liam R. E. Quin
On Thu, 2018-09-13 at 16:18 -0400, Graydon Saunders wrote: > let $possible1 as xs:string* := (: go looking for a value via one > route :) > let $possible2 (: all the other routes in preference order :) > > let $foundIt as xs:string := >

Re: [basex-talk] Huge CSV

2018-08-12 Thread Liam R. E. Quin
On Sun, 2018-08-12 at 23:58 +0200, Giuseppe Celano wrote: > more documents accessed sequentially is better than one > big file. Are you building indexes in the database? Do yourqueries make use of them? You may find using the full text extensions useful. Liam -- Liam Quin,

Re: [basex-talk] Huge CSV

2018-08-10 Thread Liam R. E. Quin
On Fri, 2018-08-10 at 13:43 +0200, Giuseppe Celano wrote: > I uploaded the file, as it is, in the database, i'd probably look for an XSLT transformation to turn it into XSLT - of there are python and perl scripts or other programs that can do it - and then load the result intoa database. It's

Re: [basex-talk] Different interpretation of regex in eXist, Saxon and BaseX

2018-08-07 Thread Liam R. E. Quin
On Tue, 2018-08-07 at 21:31 -0400, Bridger Dyson-Smith wrote: > isn't the '?' a reluctant quantifier - given two > choices it > will always match the shorter choice? b? matches zero or one "b". b* matches zero or more "b" using the longest match possible b+ matches one or more "b" using the

Re: [basex-talk] Failure with comment in editor when commenting out a regex

2018-08-01 Thread Liam R. E. Quin
On Wed, 2018-08-01 at 22:31 +0200, Andreas Mixich wrote: > host :) > > Editor/GUI warns, that: "no expression allowed in library module" and > places error marker at the two slashes // after the :)( in the regex. Well, it's right - since it's in a comment it's not in a regex, it's just :) in a

Re: [basex-talk] baseX vs ExistDB

2018-04-20 Thread Liam R. E. Quin
On Thu, 2018-04-19 at 16:26 +0100, Feargal Hogan wrote: > > > From the comparison chart that Ben referenced earlier I noticed that > baseX doesn’t seem to actually load xml files into an xml database, > is that right? No. Yes. Maybe. baseX does load the documents into a database. It stores them

Re: [basex-talk] baseX vs ExistDB

2018-04-18 Thread Liam R. E. Quin
On Wed, 2018-04-18 at 14:39 +0100, Feargal Hogan wrote: > Hi > > Is anyone aware of any comparisons between baseX and Exist? > I have some familiarity with Exist and I’d like o understand what are > the benefits of each. I don't know of any recent ones that are in-depth, and both products have

Re: [basex-talk] SSL support for BaseX REST API

2018-03-14 Thread Liam R. E. Quin
On Wed, 2018-03-14 at 14:18 -0500, Giavanna J Richards wrote: > I'm trying to determine how to enable SSL communications with the > BaseX server I don't know if this helps, but I run BaseX listening only to "localhost" so that SSL isn't an issue (as a connection to localhost doesn't normally go

Re: [basex-talk] Dynamic xpath

2018-02-02 Thread Liam R. E. Quin
On Fri, 2018-02-02 at 16:06 +0100, France Baril wrote: > I'm trying to do something similar to this because I'll have to deal > with xpaths provided by end users as parameters to a rest query: I hope you have taken security issues into account, e.g. the ability to access (and even write to)

Re: [basex-talk] java.lang.NoClassDefFoundError: Could not initialize class java.nio.file.FileSystems$DefaultFileSystemHolder

2017-09-18 Thread Liam R. E. Quin
t;basex-talk-boun...@mailman.uni-konstanz.de > on behalf of Liam R. E. Quin" <basex-talk-boun...@mailman.uni-konstan > z.de on behalf of l...@w3.org> wrote: > > It seems with the latest Java 1.8 - > java-1.8.0-openjdk-headless-1.8.0.144-0.b01.el7_4.x86_64

[basex-talk] java.lang.NoClassDefFoundError: Could not initialize class java.nio.file.FileSystems$DefaultFileSystemHolder

2017-09-18 Thread Liam R. E. Quin
It seems with the latest Java 1.8 - java-1.8.0-openjdk-headless-1.8.0.144-0.b01.el7_4.x86_64 on Centos 7, I can no longer drop a database, any ideas? This is with both 8.5.3 and 8.6.6, and also with the latest snapshot, BaseX867-20170824.195627.zip [[ $ bin/basexclient -p 1994 Username: admin

Re: [basex-talk] Old dog trying to learn some new tricks.

2017-08-28 Thread Liam R. E. Quin
On Mon, 2017-08-28 at 16:02 -0500, Dave Day wrote: > [...] > What I was hoping to do was to connect to a running BaseX, and > send  > the schema definitions that would be used to validate the XML.  In  > reading doc, I see it is possible to create namespaces and use them, > but  > the format

Re: [basex-talk] json-to-xml and xpath

2017-08-26 Thread Liam R. E. Quin
On Sat, 2017-08-26 at 20:35 +, Hans-Juergen Rennau wrote: > Of course, Liam, but of course the BaseX format has its escaping > rules, so that it works *always*. The names become less beautiful > here and there, but in practise a couple of warped names among > hundreds of nice and meaningful

Re: [basex-talk] json-to-xml and xpath

2017-08-26 Thread Liam R. E. Quin
On Sat, 2017-08-26 at 13:53 +, Hans-Juergen Rennau wrote: > I find the W3C-defined format obtained from fn:json-to-xml > unnatural and unpractical; It is, but it works in more cases. JSON keys can have values that aren't possible XML element names, e.g. { "1" : "one", "2" : "two",

Re: [basex-talk] How could I reuse sub queries?

2017-08-07 Thread Liam R. E. Quin
On Tue, 2017-08-08 at 09:24 +0800, donaldjohn wrote: >   is there a way that I can cache the sub query result and > reuse it somewhere else? I think it will run faster in that way. You may find it runs at the same speed - BaseX may have noticed hte common query. But you can try using, let

Re: [basex-talk] GUI

2017-08-05 Thread Liam R. E. Quin
On Sat, 2017-08-05 at 16:52 +0100, Thomas Daly wrote: >   > > a)  It is not possible to log into a BaseX database running on a > remote > server from a GUI running on a different machine? You can probably also do it the other way round, setting DISPLAY and running BaseX on the server system

Re: [basex-talk] Somewhat unusual question

2017-02-25 Thread Liam R. E. Quin
a win even there; I heard from someone who experimented with devices that could send either JSON or EXI, and he was blown away at the performance improvement he got by switching to EXI. So you have to measure and experiment, too. best, Liam -- Liam R. E. Quin <l...@w3.org> The World Wide Web Consortium (W3C)

Re: [basex-talk] Somewhat unusual question

2017-02-24 Thread Liam R. E. Quin
On Fri, 2017-02-24 at 18:07 +, Kendall Shaw wrote: > For example, a program that regulates flow of water in a garden > sprinkler is probably not a good match for xquery and an xml > database. Funnily enough, sensors these days often report results using EXI, and an embedded XQuery engine might

Re: [basex-talk] xquery result limit

2016-11-11 Thread Liam R. E. Quin
On Fri, 2016-11-11 at 19:01 +0200, George Sofianos wrote: > So If I get it right, when I use [position() = 1 to 100], only the > first 100 results are calculated? or all 900.000 rows are calculated, > and I get the first 100 results? (imagine it is a complex query) Note that an order by clause

Re: [basex-talk] csv:parse in the age of XQuery 3.1

2016-09-11 Thread Liam R. E. Quin
't make use of capturing groups (there's no \1 or $1 or whatever), and so it doesn't need non-capturing groups, but in XPath and XQuery they are used. See e.g. https://www.w3.org/TR/xpath-functions-30/#regex-syntax Liam -- Liam R. E. Quin <l...@w3.org> The World Wide Web Consortium (W3C)

Re: [basex-talk] Improving performance in a 40GB database

2016-07-06 Thread Liam R. E. Quin
e book or not. or can you look at the generated query plan in more detail? Liam        -- Liam R. E. Quin <l...@w3.org> The World Wide Web Consortium (W3C)

Re: [basex-talk] Export database to SQL?

2016-03-02 Thread Liam R. E. Quin
.org/wiki/SQL_Module -- Liam R. E. Quin <l...@w3.org> The World Wide Web Consortium (W3C)

Re: [basex-talk] XProc 2 ...

2016-02-07 Thread Liam R. E. Quin
On Fri, 2016-02-05 at 09:46 +0100, Marco Lettere wrote: > Hi all, > sorry for the small OT but this sounds really interesting: > > http://lists.xml.org/archives/xml-dev/201602/msg1.html I hope not too off-topic; maybe I should have posted about it here too. Thanks! Liam -

Re: [basex-talk] Returning text matches

2015-12-10 Thread Liam R. E. Quin
e wore dark blue socks that day. could not return, He wore dark blue socks that day. (Yes, I should test it, sorry! but the docs should probably mention it. it was a big part of the XPath/XQuery Full Text design early on) Liam -- Liam R. E. Quin <l...@w3.org> The World Wide Web Consortium (W3C)

Re: [basex-talk] Optimizing Element Access By Attribute Value Matching

2015-04-13 Thread Liam R. E. Quin
On Mon, 2015-04-13 at 12:38 -0500, Eliot Kimber wrote: For large repositories an XQuery like //*[contains(@class, ' topic/topic ')] is going to be quite slow I took this use case to the XQuery XSLT Working Groups a year or two ago (Jirka added the DITA case - I was thinking of (X)HTML) and

Re: [basex-talk] xpointer

2015-04-08 Thread Liam R. E. Quin
On Wed, 2015-04-08 at 10:37 +0200, Jérôme Chauveau wrote: Unfortunatly, the id notation fails... xi:include href=plop.xml xpointer=element(myId)/ Are you validating against a DTD? If not, the ID-ness property won't be set... It might work if the document uses xml:id without DTD validation.

Re: [basex-talk] Apply variable argument list to anonymous function

2014-08-14 Thread Liam R E Quin
On Thu, 14 Aug 2014 13:42:24 +0200 Marc van Grootel marc.van.groo...@gmail.com wrote: I will try to come up with a simple but representative example this evening. Note, if you are proposing a change to the XQuery languuage itself, the XQuery WG and the XSLT WG are aware of limitations in our

Re: [basex-talk] Confusing error using GROUP BY

2014-03-22 Thread Liam R E Quin
On Sat, 2014-03-22 at 20:44 -0500, Charles Duffy wrote: I'd guess: let $speaker := $line/../SPEAKER/text()[1] A list of all text nodes that are the fist child of SPEAKER elements? Try ($line/../SPEAKER/text())[1] if you want the first text node in the list. Maybe you have a SPEAKER element

Re: [basex-talk] BaseX for noobs: C++ API ?

2014-01-06 Thread Liam R E Quin
On Mon, 2014-01-06 at 21:15 +0100, jean-marc Mercier wrote: Hello, I still can't connect to BaseX. I checked that I sent to the server exactly the same bytes than the C# connector that worked on my configuration. Is there any way to make the BaseX server echoing any input request on a

Re: [basex-talk] insert cause db error, often.

2014-01-02 Thread Liam R E Quin
On Fri, 2014-01-03 at 14:47 +0800, easy wrote: I lost faith almost. do insert doc continuously ,query often cause : [...] How are you starting BaseX exactly? How large is your database and how much memory are you giving the Java Virtual machine? Try giving it a lot more memory, to see if

Re: [basex-talk] thesaurus

2013-12-25 Thread Liam R E Quin
On Tue, 2013-12-24 at 21:52 +0200, Xavier-Laurent SALVADOR wrote: Hi, waiting for Christmas, i was playing with Basex. I had no problem for using a short Thesaurus i built a few days ago. But when i tried to use the extended one (26Mo), i get this error message. I see Christian has already

Re: [basex-talk] Serializing unescaped xml to string

2013-12-04 Thread Liam R E Quin
On Wed, 2013-12-04 at 19:59 -0800, Joe Templeman wrote: Hi all, Is there a way to output unescaped XML to a string for debugging purposes? In unittests we would like to output the XML returned when a test fails, here is my example: [...] || Got: ||

Re: [basex-talk] CDATA in xquery

2013-12-02 Thread Liam R E Quin
On Mon, 2013-12-02 at 15:29 -0500, Erol Akarsu wrote: I would like to generate CDATA of one xmk construct like this. [...] let $allfs := record name{$name}/name features ![CDATA[ h3Features:/h3

Re: [basex-talk] Referential Queries

2013-05-14 Thread Liam R E Quin
[I think this thread is getting further away from BaseX, and might belong on query-talk instead, but on the other hand the use of XQuery as a back-end for Web Apps is definitely on the increase] On Tue, 2013-05-14 at 11:14 -0600, James Wright wrote: Hello Again, If this is the wrong forum for

Re: [basex-talk] Question regarding BaseX support for id and idref

2013-05-13 Thread Liam R E Quin
On Mon, 2013-05-13 at 19:15 -0600, James Wright wrote: [...] I know the xml standard defines id and idref however I have not been able to find any documentation on these in BaseX or XML in general. For example does BaseX handle idiosyncrasies of id and idref or must I handle these in my

[basex-talk] full text with search term in a variable gives no matches

2013-05-12 Thread Liam R E Quin
The following query gives me no results: for $city as xs:string in (Paris, Cambridge, London, Oxford) return ( $city, count(/dictionary/letter/entry[.//p//text() contains text {$city}]), #xa; ) However, BaseX rewrites it to for $city as xs:string in (Paris, Cambridge, London, Oxford,

Re: [basex-talk] whitespace around comments

2013-04-13 Thread Liam R E Quin
On Fri, 2013-04-05 at 11:31 +0200, Dirk Kirsten wrote: So if you could point out some details as why this is not conforming behaviour, this would be interesting. It's a requirement in the XML Spec that the XML parser pass all whitespace back to the application. Some whitespace may be marked as

Re: [basex-talk] whitespace around comments

2013-04-12 Thread Liam R E Quin
On Fri, 2013-04-05 at 11:15 +0200, Michael Piotrowski wrote: On 2013-04-05, Michael Seiferle m...@basex.org wrote: chopping certainly *does* change the semantics--that's precisely why I've argued before that it shouldn't be on by default. Agreed, but Christian has already said it will be off

Re: [basex-talk] Config file and data dir (with BaseXServer in Java)

2013-03-25 Thread Liam R E Quin
On Mon, 2013-03-25 at 10:18 +0100, Christian Grün wrote: [...] or place a .basex file in the directory you are starting BaseX from (i.e., in the “current working directory”). Use extreme caution if you do this. Ideally the two files - ~/.basex and .basex - would be merged, both would be used.

Re: [basex-talk] How to update db online without closing application ?

2013-03-15 Thread Liam R E Quin
On Fri, 2013-03-15 at 11:12 +0530, Pratik Kharwade wrote: [...] While updating, the our application doesnt response till the updates are done. The user can't interact with the application. Some initial thoughts: The update should be done by a separate process or thread than the user interface

Re: [basex-talk] re-sort database

2013-03-13 Thread Liam R E Quin
On Wed, 2013-03-13 at 22:29 +0100, Christian Grün wrote: Hi Cerstin, [...] You could try to export your data and create a new database without updatable index structures; this could also speed up your updates. Maybe it even allows you to update all nodes in a single run. I already set

Re: [basex-talk] Debugger for Xuery

2013-03-08 Thread Liam R E Quin
On Wed, 2013-03-06 at 14:27 -0800, bhupesh patel wrote: Hello All, I am looking for any free/paid version of debugger for XQuery while using BaseX server. Can anyone point me to any resources you guys know of? There's some XQuery support in Oxygen, I'm told, although I haven't tried it; it

Re: [basex-talk] RestXQ parameter matching

2013-02-27 Thread Liam R E Quin
On Wed, 2013-02-27 at 10:58 -0500, Wendell Piez wrote: Because it matches on substrings not path segments, Apache Cocoon can do this and indeed it's very powerful. This is an area where I once tried to push for some standardization, and I still think defining a portable mechanism to map

Re: [basex-talk] Address already in use

2013-02-26 Thread Liam R E Quin
On Tue, 2013-02-26 at 18:13 +0100, Ludovic Kuty wrote: Did you try a netstat -nltp as root under Linux to see if something is listening on the port ? or (as root) lsof -i TCP:8984 which will list the process, if any. Also make sure that you're contacting the right host :) BaseX has a habit of

Re: [basex-talk] Not enough space

2013-02-22 Thread Liam R E Quin
On Fri, 2013-02-22 at 11:19 +0100, Christian Grün wrote: ..done (I went for Not enough pixels, as the text won’t be completely readable if the visible area is indeed too small). Yes, that's a big improvement, thank you! :-) Liam -- Liam Quin - XML Activity Lead, W3C,

Re: [basex-talk] Not enough space

2013-02-19 Thread Liam R E Quin
On Tue, 2013-02-19 at 19:55 +0100, Christian Grün wrote: Hi Shannon, Hi, whenever I choose to show the tree visualization, after a very long delay, Not enough space is displayed in that space--it's a small database the message simply indicates that there are too less pixels in your tree

Re: [basex-talk] problem keeping basexserver as an alive service

2013-02-17 Thread Liam R E Quin
On Mon, 2013-02-18 at 00:52 +, Richard Alexander Castro Mamani wrote: Hello, I am having problems keeping the basexserver service alive, [...] richard@0113:~$ basexserver BaseX 7.0.2 [Server] Server was started. Could you tell me what I am doing wrong?. What you are doing wrong is

Re: [basex-talk] Performance with fulltext searches

2013-01-23 Thread Liam R E Quin
count(/log/logentry[ ./paths/path/text() contains text trunk and not( (./paths/path/text() contains text tags) or (./paths/path/text() contains text branches) ) ]) what about let $trunk := /log/logentry[ paths/path/text() contains text trunk], $tags :=

Re: [basex-talk] Query slow via PHP

2013-01-10 Thread Liam R E Quin
On Thu, 2013-01-10 at 16:13 +, Mayer, Jonathan wrote: Running: XQUERY db:open('project', 'Links.xml') From the command line displays the file in 4.5 seconds Is this on a 1MHz 286? :D How many megabytes is the file? The usual trick is to put the document in the database so you don't

Re: [basex-talk] how to pass raw bytes intact?

2012-12-31 Thread Liam R E Quin
On Tue, 2013-01-01 at 10:52 +0800, jida...@jidanni.org wrote: I'm just trying to find a way to remove the wbr/ injected here, $ echo 'A你好/A'|perl -pwle 's![^[:ascii:]]!$wbr/!'|qprint -e A=E4wbr/=BD=A0=E5=A5=BD/A I don't have a qprint command on my system, so I'm not sure what's going on for

  1   2   >