[Sedna-discussion] Xinclude Support in Sedna

2011-04-12 Thread Veeru
Hi Guru's

Do we have xinclude support in sedna, i have a collection of documents trying 
to query a particular element in the collection.

?xml version=1.0 standalone=yes?
Information
links xmlns:xi=http://www.w3.org/2001/XInclude;
xi:include href=a.xml /
/links
/Information
a.xml contains
DATA
nameTest/name
Value50/Value?
/DATA
I have 5 such documents in the collection, trying to find Name in all the 
documents

using for $x in collection(Take2)//name
return $x 


query returns an empty set. any help is appreciated




~Veeru
--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo___
Sedna-discussion mailing list
Sedna-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sedna-discussion


[Sedna-discussion] Sedna Query

2011-04-12 Thread Christopher Whiteley
I have two issues that I am attempting to resolve - but have been unable to 
produce a working fix for my needs.

1. Is there a function available within Sedna which would allow me to Query a 
collection for recently updated XML based on a timestamp?

2.  I have a basic request like this:

for $sp in collection('dev.openzis.testarea')
where $sp/StudentPersonal/Title1 = 'No'
return $sp

This simple returns multiple XML objects in a string.  To process this request 
against a setup of 86,000 XML records
takes some time.  To speed up the request I have created a simple 
index-scan('Title1', 'No', 'EQ') - however just
creating the index-scan does not speed up my original request.

Q:  Must I connect the index-scan to the request above? How might that look? 
Can an Index-Scan have multiple elements?

Thanks for your time

Christopher




Christopher Whiteley
Billboard.Net
Phone: +1 (352) 557-3275
US Cell: (352) 223-4255
chris.white...@billboard.net
AIM: mrchris259
Yahoo: openzis
LinkedIn: http://www.linkedin.com/in/cwhiteley





--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo___
Sedna-discussion mailing list
Sedna-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sedna-discussion


Re: [Sedna-discussion] Fwd: Use of several collections in a database

2011-04-12 Thread Ivan Shcheklein
Hi Luca,


I do have another question though : Let's say I have a collection named
 Hosts. Inside this collection, I put custom Java objects with the method
 above. My question is this : can I use XQuery to search the data from these
 objects? And if it is possible, how can I write the actual query?
 Let us say my custom object (Host) includes a hostname (String) and the
 free space on it (long). I'd like to get, say, the name of the host with the
 most free space. The problem is that I don't know the name of the xml tags
 used to store the data, since the actual xml was written by the API method.
 Isn't there a query that will give me the tags in a collection?


1. To view structure (schema) of your database or collection or document
query one of the following system documents (
http://modis.ispras.ru/sedna/progguide/ProgGuidesu8.html#x14-570002.5.6):

   - $schema document – descriptive schema of all documents and
collections with
   some schema-related information;
   - $schema_name document – the descriptive schema of the document
or collection
   named name;

For example, run se_term, and execute doc('$schema_test') to get structure
of the 'test' document/collection.

2.  How do you store your resource? Please give us snippet of code - it's
very hard to understand even which one API do you use (XML:DB, XQJ, native
Sedna Java API).


Ivan Shcheklein,
Sedna Team
--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo___
Sedna-discussion mailing list
Sedna-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sedna-discussion


Re: [Sedna-discussion] Sedna Xinclude

2011-04-12 Thread Ivan Shcheklein
Hi Veeru,

Do we have xinclude support in sedna


No, Sedna doesn't process XInclude instructions. You need to include
documents on the application level (with some tools or/and libraries) before
bulk load them into Sedna.


Ivan Shcheklein,
Sedna Team
--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo___
Sedna-discussion mailing list
Sedna-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sedna-discussion


Re: [Sedna-discussion] Sedna Query

2011-04-12 Thread Ivan Shcheklein
Hi Christopher,


1. Is there a function available within Sedna which would allow me to Query
 a collection for recently updated XML based on a timestamp?



Do you mean something like: get all documents which were updated in 2
hours? No, Sedna doesn't track updates timestamps.


Q:  Must I connect the index-scan to the request above? How might that look?
 Can an Index-Scan have multiple elements?



index-scan('Title1', 'No', 'EQ')

should return the same result as your initial query. Send us create index
statement you executed, if that query doesn't work properly.


Ivan Shcheklein,
Sedna Team
--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo___
Sedna-discussion mailing list
Sedna-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sedna-discussion


Re: [Sedna-discussion] Sedna Xinclude

2011-04-12 Thread Veeru
Hi Ivan

Got that, Did that with other libraries as suggested. 

Awesome work with Sedna :)


Thanks
Veeru





From: Ivan Shcheklein shchekl...@gmail.com
To: Veeru me_vs_world77-se...@yahoo.com
Cc: sedna-discussion@lists.sourceforge.net 
sedna-discussion@lists.sourceforge.net
Sent: Tuesday, April 12, 2011 9:09 AM
Subject: Re: [Sedna-discussion] Sedna Xinclude


Hi Veeru,


Do we have xinclude support in sedna

No, Sedna doesn't process XInclude instructions. You need to include documents 
on the application level (with some tools or/and libraries) before bulk load 
them into Sedna.


Ivan Shcheklein,
Sedna Team--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo___
Sedna-discussion mailing list
Sedna-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sedna-discussion


Re: [Sedna-discussion] Sedna Query

2011-04-12 Thread Charles Foster
Christopher,

There's nothing stopping you from creating documents, where on ingestion
time you include a time stamp in an element which can be indexed.

e.g.

doc
  data /
/doc

becomes:

doc
  data /
  timestamp2011-04-12T23:39:43.293/timestamp
/doc

Regards,

Charles



 Hi Christopher,


 1. Is there a function available within Sedna which would allow me to
 Query
 a collection for recently updated XML based on a timestamp?



 Do you mean something like: get all documents which were updated in 2
 hours? No, Sedna doesn't track updates timestamps.


 Q:  Must I connect the index-scan to the request above? How might that
 look?
 Can an Index-Scan have multiple elements?



 index-scan('Title1', 'No', 'EQ')

 should return the same result as your initial query. Send us create
 index
 statement you executed, if that query doesn't work properly.


 Ivan Shcheklein,
 Sedna Team
 --
 Forrester Wave Report - Recovery time is now measured in hours and minutes
 not days. Key insights are discussed in the 2010 Forrester Wave Report as
 part of an in-depth evaluation of disaster recovery service providers.
 Forrester found the best-in-class provider in terms of services and
 vision.
 Read this report now!
 http://p.sf.net/sfu/ibm-webcastpromo___
 Sedna-discussion mailing list
 Sedna-discussion@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/sedna-discussion



--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
___
Sedna-discussion mailing list
Sedna-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sedna-discussion