Change id: fn-json-doc
Implementations | ||||||
Tests | BaseX 8.5 beta XQ31 (QT3 vCVS) |
Saxon-EE 9.7.0.11 XP31 (QT3 v0.6) |
Saxon-EE 9.7.0.11 XQ31 (QT3 v0.6) |
XmlPrime 4.0.0.16079 XP31 (QT3 vCVS) |
XmlPrime 4.0.0.26293 XQ31 (QT3 vCVS) |
XmlPrime 4.0.0.27704 XQX31 (QT3 vCVS) |
---|---|---|---|---|---|---|
fn-function-lookup-736[+]
X fn-function-lookup-736: Created on: 2016-08-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ feature = higherOrderFunctions Test: exists(function-lookup(fn:QName('http://www.w3.org/2005/xpath-functions', 'json-doc'), 1)) |
no result | pass | pass | pass | pass | pass |
fn-function-lookup-737[+]
X fn-function-lookup-737: Created on: 2016-08-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ feature = higherOrderFunctions Test: function-lookup(fn:QName('http://www.w3.org/2005/xpath-functions', 'json-doc'), 1)( 'does-not-exist.txt' ) |
no result | pass | pass | pass | pass | pass |
fn-function-lookup-738[+]
X fn-function-lookup-738: Created on: 2016-08-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ feature = higherOrderFunctions Test: exists(function-lookup(fn:QName('http://www.w3.org/2005/xpath-functions', 'json-doc'), 2)) |
no result | pass | pass | pass | pass | pass |
fn-function-lookup-739[+]
X fn-function-lookup-739: Created on: 2016-08-19 Spec Dependencies: spec = XP31+ XQ31+ spec = XP30+ XQ30+ feature = higherOrderFunctions Test: function-lookup(fn:QName('http://www.w3.org/2005/xpath-functions', 'json-doc'), 2)( 'does-not-exist.txt', map {} ) |
no result | pass | pass | pass | pass | pass |
json-doc-001[+]
X json-doc-001: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapEmpty-json') |
pass | pass | pass | pass | pass | pass |
json-doc-002[+]
X json-doc-002: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/arrayEmpty-json') |
pass | pass | pass | pass | pass | pass |
json-doc-003[+]
X json-doc-003: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/arrayNumber-json') |
pass | pass | pass | pass | pass | pass |
json-doc-004[+]
X json-doc-004: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/arrayString-json') |
pass | pass | pass | pass | pass | pass |
json-doc-005[+]
X json-doc-005: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/arrayTrue-json') |
pass | pass | pass | pass | pass | pass |
json-doc-006[+]
X json-doc-006: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/arrayFalse-json') |
pass | pass | pass | pass | pass | pass |
json-doc-007[+]
X json-doc-007: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/arrayNull-json') |
pass | pass | pass | pass | pass | pass |
json-doc-008[+]
X json-doc-008: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/data001-json') |
pass | pass | pass | pass | pass | pass |
json-doc-009[+]
X json-doc-009: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/data005-json') |
pass | pass | pass | pass | pass | pass |
json-doc-010[+]
X json-doc-010: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/escapeText-json')?key |
pass | pass | pass | pass | pass | pass |
json-doc-011[+]
X json-doc-011: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/escapeText-json', map{'escape':false()})?key |
pass | pass | pass | pass | pass | pass |
json-doc-012[+]
X json-doc-012: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/escapeText-json', map{'escape':true()})?key |
pass | pass | pass | pass | pass | pass |
json-doc-018[+]
X json-doc-018: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapDuplicates-json') |
pass | pass | pass | pass | pass | pass |
json-doc-019[+]
X json-doc-019: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapUnescape-json', map{'escape':true()}) |
pass | pass | pass | pass | pass | pass |
json-doc-020[+]
X json-doc-020: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapUnescape-json', map{'escape':false()}) |
pass | pass | pass | pass | pass | pass |
json-doc-021[+]
X json-doc-021: Created on: 2015-06-15 Spec Dependencies: xml-version = 1.0 spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapUnescape10-json', map{'escape':true()}) |
pass | pass | pass | pass | pass | pass |
json-doc-022[+]
X json-doc-022: Created on: 2015-06-15 Spec Dependencies: xml-version = 1.0 spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapUnescape10-json', map{'escape':false()}) |
pass | pass | pass | pass | pass | pass |
json-doc-023[+]
X json-doc-023: Created on: 2015-06-15 Spec Dependencies: xml-version = 1.0 spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapUnescapeUnpaired10-json', map{'escape':false()}) |
pass | pass | pass | pass | pass | pass |
json-doc-024[+]
X json-doc-024: Created on: 2015-06-15 Spec Dependencies: xml-version = 1.0 spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapUnescapeUnpaired10-json', map{'escape':true()}) |
pass | pass | pass | pass | pass | pass |
json-doc-025[+]
X json-doc-025: Created on: 2015-06-15 Spec Dependencies: xml-version = 1.0 feature = higherOrderFunctions spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapUnescape10-json', map{'escape':false(), 'fallback':function($s){'??'}}) |
pass | pass | pass | pass | pass | pass |
json-doc-026[+]
X json-doc-026: Created on: 2015-06-15 Spec Dependencies: xml-version = 1.0 feature = higherOrderFunctions spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapUnescapeUnpaired10-json', map{'escape':false(), 'fallback':function($s){'??' || translate($s, 'abcdef', 'ABCDEF') || '??'}}) |
pass | pass | pass | pass | pass | pass |
json-doc-027[+]
X json-doc-027: Created on: 2015-06-15 Spec Dependencies: xml-version = 1.0 feature = higherOrderFunctions spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapUnescapeUnpaired10-json', map{'escape':true(), 'fallback':function($s){'??' || translate($s, 'abcdef', 'ABCDEF') || '??'}}) |
pass | pass | pass | pass | pass | pass |
json-doc-028[+]
X json-doc-028: Created on: 2015-06-15 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: fn:json-doc((), map{'escape':false(), 'fallback':function($s){'??' || translate($s, 'abcdef', 'ABCDEF') || '??'}}) |
pass | pass | pass | pass | pass | pass |
json-doc-029[+]
X json-doc-029: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/arrayNumber-json', map{}) |
pass | pass | pass | pass | pass | pass |
json-doc-030[+]
X json-doc-030: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/number001-json') |
pass | pass | pass | pass | pass | pass |
json-doc-031[+]
X json-doc-031: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/number002-json') |
pass | pass | pass | pass | pass | pass |
json-doc-032[+]
X json-doc-032: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/number003-json') |
pass | pass | pass | pass | pass | pass |
json-doc-033[+]
X json-doc-033: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/number004-json') |
pass | pass | pass | pass | pass | pass |
json-doc-034[+]
X json-doc-034: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapZeroLength-json') |
pass | pass | pass | pass | pass | pass |
json-doc-035[+]
X json-doc-035: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc(()) |
pass | pass | pass | pass | pass | pass |
json-doc-036[+]
X json-doc-036: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapDuplicates-json', map{'duplicates':'use-first'}) |
pass | pass | pass | pass | pass | pass |
json-doc-039[+]
X json-doc-039: Created on: 2015-06-15 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/stringUnpaired-json', map{'fallback':function($s){substring($s, 3)}}) |
pass | pass | pass | pass | pass | pass |
json-doc-042[+]
X json-doc-042: Created on: 2015-06-15 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapDuplicatesEscape-json', map{'escape':true(), 'duplicates':'reject'}) |
pass | pass | pass | pass | pass | pass |
json-doc-043[+]
X json-doc-043: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/stringHex-json') |
pass | pass | pass | pass | pass | pass |
json-doc-044[+]
X json-doc-044: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/arrayNumber-json', map{'validate':true()}) |
pass | pass | pass | pass | pass | pass |
json-doc-error-001[+]
X json-doc-error-001: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('') |
pass | pass | pass | pass | pass | pass |
json-doc-error-002[+]
X json-doc-error-002: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorToken-json') |
pass | pass | pass | pass | pass | pass |
json-doc-error-003[+]
X json-doc-error-003: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorExtra-json') |
pass | pass | pass | pass | pass | pass |
json-doc-error-004[+]
X json-doc-error-004: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorArray-json') |
pass | pass | pass | pass | pass | pass |
json-doc-error-005[+]
X json-doc-error-005: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorArrayNumber-json') |
pass | pass | pass | pass | pass | pass |
json-doc-error-006[+]
X json-doc-error-006: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorArrayHex-json') |
pass | pass | pass | pass | pass | pass |
json-doc-error-007[+]
X json-doc-error-007: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorArrayString-json') |
pass | pass | pass | pass | pass | pass |
json-doc-error-008[+]
X json-doc-error-008: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorArrayUnicode-json') |
pass | pass | pass | pass | pass | pass |
json-doc-error-009[+]
X json-doc-error-009: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorMap-json') |
pass | pass | pass | pass | pass | pass |
json-doc-error-010[+]
X json-doc-error-010: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorMap-json', map{"liberal":false()}) |
pass | pass | pass | pass | pass | pass |
json-doc-error-011[+]
X json-doc-error-011: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorArrayComma-json') |
pass | pass | pass | pass | pass | pass |
json-doc-error-012[+]
X json-doc-error-012: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/arrayNumber-json', map{'liberal':()}) |
pass | pass | pass | pass | pass | pass |
json-doc-error-013[+]
X json-doc-error-013: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/arrayNumber-json', map{'escape':()}) |
pass | pass | pass | pass | pass | pass |
json-doc-error-014[+]
X json-doc-error-014: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/arrayNumber-json', map{'escape':(true(),true())}) |
pass | pass | pass | pass | pass | pass |
json-doc-error-015[+]
X json-doc-error-015: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/arrayNumber-json', map{'escape':'EMCA-262'}) |
pass | pass | pass | pass | pass | pass |
json-doc-error-016[+]
X json-doc-error-016: Created on: 2015-06-15 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/arrayNumber-json', map{'fallback':'dummy'}) |
pass | pass | pass | pass | pass | pass |
json-doc-error-017[+]
X json-doc-error-017: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorNumber01-json') |
pass | pass | pass | pass | pass | pass |
json-doc-error-018[+]
X json-doc-error-018: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorNumber02-json') |
pass | pass | pass | pass | pass | pass |
json-doc-error-019[+]
X json-doc-error-019: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorNumber03-json') |
pass | pass | pass | pass | pass | pass |
json-doc-error-020[+]
X json-doc-error-020: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorNumber04-json') |
pass | pass | pass | pass | pass | pass |
json-doc-error-021[+]
X json-doc-error-021: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapDuplicates-json', map{'duplicates':'reject'}) |
pass | pass | pass | pass | pass | pass |
json-doc-error-022[+]
X json-doc-error-022: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapDuplicates-json', map{'duplicates':'retain'}) |
pass | pass | pass | pass | pass | pass |
json-doc-error-023[+]
X json-doc-error-023: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorString01-json') |
pass | pass | pass | pass | pass | pass |
json-doc-error-024[+]
X json-doc-error-024: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorString02-json') |
pass | pass | pass | pass | pass | pass |
json-doc-error-025[+]
X json-doc-error-025: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/errorString03-json') |
pass | pass | pass | pass | pass | pass |
json-doc-error-026[+]
X json-doc-error-026: Created on: 2015-06-15 Spec Dependencies: feature = higherOrderFunctions spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/arrayNumber-json', map{'fallback':concat#2}) |
pass | pass | pass | pass | pass | pass |
json-doc-error-027[+]
X json-doc-error-027: Created on: 2015-06-15 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc('http://www.w3.org/qt3/json/mapDuplicatesEscape-json', map{'duplicates':'reject'}) |
pass | pass | pass | pass | pass | pass |
json-doc-error-028[+]
X json-doc-error-028: Created on: 2015-07-01 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc("http://www.example.org/#fragment") |
pass | pass | pass | pass | pass | pass |
json-doc-error-029[+]
X json-doc-error-029: Created on: 2015-07-01 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc("http://www.example.org/%gg") |
pass | pass | pass | pass | pass | pass |
json-doc-error-030[+]
X json-doc-error-030: Created on: 2015-07-01 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc("http://www.w3.org/fots/unparsed-text/does-not-exist.txt") |
pass | pass | pass | pass | pass | pass |
json-doc-error-031[+]
X json-doc-error-031: Created on: 2015-07-01 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc("unparsed-text/text-plain-utf-8.txt") |
pass | no result | no result | pass | pass | pass |
json-doc-error-032[+]
X json-doc-error-032: Created on: 2015-07-01 Spec Dependencies: spec = XP31+ XQ31+ Test: fn:json-doc("does-not-exist.txt") |
pass | pass | pass | pass | pass | pass |
UseCaseJSON-001[+]
X UseCaseJSON-001: Created on: 2014-12-23 Spec Dependencies: spec = XP31+ XQ31+ Test: json-doc("mildred.json")?phone?*[?type = 'mobile']?number |
pass | pass | pass | pass | pass | pass |
UseCaseJSON-002[+]
X UseCaseJSON-002: Created on: 2014-12-23 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: declare namespace array="http://www.w3.org/2005/xpath-functions/array"; declare namespace map="http://www.w3.org/2005/xpath-functions/map"; let $input := json-doc('employees.json') for $k in map:keys($input) return <department name="{$k}">{ let $array := $input($k) for $i in 1 to array:size($array) let $emp := $array($i) return <employee> <firstName>{ $emp('firstName') }</firstName> <lastName>{ $emp('lastName') }</lastName> <age>{ $emp('age') }</age> </employee> }</department> |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseJSON-003[+]
X UseCaseJSON-003: Created on: 2014-12-23 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: declare namespace map="http://www.w3.org/2005/xpath-functions/map"; declare function local:deep-put($input as item()*, $key as xs:string, $value as item()*) as item()* { for $i in $input return if ($i instance of map(*)) then map:merge(map:for-each($i, function($k, $v) { if ($k eq $key) then map{$k : $value} else map{$k : local:deep-put($v, $key, $value)} })) else if ($i instance of array(*)) then array{ local:deep-put($i?*, $key, $value) } else $i }; local:deep-put(json-doc("bookinfo.json"), "first", "John") |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseJSON-004[+]
X UseCaseJSON-004: Created on: 2014-12-23 Spec Dependencies: spec = XQ31+ Test: let $users := json-doc('users.json')?* for $sarah in $users, $friend in $users where $sarah?name = "Sarah" and $friend?name = $sarah?friends return $friend?name |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseJSON-005[+]
X UseCaseJSON-005: Created on: 2014-12-23 Spec Dependencies: spec = XQ31+ Test: declare namespace map="http://www.w3.org/2005/xpath-functions/map"; let $products := json-doc('sales.json')?* return map:merge(( for $sales in $products let $pname := $sales?product group by $pname return map { $pname : sum(for $s in $sales return $s?quantity) } )) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseJSON-006[+]
X UseCaseJSON-006: Created on: 2014-12-23 Spec Dependencies: spec = XQ31+ Test: declare namespace map="http://www.w3.org/2005/xpath-functions/map"; array { for $store in json-doc('stores.json')?* let $state := $store?state group by $state order by $state return map { $state : array { for $product in json-doc('products.json')?* let $category := $product?category group by $category order by $category return map { $category : map:merge(( for $sales in json-doc('sales.json')?* where $sales?("store number") = $store?("store number") and $sales?product = $product?name let $pname := $sales?product group by $pname order by $pname return map { $pname : sum(for $s in $sales return $s?quantity)} )) } } } } |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseJSON-007[+]
X UseCaseJSON-007: Created on: 2014-12-23 Spec Dependencies: spec = XP31+ XQ31+ feature = higherOrderFunctions Test: let $sats := json-doc("satellites.json")("satellites") return map { "visible" : array { map:keys($sats)[$sats(.)("visible")] }, "invisible" : array { map:keys($sats)[not($sats(.)("visible"))] } } |
pass | pass | pass | pass | pass | pass |
UseCaseJSON-010[+]
X UseCaseJSON-010: Created on: 2014-12-23 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: <html> <body> <table> <tr> { (: Column headings :) <th> </th>, for $th in json-doc("table.json")("col labels")?* return <th>{ $th }</th> } </tr> { (: Data for each row :) for $r at $i in json-doc("table.json")("data")?* return <tr> { <th>{ json-doc("table.json")("row labels")[$i] }</th>, for $c in $r?* return <td>{ $c }</td> } </tr> } </table> </body> </html> |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseJSON-011[+]
X UseCaseJSON-011: Created on: 2014-12-23 Spec Dependencies: spec = XQ31+ Test: <table>{ for tumbling window $w in json-doc("colors.json")?* start at $x when fn:true() end at $y when $y - $x = 2 return <tr>{ for $i in $w return <td>{ $i?color }</td> }</tr> }</table> |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseJSON-014[+]
X UseCaseJSON-014: Created on: 2014-12-23 Spec Dependencies: spec = XP31+ XQ31+ feature = higherOrderFunctions Test: let $feed := json-doc("incoming.json")("feed") , $entry := $feed("entry") return if ($entry?*("app$control")("yt$state")("name") = "restricted") then map:remove($feed, "entry") else $feed |
pass | pass | pass | pass | pass | pass |
UseCaseNLP-001[+]
X UseCaseNLP-001: Created on: 2014-12-30 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: <s> { for $w in json-doc('speech-representation.json')?* return <w pos="{ $w(2) }">{ $w(1) }</w> } </s> |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseNLP-002[+]
X UseCaseNLP-002: Created on: 2014-12-30 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: declare variable $index := map { "pos" : 2, "lemma" : 1 }; <s> { for $w in json-doc('speech-representation.json')?* return <w pos="{ $w($index("pos")) }">{ $w($index("lemma")) }</w> } </s> |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseNLP-003[+]
X UseCaseNLP-003: Created on: 2014-12-30 Spec Dependencies: spec = XP31+ XQ31+ feature = higherOrderFunctions Test: array { for $w in json-doc('speech-representation.json')?* return map { "pos" : $w(2), "lemma" : $w(1) } } |
pass | pass | pass | pass | pass | pass |
UseCaseNLP-004[+]
X UseCaseNLP-004: Created on: 2014-12-30 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: for $word in json-doc('speech-representation.json')?* let $pos := $word(2) let $lexeme := $word(1) where $pos = ("JJ", "NN", "RB", "VB") group by $pos order by $pos return <pos name="{$pos}"> { for $l in distinct-values($lexeme) return <lexeme>{ $l }</lexeme> } </pos> |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseNLP-005[+]
X UseCaseNLP-005: Created on: 2014-12-30 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: declare function local:words-only($s) { for $w in $s where not($w(2) = (".", ",", ";", ":")) return $w(1) }; for sliding window $w in local:words-only(json-doc('speech-representation.json')?*) start at $i when true() only end at $j when $j - $i eq 2 return array { $w } |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseNLP-006a[+]
X UseCaseNLP-006a: Created on: 2014-12-30 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: declare function local:filter($s as item()*, $p as function(item()) as xs:boolean) { array { $s[$p(.)] }, array { $s[not($p(.))] } }; let $f := function($a) { starts-with($a(2), "VB") } return local:filter(json-doc('speech-representation.json')?*, $f) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseNLP-006b[+]
X UseCaseNLP-006b: Created on: 2014-12-30 Spec Dependencies: spec = XQ31+ feature = higherOrderFunctions Test: declare function local:filter($s as item()*, $p as function(item()) as xs:boolean) { map { true() : array { $s[$p(.)] }, false() : array { $s[not($p(.))] } } }; let $f := function($a) { starts-with($a(2), "VB") } return local:filter(json-doc('speech-representation.json')?*, $f) |
pass | n/a
notXP31 |
pass | n/a | pass | pass |
UseCaseR31-022[+]
X UseCaseR31-022: Created on: 2014-04-24 Spec Dependencies: spec = XQ31+ spec = XQ30+ Test: json-doc("http://www.w3.org/qt3/app/UseCaseR31/mildred-json")?phone?*[?type = 'mobile']?number |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
UseCaseR31-023[+]
X UseCaseR31-023: Created on: 2014-04-24 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ spec = XQ30+ Test: declare namespace map = "http://www.w3.org/2005/xpath-functions/map"; declare namespace array = "http://www.w3.org/2005/xpath-functions/array"; let $input := json-doc('http://www.w3.org/qt3/app/UseCaseR31/employees-json') for $k in map:keys($input) return <department name="{ $k }"> { let $array := $input($k) for $i in 1 to array:size($array) let $emp := $array($i) return <employee> <firstName>{ $emp('firstName') }</firstName> <lastName>{ $emp('lastName') }</lastName> <age>{ $emp('age') }</age> </employee> } </department> |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
UseCaseR31-025[+]
X UseCaseR31-025: Created on: 2014-04-24 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ spec = XQ30+ Test: declare namespace map="http://www.w3.org/2005/xpath-functions/map"; declare function local:deep-put($input as item()*, $key as xs:string, $value as item()*) as item()* { let $mf := function($k, $v) { if ($k eq $key) then map{$k : $value} else map{$k : local:deep-put($v, $key, $value)} } for $i in $input return if ($i instance of map(*)) then map:merge(map:for-each($i, $mf)) else if ($i instance of array(*)) then array{ local:deep-put($i?*, $key, $value) } else $i }; local:deep-put(json-doc("http://www.w3.org/qt3/app/UseCaseR31/bookinfo-json"), "first", "John") |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
UseCaseR31-029[+]
X UseCaseR31-029: Created on: 2014-04-24 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ spec = XQ30+ Test: declare namespace map="http://www.w3.org/2005/xpath-functions/map"; let $sats := json-doc("http://www.w3.org/qt3/app/UseCaseR31/satellites-json")("satellites") return map { "visible" : array { map:keys($sats)[$sats(.)("visible")] }, "invisible" : array { map:keys($sats)[not($sats(.)("visible"))] } } |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
UseCaseR31-031[+]
X UseCaseR31-031: Created on: 2014-04-24 Spec Dependencies: spec = XQ31+ spec = XQ30+ Test: <html><body><table> <tr> (: Column headings :) { <th> </th>, for $th in json-doc('http://www.w3.org/qt3/app/UseCaseR31/table-json')?col-labels?* return <th>{ $th }</th> } </tr> { (: Data for each row :) for $r at $i in json-doc('http://www.w3.org/qt3/app/UseCaseR31/table-json')?data?* return <tr> { <th>{ json-doc('http://www.w3.org/qt3/app/UseCaseR31/table-json')?row-labels[$i] }</th>, for $c in $r?* return <td>{ $c }</td> } </tr> } </table> </body> </html> |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
UseCaseR31-032[+]
X UseCaseR31-032: Created on: 2014-04-24 Spec Dependencies: spec = XQ31+ spec = XQ30+ Test: <table>{ for tumbling window $w in json-doc("http://www.w3.org/qt3/app/UseCaseR31/colors-json")?colors?* start at $x when fn:true() end at $y when $y - $x = 2 return <tr>{ for $i in $w?color return <td>{ $i }</td> }</tr> }</table> |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
UseCaseR31-033[+]
X UseCaseR31-033: Created on: 2014-04-24 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ spec = XQ30+ Test: declare namespace map="http://www.w3.org/2005/xpath-functions/map"; let $dbj := json-doc("http://www.w3.org/qt3/app/UseCaseR31/users2-json")[ .("name") = "Deadbeat Jim" ] return map:put($dbj, "status", "credit card declined") |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
UseCaseR31-034-err[+]
X UseCaseR31-034-err: Created on: 2015-09-17 Spec Dependencies: feature = higherOrderFunctions spec = XQ31+ spec = XQ30+ Test: let $mf := function($k as node(), $v) { map{$k('book') : $v} } return $mf(json-doc("http://www.w3.org/qt3/app/UseCaseR31/bookinfo-json"), "first") |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |
d1e42340[+]
X d1e42340: Created on: 2015-06-10 Spec Dependencies: spec = XQ31+ Test: deep-equal(json-doc("product.json"), map { "number": xs:double(557), "name": "Fleece Pullover", "colorChoices": ["navy", "black"], "is-current": true(), "other": () }) |
pass | n/a
test-set dependencies not satisfied |
pass | n/a | pass | pass |