:)
Thank *you* in advance!
Kristian
04.03.2015 20:38, Christian Grün kirjutas:
Hi Kristian,
could you please provide us with some self-contained example code?
Thanks in advance,
Christian
On Tue, Mar 3, 2015 at 11:44 AM, Kristian Kankainen
krist...@keeleleek.ee wrote:
Hello!
I try
be the source of this error? How should I continue debugging
this?
Best wishes
Kristian Kankainen
) )
) {
function-body /
};
/code
I get error XPST0003 Expecting ')' found '('.
Best regards
Kristian Kankainen
Hello!
I have BaseX 8.11 running on Tomcat and need to execute some commands or
XQuery for deploying xml files from elsewhere. I allready have a XQuery
function for this and can do it on my local setup using for example the
basexclient.
My problem is that the Tomcat is available only
Hi!
I got this result
```static-base-uri() =
file:/opt/bitnami/apache-tomcat/webapps/BaseX811/hans.xq```
which is the name of the file I included this temporary function for you
```
(:~
: Temporary test for debugging BaseX on Tomcat for CG on the list.
: @deprecated
:)
declare
updating
There are two problems as I see it (the first one is minor and the
second one is the answer to what you asked):
1) web:redirect() doesn't work with absolute paths, they instead strip
off the Tomcat webapp name from the url.
For example, my BaseX lives in a webapp called BaseX811, so the base-url
is hierarchical and
xs:positiveInteger is a subcase of xs:integer, I don't really see a
problem of this kind of automatic casting of integer literals if they
qualify the cast.
Can you give any reflection on this?
Best regards
Kristian Kankainen
I want to add a big (150mb) xml file as a resource to my database. The
machine is behind a reverse proxy, so the easiest way would be through
the DBA. I have the file locally on the same machine I run Tomcat on,
but when I run the db:add() query, I get a timeout (504 Gateway Time-out
504
Hello!
This is not the most appropriate place to ask, but I'd just like to get
a hint of the overall feeling of it. Since the XInclude support is
relied upon that of Java, is there any hope it will become complete some
day? I'd be satisfied with answers like I'm positive the support will
be
couldn’t see immediately how to fix this
(adding another %rest:path('/dba/') didn’t seem to work. But then I don’t know
if the regex support affects that?
Interested to hear others’ experience.
Regards, James
Message: 1
Date: Mon, 01 Jun 2015 18:57:06 +0300
From: Kristian Kankainen krist
I don't have any TEI documents at hand, but maybe something like:
/tei:TEI/tei:text/tei:body
//*[starts-with(@xml:lang, san)]
//(tei:entry | tei:re)
[./tei:form/tei:orth = arci]
That would select (I believe) all elements with @xml:lang starting with
san that have as a
Hello Ioan and rest!
My understanding is that you want to achieve:
* one shared BaseX with databases for all your webapps
* ease of maintaining the webapps separately, e.g having all relevant
code to one webapp in one place
We try to achieve something similar, but we haven't come far yet and
Hello!
I noticed that I get different results if I visit the following two urls:
http://myhost.domain/webappname/
http://myhost.domain/webappname
The only difference is the trailing slash. My RESTXQ has a path for '/'
but not for ''. My setup is with Tomcat. The difference seems to be the
today! It shouldn't happen anymore that the database paths of multiple
instances are mixed up. Your feedback on the latest snapshot [1] is
welcome.
Have a nice evening or even weekend,
Christian
[1] http://files.basex.org/releases/latest/
On Fri, May 29, 2015 at 11:55 AM, Kristian Kankainen
krist
28.05.2015 09:03, Kristian Kankainen kirjutas:
I think it has to do with Tomcat webapps' context settings [1]. It
states that there is some kind of default context that will be used if
no other contexts are matched. I'm reading it now and will try some
experimenting.
I also note that my Tomcat setup
I think it has to do with Tomcat webapps' context settings [1]. It
states that there is some kind of default context that will be used if
no other contexts are matched. I'm reading it now and will try some
experimenting.
I also note that my Tomcat setup is not configured for multiple
(dbname, filename.html, /file/path/filename.html)
I'm running the latest war file on Tomcat.
Best wishes
Kristian Kankainen
Hello!
I have a simplistic search path as %rest:GET
%rest:path(search/{$query}) for an application. It all works fine with
ASCII query string, but I can't figure out how to decode the string when
It contains utf-8 characters.
Best wishes
Kristian K
please be patient.
On 08/28/2015 12:31 PM, Kristian Kankainen wrote:
Hello!
I have a simplistic search path as %rest:GET
%rest:path(search/{$query}) for an application. It all works fine
with ASCII query string, but I can't figure out how to decode the
string when It contains utf-8 characters
, Kristian Kankainen wrote:
Hi
Nearly related. I sometimes think of wanting to learn to package
software for Fedora. Who should I talk with about a responsibility
like this?
I guess the workflow would be quite the same for Ubuntu and other
Linuxes, so probably it could be automated to quite an extent
Hello!
I'm writing an article about my work on retro-digitizing a dictionary.
The work has been a very enjoyable process using BaseX and Xquery since
an original XML of the printed dictionary could be retrieved from the
print files. If some one else on this list has experience of similar
Maybe it would be wise to change the documentation or specify what
exactly is meant by the phrase "This command can be used to run several
commands in a single transaction". Clearly it can be understood in a
wrong way.
Cheers
Kristian
20.05.2016 09:59 Dirk Kirsten kirjutas:
Hello Genneva,
Hello!
Today I noticed that I can successfully use the following regular
expression inside XQuery but the same regexp fails when using it in the
GUI's searchboxes (the ones appearing when pressing Ctrl+F) when
enabling regular expression search.
This is the regular expression and probably
In XQuery you could use the function in-scope-prefixes together with the
function namespace-uri-for-prefix.
Best
Kristian K
17.07.2016 14:56 buddyonweb-softw...@yahoo.com kirjutas:
Is there a way to get a list of the namespaces declared/used?
I am wanting to right a function that does a
om Java collations won’t be detected
automatically, but I might be wrong ;) Did you try something similar
with other query processors (most notably, Saxon)?
If it’s possible for you to provide me with a little self-contained
example, I could have a second look.
Cheers
Christian
On Tue, Jul 5, 2016 a
collation
Best regards
Kristian K
[1] https://blogs.oracle.com/kah/entry/user_defined_collation_in_apache
05.07.2016 13:58 Kristian Kankainen kirjutas:
Hello!
In a lexicographic application I need a custom collation for ordering.
The documentation for XML, Xquery and XSLT all somehow state
Hello!
When using BaseX on a server, I only need to add JAR files to the bin/
folder. But can someone point me where I should put the JAR files when I
want to reach them from the BaseX GUI. I use the rpm packaged for Fedora 22.
I have limited internet access currently ... that's the reason
I tried my best at
http://docs.basex.org/wiki/Serialization#Character_mappings
Cheers
Kristian
20.01.2017 18:54 Christian Grün kirjutas:
Hi Kristian,
This was informative and I'd like to add this example to the BaseX wiki.
Could I add it somewhere on the page about Serialization?
Edits
Hello Marco and all,
There was a similar question asked on the xquery-talk mailing list two
years ago: "what are the prime factors behind the resistance to adopt
XQuery or it's derivatives". Here's a direct link to that thread [1].
Around the same time there was many similar topics about
Hi!
This was informative and I'd like to add this example to the BaseX wiki.
Could I add it somewhere on the page about Serialization?
http://docs.basex.org/wiki/Serialization
Thanks
Kristian K
19.01.2017 17:04 Christian Grün kirjutas:
In XQuery, you can specify entities via output
The rewriting rules are not applied when prefixing the namespace with
"java:". Perhaps there's a typo in you mail.
Perhaps try
import module namespace m = "java:opennlp.tools.cmdline.CLI";
Cheers
Kristian K
04.03.2017 19:14 meumapple kirjutas:
Hi Christian,
I have read the page. My
You only provide a path to file:write whichbgets overwritten by each for-loop, so you end up with just one file with the contents of the last run of the for-loop. You should instead provide a file name for each file you want to write.
6. juuli 2017 1:42 PM kirjutas kuupäeval Dharmendra Singh
> query
>
> Hope I understood the problem :) Else return 'sorry'
>
> 2017-06-27 16:57 GMT+02:00 Kristian Kankainen
<krist...@keeleleek.ee <mailto:krist...@keeleleek.ee>>:
>>
>> Hello
>>
>> I have documents
ndexed text back
to the source document a requirement in your application?
Thanks,
Vincent
From: basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de]
On Behalf Of Kristian Kankainen
Sent: Friday, June 30, 2017 5:27 PM
To: Xavier-
Yes, you are correct.
During index building, only Häuser is
lemmatized, thus
//div[text() contains text { "houses","Häuser" }
using language 'de'
using stemming
]
returns only the element with Häuser. But a query without stemming and
language:
//div[text() contains text {
Hi Christian,
To refine the proposal. It would be great if the full-text index could
be set up to consider xml:lang attributes in the following way:
* If STEMMING is set to true, then the input to the stemmer should be
filtered by matching the xml:lang and the LANGUAGE option. Text that is
Hello
I have documents with text in several languages. When creating a
database in BaseX I can choose *one* language for stemming for the
full-text search index. Is there a way BaseX could lemmatize according
to the elements xml:lang attribute?
Best regards
Kristian K
Items returned by path expressions will always be in document order as I understood the specs.
24. juuni 2017 5:03 PM kirjutas kuupäeval Xavier-Laurent SALVADOR :Hi Bram,Here is my experience : for what I saw in all our dictionnaries, the process order is always
Hi all!
Is there any way to make BaseX run in parallel on a cluster? Through
school I have access to several clusters and I got interested in trying
out if BaseX can take advantage of parallel computing.
I know my question is vague. To try to be more specific - can I compile
BaseX with some
Hi Christian,
Hi Kristian,
* each used data set in my query as a separate BaseX database instance
…as long as the databases are on different disks/drives.
so that the computations would thus run separately (in parallel) in each of
the instances?
What kind of computations do you want to
Maybe you need to declare a high enough version of XQuery to use in the
query prolog?
Best regards
Kristian K
04.09.2017 15:31 Omar Siam kirjutas:
Hi!
I just tried to use ther Simple Map Operator while writing an XQuery
in oXygen XML and executing the query using a client/server BaseX
A simple question - did I correctly understand, that when running a script,
then each separate command will be an isolated transaction? And that it is not
the case that the whole script is treated as a single transaction?
So that, let's say I have script with three updating commands (or
This is great, thank you. Is there any chance this information will be added to the docs wiki?
Cheers
Kristian K
13. dets 2017 1:19 PM kirjutas kuupäeval Marco Lettere :
Hi all,
just a bit of a wrap up in case someone could use it in the future
Hello
I encountered some strange things when tokenizing text. Sample runnable
code is added below. Here is my list of problems:
1) the regular expression "(\.){3}" doesn't match the same as
"(\.\.\.)". Shouldn't they be equal?
2) a very annoying whitespace is placed text to the newline of
I don't know if it is the optimal solution in BaseX, but what functionality
concerns, you can look at this functx function:
http://www.xqueryfunctions.com/xq/functx_path-to-node-with-pos.html
For BaseX specifics, maybe this page can help you (sorry but I am not sure):
You need to use xs:float or xs:double instead of xs:decimal to be able to use
the 'e' or 'E' as the exponent separator.
Br,
Kristian K1. nov 2017 13:18 kirjutas kuupäeval Marco Lettere
:
>
> Hi all,
>
> I thought of asking this in parallel of hacking my own parsing
Nachricht-
Von: basex-talk-boun...@mailman.uni-konstanz.de
[mailto:basex-talk-boun...@mailman.uni-konstanz.de] Im Auftrag von
Kristian Kankainen
Gesendet: Freitag, 1. Dezember 2017 17:30
An: BaseX <basex-talk@mailman.uni-konstanz.de>
Betreff: [basex-talk] Scripting and modules
Hello,
I need
I have a setup using rsync to keep database directory copies synchronized with
a master over the network. It works very well for me.22. mai 2018 10:16
kirjutas kuupäeval Alexander Holupirek :
>
> Hi Martin,
>
> export/import is one option. backup/restore another [1].
> And a
Hi
I wanted to download a newer version of BaseX, but wasn't able to do so
because the host is unreachable:
$ wget http://files.basex.org/releases/9.0.2/BaseX902.zip
[...] Name or service not known
And my old versions of BaseX (zip-edition of 8.67 and 9.0) doesn't want
to start anymore:
Hi Christian,
The server is up now. Since I wasn't able to start the existing BaseX
while the host was down, maybe there are some GUI start-up heuristics to
be thought over. I haven't seen this problem while running without any
internet connection, but now, when having connection but the site
Hello!
I need to redirect the content of a file into a program using stdin. In
my shell I would do like this (silly example):
wc < somefile
Is this possible to do with proc:system? Giving "<" as an argument to
the command doesn't work:
proc:system("wc", ("<", "somefile")) outputs
:-)
The Data Format Description Language DFDL is a way to describe any
textual or binary data format with a XML Schema. DFDL then provides the
machinery and creates automatically a parser and unparser (eg
serializer) for this data format.
DFDL makes it thus possible to read, modify and
Hello,
I started writing a small wrapper module for using DFDL with XQuery in
BaseX. For this I simply use system calls. This is not an elegant way of
doing it, so I wonder, has anyone else had any experience with using
DFDL or even integrated it in a more sustainable way?
My project will
I changed the encoding option to "latin1" and now proc:system works fine.
Does this mean my system's encoding is latin1?
Best regards,
Kristian K
14.01.2018 09:28 Kristian Kankainen kirjutas:
Hello all,
I am running a system command with proc:system. The command should
,
Christian
[1] http://files.basex.org/releases/latest/
On Sun, Jan 14, 2018 at 8:56 AM, Kristian Kankainen
<krist...@keeleleek.ee> wrote:
I changed the encoding option to "latin1" and now proc:system works fine.
Does this mean my system's encoding is latin1?
Best reg
You could use the html module to convert the html into xml. Read about the html module here: http://docs.basex.org/wiki/HTML_Module
Br
Kristian K
23. veebr 2018 11:31 AM kirjutas kuupäeval nikos dimitrakas :
There seems to be a problem when using baseX to
create html with
Hello
I once again ran into giving the arguments in wrong order to the
db:replace function. The docs state, that "For historical reasons, the
order of the 2nd and 3rd argument is different to db:add and db:create".
Since XQuery is typed, wouldn't it be possible to add to new "cosmetic"
I downloaded both the stable and latest release, they both give me the
same error message:
java.awt.HeadlessException
at sun.awt.HeadlessToolkit.setDynamicLayout(HeadlessToolkit.java:294)
at org.basex.BaseXGUI.init(BaseXGUI.java:113)
at org.basex.BaseXGUI.(BaseXGUI.java:67)
at
t;
OpenJDK Runtime Environment (build 1.8.0_161-b14)
OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
Best regards
Kristian K
04.03.2018 13:29 Kristian Kankainen kirjutas:
I downloaded both the stable and latest release, they both give me the
same error message:
java.awt.Headles
lar messages are shown when I try the other commands.
My system has OpenJDK:
> $ java -version
> openjdk version "1.8.0_161"
> OpenJDK Runtime Environment (build 1.8.0_161-b14)
> OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
Best regards
Kristian K
0
Hello,
XQuery is a lovely language and together with BaseX it is very lovely.
But now, for a project that need Python, I find difficulties
understanding the general workflow communicating between BaseX and
Python.
My basic situation boils down to 1) execute a query on BaseX that
returns a
Hi Liam,
Maybe you could translate those tag contents into the
corresponding unicode symbols. At least I would hope that text
searching algorithms deal with that kind of expansion already, that
they match vii with Ⅶ and ⅶ.
Best regards,Kristian Kankainen
Ühel kenal päeval, E, 28.09.2020 kell 21
the returned sequence will be identical.
Best regards,Kristian Kankainen
Ühel kenal päeval, N, 26.11.2020 kell 02:28, kirjutas Giuseppe G. A.
Celano:
> Unfortunately this does not work because, if the second sequence has
> only one 3 (and the first has two 3), I will still get two 3, while I
&g
s. Maybe it is possible to pipe the content of the
fetch:binary to a system command for guessing the encoding, and use this to
read in the csv?
Best regards,
Kristian Kankainen
h/to/file.csv'
> let $encoding := proc:system('chardetect', $file)
> let $string := fetch:text($file, $encoding)
> return csv:parse($string)
>
> Hope this helps,
> Christian
>
> [1] https://www-archive.mozilla.org/projects/intl/chardet.html
>
>
>
>
&
Hi Jonathan,
Have you tried setting the media-type or method parameters to application/json
instead of only the produces parameter, as explained here [1].
[1] https://docs.basex.org/wiki/REST#Content_Type
<https://docs.basex.org/wiki/REST#Content_Type>
Best regards,
Kristian Kan
quit from the menu and start the GUI again, then the values have been reverted
to the old and wrong ones.
Is there a way I can change these paths?
Best regards,
Kristian Kankainen
saved.
Thank you very much, Christian!
Best regards,
Kristian Kankainen
> On 13. Dec 2021, at 14:17, Christian Grün wrote:
>
> Hi Kristian,
>
>> If I choose the correct paths to the database and repository folders and
>> choose quit from the menu and start the GUI aga
Thank you Martin! I used output method "xhtml". After changing it to "html" the
string was not escaped any longer. Great!
Best regards,
Kristian Kankainen
> On 7. Dec 2021, at 11:27, Martin Honnen wrote:
>
>
> Am 07.12.2021 um 10:00 schrieb Kristian Kankainen:
((
'd3.select("#graph").graphviz().renderDot(',
"'digraph {a -> b}'",
');'
), out:nl())
}
}
But it doesn't work as the > character gets replaced with its corresponding
HTML entity . Is there a way to circumvent this behaviour?
Best regards
Kristian Kankainen
ecord
I have highlighted the one line that differs between them, e.g the first uses
the positional predicate in a path expression and the second uses it in a where
clause.
Best regards,
Kristian Kankainen
of the
$path-to-new-item that gives most room for answers. Do you want to have
everything in one file or many files?
Best rergards,
Kristian Kankainen
[1]: https://docs.basex.org/wiki/XQuery_Update#Pending_Update_List
> On 22. Jul 2021, at 16:33, Jonathan Robie wrote:
>
> I would like t
Hi,
Did you take a look at the Index module, especially the facet function [1]?
[1]: https://docs.basex.org/wiki/Index_Module#index:facets
Best regards,
Kristian Kankainen
> On 6. Jun 2022, at 02:12, Liam R. E. Quin wrote:
>
> On Sun, 2022-06-05 at 21:45 +, Majewski, Steven Denn
73 matches
Mail list logo