XQuery collection function
XQ-S-2a Filter blogs content by XQuery
collection usage example
Example
collection description
XQuery collection function can be used to get all parsed documents in collection. Virtuoso engine supports several types of collections:
- http://local.virt/DAV/PATHTO - local DAV collection. Contains all documents in DAV collection with path "PATHTO".
- http://..... - any other URI relates to remote DAV collections
In this example collection function is used to concatenate the entries from several RSS feed files and show their titles and link to the articles. example.vsp uses this collection to filter blogs by XPath exression. For instance, example.vsp with '//link' expression returns all link from all feeds.
Click on the "Set initial state" link to load the XML files in /DAV/feeds/xq_s_2a/ DAV Collection.
Click on the "Run" link to experience the demo. Please note that some of the options query files loaded in demo XQ-S-2.
| View the source | Action |
|---|---|
| 1. xq_s_2a.sql | Set the initial state |
| 2. example.vsp | Run |
| 3. rss1.xml | |
| 4. rss10.xml | |
| 5. rss11.xml | |
| 6. rss12.xml | |
| 7. rss13.xml | |
| 8. rss14.xml | |
| 9. rss2.xml | |
| 10. rss3.xml | |
| 11. rss4.xml | |
| 12. rss5.xml | |
| 13. rss6.xml | |
| 14. rss7.xml | |
| 15. rss8.xml | |
| 16. rss9.xml |
OpenLink Home
Technical Support