| 1 | <refentry id="subject.element"> |
| 2 | <?dbhtml filename="subject.html"?> |
| 3 | <refentryinfo> |
| 4 | <pubdate>$Date$</pubdate> |
| 5 | <releaseinfo>$Revision$</releaseinfo> |
| 6 | </refentryinfo> |
| 7 | |
| 8 | <refmeta> |
| 9 | <indexterm><primary>elements</primary> |
| 10 | <secondary>subject</secondary></indexterm> |
| 11 | <refentrytitle>subject</refentrytitle> |
| 12 | <refmiscinfo>Element</refmiscinfo> |
| 13 | </refmeta> |
| 14 | <refnamediv> |
| 15 | <refname>subject</refname> |
| 16 | <refpurpose>&subject.purpose;</refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | &subject.synopsis.gen; |
| 20 | <refsect1 condition='ref.description'><title>Description</title> |
| 21 | |
| 22 | <para> |
| 23 | A <quote>subject</quote> categorizes or describes the topic of a |
| 24 | document, or section of a document. In DocBook, a <sgmltag>Subject</sgmltag> |
| 25 | is defined by the <sgmltag>SubjectTerm</sgmltag>s that it contains. |
| 26 | </para> |
| 27 | <para> |
| 28 | Subject terms should be drawn from a controlled vocabulary, such |
| 29 | as the <emphasis>Library of Congress Subject Headings</emphasis>. If an outside |
| 30 | vocabulary is not appropriate, a local or institutional subject set |
| 31 | should be created. |
| 32 | </para> |
| 33 | <para> |
| 34 | The advantage of a controlled vocabulary is that it places the document |
| 35 | into a known subject space. Searching the subject space with a particular |
| 36 | subject term will find <emphasis>all</emphasis> of the documents that claim |
| 37 | to have that subject. There's no need to worry about terms that are |
| 38 | synonymous with the search item, or homophones of the search term. |
| 39 | </para> |
| 40 | <para> |
| 41 | All of the <sgmltag>SubjectTerm</sgmltag>s in a <sgmltag>Subject</sgmltag> should |
| 42 | describe the same subject, and be from the <emphasis>same controlled |
| 43 | vocabulary</emphasis>. |
| 44 | </para> |
| 45 | |
| 46 | <refsect2><title>Processing expectations</title> |
| 47 | <para> |
| 48 | &format.context; Subjects are rarely displayed to a reader. Usually, they |
| 49 | are reserved for searching and retrieval purposes. |
| 50 | </para> |
| 51 | <para> |
| 52 | Unlike <sgmltag>Keyword</sgmltag>s, which may be chosen freely, |
| 53 | subject terms should come from a controlled vocabulary. |
| 54 | </para> |
| 55 | <para> |
| 56 | In order to assure that typographic or other errors are not introduced |
| 57 | into the subject terms, they should be compared against the controlled |
| 58 | vocabulary by an external process. |
| 59 | </para> |
| 60 | </refsect2> |
| 61 | |
| 62 | |
| 63 | &subject.parents.gen; |
| 64 | &subject.children.gen; |
| 65 | </refsect1> |
| 66 | <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title> |
| 67 | <variablelist> |
| 68 | <varlistentry><term>weight</term> |
| 69 | <listitem> |
| 70 | <para> |
| 71 | <sgmltag class="attribute">Weight</sgmltag> specifies a ranking for this |
| 72 | <sgmltag>Subject</sgmltag> relative to other subjects in the same set. |
| 73 | </para> |
| 74 | </listitem> |
| 75 | </varlistentry> |
| 76 | </variablelist> |
| 77 | </refsect1> |
| 78 | <refsect1 condition='ref.elem.seealso'><title>See Also</title> |
| 79 | &subject.seealso.gen; |
| 80 | </refsect1> |
| 81 | <refsect1><title>Examples</title> |
| 82 | |
| 83 | &subject.example.seealso.gen; |
| 84 | </refsect1> |
| 85 | </refentry> |
| 86 |