OCLC Developer Network

MADS Example

Key fields

  • authority -  Contains a sub-element for the authority type which contains the main term which matched appears.
    • MADS supports the following types of authorities: name, titleInfo, topic, temporal, genre, geographic, hierarchicalGeographic, or occupation
  • <related type="narrower"> - Contains a sub-element for the authority type which contains the related narrower term
  • <related type="broader"> - Contains a sub-element for the authority type which contains the related broader term
  • <related type="equivalent"> - Contains a sub-element for the authority type which contains the equivalent term
    • the authority type subelement can contain an authority attribute that has the code for the authority scheme being used (eg. LCSH)
      Example:
      <topic authority="lcsh">Fantasy fiction</topic>
  • <variant> - Contains a sub-element for the authority type which contains the variant term.These represent See references which point to this record
  • <note> - Note information
  • xlink:href Attribute - This is a link to a MADS representation of the term.
  • recordInfo/mods:recordIdentifier - This is the Term Identifier

Example

<searchRetrieveResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/zing/srw/ http://www.loc.gov/standards/sru/sru1-1archive/xml-files/srw-types.xsd" xmlns="http://www.loc.gov/zing/srw/"><version>1.1</version><numberOfRecords>1</numberOfRecords><resultSetId>h55xv2</resultSetId><resultSetIdleTime>300</resultSetIdleTime><records xmlns:ns1="http://www.loc.gov/zing/srw/"><record><recordSchema>info:srw/schema/1/mads-v1.0</recordSchema><recordPacking>xml</recordPacking><recordData><ns2:mads version="1.0" xmlns="http://www.loc.gov/mads/" xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mads/ http://www.loc.gov/standards/mads/mads.xsd" xmlns:ns2="http://www.loc.gov/mads/">
  <ns2:authority xlink:href="http://tspilot.oclc.org/gsafd/GSAFD000042.mads">
    <ns2:genre authority="gsafd">Fantasy fiction</ns2:genre>
  </ns2:authority>
  <ns2:related type="narrower" xlink:href="http://tspilot.oclc.org/gsafd/GSAFD000006.mads">

    <ns2:genre authority="gsafd">Alternative histories (Fiction)</ns2:genre>
  </ns2:related>
  <ns2:related type="narrower" xlink:href="http://tspilot.oclc.org/gsafd/GSAFD000029.mads">
    <ns2:genre authority="gsafd">Dystopias</ns2:genre>
  </ns2:related>
  <ns2:related type="narrower" xlink:href="http://tspilot.oclc.org/gsafd/GSAFD000052.mads">
    <ns2:genre authority="gsafd">Ghost stories</ns2:genre>

  </ns2:related>
  <ns2:related type="narrower" xlink:href="http://tspilot.oclc.org/gsafd/GSAFD000058.mads">
    <ns2:genre authority="gsafd">Horror fiction</ns2:genre>
  </ns2:related>
  <ns2:related type="narrower" xlink:href="http://tspilot.oclc.org/gsafd/GSAFD000093.mads">
    <ns2:genre authority="gsafd">Occult fiction</ns2:genre>
  </ns2:related>
  <ns2:related xlink:href="http://tspilot.oclc.org/gsafd/GSAFD000110.mads">

    <ns2:genre authority="gsafd">Science fiction</ns2:genre>
  </ns2:related>
  <ns2:related type="narrower" xlink:href="http://tspilot.oclc.org/gsafd/GSAFD000139.mads">
    <ns2:genre authority="gsafd">Utopian fiction</ns2:genre>
  </ns2:related>
  <ns2:related type="narrower" xlink:href="http://tspilot.oclc.org/gsafd/GSAFD000143.mads">
    <ns2:genre authority="gsafd">Voyages, Imaginary</ns2:genre>

  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047114%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcshac/sj2001010209.mads">
    <ns2:topic authority="lcshcl">Fantasy</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2000003984%20.mads">

    <ns2:topic authority="lcsh">Fantasy fiction, Slovenian</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2000004129%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Dominican</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047117%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, American</ns2:topic>

  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047119%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Argentine</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047120%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Bulgarian</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047121%20.mads">

    <ns2:topic authority="lcsh">Fantasy fiction, Canadian</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047122%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Chinese</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047123%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Croatian</ns2:topic>

  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047124%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Dutch</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047125%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, English</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047126%20.mads">

    <ns2:topic authority="lcsh">Fantasy fiction, French</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047127%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, French-Canadian</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047128%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, German</ns2:topic>

  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047129%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Italian</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047130%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Japanese</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047131%20.mads">

    <ns2:topic authority="lcsh">Fantasy fiction, Latin American</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047132%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Macedonian</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047133%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Mexican</ns2:topic>

  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047134%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Norwegian</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047135%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Panamanian</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047136%20.mads">

    <ns2:topic authority="lcsh">Fantasy fiction, Polish</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047137%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Romanian</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047138%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Russian</ns2:topic>

  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047139%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Spanish American</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047140%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Yiddish</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2085047141%20.mads">

    <ns2:topic authority="lcsh">Fantasy fiction, Yugoslav</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2087001685%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Indic (English)</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2088001867%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Spanish</ns2:topic>

  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2088005661%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Ukrainian</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2088007558%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Portuguese</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2089000869%20.mads">

    <ns2:topic authority="lcsh">Fantasy fiction, Hebrew</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2089002682%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Martinique (French)</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2089004128%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Flemish</ns2:topic>

  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2089005381%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Chilean</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2089006315%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Venezuelan</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2089006338%20.mads">

    <ns2:topic authority="lcsh">Fantasy fiction, Peruvian</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2089006361%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Belgian (French)</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2089007184%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Austrian</ns2:topic>

  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2090002396%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Israeli</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2091000374%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Danish</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2092001205%20.mads">

    <ns2:topic authority="lcsh">Fantasy fiction, Australian</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2093001830%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Uruguayan</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2093008241%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Serbian</ns2:topic>

  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2094004792%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Brazilian</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2095003740%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Swedish</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2096004043%20.mads">

    <ns2:topic authority="lcsh">Fantasy fiction, New Zealand</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2096008694%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Greek (Modern)</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2096010101%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Czech</ns2:topic>

  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2097000448%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Uzbek</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2098001778%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Belarusian</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2098004306%20.mads">

    <ns2:topic authority="lcsh">Fantasy fiction, Galician</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2099001346%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Cuban</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2099002757%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Puerto Rican</ns2:topic>

  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2099003667%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Nicaraguan</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh%2099014172%20.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Korean</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh2001003555.mads">

    <ns2:topic authority="lcsh">Fantasy fiction, Vietnamese</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh2002006788.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Lithuanian</ns2:topic>
  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh2005005493.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Honduran</ns2:topic>

  </ns2:related>
  <ns2:related type="equivalent" xlink:href="http://tspilot.oclc.org/lcsh/sh2005006836.mads">
    <ns2:topic authority="lcsh">Fantasy fiction, Catalan</ns2:topic>
  </ns2:related>
  <ns2:variant>
    <ns2:genre>Apocalyptic fantasies</ns2:genre>
  </ns2:variant>
  <ns2:variant>

    <ns2:genre>End-of-the-world fantasies</ns2:genre>
  </ns2:variant>
  <ns2:variant>
    <ns2:genre>Fantastic fiction</ns2:genre>
  </ns2:variant>
  <ns2:variant>
    <ns2:genre>Fiction, Fantasy</ns2:genre>

  </ns2:variant>
  <ns2:variant>
    <ns2:genre>Time travel (Fiction)</ns2:genre>
  </ns2:variant>
  <ns2:note>Use for works that feature imaginary worlds, extraordinary creatures, sorcerers, epic quests or magic</ns2:note>
  <ns2:url displayLabel="Search WorldCat">http://worldcat.org/search?q=su%3AFantasy%20fiction</ns2:url>
  <ns2:url displayLabel="Search Google Books">http://books.google.com/books?ie=UTF-8&amp;oe=UTF-8&amp;q=Fantasy%20fiction</ns2:url>

  <ns2:url displayLabel="Search Google Scholar">http://scholar.google.com/scholar?ie=UTF-8&amp;oe=UTF-8&amp;q=Fantasy%20fiction</ns2:url>
  <ns2:url displayLabel="Concept description">http://tspilot.oclc.org/gsafd/GSAFD000042.html</ns2:url>
  <ns2:url displayLabel="Vocabulary description">http://tspilot.oclc.org/gsafd.html</ns2:url>
  <ns2:url displayLabel="OCLC ResearchWorks Terms of Use">http://www.oclc.org/research/researchworks/terms.htm</ns2:url>
  <ns2:recordInfo>
    <mods:recordContentSource authority="marcorg">IlChALCS</mods:recordContentSource>

    <mods:recordCreationDate encoding="marc">000720</mods:recordCreationDate>
    <mods:recordChangeDate encoding="iso8601">20080628164050.7</mods:recordChangeDate>
    <mods:recordIdentifier source="IlChALCS">GSAFD000042</mods:recordIdentifier>
    <mods:languageOfCataloging>
      <mods:languageTerm authority="iso639-2b" type="code">eng</mods:languageTerm>
    </mods:languageOfCataloging>
  </ns2:recordInfo>

</ns2:mads>
</recordData>
<recordPosition>1</recordPosition>
</record>
</records>
<echoedSearchRetrieveRequest xmlns:ns3="http://www.loc.gov/zing/srw/">
<version>1.1</version>
<query>oclcts.alternativeTerms = &quot;fantasy&quot;</query>
<xQuery>
<ns4:searchClause xmlns:ns4="http://www.loc.gov/zing/cql/xcql/">
<ns4:index>oclcts.alternativeTerms</ns4:index>
<ns4:relation>
<ns4:value>=</ns4:value>
</ns4:relation>
<ns4:term>fantasy</ns4:term>
</ns4:searchClause>
</xQuery>
<startRecord>1</startRecord>
<maximumRecords>10</maximumRecords>
<recordSchema>info:srw/schema/1/mads-v1.0</recordSchema>
</echoedSearchRetrieveRequest>
<extraResponseData xmlns:ns5="http://www.loc.gov/zing/srw/">
<ns6:extraData xmlns="http://oclc.org/srw/extraData" xmlns:ns6="http://oclc.org/srw/extraData">
<ns6:databaseTitle>gsafd &#x2014; Form and genre headings for fiction and drama</ns6:databaseTitle>
</ns6:extraData>
</extraResponseData>
</searchRetrieveResponse>

Follow the OCLC Developer Network:

The OCLC Developer Network supports the use of OCLC Web Services—a set of tools and APIs that expose data and services for WorldCat and our member libraries and partner institutions or companies. learn more »

© 2010 OCLC Domestic and international trademarks and/or service marks of OCLC Online Computer Library Center, Inc. and its affiliates


Powered by Drupal, an open source content management system