Re: [basex-talk] Using BaseX in Java - doc?

2013-03-21 Thread Kendall Shaw
examples, if you do not wish to start a server. And yes, you can embed it completely. What is the problem with wildcard imports? I didn't know this is an issue. Cheers, Dirk On Thu, Mar 21, 2013 at 7:09 PM, Kendall Shaw ques...@sonic.net wrote: On 03/21/2013 10:34 AM, Florent Georges wrote

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

2013-03-24 Thread Kendall Shaw
On 03/24/2013 12:15 PM, Florent Georges wrote: Hi, When I start a BaseXServer in Java, it creates a config file ~/.basex and a data directory ~/BaseXData. Is there any way to ask BaseX not to create the config file, and to use a specific another data directory? Or at least to tell it

Re: [basex-talk] Computed namespaces: which one is wrong?

2013-10-09 Thread Kendall Shaw
I think there is a trailing S in that URL. Without the S: https://www.w3.org/Bugs/Public/show_bug.cgi?id=22032 On 10/09/2013 08:09 AM, Christian Grün wrote: Hi Marco, yes, the 7.7 behavior is correct, it’s the result from a recent W3 decision [1]. You’ll probably have to rewrite your query

Re: [basex-talk] Detect if the database is open

2016-06-19 Thread Kendall Shaw
for (checking if the databases is opened; if not, open it). > >Does this help? >Christian > > > >On Wed, Jun 15, 2016 at 7:03 PM, Kendall Shaw <kendall.s...@workday.com> wrote: >> Using ClientSession from java, I do this to check if the database is open:

[basex-talk] metadata

2016-02-13 Thread Kendall Shaw
Unless there is now a standard way to associate metadata with documents and collections, is there a preferred method? I could try to ensure that there is always a unique id that can be derived from combination of an id attribute or element in the document + the document’s document uri, then

[basex-talk] basex-xqj source?

2016-02-22 Thread Kendall Shaw
Hi, Where can I find source code for the basex xqj implementation? I want to see what it is doing. Thanks, Kendall

[basex-talk] Add docments and retrieve results using java

2016-02-22 Thread Kendall Shaw
How can I incrementally import XML documents into the database, using java? And, how can I incrementally retrieve query results and XML documents from the database, using java? Either I am missing it, or XQJ does not allow you to store data into a database. Should I use xmldb API? Or, should I

Re: [basex-talk] basex-xqj source?

2016-02-22 Thread Kendall Shaw
Oh, it’s here: http://xqj.net/basex/download.jsp Kendall From: <basex-talk-boun...@mailman.uni-konstanz.de<mailto:basex-talk-boun...@mailman.uni-konstanz.de>> on behalf of Kendall Shaw <kendall.s...@workday.com<mailto:kendall.s...@workday.com>> Date: Monday, Febr

Re: [basex-talk] basex-xqj source?

2016-02-22 Thread Kendall Shaw
Oops. There is no source code… From: <basex-talk-boun...@mailman.uni-konstanz.de<mailto:basex-talk-boun...@mailman.uni-konstanz.de>> on behalf of Kendall Shaw <kendall.s...@workday.com<mailto:kendall.s...@workday.com>> Date: Monday, February 22, 2016 at 3:51 PM To:

Re: [basex-talk] Add docments and retrieve results using java

2016-02-22 Thread Kendall Shaw
It looks like the basex-test projects shows how to do what I want. Using QueryProcessor and the Xdm classes. Kendall From: <basex-talk-boun...@mailman.uni-konstanz.de<mailto:basex-talk-boun...@mailman.uni-konstanz.de>> on behalf of Kendall Shaw <kendall.s...@workday.com&l

Re: [basex-talk] Catalog Resolution Under Windows

