removing problematic checkboxes and other small tweaks to sparql query page
This commit is contained in:
parent
a9c0b9979b
commit
2318738bda
1 changed files with 2 additions and 27 deletions
|
@ -26,7 +26,7 @@ if(prefixes != null){
|
|||
String prefixText = (String) prefixItr.next();
|
||||
if(prefixText.equals("(not yet specified)")){
|
||||
count++;
|
||||
prefixText = "j." + count.toString();
|
||||
prefixText = "p." + count.toString();
|
||||
}
|
||||
String urlText = (String) prefixItr.next();%>
|
||||
PREFIX <%=prefixText%>: <<%=urlText%>><%}}%>
|
||||
|
@ -38,10 +38,8 @@ PREFIX <%=prefixText%>: <<%=urlText%>><%}}%>
|
|||
SELECT ?geoLocation ?label
|
||||
WHERE
|
||||
{
|
||||
GRAPH ?g {
|
||||
?geoLocation rdf:type core:GeographicLocation
|
||||
OPTIONAL { GRAPH ?h { ?geoLocation rdfs:label ?label } }
|
||||
}
|
||||
OPTIONAL { ?geoLocation rdfs:label ?label }
|
||||
}
|
||||
LIMIT 20
|
||||
</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>
|
||||
</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" />
|
||||
</form>
|
||||
<%--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue