⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 queryframe.jsp

📁 这是外国一个开源推理机
💻 JSP
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"><%@page language="java"%><%@include file="../../jsp-includes/head.jspf"%><%@page import="org.openrdf.sesame.sail.*"%><%	String repository = request.getParameter("repository");	SesameServer.setThreadLogFileForRepository(repository);	// Get RdfSource from which we can extract namespace info	LocalRepository rep = (LocalRepository)service.getRepository(repository);	RdfSource rdfSource = (RdfSource)rep.getSail();%><html><head>	<link rel="stylesheet" type="text/css" href="../../sesame.css">	<title>Evaluate a SeRQL-construct query</title>	<script language="JavaScript">function appendNs() {	document.queryForm.query.value += "\nusing namespace\n";<%	NamespaceIterator namespaces = rdfSource.getNamespaces();	boolean firstNs = true;	while (namespaces.hasNext()) {		namespaces.next();		String prefix = namespaces.getPrefix();		String name = namespaces.getName();		if (		  (!("rdf".equalsIgnoreCase(prefix) && "http://www.w3.org/1999/02/22-rdf-syntax-ns#".equalsIgnoreCase(name)))		  &&		  (!("rdfs".equalsIgnoreCase(prefix) && "http://www.w3.org/2000/01/rdf-schema#".equalsIgnoreCase(name)))		)		{				if (! firstNs) {%>			document.queryForm.query.value += ",\n";<%							}				else {					firstNs = false;				}%>	document.queryForm.query.value += "   <%=prefix%> = <<%=name%>>";<%		} // end if	} // end while	namespaces.close();%>}	</script></head><body background="../../images/bg.gif" onLoad="document.queryForm.query.focus()"><form name="queryForm" action="../../servlets/evaluateGraphQuery" method="POST"	enctype="multipart/form-data" accept-charset="UTF-8" target="resultsFrame">	<table border="0">		<tr>			<td colspan="2"><h3>Evaluate a SeRQL-construct query</h3></td>		</tr>		<tr>			<td>Your query:</td>			<td align="right">				<input type="BUTTON" value="Clear" onclick="document.queryForm.query.value=''">			</td>		</tr>		<tr>			<td colspan="2">				<textarea name="query" cols="90" rows="6"></textarea>			</td>		</tr>		<tr>			<td>RDF serialization:&nbsp;				<select name="serialization">					<option value="<%=RDFFormat.RDFXML.toString()%>" SELECTED>RDF/XML</option>					<option value="<%=RDFFormat.NTRIPLES.toString()%>">N-Triples</option>					<option value="<%=RDFFormat.N3.toString()%>">Notation3/N3</option>					<option value="<%=RDFFormat.TURTLE.toString()%>">Turtle</option>				</select>			</td>			<td align="right">				<input type="BUTTON" value="Append namespaces" onclick="javascript:appendNs()">				<input type="SUBMIT" value="Evaluate">				<input type="HIDDEN" name="repository" value="<%=repository%>">				<input type="HIDDEN" name="queryLanguage" value="<%=QueryLanguage.SERQL.toString()%>">			</td>		</tr>	</table></form><%@include file="../../jsp-includes/copyright.jspf"%></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -