Added benchmark queries for XMark.
Project: http://git-wip-us.apache.org/repos/asf/vxquery/repo Commit: http://git-wip-us.apache.org/repos/asf/vxquery/commit/edb8d35f Tree: http://git-wip-us.apache.org/repos/asf/vxquery/tree/edb8d35f Diff: http://git-wip-us.apache.org/repos/asf/vxquery/diff/edb8d35f Branch: refs/heads/master Commit: edb8d35f8bf4ba1adbe874b077c03a46527be653 Parents: 0b7dfa0 Author: Preston Carman <[email protected]> Authored: Fri Oct 24 10:02:56 2014 -0700 Committer: Eldon Carman <[email protected]> Committed: Thu Jun 18 13:13:19 2015 -0700 ---------------------------------------------------------------------- .../src/main/resources/xmark/README.md | 41 ++ .../xmark/data/categories/micro_categories.xml | 52 +++ .../xmark/data/catgraph/micro_catgraph.xml | 8 + .../closed_auctions/micro_closed_auctions.xml | 172 +++++++++ .../data/open_auctions/micro_open_auctions.xml | 138 +++++++ .../xmark/data/people/micro_people.xml | 15 + .../xmark/data/regions/micro_regions.xml | 378 +++++++++++++++++++ .../src/main/resources/xmark/queries/q01.xq | 23 ++ .../src/main/resources/xmark/queries/q02.xq | 22 ++ .../src/main/resources/xmark/queries/q03.xq | 26 ++ .../src/main/resources/xmark/queries/q04.xq | 26 ++ .../src/main/resources/xmark/queries/q05.xq | 25 ++ .../src/main/resources/xmark/queries/q06.xq | 22 ++ .../src/main/resources/xmark/queries/q07.xq | 22 ++ .../src/main/resources/xmark/queries/q08.xq | 28 ++ .../src/main/resources/xmark/queries/q09.xq | 33 ++ .../src/main/resources/xmark/queries/q10.xq | 46 +++ .../src/main/resources/xmark/queries/q11.xq | 27 ++ .../src/main/resources/xmark/queries/q12.xq | 28 ++ .../src/main/resources/xmark/queries/q13.xq | 22 ++ .../src/main/resources/xmark/queries/q14.xq | 23 ++ .../src/main/resources/xmark/queries/q15.xq | 29 ++ .../src/main/resources/xmark/queries/q16.xq | 30 ++ .../src/main/resources/xmark/queries/q17.xq | 23 ++ .../src/main/resources/xmark/queries/q18.xq | 28 ++ .../src/main/resources/xmark/queries/q19.xq | 24 ++ .../src/main/resources/xmark/queries/q20.xq | 58 +++ 27 files changed, 1369 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/README.md ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/README.md b/vxquery-benchmark/src/main/resources/xmark/README.md new file mode 100644 index 0000000..afd4a54 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/README.md @@ -0,0 +1,41 @@ +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +XMark +===== + +# Description + +The original XMark queries and data generation are available at http://www.xml-benchmark.org/downloads.html, +with the queries being viewable online at http://www.ins.cwi.nl/projects/xmark/Assets/xmlquery.txt. In the +query folder, we have separate query files singling out the exact syntax for the versions of these queries +used in our VXQuery work with XMark; the differences are due to the way we have physically organized the +XMark data for storage/parallelism reasons. + + +# Query Results + +VXQuery is still being developed and the following outlines the results for each of the XMark queries. +All queries have been modified to use fn:collection instead of fn:doc. In addition the data file has been split up +by the first child of the site tag. Example XML files and folders can be found under the data folder. + +q01: Modified version works. (Full support with VXQUERY-125) +q02: VXQUERY-125 +q03: VXQUERY-125 and VXQUERY-73 +q04: VXQUERY-72 missing node functions +q05: Works. +q06: VXQUERY-126 needs unnesting implementation of // \ No newline at end of file http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/data/categories/micro_categories.xml ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/data/categories/micro_categories.xml b/vxquery-benchmark/src/main/resources/xmark/data/categories/micro_categories.xml new file mode 100644 index 0000000..ba5c193 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/data/categories/micro_categories.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" standalone="yes"?> +<site> + <categories> + <category id="category0"> + <name>dispatch reported dotard holofernes </name> + <description> + <parlist> + <listitem> + <text> + shift carrion doubtful strangle sounding crowned troubled naked yesterday overthrow owe silent recount waters derive + sans four + </text> + </listitem> + <listitem> + <parlist> + <listitem> + <text> + fragment pamper arthur thrive wound fouler streets preventions obey vow bawds myrtle said infinite montague fierce + sense ride souls commended gainsay profession labour intents persuade alter + </text> + </listitem> + <listitem> + <text> + ord villain wore thunder congeal pawned alack customary deny faithful top office spoken please neighbour office + afternoon drum embowell touch sue lifeless leapt called weary congregation yield + </text> + </listitem> + <listitem> + <text> + mental fatal hard ancient stands cor dishes therein gramercy discipline farewell + dire tricks protest cut horatio brother speech sleeping adultress pitch cave liv + nurse drink state plants combating desired requir rebellion afraid repented tree + scald stopp wine advise undermine norfolk vilely whet scars companions hanging + foolish scene musty fruitful unburthen teacher garments betimes sight now for oaths + vouchsafe particulars globe laertes afflictions rouse once news humanity buck + destroy military lucius lap + <keyword> considered forc mourning verona </keyword> + waters triumphing officer hastily + <emph> resign subject figure hay thwart written signs gout bred distance period + glove players change folly </emph> + going wat lost song hautboys pick business crocodile leading cave twice frenzy + sprightly dislike invite forbids morn devour ambassador seldom speak tickling + rejoice triumphant ascanius forward + </text> + </listitem> + </parlist> + </listitem> + </parlist> + </description> + </category> + </categories> +</site> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/data/catgraph/micro_catgraph.xml ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/data/catgraph/micro_catgraph.xml b/vxquery-benchmark/src/main/resources/xmark/data/catgraph/micro_catgraph.xml new file mode 100644 index 0000000..2b3fa91 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/data/catgraph/micro_catgraph.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" standalone="yes"?> +<site> + <catgraph> + <edge + from="category0" + to="category0" /> + </catgraph> +</site> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/micro_closed_auctions.xml ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/micro_closed_auctions.xml b/vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/micro_closed_auctions.xml new file mode 100644 index 0000000..4945ef8 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/micro_closed_auctions.xml @@ -0,0 +1,172 @@ +<?xml version="1.0" standalone="yes"?> +<site> + <closed_auctions> + <closed_auction> + <seller person="person0" /> + <buyer person="person0" /> + <itemref item="item1" /> + <price>113.87</price> + <date>06/06/2000</date> + <quantity>1</quantity> + <type>Regular</type> + <annotation> + <author person="person0" /> + <description> + <parlist> + <listitem> + <parlist> + <listitem> + <text> + farewells religion fetch bells rage names valued exeunt soul albans ungently + advised serving ratcliff braggarts knowest desp sheep died repeat toy corrupted + michael help dunghill trembles pill reap office early secure desires hated + garland carriage impatient deserts feel challenger evil + <bold> editions depart laur hereford richer </bold> + </text> + </listitem> + <listitem> + <text> + proudest lust approve rey should spectacles fiery perfect worshipp foul quod yes remorse young tyburn thrust attending + spear shun doctor wild + </text> + </listitem> + </parlist> + </listitem> + <listitem> + <text> + throng grandam awak helpless ventidius tread defeat teem durst wonderful attaint chaste sees fulfill mortality arme + expedient attendants themselves performed leading sing villain skill store mischief see + consciences sail text speed sons spleen die oft girl atomies commodity honor fall stopp + they + </text> + </listitem> + <listitem> + <text> + rain pays spilling rancour reasons grieves camp bachelor crow can whom soldiers growth + invite less for vaughan properties + <keyword> record penury herself reasons merits villainous whereupon wrote penny mar + </keyword> + preventions followed best eternity bestow blots rocks barnardine torn cassio tailor fame + forfeit triumphant conceived deem cowardly merciful topgallant flint purgation whosoever + ventidius befits forever bankrupt choughs stains certain violated burgundy shadows + possesseth men repent predominant burns revelry swore prodigious next tyrant oath noses + apart balth trade feasting field importunity expect experience kingly stay babe hopes + liege astonished suspicion unmannerd alexander crown soil committed god stately incensed + trance oracle slowness fast princes damned corn grandsire change tender end fields slain + palm softly samp shore notion herod messengers horseman + <bold> riggish </bold> + quirks shut thence beware jewels sland preventions has sells assails influences + oppression pow maggot caught methought mechanical durst liker not seat + <emph> + assigns flesh made his third + <keyword> seemeth </keyword> + peril gain they stroke forsworn scape full determin professes commons + </emph> + lordship clear operation practice pyrrhus earnest broke devil posterity company text + misbegotten oregon strike saw arthur earnestly brow popilius ugly serves presentation + commandment metal comparing thereon true secretly gallows preventions horridly slack + lieutenant hers stop clown rosalinde wed pretty wildly + </text> + </listitem> + </parlist> + </description> + <happiness>9</happiness> + </annotation> + </closed_auction> + <closed_auction> + <seller person="person0" /> + <buyer person="person0" /> + <itemref item="item2" /> + <price>96.92</price> + <date>12/05/2001</date> + <quantity>1</quantity> + <type>Featured</type> + <annotation> + <author person="person0" /> + <description> + <text> + hitherto queen painted seat fords clay recall countryman divided delicate mocking active bills + filth pledge surrender madness sufficiency moved converse goot claw show edmundsbury torment + tough fish mediators tarquin pyrrhus + <keyword> heathen </keyword> + </text> + </description> + <happiness>6</happiness> + </annotation> + </closed_auction> + <closed_auction> + <seller person="person0" /> + <buyer person="person0" /> + <itemref item="item3" /> + <price>53.85</price> + <date>05/11/1999</date> + <quantity>1</quantity> + <type>Featured</type> + <annotation> + <author person="person0" /> + <description> + <text> + strives occasion question sticks shall ingenious sinews liquid ashy gentlewomen authority assay hole selves living near + doting modest wiltshire mocker eton profess forgeries butt wade lawful maccabaeus wert forced + succeeding becomes wayward got + </text> + </description> + <happiness>6</happiness> + </annotation> + </closed_auction> + <closed_auction> + <seller person="person0" /> + <buyer person="person0" /> + <itemref item="item4" /> + <price>123.52</price> + <date>02/11/1999</date> + <quantity>1</quantity> + <type>Regular</type> + <annotation> + <author person="person0" /> + <description> + <text> + vowed keys imperial were swinstead forsake cat aliena spies crave requite forfeit doctor + <emph> possess </emph> + aught demand ceremonies obscure engross hero restraint bolingbroke neighbour crimes dominions + common turns conduct wav therewithal abandon yet hunger + </text> + </description> + <happiness>5</happiness> + </annotation> + </closed_auction> + <closed_auction> + <seller person="person0" /> + <buyer person="person0" /> + <itemref item="item5" /> + <price>96.06</price> + <date>04/24/1999</date> + <quantity>2</quantity> + <type>Featured</type> + <annotation> + <author person="person0" /> + <description> + <text> + jove superiors prolong which conspirator crowns fellowship indisposition skins filthy divers + fault apparell worthiness supposition parchment restitution rings rages remains lass dependent + pelican contrive paradoxes unmask desdemona weak pleases shame wisely cheek poison avoid ulysses + exeunt answer smoothing punishment much anointed bloody shook here armado supply four digestion + unresisted consummate glou ding figure made unwrung worst repute envious meanest read nan stake + shriek tower nights armed drinking instant scruple citizens rightful nonino shame hills dismal + other fasting attends judge aspire hand putting repeal grounds bestrid commission crave mess + tarries sport view freely lame done intend cast shun kills presented body landed question hem + same burdens plenty esteem weak sigh sunday body preventions revenge horses cleomenes thrust + what albeit foolishly mirror gently mock allow index evils should consider deeds suit damsons + willoughby thousand number morn banish barricado unfolding perhaps gently stalk degree oblivion + wars monsieur companies swords shifted clay strives frozen jour + <emph> ajax states mark parcels advertised utterly virtue flatter sleeping ope </emph> + lucilius tybalt glow killed account obdurate kindly + <bold> heart light bosom garden cog yet daughters tott </bold> + lifted offer + </text> + </description> + <happiness>4</happiness> + </annotation> + </closed_auction> + </closed_auctions> +</site> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/data/open_auctions/micro_open_auctions.xml ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/data/open_auctions/micro_open_auctions.xml b/vxquery-benchmark/src/main/resources/xmark/data/open_auctions/micro_open_auctions.xml new file mode 100644 index 0000000..1a8c2ff --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/data/open_auctions/micro_open_auctions.xml @@ -0,0 +1,138 @@ +<?xml version="1.0" standalone="yes"?> +<site> + <open_auctions> + <open_auction id="open_auction0"> + <initial>13.56</initial> + <reserve>33.78</reserve> + <bidder> + <date>10/22/2001</date> + <time>10:21:43</time> + <personref person="person0" /> + <increase>55.50</increase> + </bidder> + <bidder> + <date>07/27/2001</date> + <time>12:36:50</time> + <personref person="person0" /> + <increase>19.50</increase> + </bidder> + <bidder> + <date>02/14/2000</date> + <time>16:40:16</time> + <personref person="person0" /> + <increase>19.50</increase> + </bidder> + <bidder> + <date>05/09/2001</date> + <time>11:39:57</time> + <personref person="person0" /> + <increase>30.00</increase> + </bidder> + <bidder> + <date>07/12/1999</date> + <time>23:20:27</time> + <personref person="person0" /> + <increase>13.50</increase> + </bidder> + <bidder> + <date>10/21/2001</date> + <time>01:19:47</time> + <personref person="person0" /> + <increase>3.00</increase> + </bidder> + <bidder> + <date>09/28/2001</date> + <time>17:03:24</time> + <personref person="person0" /> + <increase>6.00</increase> + </bidder> + <bidder> + <date>11/15/1999</date> + <time>14:23:15</time> + <personref person="person0" /> + <increase>9.00</increase> + </bidder> + <bidder> + <date>01/02/1998</date> + <time>22:18:07</time> + <personref person="person0" /> + <increase>1.50</increase> + </bidder> + <bidder> + <date>12/24/2001</date> + <time>16:46:32</time> + <personref person="person0" /> + <increase>13.50</increase> + </bidder> + <bidder> + <date>08/12/2000</date> + <time>11:41:54</time> + <personref person="person0" /> + <increase>3.00</increase> + </bidder> + <bidder> + <date>11/15/2000</date> + <time>15:53:40</time> + <personref person="person0" /> + <increase>6.00</increase> + </bidder> + <bidder> + <date>03/04/2000</date> + <time>20:46:15</time> + <personref person="person0" /> + <increase>16.50</increase> + </bidder> + <bidder> + <date>07/22/1998</date> + <time>10:34:11</time> + <personref person="person0" /> + <increase>25.50</increase> + </bidder> + <bidder> + <date>04/01/1998</date> + <time>10:44:22</time> + <personref person="person0" /> + <increase>7.50</increase> + </bidder> + <current>243.06</current> + <itemref item="item0" /> + <seller person="person0" /> + <annotation> + <author person="person0" /> + <description> + <text> + debauch corpse canons domain night forsake yea satisfy between fume were monsters ear players + moreover ungentleness sorrows prouder tonight favours rome bastard unshown excellence journey + loves swearing proceeds stone buck battle breathless kindness prophesy entomb urging rogues + hector conquer provoke nothing raw wight places needy feasted romeo rivers worser occupation + brook stoops brooch plucks level samp tent windsor rubs whereof beam signior built suff heavy + dull husbands roman favour urge spear gone wolf cheeks execute resolv such horrid drives provide + twice spoke trade friar taking pheasant sentenc scarf corrections brothers charge spur ass + agamemnon truepenny saves roots practis impatient diest didest starv seeing beneath interpose + gods home black forgot snuff dress dozen napkins + <emph> countess northumberland headlong needless angry pleading </emph> + better joy + <emph> meagre </emph> + reap enquire crab wales died violent rear past liberty + <emph> braggart armour infer bankrupt winds teeth </emph> + case wore pouch crows cognition + <keyword> reports expedition free chief cressida hearsed </keyword> + loath monuments silent congregation soon farm doct ross susan ready empty dedicate shilling + whole soul foot beseech higher lifeless hay postmaster distress disposition + <bold> inherits </bold> + marcus betters pitch betray beam corse player quality ros conduct thersites greediness boast + pilgrims startles contented belch hung thus captain early blood par brook jul gain needs above + ensign grapes revelling glean thank + </text> + </description> + <happiness>6</happiness> + </annotation> + <quantity>1</quantity> + <type>Regular</type> + <interval> + <start>06/16/1999</start> + <end>05/12/2001</end> + </interval> + </open_auction> + </open_auctions> +</site> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/data/people/micro_people.xml ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/data/people/micro_people.xml b/vxquery-benchmark/src/main/resources/xmark/data/people/micro_people.xml new file mode 100644 index 0000000..211bd5c --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/data/people/micro_people.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" standalone="yes"?> +<site> + <people> + <person id="person0"> + <name>Jaak Tempesti</name> + <emailaddress>mailto:[email protected]</emailaddress> + <phone>+0 (873) 14873867</phone> + <homepage>http://www.labs.com/~Tempesti</homepage> + <creditcard>5048 5813 2703 8253</creditcard> + <watches> + <watch open_auction="open_auction0" /> + </watches> + </person> + </people> +</site> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/data/regions/micro_regions.xml ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/data/regions/micro_regions.xml b/vxquery-benchmark/src/main/resources/xmark/data/regions/micro_regions.xml new file mode 100644 index 0000000..b0d083d --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/data/regions/micro_regions.xml @@ -0,0 +1,378 @@ +<?xml version="1.0" standalone="yes"?> +<site> + <regions> + <africa> + <item id="item0"> + <location>United States</location> + <quantity>1</quantity> + <name>duteous nine eighteen </name> + <payment>Creditcard</payment> + <description> + <parlist> + <listitem> + <text> + page rous lady idle authority capt professes stabs monster petition heave humbly removes + rescue runs shady peace most piteous worser oak assembly holes patience but malice + whoreson mirrors master tenants smocks yielded + <keyword> officer embrace such fears distinction attires </keyword> + </text> + </listitem> + <listitem> + <text> + shepherd noble supposed dotage humble servilius bitch theirs venus dismal wounds gum merely raise red breaks earth god + folds closet captain dying reek + </text> + </listitem> + </parlist> + </description> + <shipping>Will ship internationally, See description for charges</shipping> + <incategory category="category0" /> + <incategory category="category0" /> + <incategory category="category0" /> + <incategory category="category0" /> + <incategory category="category0" /> + <mailbox> + <mail> + <from>Dominic Takano mailto:[email protected]</from> + <to>Mechthild Renear mailto:[email protected]</to> + <date>10/12/1999</date> + <text> + asses scruple learned crowns preventions half whisper logotype weapons doors factious + already pestilent sacks dram atwain girdles deserts flood park lest graves discomfort sinful + conceiv therewithal motion stained preventions greatly suit observe sinews enforcement + <emph> armed </emph> + gold gazing set almost catesby turned servilius cook doublet preventions shrunk + </text> + </mail> + </mailbox> + </item> + </africa> + <asia> + <item id="item1"> + <location>United States</location> + <quantity>1</quantity> + <name>great </name> + <payment>Money order, Cash</payment> + <description> + <text> + print deceit arming ros apes unjustly oregon spring hamlet containing leaves italian turn + <bold> spirit model favour disposition </bold> + approach charg gold promotions despair flow assured terror assembly marry concluded author + debase get bourn openly gonzago wisest bane continue cries + </text> + </description> + <shipping>Will ship internationally</shipping> + <incategory category="category0" /> + <incategory category="category0" /> + <incategory category="category0" /> + <incategory category="category0" /> + <incategory category="category0" /> + <incategory category="category0" /> + <mailbox> + <mail> + <from>Fumitaka Cenzer mailto:[email protected]</from> + <to>Lanju Takano mailto:[email protected]</to> + <date>02/24/2000</date> + <text> + entreaty hath fowl prescience bounds roof fiend intellect boughs caught add jests feelingly + doubt trojans wisdom greatness tune worship doors fields reads canst france pay progeny + wisdom stir mov impious promis clothes hangman trebonius choose men fits preparation + <keyword> benefit since eclipse gates </keyword> + </text> + </mail> + <mail> + <from>Papa Godskesen mailto:[email protected]</from> + <to>Ioana Blumberg mailto:[email protected]</to> + <date>08/02/2001</date> + <text> + jealousy back greg folded gauntlets conduct hardness across sickness peter enough royal herb + embrace piteous die servilius avoid + <keyword> laying chance dungeons pleasant thyself fellow purse steward heaven ambassador + terrible doubtfully </keyword> + milk sky clouds unbraced put sacrifices seas childish longer flout heavy pitch rosalind + orderly music delivery appease + </text> + </mail> + </mailbox> + </item> + </asia> + <australia> + <item id="item2"> + <location>United States</location> + <quantity>1</quantity> + <name>scarce brook </name> + <payment></payment> + <description> + <parlist> + <listitem> + <text> + senses concave valiant star further instruments bankrupts countrymen horrid costard + youth necessity tend curiously waken witness navy there honest interest perceive + defendant chief traffic where nuptial descent travel prepare agreed voices swears + remember peerless doing + <keyword> preparation rejoice </keyword> + </text> + </listitem> + <listitem> + <text> + swear canker barbarian parching coxcomb excess conspiring nobles sounded consider + sayings fishified prime may spirit + <emph> untruths misgives choughs mew here garments tenfold </emph> + error discontent hung beatrice straight muse shame deep twice mann maecenas any + conveyance fingers whereupon child case + <keyword> season presently victory women beating </keyword> + deprive almost wed dreams slew reveal + </text> + </listitem> + <listitem> + <text> + spotted attend burden camillo field enlarge stead corporal ground tormenting + <bold> naturally sanctuary riddle exile coming awake senseless chance famous albans + </bold> + service cricket limb from clouds amongst shore penker defend quantity dumb churlish + uncover swung eros figur sulphur sky birth stare negligent unction shield instance + ambition gate injury fort put infants find slavish hugh see afterwards slanders chides + eyes minds alb loved endure combating voyage + </text> + </listitem> + <listitem> + <parlist> + <listitem> + <text> + maintained peril rivall suddenly finds studies weary truth indulgence anatomy assisted imminent may excepted yonder + aches regal + </text> + </listitem> + <listitem> + <text> + <bold> friar prophetess </bold> + spirits delays turning cassio finding unpractis steel sweets promises credulity + err nym complete star greatly mope sorry experience virtues been offending bed + drives faction learnt hurl eleven huge + </text> + </listitem> + <listitem> + <text> + piece hours cruelly april league winged + <keyword> tract element sails course placed fouler four plac joint </keyword> + words blessing fortified loving forfeit doctor valiant crying wife county planet + charge haughty precious alexander longboat bells lewd kingdoms knife giver + frantic raz commend sit sovereignty engaged perceive its art alliance forge + bestow perforce complete roof fie confident raging possible cassio teen crave + park reign lords sounded our requite fourth confidence high + </text> + </listitem> + </parlist> + </listitem> + <listitem> + <parlist> + <listitem> + <text> + sent fled bids oswald help answer artillery jealous hugh fingers gladly mows our + craving + <emph> preventions spurr edmund drunk how faction quickly bolingbroke painfully + </emph> + valorous line clasp cheek patchery encompassed honest after auspicious home + engaged prompt mortimer bird dread jephthah prithee unfold deeds fifty goose + either herald temperance coctus took sought fail each ado checking funeral + thinks linger advantage bag ridiculous along accomplishment flower glittering + school disguis portia beloved crown sheets garish rather forestall vaults + doublet embassy ecstasy crimson rheum befall sin devout pedro little exquisite + mote messenger lancaster hideous object arrows smites gently skins bora parting + desdemona longing third throng character hat sov quit mounts true house field + nearest lucrece tidings fought logotype eaten commanding treason censur ripe + praises windsor temperate jealous made sleeve scorn throats fits uncape tended + science preventions preventions high pipes reprieves + <bold> sold </bold> + marriage sampson safety distrust witch christianlike plague doubling visited + with bleed offenders catching attendants + <emph> cars livery stand </emph> + denay + <keyword> cimber paper admittance tread character </keyword> + battlements seen dun irish throw redeem afflicts suspicion + </text> + </listitem> + <listitem> + <text> + traduc barks twenty secure pursuit believing necessities longs mental lack + further observancy uncleanly understanding vault athens lucius sleeps nor safety + evidence repay whensoever senses proudest restraint love mouths slaves water + athenian willingly hot grieves delphos pavilion sword indeed lepidus taking + disguised proffer salt before educational streets things osw rey stern lap + studies finger doomsday pots bounty famous manhood observe hopes unless languish + <keyword> transformed nourish breeds north </keyword> + </text> + </listitem> + </parlist> + </listitem> + </parlist> + </description> + <shipping>Will ship internationally</shipping> + <incategory category="category0" /> + <incategory category="category0" /> + <mailbox> + <mail> + <from>Aspi L'Ecuyer mailto:L'[email protected]</from> + <to>Lesley Jeris mailto:[email protected]</to> + <date>10/09/1998</date> + <text> + necessities chains rosencrantz house heed course lawn diest unvirtuous supposed sees chough swor numbers game roman soundest + wrestler sky lodovico beast shivers desolate norfolk forgot paulina wars george while beggar + sheath thursday capable presently his protector father orchard enemies believe drains tokens + prison charge cloud stab york mild scene true devotion confidence hundred those guiltless + pricks sort himself mutiny officers directive wholesome edge acts dion ride draw brings + custom chapless beside sex dowry casca goods priam blasphemy prick octavia brain curer + thinkest idiot inward missing conspiracy tents scab inundation caesar officer dramatis + </text> + </mail> + </mailbox> + </item> + </australia> + <europe> + <item id="item3"> + <location>Uzbekistan</location> + <quantity>1</quantity> + <name>abhorr execution beckon rue </name> + <payment>Money order, Creditcard, Cash</payment> + <description> + <parlist> + <listitem> + <text> + <keyword> perjur kills insanie unfortunate conjuration deeper confounded belied first + guard </keyword> + pale profits height desir ashore france strength kept entrench poisons worth fought + ignorance moody poniards speaks jack egg offspring victory food double emperor round + jewel abbey apparel untainted lass protest start wings acquit lake lady battles further + low thief try brook cake mounted officers dean shrunk lowness dew sandy prologue armies + suspicion eighty advance thankfulness albany ended experience halt doubted wert kingdom + fiend directed pair perhaps + </text> + </listitem> + <listitem> + <text> + prayer odds rend condemn conrade swearing dispos losses boar little from thought + different couch respected human robe dictynna later pays edward babe distemper bards + damned mayst sustain while self alcibiades listen weak soil + <keyword> view presume loggets feed </keyword> + afoot yields erection balthasar fathers datchet thankless lear cause evil cheerfully + instance tarried because cough ancient testimony tarquin cousin reported porter beastly + jade bark sex slack lear devil devoured amiable mason moss shoulders labour meanest + feign eggs encount forbid enobarbus halters nam emilia fiends bearing food inheritor + wiser + <emph> hedge </emph> + functions there capital greasy dark crush your sequest between devout thou strikes + demand dost reverent conference least told ado modena jealousy nunnery mistrust nightly + worthy closes tall proudly fierce receive nearness safer jacks shut dire mates wind + unfortunate monsieur parcels sauced extremities throat dog empty treasury etc detested + stand taxations edges mourner sue knavery unlook perseus diadem heartily peer tut + compounded art reconcile study thought cockatrice money pity intend thing claud edmund + throws torments ropes contrive story slain advise lecher ardea relics keeping treads + buckingham defences lag neighbour ourself marshal disordered moderate venus afeard + article rot hazards craft crowns + <emph> plainness patient </emph> + lying knowledge diseases meritorious medicine instead lid happy without them bands + answer + </text> + </listitem> + </parlist> + </description> + <shipping>Will ship only within country</shipping> + <incategory category="category0" /> + <incategory category="category0" /> + <incategory category="category0" /> + <incategory category="category0" /> + <incategory category="category0" /> + <incategory category="category0" /> + <incategory category="category0" /> + <incategory category="category0" /> + <mailbox> + </mailbox> + </item> + </europe> + <namerica> + <item id="item4"> + <location>United States</location> + <quantity>1</quantity> + <name>unsur brutish </name> + <payment>Money order, Creditcard</payment> + <description> + <parlist> + <listitem> + <text> + prepar likelihood eagle body walk borachio month writing left speed patents coach + through protectorship congruent confusion favours following populous garden henceforth + shoots function fourscore mangled favorably slain secretly vice distinguish bardolph + content hence boy worse bring usurers stew beard longed creep hid pursuivant beholders + senators son mercutio woo bestow trumpet excess muffler pick ugly felt causes remove + adding tear often rounds underbearing tree purer kibes endless women benefit throw + <emph> + claim firmness + <keyword> arrived sees wrestled multitude repent preventions infamy reproof shalt + hearted prais knave doubtless </keyword> + deny + </emph> + merely grave voluble late loath digest horn slave hunger stronger amazed salt killing + ross cry dry tongue kiss yields auspicious quietness perpetual ways + </text> + </listitem> + <listitem> + <text> + court mean returning brook creatures appointed paunches henry sights west prunes flutes + regiment seems bed musicians slumber post friendship prevention abreast wouldst words + vexation builds unfelt holly walk inform moods deck bulk begin action school nobles + antique people unkennel stomach into petitions jack assail yongrey ages betimes golden + sink droop kernel hoppedance perfection weight + <emph> whining safe english rod other featur </emph> + betwixt orator across amiss mine guests guard yon willing remit longing goneril + visitation honey + </text> + </listitem> + </parlist> + </description> + <shipping>Will ship only within country, Buyer pays fixed shipping charges, See description for charges + </shipping> + <incategory category="category0" /> + <incategory category="category0" /> + <incategory category="category0" /> + <mailbox> + <mail> + <from>Honari Castan mailto:[email protected]</from> + <to>Maz Lucky mailto:[email protected]</to> + <date>01/24/1998</date> + <text> + scene disposition substance prick counsel start temples + </text> + </mail> + </mailbox> + </item> + </namerica> + <samerica> + <item id="item5"> + <location>United States</location> + <quantity>1</quantity> + <name>nakedness </name> + <payment>Creditcard, Personal Check, Cash</payment> + <description> + <text> + music sift kissing design airy office dismantled hope reconcil combat wert quite translate + overcome unthrifty + <emph> + fell othello + <bold> wolf entreat audaciously down sands sports pilgrimage duellist league holiday cheek + that tables merrily knot selves ionia impure </bold> + prophet draw throwing solemn yonder + </emph> + rightful foam worthless polack veronesa antony beget thereby carry untread hales + </text> + </description> + <shipping>Will ship only within country, Will ship internationally</shipping> + <incategory category="category0" /> + <incategory category="category0" /> + <incategory category="category0" /> + <incategory category="category0" /> + <mailbox> + </mailbox> + </item> + </samerica> + </regions> +</site> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q01.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q01.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q01.xq new file mode 100644 index 0000000..bc9fbf6 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q01.xq @@ -0,0 +1,23 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection := "vxquery-benchmark/src/main/resources/xmark/data/people/" +for $b in collection($collection)/site/people/person +where $b/@id = "person0" +return $b/name/text() http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q02.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q02.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q02.xq new file mode 100644 index 0000000..299de6d --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q02.xq @@ -0,0 +1,22 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection := "vxquery-benchmark/src/main/resources/xmark/data/open_auctions/" +for $b in collection($collection)/site/open_auctions/open_auction +return <increase>{$b/bidder[1]/increase/text()}</increase> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q03.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q03.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q03.xq new file mode 100644 index 0000000..5488122 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q03.xq @@ -0,0 +1,26 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection := "vxquery-benchmark/src/main/resources/xmark/data/open_auctions/" +for $b in collection($collection)/site/open_auctions/open_auction +where zero-or-one($b/bidder[1]/increase/text()) * 2 <= $b/bidder[last()]/increase/text() +return + <increase + first="{$b/bidder[1]/increase/text()}" + last="{$b/bidder[last()]/increase/text()}"/> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q04.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q04.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q04.xq new file mode 100644 index 0000000..2dc66c8 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q04.xq @@ -0,0 +1,26 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection := "vxquery-benchmark/src/main/resources/xmark/data/open_auctions/" +for $b in collection($collection)/site/open_auctions/open_auction +where + some $pr1 in $b/bidder/personref, + $pr2 in $b/bidder/personref + satisfies $pr1/@person eq "person20" and $pr2/@person eq "person51" and $pr1 << $pr2 +return <history>{$b/reserve/text()}</history> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q05.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q05.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q05.xq new file mode 100644 index 0000000..01d6dba --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q05.xq @@ -0,0 +1,25 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +count( + let $collection := "vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/" + for $i in collection($collection)/site/closed_auctions/closed_auction + where $i/price/text() >= 40 + return $i/price +) \ No newline at end of file http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q06.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q06.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q06.xq new file mode 100644 index 0000000..a1864db --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q06.xq @@ -0,0 +1,22 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection := "vxquery-benchmark/src/main/resources/xmark/data/regions/" +for $b in collection($collection)/site/regions +return count($b//item) http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q07.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q07.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q07.xq new file mode 100644 index 0000000..bbe2dfd --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q07.xq @@ -0,0 +1,22 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection := "vxquery-benchmark/src/main/resources/xmark/data" +for $p in collection($collection)/site +return count($p//description) + count($p//annotation) + count($p//emailaddress) http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q08.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q08.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q08.xq new file mode 100644 index 0000000..0cdf956 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q08.xq @@ -0,0 +1,28 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/people/" +for $p in collection($collection1)/site/people/person + let $a := count( + let $collection2 := "vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/" + for $t in collection($collection2)/site/closed_auctions/closed_auction + where $t/buyer/@person = $p/@id + return $t + ) + return <item person="{$p/name/text()}">{$a}</item> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q09.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q09.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q09.xq new file mode 100644 index 0000000..db94097 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q09.xq @@ -0,0 +1,33 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection3 := "vxquery-benchmark/src/main/resources/xmark/data/people/" +for $p in collection($collection3)/site/people/person +let $a := + let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/" + for $t in collection($collection1)/site/closed_auctions/closed_auction + where $p/@id = $t/buyer/@person + return + let $n := + let $collection2 := "vxquery-benchmark/src/main/resources/xmark/data/regions/" + for $t2 in collection($collection2)/site/regions/europe/item + where $t/itemref/@item = $t2/@id + return $t2 + return <item>{$n/name/text()}</item> +return <person name="{$p/name/text()}">{$a}</person> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q10.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q10.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q10.xq new file mode 100644 index 0000000..cd31444 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q10.xq @@ -0,0 +1,46 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/people/" +for $i in distinct-values(collection($collection1)/site/people/person/profile/interest/@category) +let $p := + let $collection2 := "vxquery-benchmark/src/main/resources/xmark/data/people/" + for $t in collection($collection2)/site/people/person + where $t/profile/interest/@category = $i + return + <personne> + <statistiques> + <sexe>{$t/profile/gender/text()}</sexe> + <age>{$t/profile/age/text()}</age> + <education>{$t/profile/education/text()}</education> + <revenu>{fn:data($t/profile/@income)}</revenu> + </statistiques> + <coordonnees> + <nom>{$t/name/text()}</nom> + <rue>{$t/address/street/text()}</rue> + <ville>{$t/address/city/text()}</ville> + <pays>{$t/address/country/text()}</pays> + <reseau> + <courrier>{$t/emailaddress/text()}</courrier> + <pagePerso>{$t/homepage/text()}</pagePerso> + </reseau> + </coordonnees> + <cartePaiement>{$t/creditcard/text()}</cartePaiement> + </personne> +return <categorie>{<id>{$i}</id>, $p}</categorie> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q11.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q11.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q11.xq new file mode 100644 index 0000000..81cd15d --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q11.xq @@ -0,0 +1,27 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/people/" +for $p in collection($collection1)/site/people/person +let $l := + let $collection2 := "vxquery-benchmark/src/main/resources/xmark/data/open_auctions/" + for $i in collection($collection2)/site/open_auctions/open_auction/initial + where $p/profile/@income > 5000 * exactly-one($i/text()) + return $i +return <items name="{$p/name/text()}">{count($l)}</items> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q12.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q12.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q12.xq new file mode 100644 index 0000000..f3d7dc4 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q12.xq @@ -0,0 +1,28 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/people/" +for $p in collection($collection1)/site/people/person +let $l := + let $collection2 := "vxquery-benchmark/src/main/resources/xmark/data/open_auctions/" + for $i in collection($collection2)/site/open_auctions/open_auction/initial + where $p/profile/@income > 5000 * exactly-one($i/text()) + return $i +where $p/profile/@income > 50000 +return <items person="{$p/profile/@income}">{count($l)}</items> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q13.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q13.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q13.xq new file mode 100644 index 0000000..b06e8e6 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q13.xq @@ -0,0 +1,22 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/regions/" +for $i in collection($collection1)/site/regions/australia/item +return <item name="{$i/name/text()}">{$i/description}</item> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q14.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q14.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q14.xq new file mode 100644 index 0000000..7d989a8 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q14.xq @@ -0,0 +1,23 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/" +for $i in collection($collection1)/site//item +where contains(string(exactly-one($i/description)), "gold") +return $i/name/text() http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q15.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q15.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q15.xq new file mode 100644 index 0000000..f6052d7 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q15.xq @@ -0,0 +1,29 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/" +for $i in collection($collection1)/site/closed_auctions/closed_auction/annotation/description/parlist/ + listitem/ + parlist/ + listitem/ + text/ + emph/ + keyword/ + text() +return <text>{$a}</text> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q16.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q16.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q16.xq new file mode 100644 index 0000000..fa200bc --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q16.xq @@ -0,0 +1,30 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/closed_auctions/" +for $a in collection($collection1)/site/closed_auctions/closed_auction +where + not( + empty( + $a/annotation/description/parlist/listitem/parlist/listitem/text/emph/ + keyword/ + text() + ) + ) +return <person id="{$a/seller/@person}"/> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q17.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q17.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q17.xq new file mode 100644 index 0000000..19a9988 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q17.xq @@ -0,0 +1,23 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/people/" +for $p in collection($collection1)/site/people/person +where empty($p/homepage/text()) +return <person name="{$p/name/text()}"/> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q18.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q18.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q18.xq new file mode 100644 index 0000000..8ceaf49 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q18.xq @@ -0,0 +1,28 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +declare namespace local = "http://www.foobar.org"; +declare function local:convert($v as xs:decimal?) as xs:decimal? +{ + 2.20371 * $v (: convert Dfl to Euro :) +}; + +let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/open_auctions/" +for $i in collection($collection1)/site/open_auctions/open_auction +return local:convert(zero-or-one($i/reserve)) http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q19.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q19.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q19.xq new file mode 100644 index 0000000..842ffa0 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q19.xq @@ -0,0 +1,24 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/regions/" +for $b in collection($collection1)/site/regions/*/item +let $k := $b/name/text() +order by zero-or-one($b/location) ascending empty greatest +return <item name="{$k}">{$b/location/text()}</item> http://git-wip-us.apache.org/repos/asf/vxquery/blob/edb8d35f/vxquery-benchmark/src/main/resources/xmark/queries/q20.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/xmark/queries/q20.xq b/vxquery-benchmark/src/main/resources/xmark/queries/q20.xq new file mode 100644 index 0000000..363dd31 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/xmark/queries/q20.xq @@ -0,0 +1,58 @@ +(: Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. :) + +(: XMark Query see README.md for full details. :) + +<result> + <preferred> + { + count( + let $collection1 := "vxquery-benchmark/src/main/resources/xmark/data/people/" + for $b in collection($collection1)/site/people/person/profile[@income >= 100000] + return $b + ) + } + </preferred> + <standard> + { + count( + let $collection2 := "vxquery-benchmark/src/main/resources/xmark/data/people/" + for $c in collection($collection2)/site/people/person/profile[@income < 100000 and @income >= 30000] + return $c + ) + } + </standard> + <challenge> + { + count( + let $collection3 := "vxquery-benchmark/src/main/resources/xmark/data/people/" + for $d in collection($collection3)/site/people/person/profile[@income < 30000] + return $d + ) + } + </challenge> + <na> + { + count( + let $collection4 := "vxquery-benchmark/src/main/resources/xmark/data/people/" + for $p in collection($collection4)/site/people/person + where empty($p/profile/@income) + return $p + ) + } + </na> +</result>
