[basex-talk] Collection related functions [SEC=UNCLASSIFIED]

2013-01-22 Thread Thamm, Russell
UNCLASSIFIED Hi, Does baseX provide any collection related functions? In particular, I am after equivalents to the eXist functions: xmldb:create-collection xmldb:get-child-collections xmldb:get-child-resources I have searched the module library documentation and can't seem to find anythin

Re: [basex-talk] BaseX: Support for JSON

2013-01-22 Thread Abishek N
I see where the problem is now, it was not able to parse character &, I URLEncoded the json and was able to resolve it thanks for your help. I was able to find this out by printing the json which was received by the xqm module and the json got truncated after &. On Tue, Jan 22, 2013 at 11:07 A

Re: [basex-talk] BaseX: Support for JSON

2013-01-22 Thread Abishek N
Andreas, I created a new onStatus method which would pass the jason object itself on twitter4j. Using this jason object I do JSONObject.toString operation to convert the JSON to string. I validated this string with proper json to xml editors and this is perfect. Nearly half of the JSON strin

Re: [basex-talk] BaseX: Support for JSON

2013-01-22 Thread Abishek N
I did not get the exception for every tweet that I was trying to capture. half them got through while the rest errored out. most of them error out stating this Error [bxerr:BXJS0001]: JSON parser (1:3817): Char "0" found, " expected on my eclipse obviously with different line numbers. I am actuall

[basex-talk] XSD Validation

2013-01-22 Thread Seenivasan Gunabalan
Hi all, I have two questions regarding XSD validation, 1. resolving paths while using imported XSDs 2. error reporting 1. resolving paths while using imported XSDs consider this example let $doc := let $schema := doc("../xsd/XDW.xsd") return validate:xsd($doc,$schema) this return

[basex-talk] concurrency within xquery

2013-01-22 Thread Seenivasan Gunabalan
Hi all, Is there a way to control concurrency from inside xqueries? Though its possible to achieve concurrency through REST (and RESTXQ?) interface, I am looking for ways to declaratively ask an xquery to run subqueries in a concurrent way. Thanks in advance Seenivasan ___

[basex-talk] Fwd: Fwd: dynamic web application, XQJ, BaseX

2013-01-22 Thread marco fregonese
Hi Christian, thank you for answering. Sorry, but I didn't read http://docs.basex.org/wiki/Repository I did "REPO INSTALL path/to/mymodule.xqm" and I solved all the problems. Now everything is OK. Thanks again. -- Forwarded message -- From: Christian Grün Date: 2013/1/22 Subject:

Re: [basex-talk] Hi all, and URL Rewriting/Request handling question

2013-01-22 Thread Christian Grün
Hi Jay, > I've been developing in eXist since 2008, and I'm now trying out your BaseX. welcome! > I'm impressed so far, but how can I perform URL rewriting? I've tried using > Jetty's Rewrite Handler via the example code at > http://wiki.eclipse.org/Jetty/Feature/Rewrite_Handler but then the ser

Re: [basex-talk] Fwd: dynamic web application, XQJ, BaseX

2013-01-22 Thread Christian Grün
Marco, thanks for the example. The reason for the error message is that your query will be executed server-side, and the server has no information on the working directory the client was started from. Two possible solutions for that: – if you place your modules in the module repository of your Ba

Re: [basex-talk] BaseX: Support for JSON

2013-01-22 Thread Andreas Weiler
Hi Abishek, you have to use the raw JSON content of the status object from Twitter4J. DataObjectFactory.getRawJSON(status) I didn't have any issues with parsing and storing that string. -- Andreas Am 22.01.2013 um 09:29 schrieb Christian Grün: > Hi Abishek, > > our JSON Module assumes that th

Re: [basex-talk] BaseX: Support for JSON

2013-01-22 Thread Christian Grün
Hi Abishek, our JSON Module assumes that the input is a correctly encoded Unicode string. More specifically, it takes an xs:string as argument, which should usually already be valid Unicode. You could start and have a look at the rejected JSON strings by wrapping your json function call with try/

[basex-talk] Hi all, and URL Rewriting/Request handling question

2013-01-22 Thread Jay Straw
Hi all, I've been developing in eXist since 2008, and I'm now trying out your BaseX. I'm impressed so far, but how can I perform URL rewriting? I've tried using Jetty's Rewrite Handler via the example code at http://wiki.eclipse.org/Jetty/Feature/Rewrite_Handler but then the server fails to start