From: <tob...@us...> - 2014-04-05 00:35:12
|
Revision: 8056 http://sourceforge.net/p/bigdata/code/8056 Author: tobycraig Date: 2014-04-05 00:35:08 +0000 (Sat, 05 Apr 2014) Log Message: ----------- Changed new workbench to default. Old one is available at /bigdata/html/old.html. Also made query tab default instead of load in new workbench. Modified Paths: -------------- branches/RDR/bigdata-war/src/html/index.html Added Paths: ----------- branches/RDR/bigdata-war/src/html/old.html Modified: branches/RDR/bigdata-war/src/html/index.html =================================================================== --- branches/RDR/bigdata-war/src/html/index.html 2014-04-04 19:56:42 UTC (rev 8055) +++ branches/RDR/bigdata-war/src/html/index.html 2014-04-05 00:35:08 UTC (rev 8056) @@ -1,144 +1,201 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" -"http://www.w3.org/TR/html4/loose.dtd"> -<html> -<head profile="http://www.w3.org/2005/10/profile"> -<link rel="icon" - type="image/png" - href="/bigdata/html/favicon.ico" /> -<meta http-equiv="Content-Type" content="text/html;charset=utf-8" > -<title>bigdata® NanoSparqlServer</title> -<!-- $Id$ --> -<!-- junit test marker: index.html --> -</head> -<body> - -<h2>Welcome to bigdata®.</h2> -<p>Please consult the -<a href="http://wiki.bigdata.com/wiki/index.php/NanoSparqlServer" - target="_blank" - > documentation</a> for information on using the NanoSparqlServer's REST Api. </br>See the - <a href="http://wiki.bigdata.com/wiki/index.php/Main_Page" - target="_blank" - >wiki</a> for help on query optimization, bigdata SPARQL extensions, etc. -</p> - -<p> -The following URLs should be active when deployed in the default configuration: -</p> -<dl> -<dt>http://hostname:port/bigdata</dt> -<dd>This page.</dd> -<dt>http://hostname:port/bigdata/sparql</dt> -<dd>The SPARQL REST API (<a href="/bigdata/sparql">Service Description + VoID Description</a>).</dd> -<dt>http://hostname:port/bigdata/namespace</dt> -<dd>VoID <a href="/bigdata/namespace">graph of available KBs</a> from this service.</dd> -<dt>http://hostname:port/bigdata/status</dt> -<dd>A <a href="/bigdata/status">status</a> page.</dd> -<dt>http://hostname:port/bigdata/counters</dt> -<dd>A <a href="/bigdata/counters"> performance counters</a> page.</dd> -</dl> - -<p> -Where <i>hostname</i> is the name of this host and <i>port</i> is the port at -which this page was accessed. -</p> - -<!-- Note: Some applications (firefox 7) can not handle a GET with a very long - URL. For that reason ONLY this operation defaults to a POST. You SHOULD - use GET for database queries since they are, by and large, idempotent. - --> -<h2><a href="http://www.w3.org/TR/sparql11-query/" - title="W3C SPARQL 1.1 Query Recommendation" - target="_blank" - > SPARQL Query </a></h2> -<FORM action="/bigdata/sparql" method="post" name="QUERY"> - <P> - <TEXTAREA name="query" rows="10" cols="80" title="Enter SPARQL Query." - >SELECT * { ?s ?p ?o } LIMIT 1</TEXTAREA> - </P><P> - Tenant Namespace - <INPUT type="text" name="namespace" title="Tenant namespace." - > (leave empty for default KB) - </P><P> - <INPUT type="submit" value="Send" title="Submit query."> - <INPUT type="checkbox" name="explain" value="true" - title="Explain query plan rather than returning the query results." - > Explain - (<INPUT type="checkbox" name="explain" value="details" - title="Explain query plan rather than returning the query results (with extra details)." - > Details) - <INPUT type="checkbox" name="analytic" value="true" - title="Enable the analytic query package." - > Analytic -<!-- TODO Uncomment to reveal the RTO option. --> - <INPUT type="checkbox" name="RTO" value="true" - title="Enable the Runtime Query Optimizer (RTO) - This is an alpha feature." - > RTO (Alpha) -<!-- --> - <INPUT type="checkbox" name="xhtml" value="true" - title="Request XHTML response (results formatted as table)." - checked="checked" - > XHTML - </P> -</FORM> -<h2><a href="http://www.w3.org/TR/sparql11-update/" - title="W3C SPARQL Update Recommendation" - target="_blank" - >SPARQL Update</a></h2> -<FORM action="/bigdata/sparql" method="post"> - <P> - <TEXTAREA name="update" rows="10" cols="80" title="Enter SPARQL Update." - > -PREFIX dc: <http://purl.org/dc/elements/1.1/> -INSERT DATA -{ - <http://example/book1> dc:title "A new book" ; - dc:creator "A.N.Other" . -}</TEXTAREA> - </P><P> - Tenant Namespace - <INPUT type="text" name="namespace" title="Tenant namespace." - > (leave empty for default KB) - </P><P> - <INPUT type="submit" value="Send" title="Submit Update."> - <!--INPUT type="checkbox" name="explain" value="true" - title="Explain query plan rather than returning the query results." - > Explain--> - <INPUT type="checkbox" name="analytic" value="true" - title="Enable the analytic query package." - > Analytic - <INPUT type="checkbox" name="monitor" value="true" - title="Monitor the execution of the UPDATE request." - checked="checked" - > Monitor - </P> -</FORM> -<p> -<!-- Note: Some common characters need to be escaped here and also in the SPARQL - examples above. - --> -Here are some useful namespaces: -</p> -<pre> -prefix dc: <http://purl.org/dc/elements/1.1/> -prefix xsd: <http://www.w3.org/2001/XMLSchema#> -prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> -prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> -prefix owl: <http://www.w3.org/2002/07/owl#> -prefix foaf: <http://xmlns.com/foaf/0.1/> -prefix hint: <http://www.bigdata.com/queryHints#> -prefix bd: <http://www.bigdata.com/rdf#> -prefix bds: <http://www.bigdata.com/rdf/search#> -</pre> -<!-- Note: Use SPARQL Update "LOAD" instead. -<h2>Upload Data (URL):</h2> -<form action="sparql" method="post"> - <p> - <textarea name="uri" rows="1" cols="100">file:/</textarea> - </p><p> - <input type="submit" value="Upload"> - </p> -</form> ---> -</body> -</html> \ No newline at end of file +<!DOCTYPE html> +<html lang="en"> + <head profile="http://www.w3.org/2005/10/profile"> + <link rel="icon" + type="image/png" + href="/bigdata/html/favicon.ico" /> + <!-- meta charset="utf-8" --> + <meta http-equiv="Content-Type" content="text/html;charset=utf-8" > + <title>Bigdata Workbench</title> + <link rel="stylesheet" href="/bigdata/html/css/style.css"> + </head> + + <body> + <div id="container"> + + <div id="top"> + <img src="/bigdata/html/images/logo.png" id="logo"> + <form id="search-form"><label for="search-text">Search:</label> <input type="text" id="search-text"></form> + <p>Current namespace: <span id="current-namespace"></span></p> + </div> + + <div id="tab-selector"> + <a data-target="query" class="active">Query</a> + <a data-target="load">Load</a> + <a data-target="explore">Explore</a> + <a data-target="status">Status</a> + <a data-target="performance">Performance</a> + <a data-target="namespaces">Namespaces</a> + </div> + + <div class="tab" id="load-tab"> + + <div class="box"> + + <div class="namespace-shortcuts"> + <ul> + <li data-ns="prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>">RDF</li> + <li data-ns="prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>">RDFS</li> + <li data-ns="prefix owl: <http://www.w3.org/2002/07/owl#>">OWL</li> + <li data-ns="prefix bd: <http://www.bigdata.com/rdf#> ">BD</li> + <li data-ns="prefix bds: <http://www.bigdata.com/rdf/search#> ">BDS</li> + <li data-ns="prefix foaf: <http://xmlns.com/foaf/0.1/>">FOAF</li> + <li data-ns="prefix hint: <http://www.bigdata.com/queryHints#>">HINT</li> + <li data-ns="prefix dc: <http://purl.org/dc/elements/1.1/>">DC</li> + <li data-ns="prefix xsd: <http://www.w3.org/2001/XMLSchema#>">XSD</li> + </ul> + </div> + + <textarea id="load-box" placeholder="(Type in or drag a file containing RDF data, a SPARQL update or a file path or URL)"></textarea> + <p id="large-file-message">Your file is too large to display here, but will be uploaded as normal. <a href="#" id="clear-file">Remove file</a></p> + <p> + <input type="file" id="load-file"><br> + <label for="load-type">Type:</label> + <select id="load-type"> + <option value="sparql" selected="selected">SPARQL</option> + <option value="rdf">RDF</option> + <option value="path">File path</option> + </select> + <span id="rdf-type-container"> + <label for="rdf-type">Format:</label> + <select id="rdf-type"> + <option value="">Select RDF format</option> + <option value="n-quads">N-Quads</option> + <option value="n-triples">N-Triples</option> + <option value="n3">Notation3</option> + <option value="rdf/xml">RDF/XML</option> + <option value="trig">TriG</option> + <option value="trix">TriX</option> + <option value="turtle">Turtle</option> + </select> + </span> + </p> + <hr class="shadow"> + <button id="load-load">Load</button> + </div> + + <div class="box"> + <pre id="load-response"></pre> + </div> + + <div class="bottom"> + <button id="load-clear">Clear output</button> + </div> + + </div> + + <div class="tab" id="query-tab"> + <div class="box"> + + <div class="namespace-shortcuts"> + <ul> + <li data-ns="prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>">RDF</li> + <li data-ns="prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>">RDFS</li> + <li data-ns="prefix owl: <http://www.w3.org/2002/07/owl#>">OWL</li> + <li data-ns="prefix bd: <http://www.bigdata.com/rdf#> ">BD</li> + <li data-ns="prefix bds: <http://www.bigdata.com/rdf/search#> ">BDS</li> + <li data-ns="prefix foaf: <http://xmlns.com/foaf/0.1/>">FOAF</li> + <li data-ns="prefix hint: <http://www.bigdata.com/queryHints#>">HINT</li> + <li data-ns="prefix dc: <http://purl.org/dc/elements/1.1/>">DC</li> + <li data-ns="prefix xsd: <http://www.w3.org/2001/XMLSchema#>">XSD</li> + </ul> + </div> + + <form id="query-form"> + <textarea id="query-box" name="query" placeholder="(Input a SPARQL query)"></textarea> + + <a href="#" id="advanced-features-toggle">Advanced features</a> + + <div id="advanced-features"> + <input type="checkbox" id="query-explain"> <label for="query-explain">Explain</label> + <input type="checkbox" name="analytic" value="true" id="query-analytic"> <label for="query-analytic">Analytic</label> + <input type="checkbox" name="RTO" value="true" id="query-rto"> <label for="query-rto">Runtime Query Optimizer</label> + </div> + + <hr class="shadow"> + + <div id="load-buttons"> + <input type="submit" value="Execute"> + <input type="reset" value="Clear"> + </div> + </form> + + </div> + + <div id="query-response" class="box"> + </div> + + <div id="query-explanation" class="box"> + </div> + + <div class="bottom"> + <button id="query-export-csv">Export CSV</button> + <button id="query-export-json">Export JSON</button> + <button id="query-export-xml">Export XML</button> + <button id="query-response-clear">Clear</button> + </div> + + </div> + + <div class="tab" id="explore-tab"> + + <div class="box"> + <p>Enter a URI to begin navigation <form id="explore-form"><input type="text"> <input type="submit"></form></p> + </div> + + <div id="explore-results"> + <div class="box" id="explore-header"></div> + <div class="box" id="explore-incoming"></div> + <div class="box" id="explore-outgoing"></div> + <div class="box" id="explore-attributes"></div> + </div> + + </div> + + <div class="tab" id="status-tab"> + + <div class="box"> + <p>Accepted query count: <span id="accepted-query-count"></span></p> + <p>Running query count: <span id="running-query-count"></span></p> + <p>Show <a href="#" id="show-queries">queries</a>, <a href="#" id="show-query-details">query details</a>.</p> + <pre id="status-numbers"></pre> + <ul id="running-queries"></ul> + </div> + + </div> + + <div class="tab" id="performance-tab"> + + <div class="box"></div> + + </div> + + <div class="tab" id="namespaces-tab"> + + <div class="box"> + <h1>Namespaces</h1> + <ul id="namespaces-list"></ul> + <br> + <a href="/bigdata/namespace">Download VoID description of all namespaces</a> + </div> + + <div id="namespace-properties" class="box"> + <h1></h1> + <table></table> + </div> + + <div class="box"> + <form id="namespace-create"><input type="text"> <input type="submit" value="Create namespace"></form> + </div> + + </div> + + </div> + + <!--[if IE]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> + <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> + <script>window.jQuery || document.write('<script src="/bigdata/html/js/vendor/jquery.min.js"><\/script>')</script> + <script src="/bigdata/html/js/vendor/jquery.hotkeys.js"></script> + <script src="/bigdata/html/js/workbench.js"></script> + </body> +</html> Copied: branches/RDR/bigdata-war/src/html/old.html (from rev 8028, branches/RDR/bigdata-war/src/html/index.html) =================================================================== --- branches/RDR/bigdata-war/src/html/old.html (rev 0) +++ branches/RDR/bigdata-war/src/html/old.html 2014-04-05 00:35:08 UTC (rev 8056) @@ -0,0 +1,144 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" +"http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head profile="http://www.w3.org/2005/10/profile"> +<link rel="icon" + type="image/png" + href="/bigdata/html/favicon.ico" /> +<meta http-equiv="Content-Type" content="text/html;charset=utf-8" > +<title>bigdata® NanoSparqlServer</title> +<!-- $Id$ --> +<!-- junit test marker: index.html --> +</head> +<body> + +<h2>Welcome to bigdata®.</h2> +<p>Please consult the +<a href="http://wiki.bigdata.com/wiki/index.php/NanoSparqlServer" + target="_blank" + > documentation</a> for information on using the NanoSparqlServer's REST Api. </br>See the + <a href="http://wiki.bigdata.com/wiki/index.php/Main_Page" + target="_blank" + >wiki</a> for help on query optimization, bigdata SPARQL extensions, etc. +</p> + +<p> +The following URLs should be active when deployed in the default configuration: +</p> +<dl> +<dt>http://hostname:port/bigdata</dt> +<dd>This page.</dd> +<dt>http://hostname:port/bigdata/sparql</dt> +<dd>The SPARQL REST API (<a href="/bigdata/sparql">Service Description + VoID Description</a>).</dd> +<dt>http://hostname:port/bigdata/namespace</dt> +<dd>VoID <a href="/bigdata/namespace">graph of available KBs</a> from this service.</dd> +<dt>http://hostname:port/bigdata/status</dt> +<dd>A <a href="/bigdata/status">status</a> page.</dd> +<dt>http://hostname:port/bigdata/counters</dt> +<dd>A <a href="/bigdata/counters"> performance counters</a> page.</dd> +</dl> + +<p> +Where <i>hostname</i> is the name of this host and <i>port</i> is the port at +which this page was accessed. +</p> + +<!-- Note: Some applications (firefox 7) can not handle a GET with a very long + URL. For that reason ONLY this operation defaults to a POST. You SHOULD + use GET for database queries since they are, by and large, idempotent. + --> +<h2><a href="http://www.w3.org/TR/sparql11-query/" + title="W3C SPARQL 1.1 Query Recommendation" + target="_blank" + > SPARQL Query </a></h2> +<FORM action="/bigdata/sparql" method="post" name="QUERY"> + <P> + <TEXTAREA name="query" rows="10" cols="80" title="Enter SPARQL Query." + >SELECT * { ?s ?p ?o } LIMIT 1</TEXTAREA> + </P><P> + Tenant Namespace + <INPUT type="text" name="namespace" title="Tenant namespace." + > (leave empty for default KB) + </P><P> + <INPUT type="submit" value="Send" title="Submit query."> + <INPUT type="checkbox" name="explain" value="true" + title="Explain query plan rather than returning the query results." + > Explain + (<INPUT type="checkbox" name="explain" value="details" + title="Explain query plan rather than returning the query results (with extra details)." + > Details) + <INPUT type="checkbox" name="analytic" value="true" + title="Enable the analytic query package." + > Analytic +<!-- TODO Uncomment to reveal the RTO option. --> + <INPUT type="checkbox" name="RTO" value="true" + title="Enable the Runtime Query Optimizer (RTO) - This is an alpha feature." + > RTO (Alpha) +<!-- --> + <INPUT type="checkbox" name="xhtml" value="true" + title="Request XHTML response (results formatted as table)." + checked="checked" + > XHTML + </P> +</FORM> +<h2><a href="http://www.w3.org/TR/sparql11-update/" + title="W3C SPARQL Update Recommendation" + target="_blank" + >SPARQL Update</a></h2> +<FORM action="/bigdata/sparql" method="post"> + <P> + <TEXTAREA name="update" rows="10" cols="80" title="Enter SPARQL Update." + > +PREFIX dc: <http://purl.org/dc/elements/1.1/> +INSERT DATA +{ + <http://example/book1> dc:title "A new book" ; + dc:creator "A.N.Other" . +}</TEXTAREA> + </P><P> + Tenant Namespace + <INPUT type="text" name="namespace" title="Tenant namespace." + > (leave empty for default KB) + </P><P> + <INPUT type="submit" value="Send" title="Submit Update."> + <!--INPUT type="checkbox" name="explain" value="true" + title="Explain query plan rather than returning the query results." + > Explain--> + <INPUT type="checkbox" name="analytic" value="true" + title="Enable the analytic query package." + > Analytic + <INPUT type="checkbox" name="monitor" value="true" + title="Monitor the execution of the UPDATE request." + checked="checked" + > Monitor + </P> +</FORM> +<p> +<!-- Note: Some common characters need to be escaped here and also in the SPARQL + examples above. + --> +Here are some useful namespaces: +</p> +<pre> +prefix dc: <http://purl.org/dc/elements/1.1/> +prefix xsd: <http://www.w3.org/2001/XMLSchema#> +prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> +prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +prefix owl: <http://www.w3.org/2002/07/owl#> +prefix foaf: <http://xmlns.com/foaf/0.1/> +prefix hint: <http://www.bigdata.com/queryHints#> +prefix bd: <http://www.bigdata.com/rdf#> +prefix bds: <http://www.bigdata.com/rdf/search#> +</pre> +<!-- Note: Use SPARQL Update "LOAD" instead. +<h2>Upload Data (URL):</h2> +<form action="sparql" method="post"> + <p> + <textarea name="uri" rows="1" cols="100">file:/</textarea> + </p><p> + <input type="submit" value="Upload"> + </p> +</form> +--> +</body> +</html> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |