Re: [basex-talk] XSLT version

2024-02-08 Thread Omar Siam
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 |

Re: [basex-talk] RESTXQ knocked out!

2024-02-01 Thread Omar Siam
, 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

Re: [basex-talk] Processing stack traces in XQuery code

2024-01-12 Thread Omar Siam
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

Re: [basex-talk] Processing stack traces in XQuery code

2024-01-11 Thread Omar Siam
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

Re: [basex-talk] Processing stack traces in XQuery code

2024-01-11 Thread Omar Siam
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

[basex-talk] Processing stack traces in XQuery code

2024-01-11 Thread Omar Siam
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

Re: [basex-talk] Docker

2023-09-05 Thread Omar Siam
@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

Re: [basex-talk] collection('i_do_not_exist')/users/user[@name=()] is () even if i_do_not_exist does not exit

2023-03-23 Thread Omar Siam
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

[basex-talk] collection('i_do_not_exist')/users/user[@name=()] is () even if i_do_not_exist does not exit

2023-03-23 Thread Omar Siam
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

Re: [basex-talk] BaseX 10.5: Patch Release

2023-03-23 Thread Omar Siam
. 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

Re: [basex-talk] xqDoc - potential updates

2022-10-19 Thread Omar Siam
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

Re: [basex-talk] Java 8 and XML Catalog

2022-07-07 Thread Omar Siam
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

Re: [basex-talk] RESTXQ: Serve images that are not within the web app dir

2022-07-07 Thread Omar Siam
-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

[basex-talk] Something is off with db:enforceindex in 9.7.2.

2022-06-20 Thread Omar Siam
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

Re: [basex-talk] Executing optimized XQuery in RestXQ without having to deal with global lock situations

2022-05-25 Thread Omar Siam
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

Re: [basex-talk] Adding another document from XQuery evaluation

2022-05-17 Thread Omar Siam
/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

Re: [basex-talk] Feature Preview: Caching Module

2022-05-05 Thread Omar Siam
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-talk] Executing optimized XQuery in RestXQ without having to deal with global lock situations

2022-05-02 Thread Omar Siam
/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

Re: [basex-talk] Using error and catch for error paths in REST API endpoint code

2022-04-27 Thread Omar Siam
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

[basex-talk] Using error and catch for error paths in REST API endpoint code

2022-04-12 Thread Omar Siam
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

[basex-talk] An automated workflow for creating tested and sustainable REST API/RestXQ containers that use BaseX

