Dear Micheal,
My apologies! i was able to demonstrate to myself that both behaviors were due to errors on my part.
Best wishes,
--greg
On Tue, Mar 29, 2011 at 4:44 PM, Meredith Gregory lgreg.meredith@gmail.comwrote:
Dear Micheal,
Thanks for your response! i've had a little more luck with your api. However, i've got a small problem regarding database isolation.
If i have two different collections which i created from your Java api (using the XMLDBCreate.java as the template -- but using separate URI's) and query them from the GUI, i get back results specific to those collections. However, if i query from the Java api (using the XMLDBQuery.java as the template) the query runs over both collections. So, results are not isolated to the databases in which they reside. Is there a way to just query the database/collection of interest?
Also, of interest, when i used the Java api to create an XMLResource, set it's content to the XML listed below and then store the resource, the file structure is stored but the values at the leaves are lost. That is the strings in the elements String are null'd out.
Best wishes,
--greg
<?xml version="1.0" encoding="UTF-8"?>
<Connected xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file:/Users/lgm/work/src/projex/biosimilarity/graphatrope/src/main/bnfc/GraphL.xsd"> <EdgeName> <EdgeString> <String value="Bridge"/> </EdgeString>
</EdgeName> <VertexSelection> <Connected> <EdgeName> <EdgeString> <String value="TroubleWater"/> </EdgeString> </EdgeName> <VertexSelection> <Isolated> <Pointed> <VertexString> <String value="Black"/> </VertexString> </Pointed> <Pointed> <VertexString> <String value="White"/> </VertexString> </Pointed> </Isolated> </VertexSelection> <VertexSelection> <Pointed> <VertexString> <String value="Red"/> </VertexString> </Pointed> </VertexSelection> </Connected> </VertexSelection> <VertexSelection> <Pointed> <VertexString> <String value="Yellow"/> </VertexString> </Pointed> </VertexSelection>
</Connected>
On Tue, Mar 29, 2011 at 3:44 PM, Michael Seiferle < michael.seiferle@uni-konstanz.de> wrote:
Dear Greg, dear Frans,
you might as well be interested in using our own API - the examples [1] are straight forward, many of our users feel it's comfortable to use. I do not know what you are working on and whether you rely on xmldb-api a lot, it might be worth a quick look anyway.
But back to your issue: Seems you are right, it really looks like the String[] getNames() method was introduced to replace String getName(). I will see if this can easily be fixed, I am not really into xmldb-api, but if the getName[s]() method is the only difference between our version and the latest version from 11/11/2011 [2] this should not be too hard.
Thanks for reporting and sorry for the inconvenience.
Kind Regards Michael
[1] http://docs.basex.org/wiki/Code_Examples (QueryExample, RunCommands) [1.1] http://docs.basex.org/wiki/XMLDBQuery has an example for xmldb usage [2] http://sourceforge.net/projects/xmldb-org/files/xapi/api/
Am 29.03.2011 um 23:37 schrieb Meredith Gregory:
Dear Frans,
Thanks for the quick response! i was groveling through the code and
coming to the same conclusion.
Best wishes,
--greg
-- L.G. Meredith Managing Partner Biosimilarity LLC 7329 39th Ave SW Seattle, WA 98136
+1 206.650.3740