Revision 881
Added by berkley about 23 years ago
metacatquery.html | ||
---|---|---|
29 | 29 |
<P>The Metacat Server provides |
30 | 30 |
an interface for searching of metadata stored in the Metacat database. |
31 | 31 |
<P> <img alt="architecture diagram of a Metacat query" src="metadataquery.gif"> |
32 |
<br><br><b>Steps to performing a query in Metacat</b>
|
|
32 |
<br><br><b>Steps to perform a query in Metacat</b> |
|
33 | 33 |
<ol> |
34 |
<li>A pathquery document is created from the search criteria provide through |
|
34 |
<li>A pathquery document is created from the search criteria provided through
|
|
35 | 35 |
the servlet parameters.</li> |
36 | 36 |
<li>This pathquery document is sent to DBQuery where it |
37 | 37 |
is processed and translated into SQL statements.</li> |
... | ... | |
160 | 160 |
</resultset> |
161 | 161 |
|
162 | 162 |
</pre> |
163 |
<p>The first element in the resultset is <query>. As you may notice,
|
|
164 |
its content is just the pathquery document. The resultset always returns
|
|
163 |
<p>The first element in the resultset is <query>. Its content is just
|
|
164 |
the pathquery document. The resultset always returns |
|
165 | 165 |
the pathquery document that created it in the <query> tag. The next |
166 | 166 |
major tag is <document>. Each XML document returned by the query |
167 |
is represented by a <document> tag. The default information returned |
|
168 |
about a document are docid, docname, doctype, doctitle, createdate and
|
|
167 |
is represented by a <document> tag. The default document information returned
|
|
168 |
is docid, docname, doctype, doctitle, createdate and
|
|
169 | 169 |
updatedate. The param tags are present if the document found contained |
170 | 170 |
the returnfield chosen in the pathquery document. The name attribute of the |
171 | 171 |
param tag is the full path to the node specified by the returnfield. <relation> |
Also available in: Unified diff
updated documentation. removed a lot of typos and updated all of the new stuff for the new release