The MIRCqueryresult Schema
1 The MIRCqueryresult Schema
The reply of a storage service to a query service is an XML object in the MIRCqueryresult schema. A MIRCqueryresult object is in the form:
<MIRCqueryresult> <preamble> . . . </preamble> <MIRCdocument docref=”...URL...”> <title> . . . </title> <author> . . . </author> <abstract> . . . </abstract> <access> . . . </access> <peer-review/> <level> . . . </level> </MIRCdocument> </MIRCqueryresult>
There is exactly one MIRCqueryresult element in a query reponse message.
There are zero or one preamble elements in a MIRCqueryresult element. There are zero or more MIRCdocument elements in a MIRCqueryresult element, one for each separate document found by the storage service to match the search criteria in the query.
The preamble element is provided in the schema to allow storage services to pass status information to be displayed at the top of the list of query results for the site. The RSNA storage service software, for example, passes the total number of query matches in the preamble element. The value of the preamble element is well-formed HTML text, which must be contained within HTML paragraph tags. The following is an example:
<preamble> <p>Total query matches: 751</p> </preamble>
The preamble element is optional.
Each MIRCdocument element in a MIRCqueryresult must have a docref attribute containing the URL that references the document. The URL must be a fully qualified path name, including the protocol. The MIRC query service uses this information to provide a list of results to the MIRC user.
The query service uses the title element to provide a heading for the document in the list of query results provided to the user. The title element may not contain other elements.
The query service uses the author element to display the name of an author of the document. If the document has multiple authors, multiple author> elements must be provided. The author element may not contain child elements.
The query service uses the abstract element to describe the contents of the document to allow a user to determine whether the information is of interest. The abstract element may contain HTML elements to assist in rendering the abstract; however, all the elements must be well-formed.
If the access element is present in a MIRCdocument element, the query service displays its contents in the list of query results to indicate to the user whether the document is freely available. The possible values of the element are:
If the level element is present in a MIRCdocument element, the query service displays its contents in the list of query results to indicate the educational level of the document. The possible values of the element are:
If the peer-review element is present in a MIRCdocument element, the query service displays the words Peer-reviewed under the document in the list of query results. If the element is missing, the query service does not display anything for the peer-reviewed status of the document.
Note that the peer-review element in a MIRCqueryresult is always empty.
10 How a Query Service Renders a MIRCqueryresult>
The query service uses the storage service’s MIRCqueryresult to produce an HTML ordered list where each <MIRCdocument> generates a list item in the form:
<li> <a href=”docref_attribute_value”>title_element_value</a><br/> author_element_value<br/> access_attribute_value<br/> <p> abstract_element_value </p> </li>
HTML elements within the <title> element are not copied.
HTML elements within the <abstract> element are copied.