ۥ-!@ -|#jHHHHHHHV< ""(""""""""""""""40#L"H"" ISO/IEC JTC1/SC18/WG8 N1362 Title: Sample queries for an SGML data base  Source: James David Mason, Oak Ridge National Laboratory  Project: All WG8 projects  Status of document: Personal contribution  Requested action: For information, in conjunction with ISO/IEC JTC1/SC18/WG8 N1361  Summary of major points: This document is an extract from a procurement specification generated by a WG8 participant. It is not intended to be a definitive statement of all the sorts of queries that might be made of an SGML data base; instead it is intended to be illustrative of the kinds of queries that might be made. In the context in which this document was created, it was not necessary to explain why such queries might be made: suffice it to say that there are reasons for each of them which would probably be understood in an environment of scientific and technical documentation management.  Date 29 October 1991  Distribution: WG8 and liaisons  SGML Data Base Management and Queries The system shall provide a database in which to store documents both while they are being created and while they are maintained on it. The database shall provide means of searching for and retrieving documents and parts of documents. The database environment shall be structured and conditioned by the SGML DTDs that define the instance documents. Although it is not expected that the internal storage in the database be of whole SGML document entities, it is required that input and output shall be in SGML data streams. The database shall also provide means of storing and retrieving non-SGML data (e.g., graphics in NDATA entities) that is linked to SGML documents. The system must provide means for storing SGML public text and for assigning the values of identifiers according to ISO 9070:1991. The database shall also provide means of tracking revisions of and performing configuration management on its contents (in conjunction with appropriate SGML markup in the documents). The database must work in conjunction with the editing tools provided by the system. It must also have a programmable interface for interacting with other programs, perhaps external to the system. The system shall also provide means for storing non-SGML documents that are not entered into the primary management and retrieval environment. It shall be possible to query the database in terms of data content, SGML markup, or a combination of the two. Examples of typical searches include: 1. Search for a text pattern a. Search for multiple patterns in proximity b. Retrieve the document in which pattern appears c. Report or retrieve the element in which the pattern appears (e.g., ) d. Retrieve an element context in which this pattern appears (e.g., the in which this appears in the element) 2. Search for an SGML structure a. Retrieve a whole structure (e.g., <titlepage> or the second <para0> in the <body>) b. Retrieve all the instances of a class of elements (e.g., all the <equation> elements) c. Retrieve structures according to an attribute value (e.g., all the <para0> elements in whose subelements the secur attribute is never secret) d. Retrieve a combination of structures (e.g., all the <equation> elements that contain α) e. Search for members of a class of elements that contain a combination of text patterns 3. Retrieve a combination of information a. Extract the text of a document with the changes in effect as of a given date b. Merge the changes made between two dates into a single composite change c. Extract the <equation> elements that have not been modified since a given date 4. Sort a set of elements according to a key derived from element content (e.g., sort the rows of a table according to the content of one or more columns) This list of examples is not to be considered all-inclusive. The database must be able to manage incomplete documents. It must also be able deal with retrieval of partial documents (e.g., it must be able to construct an environment for displaying/printing a group of retrieved elements without the context of the whole document entity from which they came). It must be able to retrieve portions of documents that may not share the same DTD and either merge them into another document whose DTD does allow for the elements retrieved or to construct an ad hoc DTD for the display/printing of the material retrieved. In the case of partial retrieval, the system must be able to resolve references, cross-references, and counters. General database access shall comply with FIPS PUB 127, SQL. ISO/IEC JTC1/SC18/WG8 N1362 Page page2 ISO/IEC JTC1/SC18/WG8 N1362 Page page3 uv}@������������������ ��&��(��T��V�������� ��!��#�� �� ��P ��W ��u ��| �� �� �� �� �� �� ��C ��M �� �� �� �� �� �� ��$��.��E��L������_����|������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������$�D�������������� ����&��(��=��T��V��i���������� ����!��#��2��D��F��m�� �� ��3 ��5 ��S �� �� �� �� �� �� ��Y �� ��O������$��p����_������:��x��z��|��������ýß�������������$�$���$�� �$�� �$���$���$���$���$���$��)�$��� �$�� � $���$U������ ���������� $������� ����$���7�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������$����$���� ��$�$��������� ����������ADL1L2BPEXCMTLDTSGC1C2REBLBCDLDCCTCDTOTEL0C0HSTXTYQSCCALAEMC ParagraphParagraph IndentprgL3List 0List 1List 2List 3 TL(nobreak) HalfSpaceLine�������������@��������� ������B�������� ��������������������������������������������F������� ������������v������x� �������� ��������x���������x�������� �����������������������������` � ������������������� ������� ������ @ ������� ������H ������ ������ �������( ������������� ������ �������` ����� �����������������������������$�������$������  ���� ������ ������t'�������x`'*-81��������%�������x`'*-81�������� ������������ ���������X ������H �����L ������;�� ���$(�-1�6:�?C�HL�QU������������������� !������"������� �X@@@#������ @ �$��������C%������C&������ '�������C (������ � )������t7��������� � ������ � � �   �����  ��� ���� �! "�#$%&'#() ����h���������������=��h�� ���������'�����}����������0���`���d���h���n������� ������� � ��Times� Symbol� "�Helvetica� 1�Courier��elite� �prestige��lettergothic� �gothicPS� �cubicPS�1�LinePrinter� "�Helvetica��avantegarde� �spartan��metro��presentation��APL��OCRA��OCRB� �emperorPS� �madaleine��zapf humanist� �classic� �roman f� �roman g� �roman h� �timesroman� �century� �Palatino� �souvenir� �garamond� �caledonia� �bodini� �university� BScript� �scriptPS� �script c� �script d��commercial script��park avenue� �coronet� �script h��greek��kana� �hebrew� �roman s� �russian� �roman u� �roman v� �roman w� �narrator� �emphasis��zapf chancery� �decor d��old english� �decor f� �decor g��cooper black� �linedraw��math7��math8� �bar3of9��EAN� �pcline� �tech h�"���'���)���R���W���Y���n���!�!����������������������������#�� �����h����ۺM$ɥI$ɥ�:������������L��C:\WINWORD\WG8COVER.DOT����James David MasonJames David Mason���������