Update of /cvsroot/monetdb/pathfinder/modules/pftijah/Tests
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv7768/Tests

Modified Files:
      Tag: Feb2010
        All procs.stable.out 
Added Files:
      Tag: Feb2010
        resultsize1.stable.err resultsize1.stable.out resultsize1.xq 
        resultsize2.stable.err resultsize2.stable.out resultsize2.xq 
Log Message:
re-animate tijah:resultsize function and add corresponding test cases


Index: All
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/Tests/All,v
retrieving revision 1.15
retrieving revision 1.15.2.1
diff -u -d -r1.15 -r1.15.2.1
--- All 6 Jan 2010 13:59:09 -0000       1.15
+++ All 4 Feb 2010 10:59:04 -0000       1.15.2.1
@@ -44,4 +44,6 @@
 tfall
 terms_tf
 fbterms
+resultsize1
+resultsize2
 cleanup

--- NEW FILE: resultsize2.stable.err ---
stderr of test 'resultsize2` in directory 'modules/pftijah` itself:


# 11:53:37 >  
# 11:53:37 >   Mserver 
"--config=/export/scratch0/henning/stable/monet/etc/MonetDB.conf" --debug=10 
--set gdk_nr_threads=1 --set 
"monet_mod_path=/export/scratch0/henning/stable/monet/lib/MonetDB4:/export/scratch0/henning/stable/monet/lib/MonetDB4/lib:/export/scratch0/henning/stable/monet/lib/MonetDB4/bin"
 --set "gdk_dbfarm=/export/scratch0/henning/stable/monet/var/MonetDB4/dbfarm"  
--set mapi_open=true --set xrpc_open=true --set mapi_port=38693 --set 
xrpc_port=40748 --set monet_prompt= --trace  "--dbname=mTests_modules_pftijah" 
"--dbinit= module(pathfinder);" ; echo ; echo Over..
# 11:53:37 >  


# 11:53:38 >  
# 11:53:38 >  mclient -lxquery -fxml --host=asbjorn --port=38693 resultsize2.xq
# 11:53:38 >  


# 11:53:38 >  
# 11:53:38 >  Done.
# 11:53:38 >  


Index: procs.stable.out
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/Tests/procs.stable.out,v
retrieving revision 1.63.2.1
retrieving revision 1.63.2.2
diff -u -d -r1.63.2.1 -r1.63.2.2
--- procs.stable.out    3 Feb 2010 14:14:18 -0000       1.63.2.1
+++ procs.stable.out    4 Feb 2010 10:59:05 -0000       1.63.2.2
@@ -153,7 +153,7 @@
 [ "addValues(BAT[void,any::1], BAT[oid,any::1]) : BAT[oid,oid]"                
                                                                                
  ]
 [ "addValues(BAT[void,any::1], any::1) : oid"                                  
                                                                          ]
 [ "add_attr_bulk(BAT[void,BAT], oid, BAT[oid,oid]) : oid"                      
                                                                          ]
-[ "add_content(BAT[oid,str], BAT[void,BAT], int) : BAT[void,oid]"              
                                                                                
                                                                                
  ]
+[ "add_content(BAT[void,str], BAT[void,BAT], int) : BAT[void,oid]"             
                                                                                
                                                                                
  ]
 [ "add_pi_bulk(BAT[void,BAT], oid, BAT[oid,str], BAT[oid,str]) : BAT[oid,oid]" 
                                                                          ]
 [ "add_qname(str, str, str, BAT[void,BAT]) : oid"                              
                                                                          ]
 [ "add_qnames(BAT[void,str], BAT[void,str], BAT[void,str], BAT[void,BAT]) : 
BAT[void,oid]"                                                               ]

--- NEW FILE: resultsize1.stable.err ---
stderr of test 'resultsize1` in directory 'modules/pftijah` itself:


# 11:53:37 >  
# 11:53:37 >   Mserver 
"--config=/export/scratch0/henning/stable/monet/etc/MonetDB.conf" --debug=10 
--set gdk_nr_threads=1 --set 
"monet_mod_path=/export/scratch0/henning/stable/monet/lib/MonetDB4:/export/scratch0/henning/stable/monet/lib/MonetDB4/lib:/export/scratch0/henning/stable/monet/lib/MonetDB4/bin"
 --set "gdk_dbfarm=/export/scratch0/henning/stable/monet/var/MonetDB4/dbfarm"  
--set mapi_open=true --set xrpc_open=true --set mapi_port=38693 --set 
xrpc_port=40748 --set monet_prompt= --trace  "--dbname=mTests_modules_pftijah" 
"--dbinit= module(pathfinder);" ; echo ; echo Over..
# 11:53:37 >  


# 11:53:37 >  
# 11:53:37 >  mclient -lxquery -fxml --host=asbjorn --port=38693 resultsize1.xq
# 11:53:37 >  


# 11:53:37 >  
# 11:53:37 >  Done.
# 11:53:37 >  


--- NEW FILE: resultsize1.stable.out ---
stdout of test 'resultsize1` in directory 'modules/pftijah` itself:


# 11:53:37 >  
# 11:53:37 >   Mserver 
"--config=/export/scratch0/henning/stable/monet/etc/MonetDB.conf" --debug=10 
--set gdk_nr_threads=1 --set 
"monet_mod_path=/export/scratch0/henning/stable/monet/lib/MonetDB4:/export/scratch0/henning/stable/monet/lib/MonetDB4/lib:/export/scratch0/henning/stable/monet/lib/MonetDB4/bin"
 --set "gdk_dbfarm=/export/scratch0/henning/stable/monet/var/MonetDB4/dbfarm"  
--set mapi_open=true --set xrpc_open=true --set mapi_port=38693 --set 
xrpc_port=40748 --set monet_prompt= --trace  "--dbname=mTests_modules_pftijah" 
"--dbinit= module(pathfinder);" ; echo ; echo Over..
# 11:53:37 >  

# MonetDB Server v4.36.0
# based on GDK   v1.36.0
# Copyright (c) 1993-July 2008, CWI. All rights reserved.
# Copyright (c) August 2008-2010, MonetDB B.V.. All rights reserved.
# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs; dynamically 
linked.
# Detected 7.751 GiB (8322658304 bytes) main-memory.
# Visit http://monetdb.cwi.nl/ for further information.
# PF/Tijah module v0.13.0 loaded. http://dbappl.cs.utwente.nl/pftijah
# MonetDB/XQuery module v0.36.0 loaded (default back-end is 'algebra')
# XRPC administrative console at http://127.0.0.1:40748/admin

printf("\nReady.\n");

Ready.
quit();

Over..

# 11:53:37 >  
# 11:53:37 >  mclient -lxquery -fxml --host=asbjorn --port=38693 resultsize1.xq
# 11:53:37 >  

<?xml version="1.0" encoding="utf-8"?>
<XQueryResult><results num="4"><node rank="1"><section id="sec2"><title>XML 
Information retrieval</title>
            <para id="par4">This section is about XML information 
retrieval.</para>
            <para id="par5">It contains the words XML, information and 
retrieval many times, 
                  more than say databases. 
                  It should be more relevant to XML information retrieval 
                  than the previous section.</para>
        </section></node><node rank="2"><section id="sec5"><title>XML 
definitions</title>
            <para id="par9">This section contains definitions that are used in 
XML databases 
                  and XML information retrieval</para>
        </section></node></results></XQueryResult>

# 11:53:37 >  
# 11:53:37 >  Done.
# 11:53:37 >  


--- NEW FILE: resultsize2.stable.out ---
stdout of test 'resultsize2` in directory 'modules/pftijah` itself:


# 11:53:37 >  
# 11:53:37 >   Mserver 
"--config=/export/scratch0/henning/stable/monet/etc/MonetDB.conf" --debug=10 
--set gdk_nr_threads=1 --set 
"monet_mod_path=/export/scratch0/henning/stable/monet/lib/MonetDB4:/export/scratch0/henning/stable/monet/lib/MonetDB4/lib:/export/scratch0/henning/stable/monet/lib/MonetDB4/bin"
 --set "gdk_dbfarm=/export/scratch0/henning/stable/monet/var/MonetDB4/dbfarm"  
--set mapi_open=true --set xrpc_open=true --set mapi_port=38693 --set 
xrpc_port=40748 --set monet_prompt= --trace  "--dbname=mTests_modules_pftijah" 
"--dbinit= module(pathfinder);" ; echo ; echo Over..
# 11:53:37 >  

# MonetDB Server v4.36.0
# based on GDK   v1.36.0
# Copyright (c) 1993-July 2008, CWI. All rights reserved.
# Copyright (c) August 2008-2010, MonetDB B.V.. All rights reserved.
# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs; dynamically 
linked.
# Detected 7.751 GiB (8322658304 bytes) main-memory.
# Visit http://monetdb.cwi.nl/ for further information.
# PF/Tijah module v0.13.0 loaded. http://dbappl.cs.utwente.nl/pftijah
# MonetDB/XQuery module v0.36.0 loaded (default back-end is 'algebra')
# XRPC administrative console at http://127.0.0.1:40748/admin

printf("\nReady.\n");

Ready.
quit();

Over..

# 11:53:38 >  
# 11:53:38 >  mclient -lxquery -fxml --host=asbjorn --port=38693 resultsize2.xq
# 11:53:38 >  

<?xml version="1.0" encoding="utf-8"?>
<XQueryResult><res><results result-number="4" query-number="1"><node 
rank="1"><section id="sec2"><title>XML Information retrieval</title>
            <para id="par4">This section is about XML information 
retrieval.</para>
            <para id="par5">It contains the words XML, information and 
retrieval many times, 
                  more than say databases. 
                  It should be more relevant to XML information retrieval 
                  than the previous section.</para>
        </section></node><node rank="2"><section id="sec5"><title>XML 
definitions</title>
            <para id="par9">This section contains definitions that are used in 
XML databases 
                  and XML information retrieval</para>
        </section></node><node rank="3"><section id="sec4"><title>TIJAH</title>
            <para id="par8">This section is about the TIJAH XML information 
retrieval 
                  system. This section is more about TIJAH than any other 
section is 
                  about TIJAH.</para>
        </section></node><node rank="4"><section id="sec1"><title>XML 
databases</title>
            <para id="par2">This section is about XML databases.</para>
            <para id="par3">It contains the words XML and databases many times, 
                  more than say information and retrieval. 
                  It should be more relevant to XML databases than 
                  the next section.</para>
        </section></node></results><results result-number="6" 
query-number="2"><node rank="1"><para id="par4">This section is about XML 
information retrieval.</para></node><node rank="2"><para id="par1">This chapter 
is about XML databases and retrieval systems.</para></node><node rank="3"><para 
id="par5">It contains the words XML, information and retrieval many times, 
                  more than say databases. 
                  It should be more relevant to XML information retrieval 
                  than the previous section.</para></node><node rank="4"><para 
id="par9">This section contains definitions that are used in XML databases 
                  and XML information retrieval</para></node><node 
rank="5"><para id="par8">This section is about the TIJAH XML information 
retrieval 
                  system. This section is more about TIJAH than any other 
section is 
                  about TIJAH.</para></node><node rank="6"><para id="par3">It 
contains the words XML and databases many times, 
                  more than say information and retrieval. 
                  It should be more relevant to XML databases than 
                  the next section.</para></node></results><results 
result-number="1" query-number="3"><node rank="1"><section 
id="sec3"><title>Pathfinder</title>
            <para id="par7">This section is about the Pathfinder XML database. 
This section is 
                  more about Pathfinder than any other section is about 
Pathfinder.</para>
        </section></node></results></res></XQueryResult>

# 11:53:38 >  
# 11:53:38 >  Done.
# 11:53:38 >  


--- NEW FILE: resultsize2.xq ---
let $opt := <TijahOptions ft-index="snowball"/>
let $queries := ("//section[about(., retrieval)]", "//para[about(., 
retrieval)]", "//section[about(., pathfinder)]")

return <res>
{
   for $q at $qn in $queries
   let $qid := tijah:queryall-id($q,$opt)
   return <results query-number="{$qn}" 
result-number="{tijah:resultsize($qid)}">
   {
      for $n at $r in tijah:nodes($qid)
      return <node rank="{$r}">{$n}</node>
   }
   </results>
}
</res>

--- NEW FILE: resultsize1.xq ---
let $opt := <TijahOptions returnNumber="2" ft-index="snowball"/>
let $query := "//section[about(., retrieval)]"
let $resID := tijah:queryall-id($query,$opt)
return <results num="{tijah:resultsize($resID)}">
{
   for $n at $r in tijah:nodes($resID)
   return <node rank="{$r}">{$n}</node>
}
</results>


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to