- Error: QueryBadFormed: a bad request has been sent to the endpoint, probably the sparql query is bad formed.
Response:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>data.lib.cam.ac.uk</title>
<link rel="icon" type="image/png" href="http://uoc-dg.s3-external-3.amazonaws.com/img/favicon.png" />
<link rel="stylesheet" href="http://uoc-dg.s3-external-3.amazonaws.com/css/uoc.min.css"/>
<!--[if lt IE 9]>
<link rel="stylesheet" href="http://uoc-dg.s3-external-3.amazonaws.com/css/ie.min.css"/>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style type="text/css">
body {
color: #666;
}
h1 { font-size: 1.6em; font-weight: normal; }
a { color: #c00000; }
th, td {
border: 1px dotted #eee;
padding: 2px 4px;
}
#sparql-form {
margin-bottom: 30px;
}
#query {
float: left;
width: 60%;
display: block;
height: 265px;
margin-bottom: 10px;
border: 3px solid #cccccc;
}
input, select {
border: 2px solid #cccccc;
}
.options {
float: right;
font-size: 0.9em;
width: 35%;
border-top: 1px solid #ccc;
}
.options h3 {
margin: 5px;
}
.options dl{
margin: 0px;
padding: 0px 10px 5px 20px;
}
.options dl dt {
border-top: 1px dotted #ddd;
padding-top: 10px;
}
.options dl dt.first {
border: none;
}
.options dl dd {
padding: 5px 0px 7px 0px;
}
.options-2 {
clear: both;
margin: 10px 0px;
}
.results {
border: 1px solid #eee;
padding: 5px;
background-color: #fcfcfc;
}
</style>
</head>
<body class="home">
<div class="container">
<header id="globalMasthead" class="grid_20">
<a id="identifier" class="grid_12 alpha" href="http://www.cam.ac.uk/" title="University of Cambridge">
University of Cambridge
</a>
<ul class="grid_8 omega">
<!-- <li class="first"><a class="iframe" id="accountLink" name="accountLink" href="http://www.lib.cam.ac.uk/library_widget/library_widget_login.cgi">Account & renewals</a></li>
<li class="last"><a href="http://www.lib.cam.ac.uk/courses/">Research Skills Programme</a></li>-->
</ul>
</header>
<!-- end #globalMasthead -->
<header id="localMasthead" class="grid_20">
<hgroup>
<h2>
data.lib.cam.ac.uk (beta)
</h2>
</hgroup>
</header>
<!-- end #navPrimary -->
<div id="wrapper">
<nav id="navPrimary" class="grid_20">
<ul class="tabs">
<li class="first"><a class="defaulttab" href="index.php" rel="tabs1">Home</a></li>
<li><a href="endpoint.php" rel="tabs2">SPARQL</a></li>
<li><a href="datasets.php" rel="tabs3">Datasets</a></li>
<li><a href="code.php" rel="tabs3">Code</a></li>
<li><a href="http://data.lib.cam.ac.uk/sparql.php" rel="tabs3">Tutorial</a></li>
<li><a href="faq.php" rel="tabs4">F.A.Q.</a></li>
<li><a href="http://cul-comet.blogspot.com/" rel="tabs4">COMET project blog</a></li>
<li class="last"><a href="http://www.lib.cam.ac.uk/api" rel="tabs5">Other library APIs</a></li>
</ul>
</nav>
<!--<div class='alert'>
<p>NOTE: This is an unsupported test service. Data and functionality offered do not reflect the final intended service. Current data is NOT available under any license. We hope to finalise open license details shortly.</p>
</div> -->
<!-- <h1>ARC SPARQL+ Endpoint (v2011-01-07)</h1> -->
<div class="grid_20">
<h3>SPARQL</h3>
<p style="padding: 5px; background-color: #CCCCCC">Not sure what this is all about? Try the <a href="http://data.lib.cam.ac.uk/sparql.php">SPARQL Tutorial</a> using examples from bibliographic data</p>
<p>
<a href="?">This interface</a> implements
<a href="http://www.w3.org/TR/rdf-sparql-query/">SPARQL</a> and
<a href="http://arc.semsol.org/docs/v2/sparql+">SPARQL+</a> via <a href="http://www.w3.org/TR/rdf-sparql-protocol/#query-bindings-http">HTTP Bindings</a>.
</p>
<p>
Enabled operations: select, construct, ask, describe
</p>
<p>
Max. number of results : 10000
</p> <p>SPARQL queries are currently limited to maintain performance and uptime. Please see our <a href="datasets.php">download page for complete datasets</a> if you wish to
make intensive use of this data.
</p>
<form id="sparql-form" action="?" enctype="application/x-www-form-urlencoded" method="get">
<textarea id="query" name="query" rows="20" cols="80">SELECT+*+WHERE+{
++GRAPH+<http://data.lib.cam.ac.uk/context/dataset/cambridge/bib>+{+?s+?p+?o+.+}
}
LIMIT+1000</textarea>
<div class="options">
<h3>Options</h3>
<dl>
<dt class="first">Output format (if supported by query type):</dt>
<dd>
<select id="output" name="output">
<option value="" >default</option>
<option value="xml" >XML</option>
<option value="json" selected="selected">JSON</option>
<option value="plain" >Plain</option>
<option value="php_ser" >Serialized PHP</option>
<option value="turtle" >Turtle</option>
<option value="rdfxml" >RDF/XML</option>
<option value="infos" >Query Structure</option>
<option value="htmltab" >HTML Table</option>
<option value="tsv" >TSV</option>
</select>
</dd>
<dt>jsonp/callback (for JSON results)</dt>
<dd>
<input type="text" id="jsonp" name="jsonp" value="" />
</dd>
<dt>API key (if required)</dt>
<dd>
<input type="text" id="key" name="key" value="" />
</dd>
<dt>Show results inline: </dt>
<dd>
<input type="checkbox" name="show_inline" value="1" checked="checked" />
</dd>
</dl>
</div>
<div class="options-2">
Change HTTP method:
<a href="javascript:;" onclick="javascript:document.getElementById('sparql-form').method='get'">GET</a>
<a href="javascript:;" onclick="javascript:document.getElementById('sparql-form').method='post'">POST</a>
</div>
<div class="form-buttons">
<input type="submit" value="Send Query" />
<input type="reset" value="Reset" />
</div>
</form>
<div class="results">
<pre>Could not properly handle "SELECT+*+WHERE+{ ++GRAPH+<htt" in ARC2_SPARQLPlusParser</pre>
</div>
</div>
<div>
<p>Built with the <a href=="https://github.com/semsol/arc2/wiki">ARC2 library</a> and <a href="https://github.com/tuukka/arc2-starter-pack">ARC2 starter pack</a> available under the <a href="http://www.gnu.org/copyleft/gpl.html">GPL</a></p>
</div>
<footer id="footer" class="grid_20">
<p class="grid_13 prefix_1 suffix_1 alpha">
© 2010 University of Cambridge, The Old Schools, Trinity Lane, Cambridge CB2 1TN, UK
</p>
<ul class="grid_5 omega">
<li>
<a href="http://www.cam.ac.uk/privacy/" title="Privacy">
Privacy
</a>
</li>
<li>
<a href="http://www.cam.ac.uk/site/" title="Accessibility">
Accessibility
</a>
</li>
<li>
<a href="http://www.admin.cam.ac.uk/univ/information/foi/" title="Freedom of Information">
Freedom of Information
</a>
</li>
<li>
<a href="http://www.cam.ac.uk/comment-form.html" title="Cant find it?">
Cant find it?
</a>
</li>
</ul>
</footer>
<!-- end #footer -->
</div><!-- end content-->
</body>
</html>
- Results last updated: 2015-08-07 19:38:45.204848
- Triples done: