|
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) |
|
---|---|---|---|---|---|---|---|
app-UseCaseNLP | 7/7 | 1/1 | 7/7 | 1/1 | 7/7 | 7/0 | 0/6 |
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 |