Hi Liam,
Thank you! And not at all confusing in terms of babbleness.
Those links will certainly help with the nitty-gritty of creating the Python side of preparing the parameterized string of a new entry in the dataset. I will take your thoughts into account when trying to make a next step in this "solution discovery" process that I am on.
Still remaining is the basic "harness" of a Python-originated update transaction. I'm still trying to bridge the gap between all the fine-grained info of the Server Protocol page (http://docs.basex.org/wiki/Server_Protocol) and proper transformation of those bits into Python-submitted API calls. (I hope this makes sense.)
BTW, in the meantime, I have downloaded Christian Grun et al's 2012 awesome "A framework for retrieval and annotation in digital humanities using XQuery full text and update in BaseX" (PDF: https://ids-pub.bsz-bw.de/frontdoor/index/index/year/2015/docId/3715). I am digesting this incredible inspirational resource as fast as I can. :-)
-: Jim :-
-----Original Message----- From: Liam R. E. Quin liam@fromoldbooks.org Sent: Wednesday, April 10, 2019 7:06 PM To: Jim Salmons jim.salmons@factminers.org; basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] Nooby/#CitizenScientist REQUEST for HELP: Python implementation of this XQuery
On Wed, 2019-04-10 at 14:52 -0600, Jim Salmons wrote:
[...]
I _think_ what you are asking is, how so i interpolate values into a string in Python.
If that is correct, then the first Google result for interpolate values into a string in Python is https://www.programiz.com/python-programming/string-interpolation
The main thing to remember is that $ and { are special in XQuery, so it can be easier to use substitution with a regular expression than direct interpolation.
https://stackoverflow.com/questions/3877623/in-python-can-you-have-variables... may also help.
If this is meaningless technobabble or i have misunderstood, please feel free to ask again but more directly.
Liam
-- Liam Quin, https://www.delightfulcomputing.com/ Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. Web slave for vintage clipart http://www.fromoldbooks.org/