sor, e.g. Saxon, in the
lib/custom directory, e.g. saxonpe.jar and of course make sure the stylesheet has
version="2" on the xsl:stylesheet element.
liam
--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische Akademie der Wissenschaften |
, I felt knocked out myself. Is
there /anything/ that I understand?)
--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische Akademie der Wissenschaften | Austrian Academy of Sciences
Stellvertretende Behindertenvertrauensperson | Deputy representative f
function in a way
that’s not completely implementation-defined.
Hope this helps,
Christian
--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische Akademie der Wissenschaften | Austrian Academy of Sciences
Stellvertretende Behindertenvertrauensperson
an Empty.VALUE const.
Am 11.01.2024 um 12:39 schrieb Martin Honnen:
Am 11.01.2024 um 12:37 schrieb Omar Siam :
I get: Unknown function: fn:stack-trace() when I use stack-trace().
Ah, sorry, it looks like it is not yet implemented. Wait for Christian
to give you hopefully some better info t
report
functionality.
Am 11.01.2024 um 12:19 schrieb Martin Honnen:
Am 11.01.2024 um 12:15 schrieb Omar Siam :
Hi,
Until 10.6 one could find the stack trace of an error in
$err:additional. This feature is now gone from BaseX and the
documentation.
I made my life much easier with
e how to get this functionality back?
Best regards
--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische Akademie der Wissenschaften | Austrian Academy of Sciences
Stellvertretende Behindertenvertrauensperson | Deputy representative for
disabled pe
@gmail.com
-
"If patience is a virtue, and ignorance is bliss,
you can have a pretty good life
if you're ignorant and willing to wait"
-
Best regards
--
Mag. Ing. Omar Siam
Austrian Center for Digita
be detected
at compile time that an expression will never yield results, it can be
simplified and rewritten to an empty sequence, no matter if a
referenced database may possibly exist at runtime.
Hope this helps,
Christian
Omar Siam schrieb am Do., 23. März 2023, 14:49:
Hi,
Ei
h[@attr="i_am_an_attr"]
Am I missing something?
Best regards,
--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische Akademie der Wissenschaften | Austrian Academy of Sciences
Stellvertretende Behindertenvertrauensperson | Deputy representati
. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische Akademie der Wissenschaften | Austrian Academy of Sciences
Stellvertretende Behindertenvertrauensperson | Deputy representative for
disabled persons
Bäckerstraße 13, 1010 Wien, Österreich | Vienna, Austria
Thank you,
Loren
Best regards
--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische Akademie der Wissenschaften | Austrian Academy of Sciences
Stellvertretende Behindertenvertrauensperson | Deputy representative for
disabled persons
Bäckerstraße 13
g any problems.
Didn't do a formal test either, works for me as described.
[...]
— Steve M.
Best regards
--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische Akademie der Wissenschaften | Austrian Academy of Sciences
Stellv
-oeaw/openapi4restxq/blob/master_basex/swagger-ui.xqm#L18-L120
[2] https://github.com/acdh-oeaw/vicav-app/blob/master/http.xqm#L9-L158
--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische Akademie der Wissenschaften | Austrian Academy of Sciences
ueuedThreadPool.runJob(QueuedThreadPool.java:883)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
at java.base/java.lang.Thread.run(Thread.java:829)
If I don't use (# db:enforceindex #) {} it works as expected
Best regards
--
Mag. Ing. Omar
Am 25.05.2022 um 10:37 schrieb Andy Bunce:
> a bottleneck shows in the way BaseX handles file access.
I wonder if this issue is relevant?
https://github.com/BaseXdb/basex/issues/1574
/Andy
Yes that is exactly the part I suspect to slow things down.
--
Mag. Ing. Omar Siam
Austrian Cen
/ekimbernow/basex-orchestration
This is a distant relative of my utils module
https://github.com/acdh-oeaw/vleserver_basex/blob/main/vleserver/util.xqm .
Would you be interested in developing such functions together?
Best regards
--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities
part and try the new caching
module. Maybe that is faster.
Is there a cache for XQuery code? I work with small snippets and can
most of the time choose if something is a literal or passed as an input
variable.
Best regards
--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and
/basex-core/src/test/java/org/basex/io/random/DataAccessTest.java
[23]
https://github.com/neo4j/neo4j/blob/4.4/community/native/src/main/java/org/neo4j/internal/nativeimpl/LinuxNativeAccess.java
Best regards
--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
dules soon, just have to prepare some
workshop right now.
Best regards
--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische Akademie der Wissenschaften | Austrian Academy of Sciences
Stellvertretende Behindertenvertrauensperson | Deputy representati
eaw/api-problem4restxq/blob/master/api-problem/api-problem.xqm#L487
Best regards
--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische Akademie der Wissenschaften | Austrian Academy of Sciences
Stellvertretende Behindertenvertrauensperson | Deputy represe
[14] https://github.com/acdh-oeaw/vicav-app/tree/master/cypress/integration
[15]
https://github.com/acdh-oeaw/vleserver_basex/blob/main/.github/workflows/build-vleserver_basex.yml
Best regards
--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische
ere
Best regards
--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische Akademie der Wissenschaften | Austrian Academy of Sciences
Stellvertretende Behindertenvertrauensperson | Deputy representative for
disabled persons
Wohllebengasse 12-14,
Hi Rob,
What do you actually want to achieve here?
If you want to compile xquery files to protect your IP I have no idea
how to do that. Saxon has such a feature in a limited way if you buy PE
or EE if I remeber correctly. You can call Saxon using xslt:transform.
I do a lot of docker stuff and I
/activation/activation/1.1.1/activation-1.1.1.jar
to the lib or lib/custom folder should work to.
Best regards
Omar Siam
Am 25.08.2021 um 13:57 schrieb dudz...@yahoo.com:
Dear all,
I am trying to use a basex Email module
http://files.basex.org/modules/org/basex/modules/email/EMail.jar. I
Hi,
I switched to https://www.azul.com/downloads/zulu-community/ for Windows
and Mac shortly after Oracle announced their license change. On Linux I
use the built in JDK. Tried Zulu Community on Linux as container for
some legacy Java that had to be run or built with some of the older
versions 8 a
person who might do something about the problems.
Best regards
Omar Siam
Am 17.03.2021 um 19:06 schrieb Joris Lambrecht:
Thanks for the perspective. Here's what i hope comes across as a polite
rant as a reply. It aches me and i notice it aches others everywhere.
I spent 20 years on and off
on BaseX.
Best regards
Omar Siam
seems the maven
distribution here, things are more complicated if they work at all.
You can look at the start scripts (probably shell scripts) and compare
them to what the ZIPed versions do.
Perhaps you can try the ZIP version first before searching any further.
Best regards
Omar Siam
collection//*:s[.//text() contains text {$query_string}]
let $count_hits := count($hits)
return
{
if $count_hits <= 50 then
{for $hit in $hits
return
{$hit}
else
???
}
Thanks for any advice.
Best regards
Guenter
--
Mag. Ing. Omar Siam
Austri
/Validation_Module#XML_Schema_Validation
I downloaded the Xerces2 Java 2.12.1, but could not find the following
jar files: org.eclipse.wst.xml.xpath2.processor_1.2.0.jar,
cupv10k-runtime.jar
Thank you
--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische
In the XQuery data model doc() do not change while a query is evaluated.
So a doc() read once can in will be cached for that query. You may get
what you want if you use %non-deterministic.
The built in random functions work like that.
Am 03.06.2020 um 18:26 schrieb Leo Studer:
Hello
I try to
e function.
Best regards
Omar Siam
Am 11.05.2020 um 18:31 schrieb Christian Grün:
Hi Omar,
Your question was if multiple mime types need to be specified via a
single or multiple annotations, right?
I have added some examples to the Content Negotiation section; I hope
it’s more comprehensible now.
hink that lead me to belief that to specify
multiple possible responses of different mime types you repeat
%rest:produces.
Rereading the section these two example annotations could also ilustrate
the use of %rest:produces in two different functions.
Can you please clarify this if possible?
Best regards
Omar Siam
If you pass some XML in to your query as text (because that is the only
thing you can have inside an attribute) you have to do a parse-xml (or
parse-xml-fragment if its more like a sequence) and insert that.
Am 21.04.2020 um 12:33 schrieb Ramzi Hammouda:
Hello,
First, thanks for the effort y
That may not answer your question but I create DBs using a dummy xml und
replace the whole (and only) file later:
db:create("`{$new-db-name}`", document {<_ xmlns="">},
"`{$new-db-name}`.xml", $index-options)
Am 20.04.2020 um 12:55 schrieb Ramzi Hammouda:
Hello BaseX team,
This may sound s
Hi Christian,
I deployed the latest beta and I am quite happy with the performance and
all my problems seem to be fixed. I did not test without index yet.
Maybe I have time to do this later this week with a bigger dataset.
Best regards
Omar Siam
Am 09.02.2020 um 11:20 schrieb Christian
st regards
Omar
Am 06.02.2020 um 14:11 schrieb Christian Grün:
Looks we are getting closer. I have attached a little command script;
do you think you can adapt it such that it captures the potential bug?
On Thu, Feb 6, 2020 at 1:51 PM Omar Siam wrote:
The following XQuery run in the GUI
were not reported
before. This is temporary I hope?
Best regards
Omar
Am 06.02.2020 um 14:11 schrieb Christian Grün:
Looks we are getting closer. I have attached a little command script;
do you think you can adapt it such that it captures the potential bug?
On Thu, Feb 6, 2020 at 1:51 PM Oma
The following XQuery run in the GUI (pulled from github and built a few
minutes ago from source)
ft:tokens('testdata'),
ft:search('testdata', 'r.ḥ', map {'wildcards': true()})/.., '--'
,collection('testdata')//*[text() contains text 'r.ḥ' using wildcards]
yields
rwḥ
--
with co
I just tried to use the gh1800 test to replicate my problem and it does
not show there. It fails using the GUI.
Am 06.02.2020 um 13:35 schrieb Christian Grün:
Hi Omar,
Yes, that seems to solve the problem partly. Using wildcards now yields the
same result as no wildcards.
Glad to hear.
Bu
that occurred with the wildcards option [1]. Could you have a look at
the latest snapshot [2] and report back to us if it resolves the issue?
Thanks in advance,
Christian
[1] https://github.com/BaseXdb/basex/issues/1800
[2] http://files.basex.org/releases/latest/
Omar Siam mailto:omar.s...@oe
Hi,
I just came across this strange behavior
collection('dc_tunico')//*[text() contains text 'rwḥ' using wildcards]
yields nothing vs
collection('dc_tunico')//*[text() contains text 'rwḥ']
yields the correct result
http://www.tei-c.org/ns/1.0"; type="root"
xml:lang="ar-aeb-x-vicav">rwḥ
http
Hi Ben
This will be problematic with real world docx files at least. The text
in there can be split into numerous tags disregarding any word
boundaries depending on the edit history of the document. As BaseX has
no means to ignore inline elements in the index this will always be a
rather slow
Hi,
I just searched for a way to turn off certificate verification for the
HTTP Client xquery module. Turns out I have to use Client/Server
Architecture option IGNORECERT. Although that is somewhat logical I miss
a clear statement in the docs.
Thanks for the great software!
Omar Siam
Hi,
I have trouble seeing the original second query.
But if I got it correct then the problem is that to have BaseX
automatically rewrite for indexing you have to supply the DB you want to
search in as string literal. That is db:open("DB") and not let $db :=
"DB" db:open($db). Or for with mul
Hi Fabrice,
No but I will stick with xml:space='preserve' where I need it. But
thanks for the info.
Best regards
Omar
Ok so I remembered correctly. Can I pass this in a REST PUT operation?
Am 09.12.2019 um 16:53 schrieb Martin Honnen:
On 09.12.2019 16:51, Omar Siam wrote:
Probably there is an option
(CHOP?) that one can set to tell BaseX not to trim whitespace at the
edges of text nodes.
Yes, see http
great respect for any good, safe and fast
implementation multi threading file access implementation. I fear no one
did one yet for BaseX.
Best regards
Omar Siam
Am 08.12.2019 um 17:04 schrieb Markus Wittenberg:
Hi Giuseppe,
as long as the files are not on physically different disks, you
@xml:space="preserve" to the outermost element where this is necessary.
That's how I do it.
test for me
Best regards
Omar Siam
Am 09.12.2019 um 16:32 schrieb Arjan Loeffen:
Dear BaseX People,
after many (happy!) projects using BaseX I have found that
curl -i -X PUT --basic --use
think this is quite an improvement.
Best regards
Omar Siam
Am 19.11.2019 um 01:28 schrieb Christian Grün:
The snapshot has been updated.
Is it working now?
On Mon, Nov 18, 2019 at 6:41 PM Omar Siam wrote:
I just wanted to try gzip http compression and downloaded the current build
BaseX9
I just wanted to try gzip http compression and downloaded the current
build BaseX93-20191116. The option is not there anymore. What happened?
Best regards
Omar Siam
nstance of
attribute(xml:id)]
order by $key/../@vutlsk ascending
where starts-with($key/../@xml:id, 's800')
return db:open-pre($key/../@db_name, $key/../@pre)
only takes 140 ms for about 3900 entries. Unfortunately
starts-with(@xml:id, 's800') is not optimized in such a way automatically.
Best regards
Omar Siam
g.
Using this code
declare namespace _ = "https://www.oeaw.ac.at/acdh/tools/vle/util";;
let $all := collection("_qdb-TEI-02__cache")//_:dryed[@order='ascending'
and not(@label)]/tokenize(@ids)
return db:attribute("_qdb-TEI-02__cache", subsequence($all, 1000, 25))[.
instance of attribute(ID) or . instance of
attribute(xml:id)]/..!db:open-pre(./@db_name, ./@pre)
showing a page takes about 500 ms.
Best regads
Omar Siam
02__cache", 'ascending-archiv_cache.xml', <_:dryed
order="ascending" label="archiv"
ids="{string-join($sorted-ascending-archiv, ' ')}"/>),
db:replace("_qdb-TEI-02__cache", 'descending-archiv_cache.xml', <_:dryed
order="descending" label="archiv"
ids="{string-join($sorted-descending-archiv, ' ')}"/>))
This takes 30 s to about a minute depending on the subsequence I choose.
I did experiments with doing multithreading and not. Multiple jobs or
fork-join make it worse.
Worst case I need to do it every time I save a change to the original
DBs for which I maintain that index.
Any ideas how to speed this up?
Best regards
Omar Siam
Hi Steve!
I take from these results that the output from Saxon xslt:transform is
serialized according to the stylesheet, and then parsed again by BaseX
as xml on the way to being serialized again on output from the
function, and the error is coming from that implicit parse.
The communicatio
I hope there is a way to get this to work.
Best regards
Omar Siam
Hi,
Looks likt I got BaseX 9.1.2 to work.
I configured the AUTHMETHOD in .basex to Digest
In the %perm:check funktion I return 401 if I want authentication. As
noted in commit
https://github.com/BaseXdb/basex/commit/acd4713e99f618c8dc9dda8d5f994d0139c2bf42
for 9.2 there is no way to send a c
, 2019 at 6:35 PM Omar Siam wrote:
Hi list!
I just experimented a bit to see if there is an obvious way to use HTTP
digest authentication for some RESTXQ service I plan to write. I would
prefer not to reimplement the HTTP digest logic in XQuery. I thought
maybe there is a way to use the built in
endpoint. I don't seem to get that to work. Any suggestions?
Best regards
Omar Siam
Sorry I got that wrong. I meant XQuery has greedy (the default) and
reluctant. But not possessive.
Saxon always
works on a in-memory-representation of the data as far as I know and
that is not an option with a 2.5 GB XML for example.
Best regards
Omar
Am 09.08.2018 um 16:32 schrieb Andreas Mixich:
Omar Siam wrote:
Using the java regular expression implementation you can use greedy
and
Hi
I think the problem is: There are numerous implemetations of regular
expressions which have a common subset but are different in the more
advanced features.
Using the java regular expression implementation you can use greedy and
some other things. The XSL and XQuery implementation accordi
string concatenation operator and other things missing. There
may be "old style" function equivalents but it is cumbersome.
I stopped using oXygen for BaseX XQuery for those reasons. I'm happy
with the GUI.
Best regards
Omar Siam
Am 01.08.2018 um 23:16 schrieb Andreas
version it may be possible to set that to the
directory the XQuery runs from or to be able to just specify what it
should be.
Best regards
Omar Siam
Hi list!
I just got asked if I can change the session timeout for DBA. I actually
can't. I don't know where to look. Can anybody can give me a hint?
Best regards
Omar Siam
I use BaseX'es jobs for this. Works but you have to be careful because
you give up all the protections against dead locking or becoming
unresponsive because no new jobs can be scheduled anymore so all HTTP
communication stops like database administration for example.
Best regards
Omar
Am 20
Hi Christian!
Am 20.04.2018 um 15:49 schrieb Christian Grün:
* BaseX is not as smart on recognizing when indices can be used in longer
XQuery code.
This one is interesting to hear, because we observed that users chose
BaseX in the past exactly because of the index rewritings. Did you
encounter
ne project per BaseX instance then it is
much easier to know what actually happens compared to exist-db and that
is a big asset for me.
Best regards
Omar Siam
ACDH-OeAW
Am 19.04.2018 um 17:26 schrieb Feargal Hogan:
On 18 Apr 2018, at 21:12, Liam R. E. Quin wrote:
On Wed, 2018-04-18 at 1
Hi list!
This has a new owner/website:
https://projects.eclipse.org/projects/locationtech.jts
If you have time please update the link
Best regards
Omar Siam
As I do the same in my code:
* you can use xquery:eval as mentioned but:
** be careful how to pass in the db:open() or collection(). It is quite
easy to prevent BaseX from seeing that there are indexes and use them
** xquery:eval uses global locking. So no writing while such a query is
running.
Maybe. But then again I want to use a very large amount of threads. I
read fairlock hurts there. And I actually like the idea of always having
a way to know the status of the job system. I will look into that.
Best regards
Omar Siam
Am 29.11.2017 um 16:30 schrieb Christian Grün:
Maybe it
ance to
start. Or a yield function to explicitly give away some execution time
so another (non RESTXQ) job can execute.
Best regards
Omar Siam
Am 29.11.2017 um 16:07 schrieb Christian Grün:
Hi Omar,
jobs that are started via jobs:eval are independent from the original
job, but most probably
T [GET]
http://localhost:8984/wde/...
14:24:56.552 127.0.0.1:52606 admin REQUEST [GET]
http://localhost:8984/wde/...
14:24:56.552 127.0.0.1:52607 admin REQUEST [GET]
http://localhost:8984/wde/...
14:24:56.552 127.0.0.1:52608 admin REQUEST [GET]
http://localhost:8984/wde/...
14:24:56.554
slave jobs until the parallel limit permits it?
Best regards
Omar Siam
p.
You could also pass the documents as parameters. It think that is pretty
efficient.
Best regards
Omar Siam
Am 24.11.2017 um 16:24 schrieb oliver.zmo...@degruyter.com:
Dear all,
currently I’m facing following problem:
1)Saxon9he.jar stored in “lib” folder (to ensure XSLT 2.0) of a
BaseX
XQuery implementation?
Best regards
Omar Siam
stent state but I'm willing to accept this.
So now I am down to a few seconds or less of locking for any particular
db. I hope this will enable me to do updates while not blocking read
queries for a longer period of time. I'm just working on a REST based
test for this.
Best reg
This sounds like a great improvement for our code:
http://docs.basex.org/wiki/Indexes#Enforce_Rewritings.
Many thanks!
Am 18.10.2017 um 17:19 schrieb Christian Grün:
Hi Omar,
Beforehand: You mentioned that your RESTXQ always cause global locks.
Do you have an example for that (see my last mail)?
Sorry, no. While running that large update yesterday I thought I saw
someone running a RESTXQ call without xquery:e
nt databases to work in parallel.
They don't. I don't quite understand why.
Also I have a much larger dataset split into a number of databases where
it would be quite useful to execute updates in parallel.
Am I missing something? Is this perhaps the wrong way to tackle this
scaling pro
any access to data in dbs is attempted.
Best regards
Omar Siam
Hi!
My guess is: the same as the problems I described: The optimizer is
unable to handle anything like such variables or functions. If you pass
your db:open() around or get it from a declared variable the optimizer
has no clue what to do and falls back to the slow default bahavoir.
Workarount
Hi!
Interesting ideas. I don't like the pragma idea that much because there
is already sth. like that with xquery:eval. The thing I miss most is a
function like xquery:eval that accepts a function as an argument but
also takes a context and does that runtime optimization. Or a way to
convert
Hi list!
Recently I started to wonder why functions in my XQuery modules make no
use of indexes unless I force them to by using the respective function
like db:text(). Now I just did some I think minimal changes to the
example for text index at: http://docs.basex.org/wiki/Indexes#Text_Index.
Charles might correct me if I am wrong, but I don’t think there’s an
easy way to add 3.1 features to the current XQJ implementation.
Best from Konstanz
Michael
Am 04.09.2017 um 16:42 schrieb Omar Siam <mailto:omar.s...@oeaw.ac.at>>:
Good idea but I was pretty sure that this comes
t;);
Am 04.09.2017 um 15:37 schrieb Michael Seiferle:
Hi Omar,
Looks like that error message is generated by oXygen; you might want to
crosspost to their list.
Best
Michael
Am 04.09.2017 um 14:31 schrieb Omar Siam:
Hi!
I just tried to use ther Simple Map Operator while writing an XQuery i
"Invalid XQuery
syntax, syntax does not pass static validation.". For example using "(1
to 10) ! element node { . }"
If I run that XQuery in DBA for example it works.
Any ideas?
Best regards
Omar Siam
tent types given in the Accept header?
Thanks everyone,
Christian
[1] https://github.com/BaseXdb/basex/issues/1220
On Tue, Jul 4, 2017 at 1:17 PM, Omar Siam wrote:
Hi list!
I like my oXygen editor to request raw XML data from my RESTxq endpoints to
test XSL stylesheets. When I do this w
ies $a =
('text/xml', 'application/xml')) then $xml else $xhtml
I hope this is still on the agenda for 8.7.
Best regards
Omar Siam
89 matches
Mail list logo