2022-04-07 Thread Omar Siam
[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

[basex-talk] I would like to share some code I use for easier RestXQ development

2022-04-06 Thread Omar Siam
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,

Re: [basex-talk] docker, creating and deploying the dba docker-image

2021-11-26 Thread Omar Siam
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

Re: [basex-talk] EMail module and javax.activation.DataSource

2021-08-25 Thread Omar Siam
/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

Re: [basex-talk] Using other Java runtimes?

2021-04-17 Thread Omar Siam
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

Re: [basex-talk] Preferences do not open, Exception in thread AWT-EventQueue-0

2021-03-17 Thread Omar Siam
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

[basex-talk] Simple xqdoc to HTML converter

2021-03-09 Thread Omar Siam
on BaseX. Best regards Omar Siam

Re: [basex-talk] where is the "lib" folder?

2020-11-23 Thread 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

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

2020-09-25 Thread 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

Re: [basex-talk] Enabling Xerces2 XML Schema processor

2020-07-09 Thread Omar Siam
/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

Re: [basex-talk] Random Numbers from Random.org

2020-06-03 Thread Omar Siam
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

Re: [basex-talk] I am confused how to specify multiple possible reponses in RestXQ with %rest:produces

2020-05-12 Thread Omar Siam
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.

[basex-talk] I am confused how to specify multiple possible reponses in RestXQ with %rest:produces

2020-05-11 Thread Omar Siam
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

Re: [basex-talk] Storing xml message

2020-04-21 Thread 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

Re: [basex-talk] Create a document in a created database

2020-04-20 Thread Omar Siam
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

Re: [basex-talk] ft search with wildcards does not work with higher Unicode characters

2020-02-11 Thread Omar Siam
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

Re: [basex-talk] ft search with wildcards does not work with higher Unicode characters

2020-02-06 Thread Omar Siam
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

Re: [basex-talk] ft search with wildcards does not work with higher Unicode characters

2020-02-06 Thread Omar Siam
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

Re: [basex-talk] ft search with wildcards does not work with higher Unicode characters

2020-02-06 Thread Omar Siam
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

Re: [basex-talk] ft search with wildcards does not work with higher Unicode characters

2020-02-06 Thread Omar Siam
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

Re: [basex-talk] ft search with wildcards does not work with higher Unicode characters

2020-02-06 Thread Omar Siam
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

[basex-talk] ft search with wildcards does not work with higher Unicode characters

2020-02-05 Thread Omar Siam
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

Re: [basex-talk] Load LibreOffice- and Word-documents?

2020-01-28 Thread Omar Siam
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

[basex-talk] HTTPS requests using the HTTP Client Module with self signed (invlaid) certificates

2020-01-22 Thread Omar Siam
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

Re: [basex-talk] slow search performance across multiple databases

2020-01-14 Thread 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

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

2019-12-09 Thread Omar Siam
Hi Fabrice, No but I will stick with xml:space='preserve' where I need it. But thanks for the info. Best regards Omar

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

2019-12-09 Thread Omar Siam
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

Re: [basex-talk] running in parallel

2019-12-09 Thread Omar Siam
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

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

2019-12-09 Thread Omar Siam
@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

Re: [basex-talk] HTTPServer + gzip compression

2019-11-20 Thread Omar Siam
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

Re: [basex-talk] HTTPServer + gzip compression

2019-11-18 Thread Omar Siam
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

Re: [basex-talk] I am looking for the fastest way to sort 2.4 Mio tags by two attribute ascending and descending

2019-11-14 Thread 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

Re: [basex-talk] I am looking for the fastest way to sort 2.4 Mio tags by two attribute ascending and descending

2019-11-13 Thread 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

[basex-talk] I am looking for the fastest way to sort 2.4 Mio tags by two attribute ascending and descending

2019-11-12 Thread 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

Re: [basex-talk] Serialization mismatch using Saxon for xslt:transform

2019-08-08 Thread 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

[basex-talk] Activating gzip compression

2019-02-26 Thread Omar Siam
              I hope there is a way to get this to work. Best regards Omar Siam

Re: [basex-talk] Using HTTP Digest Authentication in a RESTXQ services

2019-02-26 Thread 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

Re: [basex-talk] Using HTTP Digest Authentication in a RESTXQ services

2019-02-15 Thread Omar Siam
, 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

[basex-talk] Using HTTP Digest Authentication in a RESTXQ services

2019-02-14 Thread Omar Siam
endpoint. I don't seem to get that to work. Any suggestions? Best regards Omar Siam

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

2018-08-09 Thread Omar Siam
Sorry I got that wrong. I meant XQuery has greedy (the default) and reluctant. But not possessive.

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

2018-08-09 Thread Omar Siam
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

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

2018-08-08 Thread Omar Siam
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

Re: [basex-talk] BaseX and oXygen

2018-08-02 Thread Omar Siam
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

[basex-talk] Is it possible to set the root for resolving include and import in xslt:transform

2018-07-25 Thread Omar Siam
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

[basex-talk] DBA session timeout

2018-06-26 Thread 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

Re: [basex-talk] baseX vs ExistDB

2018-04-20 Thread 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

Re: [basex-talk] baseX vs ExistDB

2018-04-20 Thread Omar Siam
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

Re: [basex-talk] baseX vs ExistDB

2018-04-20 Thread Omar Siam
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

[basex-talk] JTS Library homepage moved

2018-03-08 Thread Omar Siam
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

Re: [basex-talk] Dynamic xpath

2018-02-05 Thread 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.

Re: [basex-talk] Locking up BaseX RESTXQ using jobs

2017-11-29 Thread Omar Siam
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

Re: [basex-talk] Locking up BaseX RESTXQ using jobs

2017-11-29 Thread Omar Siam
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

Re: [basex-talk] Locking up BaseX RESTXQ using jobs

2017-11-29 Thread Omar Siam
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   

[basex-talk] Locking up BaseX RESTXQ using jobs

2017-11-29 Thread Omar Siam
slave jobs until the parallel limit permits it? Best regards Omar Siam

Re: [basex-talk] xsl - using doc() to read in an xml stored within BaseX

2017-11-24 Thread 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-talk] Hypertext Application Language: Do we need a library that implements this?

2017-11-17 Thread Omar Siam
BaseX XQuery implementation? Best regards Omar Siam

Re: [basex-talk] DB locking

2017-11-13 Thread 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

[basex-talk] Thanks for Enforce Index Rewriting!

2017-11-03 Thread Omar Siam
This sounds like a great improvement for our code: http://docs.basex.org/wiki/Indexes#Enforce_Rewritings. Many thanks!

Re: [basex-talk] Jobs, locking and doing large updates

2017-10-18 Thread Omar Siam
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

[basex-talk] Jobs, locking and doing large updates

2017-10-18 Thread Omar Siam
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

[basex-talk] Every query executed in dba Queries causes a global read lock

2017-10-17 Thread Omar Siam
any access to data in dbs is attempted. Best regards Omar Siam

Re: [basex-talk] db:text() vs XPath

2017-09-19 Thread 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

Re: [basex-talk] Is there any documentation on the narrow limits of XQuery index optimization in BaseX?

2017-09-18 Thread Omar Siam
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

[basex-talk] Is there any documentation on the narrow limits of XQuery index optimization in BaseX?

2017-09-06 Thread Omar Siam
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.

Re: [basex-talk] Simple Map Operator in oXygen XML (XQJ)

2017-09-04 Thread Omar Siam
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

Re: [basex-talk] Simple Map Operator in oXygen XML (XQJ)

2017-09-04 Thread Omar Siam
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

[basex-talk] Simple Map Operator in oXygen XML (XQJ)

2017-09-04 Thread Omar Siam
"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

Re: [basex-talk] oXygen XML, content negotiation and #1220

2017-07-05 Thread 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

[basex-talk] oXygen XML, content negotiation and #1220

2017-07-04 Thread Omar Siam
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