Commit 67135d90 authored by Sylvain Schmitz's avatar Sylvain Schmitz

clean-up build file; also added minify

parent e4cc9f71
XPathMark was developed by Massimo Franceschet at the University of
Udine, Italy.
Thanks to the authors of XMark [2] and to those of XCheck [6].
Related publications
[1] M. Franceschet. XPathMark: an XPath benchmark for XMark generated
data. International XML Database Symposium (XSYM), 2005.
[2] A. Schmidt, F. Waas, M. L. Kersten, M. J. Carey, I. Manolescu, and
R. Busse. XMark: A Benchmark for XML Data
Management. International Conference on Very Large Data Bases
(VLDB), 2002.
[3] M. Benedikt and C. Koch. XPath leashed. Submitted for publication
(see authors' web pages).
[4] M. Marx. Conditional XPath: the first-order complete XPath
dialect. International Conference on Principles of Database
Systems (PODS), 2005.
[5] B. ten Cate. The expressivity of XPath with transitive
closure. International Conference on Principles of Database
Systems (PODS), 2006.
[6] L. Afanasiev, M. Franceschet, M. Marx, and E. Zimuel. XCheck: a
platform for benchmarking XML engines
(demonstration). International Conference on Very Large Databases
(VLDB), 2006.
......@@ -6,17 +6,30 @@
<property name="xml" value="xpathmark"/>
<property name="target.dir" value="${user.home}/public_html/chord/"/>
<!-- apply XSLT stylesheet -->
<property name="lib.dir" value="../../lib"/>
<property name="project.root" value="../.."/>
<property name="bench.dir" value="${project.root}/benchmark"/>
<property name="lib.dir" value="${project.root}/lib"/>
<target name="all" depends="matrix"/>
<!-- main target -->
<target name="install" depends="minify,matrix">
<copy file="prettify.min.css" todir="${target.dir}"/>
<copy file="lang-xpath.min.js" todir="${target.dir}"/>
<copy file="xpp.min.css" todir="${target.dir}"/>
<copy file="render.min.js" todir="${target.dir}"/>
</target>
<!-- extract benchmark data -->
<target name="matrix" depends="saxon">
<uptodate property="extracted">
<srcfiles dir="./" includes="matrix.xsl"/>
<srcfiles dir="${bench.dir}" includes="${xml}.xml"/>
<mergemapper to="${target.dir}/${xml}/matrix.json"/>
</uptodate>
<target name="matrix" depends="saxon" unless="extracted">
<mkdir dir="${target.dir}/${xml}"/>
<xslt style="matrix.xsl"
in="../../benchmark/${xml}.xml"
in="${bench.dir}/${xml}.xml"
out="matrix.json">
<classpath>
<pathelement path="${lib.dir}/saxon9he.jar"/>
......@@ -44,7 +57,7 @@
<containsstring contains="&lt;query&gt;"/>
</tokenfilter>
</filterchain>
<fileset file="../../benchmark/${xml}.xml"/>
<fileset file="${bench.dir}/${xml}.xml"/>
</concat>
</tokens>
</resourcecount>
......@@ -57,13 +70,34 @@
</replacetokens>
</filterchain>
</copy>
<copy file="prettify.js" todir="${target.dir}"/>
<copy file="prettify.css" todir="${target.dir}"/>
<copy file="lang-xpath.js" todir="${target.dir}"/>
<move file="matrix.json" todir="${target.dir}/${xml}"/>
<move file="fragments.csv" todir="${target.dir}/${xml}"/>
<bzip2 src="${bench.dir}/${xml}.xml" destfile="${target.dir}/${xml}/${xml}.xml.bz2"/>
<copy file="${bench.dir}/${xml}.LICENSE" todir="${target.dir}/${xml}"/>
</target>
<!-- minify CSS and javascript files -->
<uptodate property="minified">
<srcfiles dir= "./" includes="xpp.css prettify.css"/>
<srcfiles dir= "./" includes="lang-xpath.js render.js"/>
<regexpmapper from="^(.*)\.(css|js)$$" to="\1.min.\2"/>
</uptodate>
<target name="minify" depends="yui" unless="minified">
<java jar="${lib.dir}/yuicompressor-2.4.8.jar" fork="true">
<arg line="--type js -o '.js$:.min.js' lang-xpath.js render.js"/>
<classpath>
<pathelement location="${lib.dir}/yuicompressor-2.4.8.jar"/>
</classpath>
</java>
<java jar="${lib.dir}/yuicompressor-2.4.8.jar" fork="true">
<arg line="--type css -o '.css$:.min.css' xpp.css prettify.css"/>
<classpath>
<pathelement location="${lib.dir}/yuicompressor-2.4.8.jar"/>
</classpath>
</java>
</target>
<!-- download saxon if needed -->
<target name="saxon">
<local name="offline"/>
<available file="${lib.dir}/saxon9he.jar" property="offline"/>
......@@ -74,4 +108,13 @@
<unzip unless:set="offline" src="${lib.dir}/SaxonHE9-7-0-14J.zip" dest="${lib.dir}"
overwrite="no"/>
</target>
<!-- download YUI if needed -->
<target name="yui">
<local name="offline"/>
<available file="${lib.dir}/yuicompressor-2.4.8.jar" property="offline"/>
<get unless:set="offline"
src="https://github.com/yui/yuicompressor/releases/download/v2.4.8/yuicompressor-2.4.8.jar"
dest="${lib.dir}" usetimestamp="true"/>
</target>
</project>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
body {
margin: 1em auto 10em auto;
position: relative;
font-family: sans-serif;
color: #333;
}
#links, #left {
float: left;
}
#left { font-size: 10px; }
#circle circle {
fill: none;
pointer-events: all;
}
#circle textpath { font-size: 11px; }
#chord .group path {
fill-opacity: .5;
stroke: #444;
stroke-width: .1pt;
}
#chord path.chord {
cursor: pointer;
stroke: #444;
stroke-width: .1pt;
}
path {
transition: opacity 0.1s ease-in-out;
}
path.inactive, #circle:hover path.fade {
opacity: 0;
}
#matrix, aside, aside select { font: 10px sans-serif; }
#matrix text { fill: #333; }
#matrix text.active { fill: red }
#matrix line { stroke: #fff; }
#matrix .row rect:hover {
stroke: #333;
stroke-width: .25pt;
cursor: pointer;
padding: -1px;
}
#log {
opacity: 0;
transition: opacity 0.5s ease-in-out;
background-color: white;
margin-bottom: 50px;
}
#log ul { padding-left: 1em; }
#log li { margin-bottom: .3ex; }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment