Menu
Search

Modification to VIAF application/xml Response Title Location

Scheduled for August 27

OCLC's VIAF service returns many responses, including HTML, VIAF XML, JSON, RDF, MARC21 and UNIMARC records. Although we consider VIAF’s raw XML data primarily an internal format and do not believe many application outside of OCLC use this particular response, we wanted to notify users that we are refactoring the location of the title element to make the XML more useful.

This month we are planning a change to the <titles> section in a way that is not backward compatible.  We think the new XML is easier to work with and reflects the organization of VIAF better.  This should not affect the marc-21 exports.

The new VIAF XML format is available now at http://test.viaf.org.  We expect to introduce it into production at the end of this month on August 27.

The current VIAF XML has two sections where titles are associated with personal and corporate or geographic names:

<titles>
    <data count=999>
        <text>Title goes here</text>
        <sources/>
    </data>
    <data/>
</titles>

and

<titleLinks>
    <utName id=”VIAF|1234”>
        <text>Name goes here</text>
    </utName>
    <utWork id=”VIAF|4321”>
        <text>Title goes here</text>
        <sources/>
    </utWork>
    <utExpr id=”VIAF|2345”>
        <text>Title goes here</text>
        <sources/>
    </utExpr>
</titleLinks>

As part of our work integrating uniform titles more closely to VIAF we have merged these into this:

<titles>
    <work> <!-- this is an uncontrolled title-->
        <sources/>
        <title>Title goes here</title>
    </work>
    <work id=”VIAF|4321”> <!-- this is a controlled title-->
        <sources/>
        <title>Title goes here</title>
    <work>
<titles>

Work and expression records will have an <author id=”VIAF|xxxx”><text/><sources/></author> section within the <titles> tag.