On Sat, 2012-03-10 at 22:56 +, David Lee wrote:
There is, but you have to call XQuery natively instead of via the
command line
??!?
you can use string-join( your query here, #xa;)
or you may be able to use serialization options from the command line.
Lia
-Original Message-
On Sun, 2012-03-11 at 10:14 +0800, jida...@jidanni.org wrote:
Haven't had to make my own newlines since using those Control Data
computers back in the 80's. But if you insist...
XQuery is not really a line-oriented language. I don't agree with you
that it should be as easy as seq 1 3 any more
On Tue, 2012-12-11 at 17:07 +, Thomas Kaltofen wrote:
I leave the server running for several hours without touching the
database at all (e.g. over the night).
Most servers (especially Unix/Linux/Solaris) schedule checks overnight
that often visit every file on the system, and the
(1) The sample perl files and the perl module implementing the API
mention a readme file that explains the methods; does anyone know where
one might find such a readme file? It might answer my other question...
(2) if there's an error in my query and I catch the exception, the
message I get is
On Thu, 2012-12-13 at 18:30 +0100, Christian Grün wrote:
Hi Liam,
(1) The sample perl files and the perl module implementing the API
mention a readme file that explains the methods; does anyone know where
one might find such a readme file? It might answer my other question...
The
On Thu, 2012-12-13 at 23:11 +0100, Christian Grün wrote:
Liam,
the bug has been fixed [1]; feel free to check out the latest version [2].
Thank you! Confirmed as fixed.
Liam
--
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books:
How do I use SERVERHOST in ~/.basex (or elsewhere) to get basex to
listen on the given PORT only on localhost (127.0.0.1) and not on
externally-visible IP addresses?
Setting SERVERHOST and HOST to localhost does not seem to accomplish
this.
Thanks!
--
Liam Quin - XML Activity Lead, W3C,
On Fri, 2012-12-21 at 21:54 -0500, Liam R E Quin wrote:
How do I use SERVERHOST in ~/.basex (or elsewhere) to get basex to
listen on the given PORT only on localhost (127.0.0.1) and not on
externally-visible IP addresses?
Setting SERVERHOST and HOST to localhost does not seem to accomplish
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
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
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 :=
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
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
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,
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
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
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
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
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.
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
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
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,
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
[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
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
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: ||
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
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
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
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
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
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
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.
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)
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
-
.org/wiki/SQL_Module
--
Liam R. E. Quin <l...@w3.org>
The World Wide Web Consortium (W3C)
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)
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
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)
'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)
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
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
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
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
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
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
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",
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
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)
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
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
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
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,
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
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
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
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
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
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
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 :=
>
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
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?
{
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=.+}")
>
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
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,
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;
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
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...
>
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
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
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
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/
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
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
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)
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
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
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
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
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
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
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
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
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
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.
--
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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 (
1 - 100 of 169 matches
Mail list logo