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

📄 display.jsp

📁 Jsp写的一个语义检索的Demo
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import ="java.lang.*, java.lang.String.*,java.util.*, com.hp.hpl.jena.rdf.model.*,com.hp.hpl.jena.util.*" %>

<HTML>
<HEAD>
<TITLE>语义检索实验系统——文献详情</TITLE>
<META http-equiv="Content-Type" content="text/html">

<link href="images/style.css" rel="stylesheet" type="text/css">
</HEAD>
<jsp:useBean id="bean" scope="page" class="cyh.display" />
<%

String res=request.getParameter("res")  ;
String temp=null;

%>
<BODY BGCOLOR="#000000" text="#333333" link="#6666FF" alink="#6666FF" vlink="#6666FF"   topmargin="0">
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=640 HEIGHT=540 align="center" >
  <TR>
    <TD ROWSPAN=1 COLSPAN=6 WIDTH=640 HEIGHT=40><IMG SRC="images/index1x1.gif" WIDTH=640 HEIGHT=40 BORDER=0></TD>
</TR>
<TR>
    <TD ROWSPAN=1 COLSPAN=3 WIDTH=117 HEIGHT=56><IMG SRC="images/index2x1.gif" WIDTH=117 HEIGHT=56 BORDER=0></TD>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=318 HEIGHT=56><IMG SRC="images/index2x2.gif" WIDTH=318 HEIGHT=56 BORDER=0></TD>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=192 HEIGHT=56><IMG SRC="images/index2x3.gif" WIDTH=192 HEIGHT=56 BORDER=0></TD>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=13 HEIGHT=56><IMG SRC="images/index2x4.gif" WIDTH=13 HEIGHT=56 BORDER=0></TD>
</TR>
<TR>
    <TD ROWSPAN=1 COLSPAN=3 WIDTH=117 HEIGHT=159 background="images/index31b.gif" ><IMG SRC="images/index3x1(3).gif" WIDTH=117 HEIGHT=159 BORDER=0 >
     </TD>
    <TD ROWSPAN=2 COLSPAN=2 WIDTH=510 HEIGHT=425 align="center" valign="top" bgcolor="#FECA58">
      <TABLE height=424 width=504 border=0>
        <TBODY>
        <TR height=300>
          <TD width="244" height=420 vAlign=top bgColor=#FECA58>
            <table width="480" height="203" border="0" cellpadding="2" cellspacing="2">
            <tr>
              <th width="60" scope="row">文章编号</th>
              <td ><%="http://www.owl-ontologies.com/unnamed.owl#"+res%></td>
            </tr>
            <tr>
              <th scope="row">标题</th>
              <td><%out.print(bean.getValue(res,"title"));%></td>
            </tr>
            <tr>
              <th scope="row">作者</th>
              <td><%out.print(bean.getValue(res,"author"));%></td>
            </tr>
            <tr>
              <th scope="row">关键词</th>
              <td><%out.print(bean.getValue(res,"keywords"));%></td>
            </tr>
            <tr>
              <th scope="row">文献出处</th>
              <td><%out.print(bean.getValue(res,"pulished"));%></td>
            </tr>
            <tr>
              <th scope="row">内容</th>
              <td><%
              out.print(bean.getValue(res,"content"));
              %></td>
            </tr>
             <tr>
              <th scope="row">引文</th>
              <td>
                <%
              NodeIterator citing=bean.getIterator(res,"Citing");
             if(citing!=null){
              while(citing.hasNext()){
                temp=citing.next().toString();
              out.print("<li><a href=display.jsp?res=");
              out.print(temp.split("#")[1]);
              out.print(">");
              out.print(temp);
              out.print("</a>");
              }}
              %>
            </td>
              </tr>
              <tr>
                <th scope="row">同引</th>
                <td><%
                NodeIterator bothCiting=bean.getIterator(res,"bothCiting");
                  while(bothCiting.hasNext()){
                    temp=bothCiting.next().toString();
                    out.print("<li><a href=display.jsp?res=");
                    out.print(temp.split("#")[1]);
                    out.print(">");
                    out.print(temp);
                    out.print("</a>");
                  }
                  %></td>
                  </tr>
                  <tr>
              <th scope="row">同被引</th>
              <td><%
           NodeIterator bothCited=bean.getIterator(res,"bothCited");
              while(bothCited.hasNext()){
                temp=bothCited.next().toString();
              out.print("<li><a href=display.jsp?res=");
              out.print(temp.split("#")[1]);
              out.print(">");
              out.print(temp);
              out.print("</a>");
              }  %></td>
            </tr>
        </table></TD>
       </TR></TBODY></TABLE>

    <TD ROWSPAN=2 COLSPAN=1 WIDTH=13 HEIGHT=425 background="images/index3x3.gif" ><IMG SRC="images/index3x3.gif" WIDTH=13 HEIGHT=425 BORDER=0></TD>
</TR>
<TR>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=14 HEIGHT=266><IMG SRC="images/index4x1.gif" WIDTH=14 HEIGHT=266 BORDER=0></TD>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=87 HEIGHT=266><IMG SRC="images/index4x2.gif" width=87 height=266 BORDER=0></TD>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=16 HEIGHT=266><IMG SRC="images/index4x3.gif" WIDTH=16 HEIGHT=266 BORDER=0></TD>
</TR>
<TR>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=14 HEIGHT=19><IMG SRC="images/index5x1.gif" WIDTH=14 HEIGHT=19 BORDER=0></TD>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=87 HEIGHT=19><IMG SRC="images/index5x2.gif" WIDTH=87 HEIGHT=19 BORDER=0></TD>
    <TD ROWSPAN=1 COLSPAN=1 WIDTH=16 HEIGHT=19><IMG SRC="images/index5x3.gif" WIDTH=16 HEIGHT=19 BORDER=0></TD>
    <TD ROWSPAN=1 COLSPAN=3 WIDTH=523 HEIGHT=19><IMG SRC="images/index5x4.gif" width=523 height=19 BORDER=0 ></TD>
</TR>
</TABLE>
</BODY>
</HTML>

⌨️ 快捷键说明

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