anchor.diff:  	}
   %>
   
  -		  <li><input type="checkbox" name="sourceModelName" value="vitro:jenaOntModel"
  -                    <%
  +	<li><input type="checkbox" name="sourceModelName"
  +		value="vitro:jenaOntModel"
  +		<%
                           if (sourceModelNameList.contains("vitro:jenaOntModel")) {
  -                        	%>checked="checked"<%
  +                        	%>
  +		checked="checked" <%
                           }
  -                    %>
  -               />webapp model</li>
  -		  <li><input type="checkbox" name="sourceModelName" value="vitro:baseOntModel"
  -                    <%
  +                    %> />webapp
  +	model</li>
  +	<li><input type="checkbox" name="sourceModelName"
  +		value="vitro:baseOntModel"
  +		<%
                           if (sourceModelNameList.contains("vitro:baseOntModel")) {
  -                            %>checked="checked"<%
  +                            %>
  +		checked="checked" <%
                           }
  -                    %>
  -               />webapp assertions</li>
  -<%
  +                    %> />webapp
  +	assertions</li>
  +	<%
       for (Iterator it = maker.listModels(); it.hasNext(); ) {
   	String modelName = (String) it.next();
  -        %> <li> <input type="checkbox" name="sourceModelName" value="<%=modelName%>"
  -                    <%
  +        %>
  +	<li><input type="checkbox" name="sourceModelName"
  +		value="<%=modelName%>"
  +		<%
                           if (sourceModelNameList.contains(modelName)) {
  -                        	%> checked="checked" <%
  +                        	%>
  +		checked="checked" <%
                           }
  -                    %>
  -                /><%=modelName%></li>
  -        <%    
  +                    %> /><%=modelName%></li>
  +	<%    
       }
   %>
  -    </ul>
  +</ul>
   
  -    <h3>Select Destination Model</h3>
  +<h3>Select Destination Model</h3>
   
  -    <select name="destinationModelName">
  -           <option value="vitro:jenaOntModel"
  -              <% if ("vitro:jenaOntModel".equals(request.getParameter("destinationModelName"))) {
  -            	  %> selected="selected" <%
  +<select name="destinationModelName">
  +	<option value="vitro:jenaOntModel"
  +		<% if ("vitro:jenaOntModel".equals(request.getParameter("destinationModelName"))) {
  +            	  %>
  +		selected="selected" <%
               	 }
  -              %>
  -            />webapp model</option>
  -           <option value="vitro:baseOntModel"
  -              <% if ("vitro:baseOntModel".equals(request.getParameter("destinationModelName"))) {
  -                  %> selected="selected" <%
  +              %> />webapp
  +	model</option>
  +	<option value="vitro:baseOntModel"
  +		<% if ("vitro:baseOntModel".equals(request.getParameter("destinationModelName"))) {
  +                  %>
  +		selected="selected" <%
                    }
  -              %>
  -            />webapp assertions</option>
  -<%
  +              %> />webapp
  +	assertions</option>
  +	<%
       for (Iterator it = maker.listModels(); it.hasNext(); ) {
       String modelName = (String) it.next();
  -        %> <option value="<%=modelName%>" 
  -                <%
  +        %>
  +	<option value="<%=modelName%>"
  +		<%
                    if (modelName.equals(request.getParameter("destinationModelName"))) {
  -                     %> selected="selected" <%
  +                     %>
  +		selected="selected" <%
                    }
  -                %>
  -           /><%=modelName%></option>
  -        <%    
  +                %> /><%=modelName%></option>
  +	<%    
       }
  -%>   
  -    </select>
  -
  -    <c:choose>
  -	    <c:when test="${paramValues['reasoning'] != null}">
  -	        <c:forEach var="paramValue" items="${paramValues['reasoning']}">
  -	            <c:if test="${paramValue eq 'pellet'}">
  -	                <p><input type="checkbox" name="reasoning" value="pellet" checked="checked"/> include pellet reasoning </p>
  -	            </c:if>
  -	        </c:forEach>
  -	    </c:when>
  -        <c:otherwise>
  -                    <p><input type="checkbox" name="reasoning" value="pellet" /> include Pellet OWL-DL reasoning </p>
  -        </c:otherwise>
  -    </c:choose>
  -
  -    <input type="submit" value="Execute CONSTRUCT"/>
  -           +%>
  +</select> <c:choose>
  +	<c:when test="${paramValues['reasoning'] != null}">
  +		<c:forEach var="paramValue" items="${paramValues['reasoning']}">
  +			<c:if test="${paramValue eq 'pellet'}">
  +				<p><input type="checkbox" name="reasoning" value="pellet"
  +					checked="checked" /> include pellet reasoning</p>
  +			</c:if>
  +		</c:forEach>
  +	</c:when>
  +	<c:otherwise>
  +		<p><input type="checkbox" name="reasoning" value="pellet" />
  +		include Pellet OWL-DL reasoning</p>
  +	</c:otherwise>
  +</c:choose> <input type="submit" value="Execute CONSTRUCT" />
positive.code: PREFIX owl:   &lt;http://www.w3.org/2002/07/owl#&gt;
  PREFIX xsd:   &lt;http://www.w3.org/2001/XMLSchema#&gt;
  PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
  </c:otherwise>
  </c:choose>
  
  
  </textarea>
  
      <h3>Select Source Models</h3>
  
      <ul>
  <%
  	List<String> sourceModelNameList = new ArrayList<String>();
  	String[] sourceModelParamVals = request.getParameterValues("sourceModelName");
  	if (sourceModelParamVals != null) {
  
negative.code: 	              Individual savedQuery = (Individual) it.next();
                        String queryURI = savedQuery.getURI();
                        String queryLabel = savedQuery.getLabel(null);
                        %>
  	<option value="<%=queryURI%>"><%=queryLabel%></option>
  	<%
                    }
                } finally {
                    jenaOntModel.leaveCriticalSection();
  	      }
          %>
  </select> <textarea rows="16" cols="40" name="sparqlQueryStr"><c:choose>
      <c:when test="${param.sparqlQueryStr != null}">
          ${param.sparqlQueryStr}
      </c:when>
  