Hi,
Zitat von Michael Piotrowski mxp@cl.uzh.ch:
As you're only interested in *element* nodes (<p> and <l>), we can be certain that any node in Text-DB is also in Text-DB-WS, and that the path to a particular node in both databases is identical.
Thanks for your code! As my collections consists of different documents, I had to include the document uri, otherwise the paths are ambiguous:
declare option output:separator '\n';
for $id in //entry/node/data() let $path := replace(db:open-id('Digibib-DTA-fuzzy', $id)/path(), 'Q{.*?}', '*:') let $base := replace(base-uri(db:open-id('Digibib-DTA-fuzzy', $id)), 'fuzzy', 'fuzzy-ws') return $id || ': ' || xquery:eval(concat('db:node-id(doc("', $base, '")', $path, ')'))
The replacement in $base changes the document-uri of the original collection to the new one. $id is extracted from collect-DB. Is there another way to get the complete path to the node without concatenating base-uri to path() avoiding the eval-construction?
It seems to work fine, I can create pairs of old and new node-ids for a test collect-DB with 15 entries.
For the entire collect-DB, when returning only $path or/and $base instead of executing the eval-construction, everything runs smoothly and takes around 74000 ms in the current 7.3.1 GUI for 108000 ids. Which is OK I think.
However, I get this in the console where I started basexgui:
2012-06-27 11:50:58.505 java[9887:1707] __CFServiceControllerBeginPBSLoadForLocalizations timed out while talking to pbs
What does this mean?
If I run the whole query (i.e., with the eval-construction), the GUI crashes and in the console this appears:
/opt/basex/bin/basexgui: line 32: 9907 Segmentation fault java -cp "$CP" $VM "${vm_args[@]}" org.basex.BaseXGUI "${general_args[@]}"
Any suggestions what this means and how to fix it?
Here some more info from the Apple "Fehlerbericht", I can send more, if needed.
Process: java [9516] Path: /usr/bin/java Identifier: com.apple.javajdk16.cmd Version: 1.0 (1.0) Code Type: X86-64 (Native) Parent Process: bash [9511]
Date/Time: 2012-06-26 23:45:42.008 +0200 OS Version: Mac OS X 10.6.8 (10K549) Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000000b8 Crashed Thread: 6 Java: VM Thread
Best regards
Cerstin