2016-03-13 Thread Kendall Shaw
I remember trying to figure out if the catalog files are supposed to be URIs or file paths (in commons resolver), and I think it was Catalog.parseCatalogFile that had a problem. It tries essentially: catalogPath = path.replace(‘\\', ‘/‘) new URL(baseURL, catalogPath) and if that is a

Re: [basex-talk] Catalog Resolution Under Windows

2016-03-13 Thread Kendall Shaw
new URL(“file:” + catalogPath) Appending text together seems to not be the best way to construct a URI. On 3/13/16, 1:02 PM, "basex-talk-boun...@mailman.uni-konstanz.de on behalf of Kendall Shaw" <basex-talk-boun...@mailman.uni-konstanz.de on behalf of kendall.s...@workd

[basex-talk] XdmItem

2016-04-06 Thread Kendall Shaw
Is XdmItem going to move out of tests to be part of the API at some point? Kendall

Re: [basex-talk] XdmItem

2016-04-12 Thread Kendall Shaw
The default answer is effectively no. From: <basex-talk-boun...@mailman.uni-konstanz.de<mailto:basex-talk-boun...@mailman.uni-konstanz.de>> on behalf of Kendall Shaw <kendall.s...@workday.com<mailto:kendall.s...@workday.com>> Date: Wednesday, April 6, 2016 at

Re: [basex-talk] Somewhat unusual question

2017-02-23 Thread Kendall Shaw
What the application is makes all the difference. If the purpose does not have to do with XML and XML in a database, then XQuery and BaseX is less likely to be appropriate. Kendall On 2/23/17, 12:36 PM, "basex-talk-boun...@mailman.uni-konstanz.de on behalf of Maximilian Gärber"

Re: [basex-talk] Somewhat unusual question

2017-02-25 Thread Kendall Shaw
On 2/24/17, 7:15 PM, "Liam R. E. Quin" <l...@w3.org> wrote: On Fri, 2017-02-24 at 18:07 +0000, 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 > dat

Re: [basex-talk] Somewhat unusual question

2017-02-25 Thread Kendall Shaw
, alle ore 00:05, Kendall Shaw <kendall.s...@workday.com> ha scritto: A more interesting example, maybe: If you compare XPath with this SPARQL fragment: ?x foaf:knows/foaf:name ?name . All of my friend’s friend’s friend’s friend’s friend’s etc., with arbitrary dep

Re: [basex-talk] Somewhat unusual question

2017-02-24 Thread Kendall Shaw
ery it. I can do whatever I want with XQuery easily and deal with different kinds of data, so I do not agree at all. Il giorno 24 feb 2017, alle ore 00:37, Kendall Shaw <kendall.s...@workday.com> ha scritto: What the application is makes all the difference. If the

Re: [basex-talk] Somewhat unusual question

2017-02-24 Thread Kendall Shaw
that elements have 1 parent, so it could make sense to represent some data as a less restricted form of graph than an XML element tree. Kendall On 2/24/17, 10:07 AM, "basex-talk-boun...@mailman.uni-konstanz.de on behalf of Kendall Shaw" <basex-talk-boun...@mailman.uni-konstanz

Re: [basex-talk] Gzip/RESTXQ

2017-02-23 Thread Kendall Shaw
compressed data on your server be searched if a RESTXQ function is supposed to perform a simple query on them before serving? Thanks. Best, Joseph Il giorno 23 feb 2017, alle ore 02:22, Kendall Shaw <kendall.s...@workday.com> ha scritto: There is some p

Re: [basex-talk] Gzip/RESTXQ

2017-02-22 Thread Kendall Shaw
There is some point at which the time it takes to compress is worse in some measure than serving uncompressed data. What I did was store precompressed data and serve that, instead of enabling compression. So if that is an option you can use: web:response-header(map {'media-type':

[basex-talk] ignoring macos turds via webdav

2016-08-19 Thread Kendall Shaw
Finder and /bin/cp leave turds wherever they go in some situations. If I use finder or cp in macos to write a file to a basex db mounted via webdav, the log shows something like: [propfind ] …/a.xml [put] …/a.xml [propfind] …/._a.xml [lock] .../a.xml [propfind] .../a.xml [propfind] …/._.

Re: [basex-talk] Somewhat unusual question

2017-02-25 Thread Kendall Shaw
On 2/25/17, 12:55 PM, "Liam R. E. Quin" <l...@w3.org> wrote: On Sat, 2017-02-25 at 10:02 +0000, Kendall Shaw wrote: > It’s interesting to me to know what sorts of applications seem like > they would be a good match for XQuery’s data model but turned out not

Re: [basex-talk] Somewhat unusual question

2017-02-25 Thread Kendall Shaw
, 2017 at 5:09 PM To: Kendall Shaw <kendall.s...@workday.com> Cc: BaseX <basex-talk@mailman.uni-konstanz.de> Subject: Re: [basex-talk] Somewhat unusual question Hi Kendal -- If you don't stick to attributes, it's not hard to represent that kind of relationship graph in XML:

[basex-talk] Accessing file within repository or package

2016-09-22 Thread Kendall Shaw
I have a module packaged as a XAR and installed in the repo. In xquery I want to load xslt. This did not work: http://example.com/hellaworld; abbrev="hella" version="1.0.0" spec="1.0" xmlns="http://expath.org/ns/pkg;> Hella world functions

[basex-talk] Using BaseXServer and BaseXHTTP at the same time?

2016-08-18 Thread Kendall Shaw
Hi, Does the fact that basexhttp starts servers on 1984 and 8984 mean that I can have one program using client/server and another using rest using the same databases at the same time? Kendall

Re: [basex-talk] java binding standardfunc and querymodule

2016-09-26 Thread Kendall Shaw
.de> on behalf of Kendall Shaw <kendall.s...@workday.com> Date: Monday, September 26, 2016 at 1:21 PM To: "basex-talk@mailman.uni-konstanz.de" <basex-talk@mailman.uni-konstanz.de> Subject: [basex-talk] java binding standardfunc and querymodule The documentation describes exten

[basex-talk] Text resources

2016-10-26 Thread Kendall Shaw
Is this how I should retrieve text that is stored using db:store, within xquery? stream:materialize(db:retrieve(‘some’,’some.txt’)) ? Kendall

Re: [basex-talk] Text resources

2016-10-26 Thread Kendall Shaw
Err… I mean: convert:binary-to-string(db:retrieve(‘some’,’some.txt’)) Can I skip the base64 part? Kendall From: <basex-talk-boun...@mailman.uni-konstanz.de> on behalf of Kendall Shaw <kendall.s...@workday.com> Date: Wednesday, October 26, 2016 at 5:05 PM To: "basex

Re: [basex-talk] Restxq handling accept-encoding

2016-11-16 Thread Kendall Shaw
THd-HoaJ70qXUAVfj49wV_AggI= Cheers, Christian On Wed, Nov 16, 2016 at 2:29 AM, Kendall Shaw <kendall.s...@workday.com> wrote: > I should clarify that I’m asking about content negotiation. %rest:produces > is described as constraining based on t

Re: [basex-talk] Restxq handling accept-encoding

2016-11-17 Thread Kendall Shaw
n.uni-konstanz.de on behalf of Kendall Shaw" <basex-talk-boun...@mailman.uni-konstanz.de on behalf of kendall.s...@workday.com> wrote: Thank you. I’m using tomcat, not for any particular reason. There I added: compression=”on” compressableMimeType="text/html,text/xm

Re: [basex-talk] Restxq handling accept-encoding

2016-11-15 Thread Kendall Shaw
implementation that does this? Kendall From: <basex-talk-boun...@mailman.uni-konstanz.de> on behalf of Kendall Shaw <kendall.s...@workday.com> Date: Tuesday, November 15, 2016 at 4:58 PM To: BaseX <basex-talk@mailman.uni-konstanz.de> Subject: [basex-talk] Restxq handling accept-e

Re: [basex-talk] Simple query

2017-03-10 Thread Kendall Shaw
Michael Seiferle gave the answer already, I think. What would collection() be referring to? How would BaseX know what to return? Probably there is no database specified. Presumably, in the GUI you have opened a database. Kendall From: on behalf of

Re: [basex-talk] Simple query

2017-03-10 Thread Kendall Shaw
thing I can find regarding how to use LocalSession, so I could be off base from that pov. -AJ On 3/10/2017 4:18 PM, Kendall Shaw wrote: This worked for me, where “test-local” contains a document: Context context = new Context(); LocalSession s = new LocalSession(context);

Re: [basex-talk] Simple query

2017-03-10 Thread Kendall Shaw
...@comcast.net> Date: Friday, March 10, 2017 at 11:40 AM To: "basex-talk@mailman.uni-konstanz.de" <basex-talk@mailman.uni-konstanz.de> Subject: Re: [basex-talk] Simple query On 3/10/2017 2:24 PM, Kendall Shaw wrote: Michael Seiferle gave the answer already, I think. What woul

Re: [basex-talk] Timezone and job start time

2017-07-29 Thread Kendall Shaw
;UTC")) > > .format(DateTimeFormatter.ofPattern(pattern)); > > } > > } > > and, then in XQuery: > > > > jobs:eval(‘trace(“WENT”)’, map {}, map {‘id’: ‘somejob’, ‘start’: > t:zoned-time(‘H

Re: [basex-talk] Timezone and job start time

2017-07-29 Thread Kendall Shaw
.@mailman.uni-konstanz.de> on behalf of Kendall Shaw <kendall.s...@workday.com> Date: Saturday, July 29, 2017 at 1:17 PM To: BaseX <basex-talk@mailman.uni-konstanz.de> Subject: Re: [basex-talk] Timezone and job start time I think I can assume it is UTC. org/basex/util/DateT

Re: [basex-talk] Timezone and job start time

2017-07-29 Thread Kendall Shaw
l From: <basex-talk-boun...@mailman.uni-konstanz.de> on behalf of Kendall Shaw <kendall.s...@workday.com> Date: Friday, July 28, 2017 at 2:37 PM To: BaseX <basex-talk@mailman.uni-konstanz.de> Subject: [basex-talk] Timezone and job start time declare namespace tz = "java:j

Re: [basex-talk] HTTP module

2017-08-14 Thread Kendall Shaw
Can you elaborate on “does not work”? What response do you get. From: Giuseppe Celano <cel...@informatik.uni-leipzig.de> Date: Monday, August 14, 2017 at 10:43 AM To: Kendall Shaw <kendall.s...@workday.com> Cc: BaseX <basex-talk@mailman.uni-konstanz.de> Subject: Re: [basex

Re: [basex-talk] HTTP module

2017-08-14 Thread Kendall Shaw
Does it work to use Andy’s multipart version with encoding=”UTF-8” added to body elements? On 8/14/17, 3:59 PM, "Giuseppe Celano" wrote: Thanks, Andy. I have also tried to invoke curl via proc:execute(): proc:execute("curl",("-F",

[basex-talk] db:replace modified date

2017-08-13 Thread Kendall Shaw
After debugging a query for a while, I figured out that db:replace isn’t changing the modification date of an XML resource, when the content hasn’t changed. The case is like this: db:replace(‘db’, ‘abc.xml’, doc(‘file:/tmp/abc.xml’)) Is that normal, or do I have an option set that results in

Re: [basex-talk] HTTP module

2017-08-14 Thread Kendall Shaw
Hi Giuseppe, You were asking about a method other than adding to the URL. Using –F with curl uses the POST method, rather than GET. Also, “string” isn’t a recognized content-type, I think. Your example might work if you changed it to use POST and text/plain: http:send-request(

[basex-talk] Timezone and job start time

2017-07-28 Thread Kendall Shaw
declare namespace tz = "java:java.time.ZonedDateTime"; tz:now() returns 2017-07-28T14:23:08.334-07:00[America/Los_Angeles] Logs in dba seem to use the local time zone to display the date. The timestamp on resources is in UTC time, which is good. modified-date=”2017-07-28T21:17:53.347Z” But,

Re: [basex-talk] Timezone and job start time

2017-07-29 Thread Kendall Shaw
And: t:time(20, ‘HH:mm:ss’) which is 8pm not 10pm… From: <basex-talk-boun...@mailman.uni-konstanz.de> on behalf of Kendall Shaw <kendall.s...@workday.com> Date: Saturday, July 29, 2017 at 1:27 PM To: BaseX <basex-talk@mailman.uni-konstanz.de> Subject: Re: [basex-talk] Time

[basex-talk] jobs:result deadlock

2017-08-06 Thread Kendall Shaw
Can someone elaborate on this sentence in the documentation about jobs:result: “Please note that this query can easily cause a deadlock if the asynchronously executed query will be queued. “ Referring to this example: let $query := jobs:eval('(1 to 1000)[. = 1]', map{}, map{ 'cache':

Re: [basex-talk] Implement read lock and write lock

2017-08-18 Thread Kendall Shaw
I would like to know what the read-lock and write-lock parameters mean. The documentation says they are in a different namespace than database names, so “factbook” doesn’t refer to the “factbook” database. What do the parameters refer to? For Dharmendra’s questions, if

Re: [basex-talk] RESTXQ %input:csv annotation

2017-08-20 Thread Kendall Shaw
Sorry for the duplicate post. From: Kendall Shaw <kendall.s...@workday.com> Date: Sunday, August 20, 2017 at 9:00 PM To: BaseX <basex-talk@mailman.uni-konstanz.de> Subject: RESTXQ %input:csv annotation The example produces an error saying it can’t convert string to document no

[basex-talk] %input:csv annotation

2017-08-20 Thread Kendall Shaw
Trying to use the example, in the RESTXQ section of the documentation: declare %rest:path("/store.csv") %rest:POST("{$csv}") %input:csv("header=true,encoding=CP1252") function page:store-csv($csv as document-node()) { "Number of rows: " || count($csv/csv/record) }; Using: curl -i

[basex-talk] RESTXQ %input:csv annotation

2017-08-20 Thread Kendall Shaw
The example produces an error saying it can’t convert string to document node: declare %rest:path("/store.csv") %rest:POST("{$csv}") %input:csv("header=true,encoding=CP1252") function page:store-csv($csv as document-node()) { "Number of rows: " || count($csv/csv/record) }; I can just

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

2017-09-18 Thread Kendall Shaw
I don’t know if this helps. It could be because of openjdk vs oracle. In FileSystems.java in the oracle JDK getDefault loads: sun.nio.fs.DefaultFileSystemProvider.create() I imagine that openjdk wouldn’t use that, perhaps. So, maybe using the oracle JDK would work. Kendall On 9/18/17, 4:06

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

2017-09-18 Thread Kendall Shaw
Or build basex using openjdk. On 9/18/17, 4:30 PM, "basex-talk-boun...@mailman.uni-konstanz.de on behalf of Kendall Shaw" <basex-talk-boun...@mailman.uni-konstanz.de on behalf of kendall.s...@workday.com> wrote: I don’t know if this helps. It could be because of o

Re: [basex-talk] Why am I getting this error with the prolog statement

2017-10-04 Thread Kendall Shaw
On 10/3/17, 7:57 AM, "basex-talk-boun...@mailman.uni-konstanz.de on behalf of Christian Grün" wrote: Hi Dave (cc to the list), > I am creating xml on an IBM mainframe. The code page used on

Re: [basex-talk] Server Variables, cached vars, etc

2017-09-08 Thread Kendall Shaw
I thought it might be useful to mention advice I was given about startup hooks: > From: "Kirsten, Dirk" > dirk.kirs...@senacor.com ,,, > there is currently no way to do this using BaseX itself. But I also don’t > think that should be the job of BaseX. Instead

Re: [basex-talk] Server Variables, cached vars, etc

2017-09-09 Thread Kendall Shaw
servlet’s init method is invoked. Kendall From: Erik Peterson <e...@ardec.com> Date: Saturday, September 9, 2017 at 4:16 AM To: Kendall Shaw <kendall.s...@workday.com> Cc: "basex-talk@mailman.uni-konstanz.de" <basex-talk@mailman.uni-konstanz.de> Subject: Re: [basex-talk] S

Re: [basex-talk] Server Variables, cached vars, etc

2017-09-05 Thread Kendall Shaw
A problem with that is that it evaluates the variable each time. If you need it to only evaluate once (expensive operation), something else needs to be done. I would like to know an answer to this so that I can schedule jobs on start up without involving processes external to basex. From:

Re: [basex-talk] How do create XML for a one byte hex field that is used as a flag byte

2017-09-07 Thread Kendall Shaw
Sorry for answering a question with a question. Aside from the bit manipulation advice given, do you really need to be storing a representation of bits in XML? Often people store an intermediate form of data in XML. A decoder transforms data into the intermediate form when constructing XML and

Re: [basex-talk] pyBaseX url

2017-09-26 Thread Kendall Shaw
If pybasex is using http, the port is probably not 1984. It would be the port used by the web server that is serving basex rest services. 1984 would usually be the basex server port (not using http). Kendall From: on behalf of Bridger Dyson-Smith

[basex-talk] Startup hooks or persisting jobs

2017-08-27 Thread Kendall Shaw
Am I missing an existing way to run xquery at startup (basex web service running under tomcat)? I have jobs that I schedule, but I have to schedule them again if basex is shutdown. I can test for basex being started outside of basex and then execute queries, but if there is already a way to do

Re: [basex-talk] Startup hooks or persisting jobs

2017-08-28 Thread Kendall Shaw
Thanks. I would think that being able to schedule jobs would fit nicely with having scheduled jobs persist after restart. Kendall From: "Kirsten, Dirk" <dirk.kirs...@senacor.com> Date: Monday, August 28, 2017 at 12:21 PM To: Kendall Shaw <kendall.s...@workday.com&g

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

2017-08-28 Thread Kendall Shaw
Can you elaborate on what you were imagining doing with namespaces? An XML namespace is referred to by it’s URI. If you created one, I don’t know what it would mean to tell the code later on which to use. Do you mean a namespace prefix? Kendall On 8/28/17, 2:02 PM,

Re: [basex-talk] RESTXQ %input:csv annotation

2017-08-21 Thread Kendall Shaw
gwnBEpN1c-DDmq-Up2QMq9rrGyfWK0KtSpT7dxRglA=rNboQKVnWnXp-YmOjjhaMZd8_9BoqGIjpH3YIUKgxBE=5F6dQtLLTqw2Ko39fFYa6-HFQHaygjUaau3ji4jI2mY= On Mon, Aug 21, 2017 at 6:01 AM, Kendall Shaw <kendall.s...@workday.com> wrote: > The example produces an error saying it can’t

Re: [basex-talk] New basex-version -> broken paths

2017-09-03 Thread Kendall Shaw
I don’t have an answer, but I was curious and so I tried setting the option RESTPATH to /tmp. I am using 8.6.5. With that, run=some.xq and run=../tmp/some.xq both ran the same query. In some.xq I had doc(‘../tmp/some.xml’) and I get an error that /opt/tomcat/webapps/basex/tmp/some.xml doesn’t

Re: [basex-talk] XML import issue (header related)

2017-09-01 Thread Kendall Shaw
I think my mail client altered my post to move ‘.’ characters to the end of what it thinks is a sentence. This: e:strip-namespaces(). Is supposed to be this: e:strip-namespaces(.)

Re: [basex-talk] XML import issue (header related)

2017-09-01 Thread Kendall Shaw
On 9/1/17, 1:04 PM, "basex-talk-boun...@mailman.uni-konstanz.de on behalf of Martin Honnen" wrote: On 01.09.2017 22:01, Alexander Holupirek wrote: >> On 1. Sep 2017, at 19:41, Ron Katriel

Re: [basex-talk] Best practice for storing timestamp information in XML

2017-08-29 Thread Kendall Shaw
I assume these are durations, but I’m not sure if the clock start date is relevant. If you can assume it’s not going to span days, my first thought was something like: string(xs:time("00:00:00.000") + xs:dayTimeDuration("PT0.0001S")) which produces: 00:00:00.0001 The duration is being

Re: [basex-talk] Best practice for storing timestamp information in XML

2017-08-29 Thread Kendall Shaw
t $ms := 999 return xs:time('00:00:00.000') + xs:dayTimeDuration(concat('PT', $ms div 1, 'S')) Kendall On 8/29/17, 6:52 PM, "basex-talk-boun...@mailman.uni-konstanz.de on behalf of Kendall Shaw" <basex-talk-boun...@mailman.uni-konstanz.de on behalf of kendall.s...@

Re: [basex-talk] Architecture question

2017-10-18 Thread Kendall Shaw
Someone can probably give a better answer. As far as I know there are no xquery socket io functions provided with basex. You can write java to do that or you can use an external process that communicates with the mainframe and invoke that process from xquery, among other solutions. If you write

Re: [basex-talk] AUTHMETHOD = Custom

2017-10-17 Thread Kendall Shaw
lly mentions HTTP server, so maybe this doesn't apply to the non-HTTP server. I'm trying to figure out how to construct the response for the realm:nonce that the server sent, but not having a whole lot of luck so far. Regards, -- Dave On 10/17/2017 4:05 PM, Kendall Shaw wr

Re: [basex-talk] AUTHMETHOD = Custom

2017-10-17 Thread Kendall Shaw
The HTTP parts that I suggested are using basicauth but with a password that is not intended to be secret. From: <basex-talk-boun...@mailman.uni-konstanz.de> on behalf of Kendall Shaw <kendall.s...@workday.com> Date: Tuesday, October 17, 2017 at 2:39 PM To: "basex-talk@mailma

Re: [basex-talk] AUTHMETHOD = Custom

2017-10-17 Thread Kendall Shaw
elieve. The data I get from the server is ascii. -- Dave On 10/17/2017 4:39 PM, Kendall Shaw wrote: Hi, If you are using the http server because you plan to use basex over HTTP and you don’t want to require any authentication, then what I suggested should work. For example, your program

Re: [basex-talk] AUTHMETHOD = Custom

2017-10-17 Thread Kendall Shaw
From: on behalf of Dave Day Date: Tuesday, October 17, 2017 at 9:53 AM To: "basex-talk@mailman.uni-konstanz.de" Subject: [basex-talk] AUTHMETHOD = Custom Greetings list, In the

Re: [basex-talk] Architecture question

2017-10-19 Thread Kendall Shaw
communication, there shouldn't be an issue. On 10/19/2017 2:29 PM, Kendall Shaw wrote: > On 10/19/17, 10:54 AM, "Christian Grün" <christian.gr...@gmail.com> wrote: > > @Kendall: > > > If I understood, it was c

Re: [basex-talk] Architecture question

2017-10-19 Thread Kendall Shaw
abase is updated. Basex server sends the response to the browser. Would this work? On 10/19/2017 3:08 PM, Kendall Shaw wrote: > It does: HTTP. > > On 10/19/17, 12:42 PM, "basex-talk-boun...@mailman.uni-konstanz.de on behalf

Re: [basex-talk] Architecture question

2017-10-19 Thread Kendall Shaw
s the result of running a query or a > >> command. > >> > >> Maybe someone from the Basex developers group will chime in here. > >> > >> -- Dave > >> > >> >

Re: [basex-talk] Serialization options

2017-11-29 Thread Kendall Shaw
Hi, This is awful, but: replace(csv:serialize($csv), '([^])[]', '$1') That results in CRLF for me when served from RESTXQ. Hopefully, there is a better answer. csv:serialize complained that it didn’t recognize the option ‘item-separator’ or the option ‘method’. I didn’t try the file

Re: [basex-talk] Serialization options

2017-11-30 Thread Kendall Shaw
Hi, Before people post CSV files to a web service, they bring a troop of Guerillas into a room and give them computer keyboards. After that the guerillas pound on the keyboards and then click send. So, the CSV files that arrive can have different separators between each other and they use

Re: [basex-talk] Serialization options

2017-11-30 Thread Kendall Shaw
Hi, Thank you, I will certainly use the newline option instead of what I described, I n the future. Related to that, am I getting syntax wrong here: csv:serialize(A, map {'newline': ''}) I get back unknown option ‘newline’. The same for item-separator and method. Also, about the csv option

[basex-talk] repo install

2017-11-10 Thread Kendall Shaw
I have been updating packages by modifying the files in REPOPATH instead of creating a xar file and using repo install. Is it safe to expect that to continue to work for the foreseeable future? Kendall

Re: [basex-talk] Can't update or delete JSON objects

2017-11-13 Thread Kendall Shaw
From: on behalf of "E. Wray Johnson" Date: Sunday, November 12, 2017 at 12:32 AM To: BaseX Subject: [basex-talk] Can't update or delete JSON objects I have tried XQUERY updates that should

Re: [basex-talk] Loading data

2017-11-20 Thread Kendall Shaw
Hi, Just about building maps, in general: If you look at map:merge in http://docs.basex.org/wiki/Map_Module it shows a way to build a map with a for expression. If the question updating maps in a loop was about this, then it is probably preferable to have the result of the for expression be a

Re: [basex-talk] Loading data

2017-11-20 Thread Kendall Shaw
.de> on behalf of Kendall Shaw <kendall.s...@workday.com> Date: Monday, November 20, 2017 at 12:13 PM To: BaseX <basex-talk@mailman.uni-konstanz.de> Subject: Re: [basex-talk] Loading data I hope that the tuple stream of a FLWOR expression does not accumulate heap memory. Is that t

Re: [basex-talk] Loading data

2017-11-20 Thread Kendall Shaw
I hope that the tuple stream of a FLWOR expression does not accumulate heap memory. Is that the case, Christian, or anyone? Kendall From: "E. Wray Johnson" <wray.john...@gmail.com> Date: Monday, November 20, 2017 at 10:37 AM To: Kendall Shaw <kendall.s...@workday.com>

Re: [basex-talk] Update/Delete JSON

2017-11-15 Thread Kendall Shaw
On 11/15/17, 4:24 AM, "basex-talk-boun...@mailman.uni-konstanz.de on behalf of Christian Grün" wrote: Hi Maurice, Depending on the chosen format, different outputs will be generated by

Re: [basex-talk] updating inside map:for-each

2017-11-14 Thread Kendall Shaw
On 11/14/17, 1:42 AM, "basex-talk-boun...@mailman.uni-konstanz.de on behalf of Christian Grün" wrote: > How can database updating be done inside map:for-each ? The higher-order functions of the

Re: [basex-talk] Architecture question

2017-10-19 Thread Kendall Shaw
lt of running a query or a >> command. >> >> Maybe someone from the Basex developers group will chime in here. >> >> -- Dave >> >> >> >> On 10/18/2017 7:56 PM, Kendall Shaw wrote: >>> Someone can

Re: [basex-talk] Architecture question

2017-10-19 Thread Kendall Shaw
-- Dave On 10/19/2017 4:12 PM, Kendall Shaw wrote: > If the desktop code can be java, then it could be like: > > A web application running in basex serves the web page that is UI for the user. > > That web application uses the module that you wro

Re: [basex-talk] Architecture question

2017-10-27 Thread Kendall Shaw
d module use RMI to communicate with the java communication server? Regards, -- Dave On 10/19/2017 8:48 PM, Kendall Shaw wrote: > Yes. The section in the documentation about RESTXQ shows how XQuery can be used to handle HTTP requests. The part abo

Re: [basex-talk] Architecture question

2017-10-27 Thread Kendall Shaw
at then responds to the browser. User views the response. On 10/27/2017 10:34 AM, Kendall Shaw wrote: > HI, > > I would think so. But, if you mean using RMI to call functions in BaseX, it’s probably a better idea to run basex on both and use the

Re: [basex-talk] Architecture question

2017-10-27 Thread Kendall Shaw
unicate directly with the java comm server, and I am trying to research how to do that now. My biggest issue with doing all of this is that I'm not in my own element. I'm having to teach myself java on the fly, as I go. -- Dave On 10/27/2017 1:01 PM, Ke

Re: [basex-talk] Use Bash to construct multi-file form submission

2023-08-18 Thread Kendall Shaw
Hi Eliot, In case you are still working on this, there is --config/-k where you can specify curl arguments. I think that would avoid bash parsing. Best, Kendall On 8/15/2023 8:00 AM, Eliot Kimber wrote: This is not strictly a BaseX question but it is in the context of communicating with a

Re: [basex-talk] Link Graph Construction: Anything I Can Crib or Learn From?

2022-06-26 Thread Kendall Shaw
And there are graph databases not based on RDF: Neo4j, Tinkerpop and others. For gathering metrics from a DITA CCMS, I used Blazegraph and querie using SPARQL. You can express just those sort of things: What links to this. About that last paragraph: I've also wondered how representing mostly