Team:USTC Software/notebook

From 2010.igem.org

(Difference between revisions)
(Monthly NoteBook)
 
(86 intermediate revisions not shown)
Line 1: Line 1:
-
技术贴:
+
{{Team:USTC_Software/Header}}
-
by liaochen
+
<html>
 +
<style type="text/css">
 +
table.calendar          { margin: 0; padding: 10px; }
 +
table.calendar td      { margin: 0; padding: 2px; vertical-align: top; }
 +
table.month .heading td { padding:2px; background-color:#66b3ff; color:#ffffff;
 +
text-align:center; font-size:120%; font-weight:bold; }
 +
table.month .dow td    { color:#000000; text-align:center; font-size:110%; }
 +
table.month td.today    { background-color:#66b3ff; }
 +
table.month td {
 +
border: none;
 +
margin: 0;
 +
padding: 1pt 1.5pt;
 +
font-weight: bold;
 +
font-size: 100%;
 +
text-align: right;
 +
background-color: white;
 +
}
 +
#bodyContent table.month a {
 +
background:none; padding:0 }
 +
.day-active { color:#0000aa }
 +
.day-empty  { color:#aaa }
-
http://www.oracle.com/technology/global/cn/products/berkeley-db/xml/index.html 下载BDB (Berkerly DB XML 2.5),可以很好支持XML文件的查找与插入,删除,索引操作,既支持命令行也支持应用程序的调用。
+
</style>
 +
</html>
 +
==Monthly Notebook==
 +
{| style="background-color:white; " align="center" border="1"
 +
|-valign="top"
 +
|width=200px; align="center" |[https://2010.igem.org/Team:USTC_Software/notebook_3 March]
 +
|width=200px; align="center" |[https://2010.igem.org/Team:USTC_Software/notebook_4 April]
 +
|width=200px; align="center" |[https://2010.igem.org/Team:USTC_Software/notebook_5 May]
 +
|width=200px; align="center" |[https://2010.igem.org/Team:USTC_Software/notebook_6 June]
 +
|-valign="top"
 +
|width=200px; align="center" |[https://2010.igem.org/Team:USTC_Software/notebook_7 July]
 +
|width=200px; align="center" |[https://2010.igem.org/Team:USTC_Software/notebook_8 August]
 +
|width=200px; align="center" |[https://2010.igem.org/Team:USTC_Software/notebook_9 September]
 +
|width=200px; align="center" |[https://2010.igem.org/Team:USTC_Software/notebook_10 October]
 +
|}
-
在BDB中,所有的文件存在container中,这些container实际上是XML文档和其他信息的集合,它即可作为整个文档(一个单元)存储,又可作为许多结点存储--这时整个文档分解为一个一个小的结点。
+
==Daily Notebook==
-
 
+
{| style="background-color:#ffffff;" align="center" border="1""
-
这个软件的安装比较诡异,在install/bin/里面有dbxml的命令,直接输入(我是运行完外面的build.sh后才运行的,安装时间暴长...)。这时出现prompt。注意:每一个xml文档都存在container中,container是xml文档的集合,它还包括索引,metadata(data about data)。我们首先要创建一个container对象:
+
|-valign="top"
-
 
+
|{{ #calendar: query=preload=Team:USTC_SOFTWARE/Template/Meetings
-
dbxml> createContainer <CONTAINER NAME>
+
|title=Team:USTC_SOFTWARE/Notebook/Meetings |year=2010 |month=03 }}
-
 
+
|{{ #calendar: query=preload=Team:USTC_SOFTWARE/Template/Meetings
-
这里不像mysql需要打开数据库(use <database name>),DBD会自动为我们打开。DBD管理文档的格式不是组织关系数据库,无须像mysql一样要定义每一个表的格式,比如create table phonebook values (id INT(3) not null, varchar(120)...),它直接输入xml格式的文件即可:
+
|title=Team:USTC_SOFTWARE/Notebook/Meetings |year=2010 |month=04 }}
-
 
+
|{{ #calendar: query=preload=Team:USTC_SOFTWARE/Template/Meetings
-
dbxml> putDocument phone1 '<phonebook>
+
|title=Team:USTC_SOFTWARE/Notebook/Meetings |year=2010 |month=05 }}
-
<name>
+
|{{ #calendar: query=preload=Team:USTC_SOFTWARE/Template/Meetings
-
<first> liao </first>
+
|title=Team:USTC_SOFTWARE/Notebook/Meetings |year=2010 |month=06 }}
-
<second> chen </second>
+
|-valign="top"
-
</name>
+
|{{ #calendar: query=preload=Team:USTC_SOFTWARE/Template/Meetings
-
<phone type="mobile">xxxxx5873</phone>
+
|title=Team:USTC_SOFTWARE/Notebook/Meetings |year=2010 |month=07 }}
-
</phonebook>' s
+
|{{ #calendar: query=preload=Team:USTC_SOFTWARE/Template/Meetings
-
 
+
|title=Team:USTC_SOFTWARE/Notebook/Meetings |year=2010 |month=08 }}
-
这里要注意三点,第一是这种格式的输入(当然可以load文件)的xml文档是以单引号为起始终止限定符,第二是s结尾是说xml以string格式输入新的document,第三是它和mysql不一样,不用打分号作为一个语句的结束。
+
|{{ #calendar: query=preload=Team:USTC_SOFTWARE/Template/Meetings
-
 
+
|title=Team:USTC_SOFTWARE/Notebook/Meetings |year=2010 |month=09 }}
-
下面我门说XQuery,我们可以理解它和SQL SELECT语句是差不多的。XPATH是XQuery的中心实现,它就是一系列语句,用于查询XML文档数据集合的子集。
+
|{{ #calendar: query=preload=Team:USTC_SOFTWARE/Template/Meetings
 +
|title=Team:USTC_SOFTWARE/Notebook/Meetings |year=2010 |month=10 }}
 +
|}

Latest revision as of 20:58, 25 October 2010

Monthly Notebook

March April May June
July August September October

Daily Notebook

March
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
April
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
May
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
June
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
July
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
August
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
September
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
October
MTWTFSS
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31