📄 server-reference.lyx.svn-base
字号:
#LyX 1.4.2 created this file. For more info see http://www.lyx.org/\lyxformat 245\begin_document\begin_header\textclass book\begin_preamble\usepackage{a4}\usepackage {times}\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}\let\myTOC\tableofcontents \renewcommand{\tableofcontents}{% \begingroup % \let\ps@plain\ps@empty \pagenumbering{roman} \myTOC \clearpage \endgroup% \pagenumbering{arabic}}\end_preamble\language english\inputencoding auto\fontscheme times\graphics default\paperfontsize 12\spacing single\papersize a4paper\use_geometry false\use_amsmath 1\cite_engine basic\use_bibtopic false\paperorientation portrait\leftmargin -20cm\rightmargin -20cm\secnumdepth 3\tocdepth 3\paragraph_separation skip\defskip medskip\quotes_language swedish\papercolumns 1\papersides 2\paperpagestyle headings\tracking_changes false\output_changes true\end_header\begin_body\begin_layout Standard\align center\begin_inset ERTstatus collapsed\begin_layout Standard\backslashthispagestyle{empty}\end_layout\end_inset\end_layout\begin_layout Standard\begin_inset VSpace vfill\end_inset\end_layout\begin_layout Standard\align center\series bold\size hugeGeoNetwork's Server Reference\end_layout\begin_layout Standard\begin_inset VSpace vfill\end_inset\end_layout\begin_layout Standard\align center\size largerAuthor: \series bold\noun onAndrea Carboni\end_layout\begin_layout Standard\begin_inset VSpace bigskip\end_inset\end_layout\begin_layout Standard\align center\size largerRevision 1 (06-Sep-2006)\end_layout\begin_layout Standard\newpage\end_layout\begin_layout Standard\begin_inset ERTstatus collapsed\begin_layout Standard\backslashthispagestyle{empty}\end_layout\end_inset\end_layout\begin_layout Chapter*Introduction\begin_inset ERTstatus collapsed\begin_layout Standard\backslashthispagestyle{empty}\end_layout\end_inset\end_layout\begin_layout StandardThis document gives some insights about the internal structure of GeoNetwork.\end_layout\begin_layout Standard\begin_inset LatexCommand \tableofcontents{}\end_inset\end_layout\begin_layout PartBasic Operations\end_layout\begin_layout ChapterCompiling and running GeoNetwork\end_layout\begin_layout SectionSystem Requirements\end_layout\begin_layout SectionPackage structure\end_layout\begin_layout SectionSource code structure\end_layout\begin_layout SectionCompiling GeoNetwork\end_layout\begin_layout PartProtocols\end_layout\begin_layout ChapterHarvesting\end_layout\begin_layout ChapterMetadata Exchange Format\end_layout\begin_layout PartXML Services\end_layout\begin_layout ChapterCalling specifications\end_layout\begin_layout Standardtramite http get/post\end_layout\begin_layout ChapterGeneral services\end_layout\begin_layout Sectionxml.info\end_layout\begin_layout StandardThe \family sansxml.info\family default service can be used to query the site about its configuration, services, status and so on. For example, it is used by the harvesting web interface to retrieve information about a remote node.\end_layout\begin_layout Subsection*Request\end_layout\begin_layout StandardThe xml request should contain at least one \family sans\series boldtype\family default\series default element to indicates the kind of information to retrieve. More \family sans\series boldtype\family default\series default elements can be specified to obtain more information at once. The set of allowed values are:\end_layout\begin_layout List\labelwidthstring 00.00.0000\series boldsite\series default Returns general information about the site like its name, id, etc...\end_layout\begin_layout List\labelwidthstring 00.00.0000\series boldcategories\series default Returns all the site's categories\end_layout\begin_layout List\labelwidthstring 00.00.0000\series boldgroups\series default Returns all the site's groups\end_layout\begin_layout List\labelwidthstring 00.00.0000\series boldknownNodes\series default Returns all geonetwork nodes that the remote site knows. Every time the remote site harvests from other nodes, it collects information about their address, name, siteId etc... This allows the propagation of the GeoNetwork sites to facilitate harvesting of new sites. Anyway, the remote node may know other nodes by other ways.\end_layout\begin_layout StandardRequest example:\end_layout\begin_layout Standard\begin_inset Box Boxedposition "t"hor_pos "c"has_inner_box 1inner_pos "t"use_parbox 0width "100col%"special "none"height "1in"height_special "totalheight"status open\begin_layout LyX-Code\size footnotesize<request>\end_layout\begin_layout LyX-Code\size footnotesize <type>site</type>\end_layout\begin_layout LyX-Code\size footnotesize <type>groups</type>\end_layout\begin_layout LyX-Code\size footnotesize</request>\end_layout\end_inset\end_layout\begin_layout Subsection*Response\end_layout\begin_layout StandardEach \family sans\series boldtype\family default\series default element produces an XML subtree so the response to the previous request is like this:\end_layout\begin_layout Standard\begin_inset Box Boxedposition "t"hor_pos "c"has_inner_box 1inner_pos "t"use_parbox 0width "100col%"special "none"height "1in"height_special "totalheight"status open\begin_layout LyX-Code\size footnotesize<response>\end_layout\begin_layout LyX-Code\size footnotesize <site>...</site>\end_layout\begin_layout LyX-Code\size footnotesize <groups>...</groups>\end_layout\begin_layout LyX-Code\size footnotesize</response>\end_layout\end_inset\end_layout\begin_layout StandardHere follows the structure of each subtree:\end_layout\begin_layout Itemize\series boldsite\series default : This is the container\end_layout\begin_deeper\begin_layout Itemize\series boldname\series default : Human readable site name\end_layout\begin_layout Itemize\series boldsiteId\series default : Universal unique identifier of the site\end_layout\begin_layout Itemize\series boldlogo\series default : Absolute path of the site's logo image. This is the full path except for the host name/port. Note that the name of the image is its UUID\end_layout\begin_layout Itemize\series boldplatform\series default : This is just a container to hold the site's backend\end_layout\begin_deeper\begin_layout Itemize\series boldname\series default : Plaform name. For GeoNetwork installations it must be \family sans\series boldgeonetwork\family default\series default.\end_layout\begin_layout Itemize\series boldversion\series default : Platform version, given in the X.Y.Z format\end_layout\end_deeper\end_deeper\begin_layout StandardExample:\end_layout\begin_layout Standard\begin_inset Box Boxedposition "t"hor_pos "s"has_inner_box 1inner_pos "t"use_parbox 0width "100col%"special "none"height "1in"height_special "totalheight"status open\begin_layout LyX-Code\size footnotesize<site>\end_layout\begin_layout LyX-Code\size footnotesize <name>My site</name>\end_layout\begin_layout LyX-Code\size footnotesize <siteId>0619cc50-708b-11da-8202-000d9335906e</siteId>\end_layout\begin_layout LyX-Code\size footnotesize <icon>/geonetwork/images/logos/\end_layout\begin_layout LyX-Code\size footnotesize 0619cc50-708b-11da-8202-000d9335906e.png</icon>\end_layout\begin_layout LyX-Code\size footnotesize <platform>\end_layout\begin_layout LyX-Code\size footnotesize <name>geonetwork</name>\end_layout\begin_layout LyX-Code\size footnotesize <version>2.1.0</version>\end_layout\begin_layout LyX-Code\size footnotesize </platform>\end_layout\begin_layout LyX-Code\size footnotesize</site>\end_layout\end_inset\end_layout\begin_layout Itemize\series boldcategories\series default : This is the container for categories\end_layout\begin_deeper\begin_layout Itemize\series boldcategory\series default [0..n] : A single GeoNetwork's category\end_layout\begin_deeper\begin_layout Itemize\series boldname\series default : Category's name\end_layout\begin_layout Itemize\series boldlabel\series default : The label used to show the category on screen. This is just a container for the localized strings in all supported languages.\end_layout\begin_deeper\begin_layout Itemize\series bolden\series default : Localized label in english\end_layout\begin_layout Itemize\series boldfr\series default : Localized label in french\end_layout\begin_layout Itemize...\end_layout\end_deeper\end_deeper\end_deeper\begin_layout Standard\begin_inset Box Boxedposition "t"hor_pos "c"has_inner_box 1inner_pos "t"use_parbox 0width "100col%"special "none"height "1in"height_special "totalheight"status open\begin_layout LyX-Code\size footnotesize<categories>\end_layout\begin_layout LyX-Code\size footnotesize <category>\end_layout\begin_layout LyX-Code\size footnotesize <name>datasets</name>\end_layout\begin_layout LyX-Code\size footnotesize <label>\end_layout\begin_layout LyX-Code\size footnotesize <en>Datasets</en>\end_layout\begin_layout LyX-Code\size footnotesize <fr>I don't know</fr>\end_layout\begin_layout LyX-Code\size footnotesize </label>\end_layout\begin_layout LyX-Code\size footnotesize </category>\end_layout\begin_layout LyX-Code\size footnotesize</categories>\end_layout\begin_layout LyX-Code\end_layout\end_inset\end_layout\begin_layout Itemize\series boldgroups\series default : This is the container for groups\end_layout\begin_deeper\begin_layout Itemize\series boldgroup\series default [2..n] : This is a Geonetwork group. There are at least the internet and intranet groups\end_layout\begin_deeper\begin_layout Itemize\series boldname\series default : Group's name\end_layout\begin_layout Itemize\series boldlabel\series default : The label used to show the group on screen. This is just a container for the localized strings in all supported languages.\end_layout\begin_deeper\begin_layout Itemize\series bolden\series default : Localized label in english\end_layout\begin_layout Itemize\series boldfr\series default : Localized label in french\end_layout\begin_layout Itemize...\end_layout\end_deeper\end_deeper\end_deeper\begin_layout Standard\begin_inset Box Boxedposition "t"hor_pos "c"has_inner_box 1inner_pos "t"use_parbox 0width "100col%"special "none"height "1in"height_special "totalheight"status open\begin_layout LyX-Code\size footnotesize<groups>\end_layout\begin_layout LyX-Code\size footnotesize <group>\end_layout\begin_layout LyX-Code\size footnotesize <name>editors</name>\end_layout\begin_layout LyX-Code\size footnotesize <label>\end_layout\begin_layout LyX-Code\size footnotesize <en>Editors</en>\end_layout\begin_layout LyX-Code\size footnotesize <fr>I don't know</fr>\end_layout\begin_layout LyX-Code\size footnotesize </label>\end_layout\begin_layout LyX-Code\size footnotesize </group>\end_layout\begin_layout LyX-Code\size footnotesize</groups>\end_layout\end_inset\end_layout\begin_layout Itemize\series boldknownNodes\series default : This is the container\end_layout\begin_deeper\begin_layout Itemize\series boldnode\series default [0..n] : A known GeoNetwork node\end_layout\begin_deeper\begin_layout Itemize\series boldname\series default : Node's name\end_layout\begin_layout Itemize\series boldsiteId\series default : Node's unique identifier\end_layout\begin_layout Itemize\series boldicon\series default : relative local path of the remote node's icon. Notice that this is the path to get the icon from the node being queried not the path on the remote note. To discover that, call \family sans\series boldxml.info\family default\series default on the remote note.\end_layout\begin_layout Itemize\series boldhost\series default : Node's host\end_layout\begin_layout Itemize\series boldport\series default : Node's port. Can be empty\end_layout\begin_layout Itemize\series boldservlet\series default : Node's servlet. Together with host and port can be used to call services on the remote node.\end_layout\begin_layout Itemize\series boldmetadata\series default : This is just the number of metadata that have been harvested from the remote node. This is used by the harvesting web interface to provide some hints to the user.\end_layout\end_deeper\end_deeper\begin_layout Standard\begin_inset Box Boxedposition "t"hor_pos "c"has_inner_box 1inner_pos "t"use_parbox 0width "100col%"special "none"height "1in"height_special "totalheight"status open\begin_layout LyX-Code\size footnotesize<knownNodes>\end_layout\begin_layout LyX-Code\size footnotesize <node>\end_layout\begin_layout LyX-Code\size footnotesize <name>My Host</name>\end_layout\begin_layout LyX-Code\size footnotesize
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -