Brian Sheppard | 24 Nov 21:00 2014
Picon

Implementing xq files independent of exide

I'm just beginning to dabble with exist-db and have noticed that when I create new files (in this case,
index.xq) within an app, it doesn't seem to be visible via the server or exide. But if I create the file via
exide, I can then see it and edit it with my normal text editor?

How can one work independently of eXide when needed? 

Thanks.
B-

--------------------------------------------------
Brian Sheppard
University of Wisconsin Digital Collections Center
brian.sheppard <at> wisc.edu    (608) 262-3349

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
Timothy W. Cook | 24 Nov 15:39 2014

eXide XML Results

eXide version 2.1.2

Is there a place I can set the number of displayed results to more than 10? 

I see the balloon  says Query returned 19 items.  But only 10 are displayed. 

Thanks,
Tim 


--

============================================
Timothy Cook
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
peter winstanley | 24 Nov 13:04 2014

optimisation of iterating through a collection

Hello List
in a recent discussion no parallel execution the point was made that FLOWR are single thread operations.

What is the best design pattern for optimising iteration through all documents in a collection.  My use
case has about 200k documents and involves restructuring the content (creating new nodes in a separate
output document) and including the results of joins with other documents).

Thanks

Peter

____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
Check it out at http://www.inbox.com/marineaquarium

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Pablo Pazos | 24 Nov 08:19 2014

Getting data from many XMLs of the same collection

Hello list, I'm new into eXist-db and I'm trying (with no luck) to get data from a collection I created under "apps", called "compositions", using Java/Groovy code.

1. Under apps/compositions collection, I put a couple of XMLs with this shape:

<version xmlns="http://schemas.openehr.org/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ORIGINAL_VERSION">
  ...
  <data xsi:type="COMPOSITION" archetype_node_id="openEHR-EHR-COMPOSITION.signos.v1">
    <name>
      <value>xxxxx</value>
    </name>
    ...
  </data>
</version>



2. I'm using XQJ to help me with the client side code. I tried to use a sample code (from here http://en.wikipedia.org/wiki/XQuery_API_for_Java and http://xqj.net/exist/) like: 


XQDataSource xqs = new ExistXQDataSource(); xqs.setProperty("serverName", "localhost"); xqs.setProperty("port", "8080"); XQConnection conn = xqs.getConnection("user","pass"); XQExpression expr = conn.createExpression(); XQResultSequence result = expr.executeQuery( "for $n in fn:collection('/db/apps/compositions')//data " + "return fn:data($n/name/value)"); // execute an XQuery expression // Process the result sequence iteratively while (result.next()) { // Print the current item in the sequence System.out.println("Product name: " + result.getItemAsString(null)); } // Free all resources created by the connection conn.close();


3. And I expected to get the xxxxx texts from all the xmls under apps/compositions collection but I get no data without any exception.


Any ideas?

Thanks a lot!

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Joe Wicentowski | 23 Nov 07:15 2014
Picon

Error in rest:resource-functions() output

Hi Adam,

I recently dived back into RestXQ and noticed a small error in the output of the super-useful rest:resource-functions() function.  With eXist 2.2 and the default apps installed, this should be one of the resource functions returned:

<rest:resource-function xquery-uri="/db/apps/demo/examples/contacts/contacts.xql">
<rest:identity namespace="http://exist-db.org/apps/demo/restxq/contactslocal-name="get-multiplearity="2"/>
<rest:annotations>
<rest:GET/>
<rest:produces>
<rest:internet-media-type>application/json</rest:internet-media-type>
</rest:produces>
<rest:path specificity-metric="7">
<rest:segment>demo</rest:segment>
<rest:segment>contacts</rest:segment>
</rest:path>
<rest:query-param name="takeargument="{$take}default-value="10"/>
<rest:query-param name="skipargument="{$skip}default-value="0"/>
<output:media-type xmlns:output="http://www.w3.org/2010/xslt-xquery-serializationname="skipargument="{$skip}default-value="0"/>
<output:method xmlns:output="http://www.w3.org/2010/xslt-xquery-serializationname="skipargument="{$skip}default-value="0"/>
</rest:annotations>
</rest:resource-function>

Notice here how <output:media-type> has extraneous <at> name, <at> argument, and <at> default-value attributes seemingly inherited from the <rest:query-param> elements.

Instead of these attributes, I believe this is what should be showing is something more like what we see with <rest:produces>, except reflecting the value of the annotations in this query, which are:

    %output:media-type("application/json")
    %output:method("json")

Similarly, I saw <at> specificity-metric from <rest:path> creep in here:

<rest:resource-function xquery-uri="/db/apps/demo/examples/contacts/contacts.xql">
<rest:identity namespace="http://exist-db.org/apps/demo/restxq/contactslocal-name="getarity="1"/>
<rest:annotations>
<rest:GET/>
<rest:produces>
<rest:internet-media-type>application/json</rest:internet-media-type>
</rest:produces>
<rest:path specificity-metric="14">
<rest:segment>demo</rest:segment>
<rest:segment>contacts</rest:segment>
<rest:segment>{$id}</rest:segment>
</rest:path>
<output:method xmlns:output="http://www.w3.org/2010/xslt-xquery-serializationspecificity-metric="14"/>
<output:media-type xmlns:output="http://www.w3.org/2010/xslt-xquery-serializationspecificity-metric="14"/>
</rest:annotations>
</rest:resource-function>

(I'd have expected "application/json" and "json", as before.)

And I even saw <at> namespace, <at> local-name, and <at> arity from <rest:identity> creep in here, using a module of my own:

<rest:resource-function xquery-uri="/db/apps/restxq-helper/restxq-helper.xqm">
<rest:identity namespace="http://joewiz.org/ns/xquery/restxq-helperlocal-name="error-404arity="0"/>
<rest:annotations>
<rest:GET/>
<output:media-type xmlns:output="http://www.w3.org/2010/xslt-xquery-serializationnamespace="http://joewiz.org/ns/xquery/restxq-helperlocal-name="error-404arity="0"/>
<output:method xmlns:output="http://www.w3.org/2010/xslt-xquery-serializationnamespace="http://joewiz.org/ns/xquery/restxq-helperlocal-name="error-404arity="0"/>
</rest:annotations>
</rest:resource-function>

(I'd have expected "text/html" and "html5", based on the actual value of the %output annotations in my function.)

I noticed this because I was writing a simple transform of the output to create a menu of available RestXQ API endpoints.  In case you'd like to see my work on this, I've posted it at https://gist.github.com/joewiz/bda3befd96f65cdf6fc7.  I know I haven't covered every possible RestXQ annotation or permutation thereof, but this might still be of help to others trying to debug as they work with RestXQ.

Thanks,
Joe
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
peter winstanley | 20 Nov 23:44 2014

Re: version 2.2 final - what is the timetable?

What a wonderfully responsive team!!  Thanks very much.

P

> -----Original Message-----
> From: dannes <at> exist-db.org
> Sent: Thu, 20 Nov 2014 12:14:22 +0100
> To: p.w <at> inbox.com
> Subject: Re: [Exist-open] version 2.2 final - what is the timetable?
> 
> Please monitor this list closely today :)
> 
> --
> www.exist-db.org
> 
>> On 20 Nov 2014, at 11:36, peter winstanley <p.w <at> inbox.com> wrote:
>> 
>> I have just been reading the webpage about 2.2 which mentions the
>> expectation of a final version in August.  I don't want to appear pushy
>> in any way, but I would appreciate an update on the timetable (apologies
>> if I've missed it)

____________________________________________________________
Can't remember your password? Do you need a strong and secure password?
Use Password manager! It stores your passwords & protects your account.
Check it out at http://mysecurelogon.com/password-manager

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
Alasdair Dougall | 20 Nov 21:25 2014
Picon

Re: eXist 2.2 final is out!

Fantastic effort!  Will have to send you guys some Bassets Jellybabies as way of thanks.

> On 20 Nov 2014, at 20:10, exist-open-request <at> lists.sourceforge.net wrote:
> 
> [Exist-open] eXist 2.2 final is out!

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
wolfgang | 20 Nov 20:30 2014

eXist 2.2 final is out!

It cost us a lot of sweat during the past weeks, but finally here it is:



Wolfgang
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
peter winstanley | 20 Nov 12:02 2014

version 2.2 final - what is the timetable?

Hello List
I have just been reading the webpage about 2.2 which mentions the expectation of a final version in
August.  I don't want to appear pushy in any way, but I would appreciate an update on the timetable
(apologies if I've missed it)

Thanks

Peter

____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
peter winstanley | 20 Nov 12:01 2014

optimisation of iterating through a collection

Hello List
in a recent discussion no parallel execution the point was made that FLOWR are single thread operations.

What is the best design pattern for optimising iteration through all documents in a collection.  My use
case has about 200k documents and involves restructuring the content (creating new nodes in a separate
output document) and including the results of joins with other documents).

Thanks

Peter

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
peter winstanley | 20 Nov 11:36 2014

version 2.2 final - what is the timetable?

Hello List
I have just been reading the webpage about 2.2 which mentions the expectation of a final version in August.  I don't want to appear pushy in any way, but I would appreciate an update on the timetable (apologies if I've missed it)

Thanks

Peter

Free 3D Earth Screensaver
Watch the Earth right on your desktop!Check it out at www.inbox.com/earth
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open

Gmane