Zorba (XQuery processor)
Zorba is an open source query processor written in C++, implementing * several W3C XQuery and XML specifications and * the JSONiq language for processing JSON data. Zorba is distributed under Apache License, Version 2.0. The project is mainly supported by the FLWOR Foundation, Oracle, and . Zorba isn't under active development any more. The GitHub repo's last commit is from 2017 while the last release 3.1 is from June 2015; the latest version 2.9.1 on SourceForge dates from May 2013. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
Zorba is an open source query processor written in C++, implementing several W3C XQuery and XML specifications and the JSONiq language for processing JSON data. Zorba is distributed under Apache License, Version 2.0. The project is mainly supported by the FLWOR Foundation, Oracle, and . Zorba isn't under active development any more. The GitHub repo's last commit is from 2017 while the last release 3.1 is from June 2015; the latest version 2.9.1 on SourceForge dates from May 2013. (: this is a variable declaration statement :) variable $a as xs:integer := 0; variable $b as xs:integer := 1; variable $c as xs:integer := $a + $b; variable $fibseq as xs:integer* := ($a, $b); while ($c lt 100) { (: this is a variable assignment statement :) $fibseq := ($fibseq, $c); $a := $b; $b := $c; $c := $a + $b; } $fibseq The following is an example of CRUD operations using Scripting, XQuery, and XQuery Update. variable $stores := doc("stores.xml")/stores; (: Create :) insert node 4 NY into $stores; (: Update :) replace value of node $stores/store[state="NY"]/store-number with "5"; (: Delete :) delete node $stores/store[state != "NY"]; (: Read :) $stores module namespace g = "http://www.zorba-xquery.com/guestbook"; import module namespace db = "http://www.zorba-xquery.com/modules/store/static/collections/dml"; declare namespace an = "http://www.zorba-xquery.com/annotations"; (: Declares a collection named entries :) declare collection g:entries as element(entry); (: Declares a variable that points to the g:entries collection :) declare variable $g:entries := xs:QName('g:entries'); (: Declares an index named entry on top of the entries collection :) declare %an:automatic %value-equality index g:entry on nodes db:collection(xs:QName('g:entries')) by xs:string(@id) as xs:string; ==References==
Cite this
"Zorba (XQuery processor)". 1766061349. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1328201152 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy