Difference between revisions of "Team:USTC-Software/Model"

Line 1: Line 1:
<!DOCTYPE html>
 
<html>
 
  <head>
 
    <script src="/wiki/index.php?title=Team:USTC-Software/js/jquery&amp;action=raw&amp;ctype=text/javascript" type="text/javascript"></script>
 
    <link href="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.9.7/jquery.fullpage.css" rel="stylesheet">
 
    <link href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.1/semantic.min.css" rel="stylesheet">
 
 
    <link href="/wiki/index.php?title=Team:USTC-Software/css/style&amp;action=raw&amp;ctype=text/css" rel="stylesheet">
 
    <script src="/wiki/index.php?title=Team:USTC-Software/js/fullpage&amp;action=raw&amp;ctype=text/javascript" type="text/javascript"></script>
 
    <script src="/wiki/index.php?title=Team:USTC-Software/js/semantic&amp;action=raw&amp;ctype=text/javascript" type="text/javascript"></script>
 
  </head>
 
 
  <body>
 
 
<!-- 导航栏开始 -->
 
 
<div class="ui menu pointing fixed" id="menu">
 
<div class="ui menu pointing fixed" id="menu">
 
     <a class=" item" href="index.html"><img style="width:6em" src="https://static.igem.org/mediawiki/2018/4/42/T--USTC-Software--logo3.jpg"></a>
 
     <a class=" item" href="index.html"><img style="width:6em" src="https://static.igem.org/mediawiki/2018/4/42/T--USTC-Software--logo3.jpg"></a>
     <div class="ui item dropdown">Project
+
     <div class="ui item dropdown"><a href="Project.html#Overview" style="color: black">Project</a>
 
         <div class="menu">
 
         <div class="menu">
 
             <a class="item" href="Project.html#Overview">Overview</a>
 
             <a class="item" href="Project.html#Overview">Overview</a>
Line 24: Line 9:
 
         </div>
 
         </div>
 
     </div>
 
     </div>
     <a class="item" href="Attributions">Attribution</a>
+
     <div class="ui item dropdown" href="Attributions">Attribution
 +
        <div class="menu">
 +
            <a class="item" href="Attributions#Developing">Developing</a>
 +
            <a class="item" href="Attributions#Support">Support</a>
 +
            <a class="item" href="Attributions#Project">Project</a>
 +
        </div>
 +
    </div>
 
     <a class="item" href="Demonstrate#Overview">Demonstrate</a>
 
     <a class="item" href="Demonstrate#Overview">Demonstrate</a>
 
     <div class="ui item dropdown">Human Practice
 
     <div class="ui item dropdown">Human Practice
Line 32: Line 23:
 
         </div>
 
         </div>
 
     </div>
 
     </div>
     <a class="ui item" href="Collaborations">Collaborations</a>
+
     <div class="ui item dropdown"><a href="Collaborations" style="color: black">Collaborations</a>
 +
        <div class="menu">
 +
            <a class="item" href="Collaborations#SJTU-Software">SJTU-Software</a>
 +
            <a class="item" href="Collaborations#UESTC">UESTC-Software</a>
 +
            <a class="item" href="Collaborations#USTC">Team USTC</a>
 +
        </div>
 +
    </div>
 
     <a class="item" href="Model#header1">Model</a>
 
     <a class="item" href="Model#header1">Model</a>
 
     <a class="item" href="Medal#Overview">Medal</a>
 
     <a class="item" href="Medal#Overview">Medal</a>
 
     <a class="ui item" href="Team.html">Team</a>
 
     <a class="ui item" href="Team.html">Team</a>
     <div class="ui item dropdown" href="ValidatedContribution">Validated Contribution
+
     <div class="ui item dropdown"><a href="ValidatedContribution" style="border:0;color: black">Validated Contribution</a>
 
         <div class="menu">
 
         <div class="menu">
 
             <a class="item" href="ValidatedContribution#Overview">Overview</a>
 
             <a class="item" href="ValidatedContribution#Overview">Overview</a>

Revision as of 03:54, 18 October 2018

Model

There're two outstanding models supporting our project:

  • Natural language processing (NLP)
  • Object-relational mapping (ORM)
  • WebSocket

Natural language processing (NLP)

Natural language processing (NLP) is an area of computer science and artificial intelligence that is concerned with the interaction between computers and humans in natural language.

The ultimate goal of NLP is to enable computers to understand language as well as we do.

For example, we can use these keywords to search:

molecular biology

But NLP give us the power to get closer to what we actually want to search:

molecular biology by Someone this year with #immunity

NLP can extract all the information and construct a query action:

keyword: molecular biology author: Someone time: this year label: #immunity

In our project, we use an open-source software named Stanford CoreNLP (https://stanfordnlp.github.io/CoreNLP/) to parse the search string.

<img alt="image-20181017181227081" src="T--USTC-Software--image-20181017181227081.png" />

CoreNLP provides many underlying models so that we can get analysis information to construct more expressive and more human-friendly query.

Object-relational mapping (ORM)

Object-Relational Mapping (ORM) allows us to work with objects and have them saved to the database automatically. It can greatly simplify create-read-update-delete (CRUD) operations and make our code more comprehensive.

ORM makes our user,report,notice and more models easy to query, to list and to link to each other.

<img alt="ORM.svg" src="https://static.igem.org/mediawiki/2018/5/5d/T--USTC-Software--ORM.svg" />

In our project, we use Django ORM with MySQL backend as the underlying models to provide fast and flexible queries.

WebSocket

WebSocket is a computer communications protocol, providing full-duplex communication channels over a single TCP connection. The HTML5 WebSockets specification defines an API that enables web pages to use the WebSockets protocol for two-way communication with a remote host. It introduces the WebSocket interface and defines a full-duplex communication channel that operates through a single socket over the Web. HTML5 WebSockets provide an enormous reduction in unnecessary network traffic and latency compared to the unscalable polling and long-polling solutions that were used to simulate a full-duplex connection by maintaining two connections.

<img alt="websocket.jpg" src="T--USTC-Software--websocket.jpg" />

In out project, we use WebSocket protocol to push our notifications. The WebSocket protocol makes the new notifications even real-time fast to be received.

       </d iv>
   <script src="/wiki/index.php?title=Team:USTC-Software/js/init&action=raw&ctype=text/javascript" type="text/javascript"></script>
   <script src="/wiki/index.php?title=Team:USTC-Software/js/all&action=raw&ctype=text/javascript" type="text/javascript"></script>
   </body>
</html>