Hi David,
Based on the comments in the examples, it looks like the function calls in the RunQueries.java example (https://github.com/BaseXdb/basex-examples/blob/master/src/main/java/org/base...) are strictly local calls that operate directly on local XML documents - there's no BaseX server involved, no client communication, no files created in org.basex.path, etc. Is that correct?
that’s completely correct. I have added some explanatory lines in our Wiki [1] to make this more clear.
What's the difference between the queries in RunQueries.java and QueryCollection.java? My guess from skimming the documentation is that, per above, RunQueries just uses BaseX's XQuery API, without taking advantage of BaseX's indexing, etc capabilities, whereas QueryCollection creates a (local) BaseX server, indexes the document, and then its queries would be accelerated using those indexes. Is this also correct?
This is also correct. The examples are basically meant to show that there are lots of different ways to work with BaseX. You can use it as command-line tool, as embedded XQuer processor, as database server, for web applications, etc.
Hope this helps, Christian
[1] http://docs.basex.org/wiki/Java_Examples
Thanks,
-David
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk