Analysis of innovative training projects (I)
2021SC@SDUSC
This week, according to the previous json document format, referring to the code in the engine layer and combined with the XML document writing specification, the XML document of SDUDOC was completed, including the basic building elements and the element labels corresponding to each object. It will be updated if there is any expansion in the future
XML element
Header
The header of the article, which contains the basic information of the article
element:
Field name | type | meaning |
---|---|---|
_title | string | Article title |
_author | string | author |
_book | string | Books |
_dynasty | string | Dynasty |
Example:
<Header> <_title>Biography of Li Keyong</_title> <_author>Jing Wu</_author> <_book>Later Tang Dynasty</_book> <_dynasty>Tang</_dynasty> </Header>
PageList
The editor is used to record the linear sorting of pages in the object pool.
element:
Field name | type | meaning |
---|---|---|
pages | pages | Page sequential array, which records the ID of each page in order, and the sub element is page |
_current_page | number | The page that the editor is currently editing |
pages:
element:
Field name | type | meaning |
---|---|---|
page | string | page Id |
Example:
<PageList> <pages> <page>Page_1</page> <page>Page_2</page> </pages> <_current_page>1</_current_page> </PageList>
Elements
The editor is used to record the serialization information of the object pool.
Index
The editor uses to represent the generated maximum value of the corresponding element to prevent ID duplication. These elements are added through plug-ins.
element:
Field name | type | meaning |
---|---|---|
Page | number | Maximum number of pages |
Dot2D | number | Dot2D |
Line2D | number | Line2D |
Polygon2D | number | Polygon2D |
Character | number | Character |
Word | number | Word |
Sentence | number | Sentence |
Paragraph | number | Paragraph |
Article | number | Article |
Book | number | Book |
Example:
<Index> <Page>2</Page> <Dot2D>99</Dot2D> <Line2D>22</Line2D> <Polygon2D>79</Polygon2D> <Character>64</Character> <Word>36</Word> <Sentence>11</Sentence> <Paragraph>3</Paragraph> <Article>2</Article> <Book>2</Book> </Index>
Data
The editor uses the information of all elements of the object pool.
child element:
Field name | type | meaning |
---|---|---|
Pages | element | Maximum number of pages |
Dot2Ds | element | Dot2D |
Line2Ds | element | Line2D |
Polygon2Ds | element | Polygon2D |
Characters | element | Character |
Words | element | Word |
Sentences | element | Sentence |
Paragraphs | element | Paragraph |
Articles | element | Article |
Books | element | Book |
Pages
Page element, and the sub element is the specific page
page:
child element:
Field name | type | meaning |
---|---|---|
id | string | Unique Id of the page |
src | string | page corresponding UR |
width | number | Width of the page |
height | number | Page height |
Example:
<Pages> <page> <_id>Page_1</_id> <_src>http://211.87.232.197:8080/img/get_by_id?id=2</_src> <_width>1030</_width> <_height>1832</_height> </page> </Pages>
Dot2Ds
Dot element, and the sub element is the specific dot information Dot2D
Dot2D:
child element:
Field name | type | meaning |
---|---|---|
id | string | Unique Id of the point |
pages | element | The parent element of the page element |
type | number | Width of the page |
x | number | Page height |
y | number | |
father | string | |
postion | number | |
father1 | string | |
father2 | string |
page:
- The child element of the pages element, which records the page id
Example:
<Dot2Ds> <Dot2D> <_id>Dot2D_1</_id> <_pages> <page>Page_1</page> <page>Page_2</page> </_pages> <_type>0</_type> <_x>34.315084818068044</_x> <_y>174.6949772556199</_y> <_father></_father> <_position>0</_position> <_father1></_father1> <_father2></_father2> </Dot2D> <Dot2D> <_id>Dot2D_1</_id> <_pages> <page>Page_1</page> <page>Page_2</page> </_pages> <_type>0</_type> <_x>34.315084818068044</_x> <_y>174.6949772556199</_y> <_father></_father> <_position>0</_position> <_father1></_father1> <_father2></_father2> </Dot2D> </Dot2Ds>
Line2Ds
A collection of line elements, and the sub elements are specific line information Line2D`
Line2D:
child element:
Field name | type | meaning |
---|---|---|
id | string | Unique Id of line |
pages | element | The parent element of the page element |
start | string | Starting point id |
end | string | Termination point id |
Line2D:
- The child element of the pages element, which records the page id
Example:
<Line2Ds> <Line2D> <_id>Line2D_1</_id> <_pages> <page>Page_1</page> <page>Page_2</page> </_pages> <_start>Dot2D_1</_start> <_end>Dot2D_2</_end> </Line2D> <Line2D> <_id>Line2D_2</_id> <_pages> <page>Page_1</page> <page>Page_2</page> </_pages> <_start>Dot2D_3</_start> <_end>Dot2D_4</_end> </Line2D> </Line2Ds>
Polygon2Ds
A collection of polygon elements, and the sub elements are specific line information Polygon2D
Polygon2D:
child element:
Field name | type | meaning |
---|---|---|
id | string | Unique Id of polygon |
pages | element | The parent element of the page element |
points | element | Collection of points |
character | stirng | Text id |
point:
- The child element of the points element, which records the id of the polygon point
Example:
<Polygon2Ds> <Polygon2D> <_id>Polygon2D_1</_id> <_pages> <page>Page_1</page> <page>Page_2</page> </_pages> <_points> <point>Dot2D_13</point> <point>Dot2D_14</point> <point>Dot2D_15</point> <point>Dot2D_16</point> </_points> <_character>Character_1</_character> </Polygon2D> <Polygon2D> <_id>Polygon2D_2</_id> <_pages> <page>Page_1</page> <page>Page_2</page> </_pages> <_points> <point>Dot2D_13</point> <point>Dot2D_14</point> <point>Dot2D_15</point> <point>Dot2D_16</point> </_points> <_character>Character_2</_character> </Polygon2D> </Polygon2Ds>
Characters
A collection of text elements. The child elements are specific text information characters
Character:
child element:
Field name | type | meaning |
---|---|---|
id | string | Unique Id of polygon |
pages | element | The parent element of the page element |
char | string | Specific text |
remark | stirng | |
father | string | id of the attribution word |
polygon | string | Home polygon id |
page:
- The child element of the pages element, which records the page id
Example:
<Characters> <Character> <_id>Character_1</_id> <_pages> <page>Page_1</page> <page>Page_2</page> </_pages> <_char>after</_char> <_remark></_remark> <_father>Word_10</_father> <_polygon>Polygon2D_1</_polygon> </Character> </Characters>
Words
A set of word elements, and the sub elements are specific text information word
word:
child element:
Field name | type | meaning |
---|---|---|
id | string | Unique Id of polygon |
pages | element | The parent element of the page element |
children | element | character collection containing |
father | string | id of the sender |
points | element | Collection of points |
page:
- The child element of the pages element, which records the page id
Example:
<Words> <Word> <_id>Word_10</_id> <_pages> <page>Page_1</page> <page>Page_2</page> </_pages> <children> <Character>Character_1</Character> <Character>Character_2</Character> </children> <_father>Sentence_1</_father> <_points> <page id = "Page_1"> <point>Dot2D_2</point> <point>Dot2D_3</point> <point>Dot2D_4</point> <point>Dot2D_5</point> <point>Dot2D_6</point> <point>Dot2D_7</point> </page> </_points> </Word> </Words>
Sentences
A set of sentence elements, and the sub elements are specific text messages
sentence:
child element:
Field name | type | meaning |
---|---|---|
id | string | Unique Id of sent |
pages | element | The parent element of the page element |
children | element | Contained word collection |
father | string | id of the belonging paragraph |
points | element | Collection of points |
page:
- The child element of the pages element, which records the page id
Example:
<Sentences> <Sentence> <_id>Sentence_1</_id> <_pages> <page>Page_1</page> <page>Page_2</page> </_pages> <children> <Word>Word_10</Word> <Word>Word_11</Word> </children> <_father>Paragraph_1</_father> <_points> <page id = "Page_1"> <point>Dot2D_2</point> <point>Dot2D_3</point> <point>Dot2D_4</point> <point>Dot2D_5</point> <point>Dot2D_6</point> <point>Dot2D_7</point> </page> </_points> </Sentence> </Sentences>
Paragraphs
A collection of Paragraph elements, and the sub elements are specific text information Paragraph
Paragraph:
child element:
Field name | type | meaning |
---|---|---|
id | string | Unique Id of sent |
pages | element | The parent element of the page element |
children | element | Contains the sentence collection |
father | string | id of the article |
points | element | Collection of points |
page:
- The child element of the pages element, which records the page id
Example:
<Paragraphs> <Paragraph> <_id>Paragraph_1</_id> <_pages> <page>Page_1</page> <page>Page_2</page> </_pages> <children> <Sentence>Sentence_1</Sentence> <Sentence>Sentence_2</Sentence> </children> <_father>Article_1</_father> <_points> <page id = "Page_1"> <point>Dot2D_2</point> <point>Dot2D_3</point> <point>Dot2D_4</point> <point>Dot2D_5</point> <point>Dot2D_6</point> <point>Dot2D_7</point> </page> </_points> </Paragraph> </Paragraphs>
Articles
A collection of Article elements, and the sub elements are specific text information Article
Article:
child element:
Field name | type | meaning |
---|---|---|
id | string | Unique Id of sent |
pages | element | The parent element of the page element |
children | element | Contains a collection of paragraph s |
father | string | id of the home book |
points | element | Collection of points |
page:
- The child element of the pages element, which records the page id
Example:
<Articles> <Article> <_id>Article_1</_id> <_pages> <page>Page_1</page> <page>Page_2</page> </_pages> <children> <Paragraph>Paragraph_1</Paragraph> <Paragraph>Paragraph_2</Paragraph> </children> <_father>Book_1</_father> <_points> <page id = "Page_1"> <point>Dot2D_2</point> <point>Dot2D_3</point> <point>Dot2D_4</point> <point>Dot2D_5</point> <point>Dot2D_6</point> <point>Dot2D_7</point> </page> </_points> </Article> </Articles>
Books
A collection of book elements, and the child elements are specific text information books
book:
child element:
Field name | type | meaning |
---|---|---|
id | string | Unique Id of sent |
pages | element | The parent element of the page element |
children | element | Collection of included article s |
father | string | |
points | element | Collection of points |
page:
- The child element of the pages element, which records the page id
Example:
<Books> <Book> <_id>Book_1</_id> <_pages> <page>Page_1</page> <page>Page_2</page> </_pages> <children> <Paragraph>Article_1</Paragraph> <Paragraph>Article_2</Paragraph> </children> <_father></_father> <_points> <page id = "Page_1"> <point>Dot2D_2</point> <point>Dot2D_3</point> <point>Dot2D_4</point> <point>Dot2D_5</point> <point>Dot2D_6</point> <point>Dot2D_7</point> </page> </_points> </Book> </Books>