removing problematic checkboxes and other small tweaks to sparql query page

This commit is contained in:
bjl23 2011-02-09 19:51:36 +00:00
parent a9c0b9979b
commit 2318738bda

View file

@ -26,7 +26,7 @@ if(prefixes != null){
String prefixText = (String) prefixItr.next(); String prefixText = (String) prefixItr.next();
if(prefixText.equals("(not yet specified)")){ if(prefixText.equals("(not yet specified)")){
count++; count++;
prefixText = "j." + count.toString(); prefixText = "p." + count.toString();
} }
String urlText = (String) prefixItr.next();%> String urlText = (String) prefixItr.next();%>
PREFIX <%=prefixText%>: <<%=urlText%>><%}}%> PREFIX <%=prefixText%>: <<%=urlText%>><%}}%>
@ -38,10 +38,8 @@ PREFIX <%=prefixText%>: <<%=urlText%>><%}}%>
SELECT ?geoLocation ?label SELECT ?geoLocation ?label
WHERE WHERE
{ {
GRAPH ?g {
?geoLocation rdf:type core:GeographicLocation ?geoLocation rdf:type core:GeographicLocation
OPTIONAL { GRAPH ?h { ?geoLocation rdfs:label ?label } } OPTIONAL { ?geoLocation rdfs:label ?label }
}
} }
LIMIT 20 LIMIT 20
</textarea> </textarea>
@ -66,29 +64,6 @@ LIMIT 20
<input id='RR_TURTLE_BUTTON' type='radio' name='rdfResultFormat' value='TTL'> <label for='RR_TURTLE_BUTTON'>Turtle</label> <input id='RR_TURTLE_BUTTON' type='radio' name='rdfResultFormat' value='TTL'> <label for='RR_TURTLE_BUTTON'>Turtle</label>
</div> </div>
<div>
<h3>Graphs to query: </h3>
<p class="parenthetical">(all graphs are queried by default)</p>
<ul class="clean">
<%
try{
if( request.getSession() != null && application.getAttribute("vitroJenaModelMaker") != null ){
ModelMaker maker = (ModelMaker) application.getAttribute("vitroJenaModelMaker");
for (Iterator it = maker.listModels(); it.hasNext(); ) {
String modelName = (String) it.next();
%> <li> <input type="checkbox" name="sourceModelName" value="<%=modelName%>"/><%=modelName%></li>
<%
}
}else{
%><li>could not find named models in session</li><%
}
}catch(Exception ex){
%><li>could not find named models in ModelMaker</li><%
}
%>
</ul>
</div>
<input class="submit" type="submit" value="Run Query" /> <input class="submit" type="submit" value="Run Query" />
</form> </form>
<%-- <%--