Differences

This shows you the differences between two versions of the page.

Link to this comparison view

z:quad-xquery-clausulae3 [2015/03/13 21:00]
njovanovic
z:quad-xquery-clausulae3 [2015/03/13 21:04] (current)
njovanovic
Line 1: Line 1:
 ====== XQuery for Clausulae ====== ====== XQuery for Clausulae ======
 +Here is the XQuery which produced the static HTML report on duplicate clausulae in LatTy, with frequencies and filenames in both LatTy and CroALa.
  
 <code javascript> <code javascript>
Line 5: Line 6:
 declare namespace croala = "http://www.ffzg.unizg.hr/klafil/croala"; declare namespace croala = "http://www.ffzg.unizg.hr/klafil/croala";
  
 +(: create address for PhiloLogic search :)
 declare function croala:solraddr ($auct) {  declare function croala:solraddr ($auct) { 
 let $link := "http://solr.ffzg.hr/cgi-bin/philologic/search3t?dbname=latty&amp;word=HEREGENUSSSS" let $link := "http://solr.ffzg.hr/cgi-bin/philologic/search3t?dbname=latty&amp;word=HEREGENUSSSS"
 return replace($link,"HEREGENUSSSS",$auct) return replace($link,"HEREGENUSSSS",$auct)
  };  };
- + 
 +(: get filename and count for matches of clausulae in db :)
 declare function croala:srcclaus ($coll, $r) { declare function croala:srcclaus ($coll, $r) {
   let $rcc1 :=   let $rcc1 :=
Line 18: Line 21:
     return element td { $countrcc1 || ": " || string-join($rcc1, ', ') }     return element td { $countrcc1 || ": " || string-join($rcc1, ', ') }
 }; };
- + 
 +(: get clausulae, extract duplicates :)
 declare function croala:duptab () {  declare function croala:duptab () { 
 let $repetit := element r {  let $repetit := element r { 
Line 62: Line 66:
  
 }; };
 +
 +(: return final results as HTML page :)
 declare function croala:ppp () { declare function croala:ppp () {
    (: HTML template starts here :)    (: HTML template starts here :)
Line 91: Line 97:
 }; };
  croala:ppp()  croala:ppp()
 +
 </code> </code>
z/quad-xquery-clausulae3.txt · Last modified: 2015/03/13 21:04 by njovanovic
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Run by Debian Driven by DokuWiki