[Bug 5829] [FTUC] xquery full text use case document has WRONG xpath solutions

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5829





--- Comment #6 from zhen hua liu <zhen.liu@oracle.com>  2008-08-06 23:13:18 ---
(:: 11.2.1 ::)

doc("http://bstore1.example.com/full-text.html")/books/book
[ metadata/subjects/subject ftcontains "web site" ftand "usability"]


(:: 11.2.2 ::)

doc("http://bstore1.example.com/full-text.html")/books/book                     
[(some $s1 in ./metadata/subjects/subject satisfies $s1
 ftcontains "web site")
   and
(some $s2 in ./metadata/subjects/subject satisfies $s2 ftcontains "usability")]


(:: 11.2.3 ::)

doc("http://bstore1.example.com/full-text.html")/books/book[
  every $pub in .//publisher satisfies
   $pub ftcontains "ersatz" ftand "publications"]



(:: 11.2.4 ::)
doc("http://bstore1.example.com/full-text.html")/books/book
[ .//content ftcontains "expert review methods" occurs at least 2 times]

(:: 12.2.1 ::)
doc("http://bstore1.example.com/full-text.html")/books/book
[ .//content ftcontains
   "software" ftand "developer" with stemming
   distance at most 3 words]


(:: 12.2.2 ::)
doc("http://bstore1.example.com/full-text.html")/books/book
[ .//content ftcontains
   "efficient" ftand "task" ftand "completion"
   ordered distance at most 10 words]


(:: 12.2.3 ::)
doc("http://bstore1.example.com/full-text.html")/books/book
[ .//content ftcontains
   "users" ftand "feeling" ftand ("well served" ftor "well-served")
   with stemming ordered window 15 words]




(:: 12.2.4 ::)
doc("http://bstore1.example.com/full-text.html")/books/book
[ .//content ftcontains
   "users" ftand "would" ftand "know" ftand "step"
   with stemming same sentence]


(:: 12.2.5 ::)
doc("http://bstore1.example.com/full-text.html")/books/book
[ .//content ftcontains
   "usability" ftand "web site" ftand "efficiency"
   ftand "satisfaction" same paragraph]

(:: 13.2.1 ::)
doc("http://bstore1.example.com/full-text.html")/books/book
[ .//p ftcontains "computer workstation"
and .//p/footnote ftcontains "comfortable"]
/(metadata/title , .//p)


(:: 13.2.2 ::)
doc("http://bstore1.example.com/full-text.html")/books/book
[ .//chapter/p ftcontains "usability" ftand "test" with
stemming ]/(metadata/title, .//chapter/p/step[1], .//chapter/p/step[2])


(:: 13.2.3 ::)
doc("http://bstore1.example.com/full-text.html")/books/book[@number="3"
and
 content/part/component/(subComponent |subComponent/subsubComponent)/
   componentTitle ftcontains "flow diagram"
and
./ancestor::node()[.//componentTitle
  ftcontains "human computer interaction"]]
/(metadata/title, content)



(:: 13.2.4 ::)
(:: no xpath solution ::)
(:: 14.2.1 ::)
doc("http://bstore1.example.com/full-text.html")/books/book
[.//p [. ftcontains "testing"
   ftand ("guidance" ftor "correct") distance at
   most 60 words without content ./*] ]



(:: 14.2.2 ::)
doc("http://bstore1.example.com/full-text.html")/books/book
[ .//chapter ftcontains
   "users can be tested at any computer workstation
   or in a lab" without content .//footnote ]
/(metadata/title, .//chapter)



(:: 14.2.3 ::)
doc("http://bstore1.example.com/full-text.html")/books/book
[ .//chapter[. ftcontains
   "at any computer workstation or in a lab"
   without content (.//footnote[. ftcontains
   "workstation." with wildcards])] ]
/(metadata/title, .//chapter)


(:: 14.2.4 ::)
doc("http://bstore1.example.com/full-text.html")/books/book
[ .//chapter/p | .//chapter/p/footnote
   [. ftcontains "workstation" ftand "lab"
   distance at most 6 words without content ./footnote]]
/(metadata/title, .//chapter/p | .//chapter/p/footnote)

(:: 15.2.1 ::)
(:: no xpaths solution ::)

(:: 15.2.2 ::)
doc("http://bstore1.example.com/full-text.html")/books/book
[content//p ftcontains
   ("task" ftand "performance" with stemming distance
   at most 3 words) ftand "expert review" with stemming]
/(metadata/title, content)


(:: 15.2.3 ::)
doc("http://bstore1.example.com/full-text.html")/books/book
[.//content ftcontains (("millicent"
   ftand "marigold" ordered distance at most 3 words)
   ftand "quote.{0-5}" with wildcards with thesaurus at
   "http://bstore1.example.com/UsabilityThesaurus.xml"
   relationship "synonyms" distance at most 3 words)
   ftand "usability testing" ftand "iterate" with stemming
   distance at most 50 words]



(:: 15.2.4 ::)
(:: no xpaths solution ::)

(:: 15.2.5 ::)
(:: no xpaths solution ::)


(:: 16.2.1 - 16:2.8 ::)
(:: no xpaths solution ::)

(:: 16.2.9 ::)

doc("http://bstore1.example.com/full-text.html")
/books/book[content ftcontains ("successfully"
ftand "completing" ftand "tasks") with stemming
window  (count(content/part/chapter) * 3) words]/(metadata/title , content)

(:: 17.2.1 ::)
(:: no xpaths solution ::)

(:: 17.2.2 ::)
(:: no xpaths solution ::)

(:: 17.2.3 ::)
doc("http://bstore1.example.com/full-text.html")
/books/book[for $i score $s in .[. ftcontains "usability"] where $s > 0.1
return $s ]/metadata/title




(:: 17.2.4 - 17.2.6 ::)
(:: no xpaths solution ::)


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 6 August 2008 23:13:52 UTC