HOME
MODS RDF Ontology:
Primer Part 2: MODS XML to RDF Conversion
Abstract
This is a companion document to MODS RDF Ontology: Primer. It describes how a MODS XML record is transformed into RDF/XML according to the MODS RDF ontology.
Contents
Introduction
Top Level Triple
Treatment of MODS Top-level Elements:
<abstract>
<accessCondition>
<classification>
<genre>
<identifier>
<language>
<location>
<name>
<note>
<originInfo>
<part>
<physicalDescription>
<recordInfo>
<relatedItem>
<subject>
<tableOfContents>
<targetAudience>
<titleInfo>
Introduction
The document MODS RDF Ontology: Primer describes MODS RDF, an RDF ontology for MODS, which may be used to create born-RDF MODS, or it may be used to create an RDF description corresponding to an existing MODS XML record. This document addresses the latter.
The description below assumes that there is a MODS XML record, and describes how that record is transformed into a MODS RDF description (with XML serialization) according to the MODS RDF ontology. A stylesheet for this transformation is avalable at http://www.loc.gov/mods/modsrdf/xsl-files/modsrdf.xsl
Examples of MODS XML records and their corresponding RDF descriptions are at:
http://www.loc.gov/standards/mods/modsrdf/examples/
Top Level Triple
The top level RDF triple for a MODS RDF description is of the form:
{MODS resource} is-a #ModsResource
Where {MODS resource} is the resource described. #ModsResource is a blank node and becomes the subject for subsequent triples corresponding to top-level MODS elements.
{MODS resource} is of the form:
http://www.loc.gov/mods/rdf/v1#{someIdentifier}
The MODS XML to RDF stylesheet assigns a value to {someIdentifier} as follows:
- If the XML record includes an identifier with type ‘modsRDFIdentifier’, the value of that identifier is used.
- Otherwise, the value ‘MODS123456’ is assigned.
For example if the record includes:
<identifier type=’modsRDFIdentifier’>xyz</identifier> |
then the top-level triple will be:
http://www.loc.gov/mods/rdf/v1#xyz is-a #ModsResource
In XML:
<modsrdf:ModsResource rdf:about="http://www.loc.gov/mods/rdf/v1#MODS123456">
if the record does not include an identifier with type=’modsRDFIdentifier’ then the top-level triple will be:
http://www.loc.gov/mods/rdf/v1#123456 is-a #ModsResource
A user of the stylesheet wishing to ensure that a meaningful identifier will be used for this triple should insert an identifier with type=’modsRDFIdentifier’ into the record.
Treatment of MODS Top-level Elements
MODS <abstract>
The Following MODS record:
<mods>
<abstract> based on a novel by a man named Lear </abstract>
</mods> |
Results in the following RDF description.
<rdf:RDF>
<modsrdf:ModsResource rdf:about="http://www.loc.gov/mods/rdf/v1#MODS123456">
<modsrdf:abstract> based on a novel by a man named Lear</modsrdf:abstract>
</modsrdf:ModsResource>
</rdf:RDF> |
For all subsequent examples the MODS wrapper for XML and the RDF and ModsResource wrappers for RDF will be omitted.
MODS <accessCondition>
The Following XML:
<accessCondition>No Restriction</accessCondition> |
Results in the following RDF:
modsrdf:accessCondition> No Restriction </modsrdf: accessCondition> |
MODS <classification>
The Following XML:
<classification authority="lcc">HE380.8</classification>
<classification authority="xyz">abc.xyz</classification> |
Results in the following RDF:
<class:lcc>HE380.8</class:lcc>
<!-- -->
<modsrdf:classificationGroup>
<ClassificationGroup>
<classificationGroupScheme>xyz</classificationGroupScheme>
<classificationGroupValue>abc.xyz</classificationGroupValue>
</ClassificationGroup>
</modsrdf:classificationGroup> |
MODS <genre>
The Following XML:
<genre>television</genre> |
Results in the following RDF:
<modsrdf:genre>
<GenreForm xmlns="http://www.loc.gov/mads/rdf/v1#">
<rdf:type rdf:resource="http://www.loc.gov/mads/rdf/v1#GenreForm"/>
<rdfs:label>television</rdfs:label>
<elementList rdf:parseType="Collection">
<GenreFormElement>
<elementValue>television</elementValue>
</GenreFormElement>
</elementList>
</GenreForm>
</modsrdf:genre> |
MODS <identifier>
The Following XML:
<identifier type="isbn">0-937383-18-X</identifier>
<identifier type="lccn">##2001336783</identifier>
<identifier type="local">xjz123</identifier> |
Results in the following RDF:
<identifier:isbn>0-937383-18-X</identifier:isbn>
<identifier:lccn>##2001336783</identifier:lccn>
<modsrdf:identifierGroup>
<IdentifierGroup>
<identifierGroupType>local</identifierGroupType>
<identifierGroupValue>xjz123</identifierGroupValue>
</IdentifierGroup>
</modsrdf:identifierGroup> |
MODS <language>
The Following XML:
<languageTerm authority="iso639-2b" >eng</languageTerm>
<languageTerm>english</languageTerm> |
Results in the following RDF:
<LanguageOfResource rdf:resource="http://id.loc.gov/vocabulary/language#eng"/>
<LanguageOfResource >english</LanguageOfResource> |
MODS <location>
The Following XML:
<location>
<physicalLocation>Library of Congress </ physicalLocation >
<sublocation>Prints and Photographs Division Washington, D.C. 20540 USA</sublocation>
<shelfLocator>DAG no. 1410</shelfLocator>
</location> |
Results in the following RDF:
<locationOfResource>
<Location>
<locationPhysical>Library of Congress </locationPhysical>
<locationSublocation>Prints and Photographs Division Washington, D.C. 20540 USA</locationSublocation>
<locationShelfLocator>DAG no. 1410</locationShelfLocator>
</Location>
</locationOfResource> |
In the following example of a MODS location, copy information is included, via subelement holdingsSimple:
<location>
<physicalLocation authority="marcorg">MnRM</physicalLocation>
<holdingSimple>
<copyInformation>
<sublocation>Patient reading room</sublocation>
<shelfLocator>QH511.A1J68</shelfLocator>
<enumerationAndChronology unitType="1"> v.1-v.8 1970-1976</enumerationAndChronology>
</copyInformation>
</holdingSimple>
</location> |
This results in the following RDF:
<locationOfResource xmlns="http://www.loc.gov/mods/rdf/v1#">
<Location>
<locationPhysicalLocation>MnRM</locationPhysicalLocation>
<locationCopy>
<Copy>
<locationCopyShelfLocator>QH511.A1J68</locationCopyShelfLocator>
<locationCopyEnumerationAndChronologyBasic> v.1-v.8 1970-1976 </location........>
</Copy>
</locationCopy>
</Location>
</locationOfResource> |
MODS <name> (and <name><role>)
The following MODS XML name:
<name type="personal">
<namePart type="family">Whitman</namePart>
<namePart type="given">Walt</namePart>
<namePart type="date">1819-1892</namePart>
</name> |
Results in the following RDF:
<name xmlns="http://www.loc.gov/mods/rdf/v1#">
<PersonalName xmlns="http://www.loc.gov/mads/rdf/v1#" rdf:about="idname178227440">
<label xmlns="http://www.w3.org/2000/01/rdf-schema#"> Walt Whitman 1819-1892 </label>
<elementList rdf:parseType="Collection">
<FamilyNameElement>
<elementValue>Whitman</elementValue>
</FamilyNameElement>
<GivenNameElement>
<elementValue>Walt</elementValue>
</GivenNameElement>
<DateNameElement>
<elementValue>1819-1892</elementValue>
</DateNameElement>
</elementList>
</PersonalName>
</name |
The simpler case of an unparsed name (no namepart types supplied), e.g.:
<name type="personal">
<namePart>Walt Whitman 1819-1892</namePart>
</name> |
Results in the following RDF:
<name xmlns="http://www.loc.gov/mods/rdf/v1#">
<PersonalName xmlns="http://www.loc.gov/mads/rdf/v1#" rdf:about="idname130712944">
<label xmlns="http://www.w3.org/2000/01/rdf-schema#">Walt Whitman 1819-1892 </label>
<elementList rdf:parseType="Collection">
<FullNameElement>
<elementValue>Walt Whitman 1819-1892</elementValue>
</FullNameElement>
</elementList>
</PersonalName>
</name> |
So the following MODS name, with role included:
<name type="personal">
<namePart>Epstein, Daniel Mark.</namePart>
<role>
<roleTerm type="code" authority="marcrelator">spk</roleTerm>
</role>
</name> |
Results in the following RDF:
<name xmlns="http://www.loc.gov/mods/rdf/v1#">
<PersonalName xmlns="http://www.loc.gov/mads/rdf/v1#" rdf:about="idname103263352">
<label xmlns="http://www.w3.org/2000/01/rdf-schema#">Epstein, Daniel Mark. </label>
<elementList rdf:parseType="Collection">
<FullNameElement>
<elementValue>Epstein, Daniel Mark.</elementValue>
</FullNameElement>
</elementList>
</PersonalName>
</name>
<!-
-**** Roles for this name.
-->
<relator:spk rdf:resource="idname103263352"/> |
In the preceding example, first the name is described and in the process an identifier is assigned ("rdf:about="idname103263352"), for reference in the role description – the last line of the example – so that the entire name description does not have to be repeated.
For the property relator:spk. ‘relator:’ is the prefix for the default vocabulary of roles assumed by this ontology, http://id.loc.gov/vocabulary/relator/, For each term in the vocabulary a property is defined whose domain is ModsResource and whose range is madsrdf:Name. The rule which applies in this example is that if the MODS XML roleTerm is within the default vocabulary, this form is used.
Now consider the same MODS XML name, except that the supplied role ('painter') is not in the default vocabulary:
<name type="personal">
<namePart>Epstein, Daniel Mark.</namePart>
<role>
<roleTerm>painter</roleTerm>
</role>
</name> |
Results in the following RDF:
<name xmlns="http://www.loc.gov/mods/rdf/v1#">
<PersonalName xmlns="http://www.loc.gov/mads/rdf/v1#" rdf:about="idname179930232">
<label xmlns="http://www.w3.org/2000/01/rdf-schema#">Epstein, Daniel Mark. </label>
<elementList rdf:parseType="Collection">
<FullNameElement>
<elementValue>Epstein, Daniel Mark.</elementValue>
</FullNameElement>
</elementList>
</PersonalName>
</name>
<!--
**** Roles for this name.
-->
<modsrdf:roleRelationship>
<modsrdf:RoleRelationship>
<modsrdf:roleRelationshipRole>painter</modsrdf: roleRelationshipRole>
<modsrdf: roleRelationshipName rdf:resource="idname179930232"/>
</modsrdf:RoleRelationship>
</modsrdf:roleRelationship> |
In this case to express the role, a RoleRelationship aggregator is used to wrap a name and a role and thereby establish the relationship between the two.
MODS <note>
The Following XML:
<note>Text in English; summaries in English and French.</note>
<note type=”statement of responsibility”> see label on t.p.</note>
<note type="bibliography">Includes bibliographies.</note> |
Results in the following RDF:
<!--*******note - no type-->
<modsrdf:note>Text in English; summaries in English and French.</modsrdf:note>
<!--*******statement of responsibility-->
<modsrdf:statementOfResponsibility> see label on t.p.</modsrdf:statementOfResponsibility>
<!--*******typed note -->
<modsrdf:noteGroup>
<modsrdf:NoteGroup>
<modsrdf:noteGroupType>bibliography</modsrdf:noteGroupType>
<modsrdf:noteGroupValue>Includes bibliographies.</modsrdf:noteGroupValue>
</modsrdf:NoteGroup>
</modsrdf:noteGroup> |
MODS <originInfo>
The Following XML:
<originInfo>
<place>
<placeTerm>Lincoln, Neb</placeTerm>
</place>
</originInfo> |
Results in the following RDF:
<placeOfOrigin xmlns="http://www.loc.gov/mods/rdf/v1#">
<Geographic xmlns="http://www.loc.gov/mads/rdf/v1#">
<label xmlns="http://www.w3.org/2000/01/rdf-schema#">Lincoln, Neb</label>
<elementList rdf:parseType="Collection">
<GeographicElement>
<elementValue>Lincoln, Neb</elementValue>
</GeographicElement>
</elementList>
</Geographic>
</placeOfOrigin> |
The Following XML:
<originInfo>
<dateIssued> January 1, 2001</dateIssued>
<dateIssued encoding="w3cdtf">2001-01-01</dateIssued>
<dateIssued point="start" encoding="w3cdtf">2001-01-01</dateIssued>
<dateIssued point="end" encoding="w3cdtf">2001-01-02</dateIssued>
<dateIssued point="start"> January 1, 2001</dateIssued>
<dateIssued point="end"> January 2, 2001</dateIssued>
</originInfo> |
Results in the following RDF:
<resourceDateIssued rdf:datatype="xsd:string"> January 1, 2001</resourceDateIssued>
<resourceDateIssued rdf:datatype="xsd:date">2001-01-01</resourceDateIssued>
<resourceDateIssuedStart rdf:datatype="xsd:date">2001-01-01</resourceDateIssuedStart>
<resourceDateIssuedEnd rdf:datatype="xsd:date">2001-01-02</resourceDateIssuedEnd>
<resourceDateIssuedStart rdf:datatype="xsd:string"> January 1, 2001</resourceDateIssuedStart>
<resourceDateIssuedEnd rdf:datatype="xsd:string"> January 2, 2001</resourceDateIssuedEnd> |
The Following XML:
<originInfo>
<edition>morning edition</edition>
<frequency>once a week</frequency>
<publisher>Maxwell Edison</publisher>
</originInfo> |
Results in the following RDF:
<!--**********edition-->
<edition xmlns="http://www.loc.gov/mods/rdf/v1#">morning edition</edition>
<!--**********frequency-->
<frequency xmlns="http://www.loc.gov/mods/rdf/v1#">c sharp</frequency>
<!--
******* publisher
-->
<publisher xmlns="http://www.loc.gov/mods/rdf/v1#">
<CorporateName xmlns="http://www.loc.gov/mads/rdf/v1#">
<label xmlns="http://www.w3.org/2000/01/rdf-schema#">Maxwell Edison</label>
<elementList rdf:parseType="Collection">
<FullNameElement>
<elementValue>Maxwell Edison</elementValue>
</FullNameElement>
</elementList>
</CorporateName>
</publisher> |
MODS <part>
The Following XML:
<part order="4">
<detail type="issue" level="v.2, no. 3">
<number>2</number>
<caption>no.</caption>
<title>History of the World</title>
</detail>
<extent unit="pages">
<start>761</start>
<end>1275</end>
<total>515</total>
</extent>
<date encoding="w3cdtf">1999</date>
</part> |
Results in the following RDF:
<part xmlns="http://www.loc.gov/mods/rdf/v1#">
<Part>
<partOrder>4</partOrder>
<partLevel>v.2, no. 3</partLevel>
<partUnit>pages</partUnit>
<partDetailType>issue</partDetailType>
<partNumber>2</partNumber>
<partCaption>no.</partCaption>
<partTitle>History of the World</partTitle>
<partStart>761</partStart>
<partEnd>1275</partEnd>
<partTotal>515</partTotal>
<partDate rdf:datatype="xsd:date">1999</partDate>
</Part>
</part> |
MODS <physicalDescription>
The Following XML:
<physicalDescription>
<form type="material">oil paint</form>
<form type="technique">painting</form>
<reformattingQuality>access</reformattingQuality>
<internetMediaType>image/jpeg</internetMediaType>
<extent>1 painting</extent>
<digitalOrigin>born digital</digitalOrigin>
<note type="description">carrier pigeon</note>
</physicalDescription> |
Results in the following RDF:
<physicalForm xmlns="http://www.loc.gov/mods/rdf/v1#">oil paint</physicalForm>
<physicalForm xmlns="http://www.loc.gov/mods/rdf/v1#">painting</physicalForm>
<reformattingQuality xmlns="http://www.loc.gov/mods/rdf/v1#">access</reformattingQuality>
<mediaType xmlns="http://www.loc.gov/mods/rdf/v1#">image/jpeg</mediaType>
<physicalExtent xmlns="http://www.loc.gov/mods/rdf/v1#">1 painting</physicalExtent>
<digitalOrigin xmlns="http://www.loc.gov/mods/rdf/v1#">born digital</digitalOrigin>
<!-- note - Physical Description-->
<modsrdf:noteGroup>
<modsrdf:NoteGroup>
<modsrdf:noteGroupType>Physical Description</modsrdf:noteGroupType>
<modsrdf:noteGroupValue>carrier pigeon</modsrdf:noteGroupValue>
</modsrdf:NoteGroup>
</modsrdf:noteGroup> |
MODS <recordInfo>
The Following XML:
<recordInfo>
<recordCreationDate encoding="marc">030211</recordCreationDate>
<recordCreationDate>October 8, 2002</recordCreationDate>
<recordOrigin>machine generated</recordOrigin>
<recordContentSource authority="marcorg">CStmoGRI</recordContentSource>
<descriptionStandard authority="marcdescription">cco</descriptionStandard>
<recordIdentifier source="dlc">85753651</recordIdentifier>
<recordChangeDate encoding="iso8601">20020311</recordChangeDate>
<recordCreationDate encoding="w3cdtf">2001-07-12</recordCreationDate>
<languageOfCataloging authority="iso639-2b">fre</languageOfCataloging>
</recordInfo> |
Results in the following RDF:
<hasAdministrativeMedatata xmlns="http://www.loc.gov/mods/rdf/v1#">
<AdministrativeMedatata xmlns="http://id.loc.gov/ontologies/RecordInfo#">
<recordCreationDate>030211</recordCreationDate>
<recordCreationDate rdf:datatype="xs:string" >October 8, 2002</recordCreationDate>
<recordOrigin>machine generated</recordOrigin>
<recordContentSource>CStmoGRI</recordContentSource>
<descriptionStandard>cco</descriptionStandard>
<recordIdentifier>85753651</recordIdentifier>
<recordChangeDate>20020311</recordChangeDate>
<recordCreationDate>2001-07-12</recordCreationDate>
</AdministrativeMedatata>
</administrativeMedatata> |
MODS <relatedItem>
The Following XML:
<relatedItem type="series">
<titleInfo>
<title>Background paper (United States. Congress. Office of Technology Assessment)</title>
</titleInfo>
</relatedItem> |
Results in the following RDF:
<relatedSeries>
<ModsResource rdf:about="http://www.loc.gov/mods/rdf/v1#MODS123456">
<principalTitle xmlns="http://www.loc.gov/mods/rdf/v1#">
<Title xmlns="http://www.loc.gov/mads/rdf/v1#">
<rdfs:label>Background paper (United States. Congress. Office of Technology Assessment)</rdfs:label>
<elementList rdf:parseType="Collection">
<mainTitleElement>
<elementValue>
Background paper (United States. Congress. Office of Technology Assessment) </elementValue>
</mainTitleElement>
</elementList>
</Title>
</principalTitle>
</ModsResource>
</relatedSeries> |
MODS <subject>
The Following MODS subject topic:
<subject>
<topic> Politics and government </topic>
</subject> |
Results in the following RDF:
<subjectTopic>
<topic xmlns="http://www.loc.gov/mads/rdf/v1#">
<rdfs:label> Politics and government </rdfs:label>
<elementList rdf:parseType="Collection">
<topicElement>
<elementValue> Politics and government </elementValue>
</topicElement>
</elementList>
</topic>
</subjectTopic> |
The Following MODS complex subject:
<subject>
<topic>Public libraries</topic>
<geographic>United States</geographic>
<genre>Book lists</genre>
</subject> |
Results in the following RDF:
<subjectComplex>
<ComplexSubject xmlns="http://www.loc.gov/mads/rdf/v1#">
<rdfs:label>Public libraries. United States. Book lists. </rdfs:label>
<componentList rdf:parseType="Collection">
<!-- -->
<Topic>
<label xmlns="http://www.w3.org/2000/01/rdf-schema#">Public libraries</label>
<elementList rdf:parseType="Collection">
<TopicElement>
<elementValue>Public libraries</elementValue>
</TopicElement>
</elementList>
</Topic>
<!-- -->
<Geographic>
<rdfs:label>United States</rdfs:label>
<elementList rdf:parseType="Collection">
<geographicElement>
<elementValue>United States</elementValue>
</geographicElement>
</elementList>
</Geographic>
<!-- -->
<GenreForm>
<label xmlns="http://www.w3.org/2000/01/rdf-schema#">Book lists</label>
<elementList rdf:parseType="Collection">
<GenreFormElement>
<elementValue>Book lists</elementValue>
</GenreFormElement>
</elementList>
</GenreForm>
<!-- -->
</componentList>
</ComplexSubject>
</ subjectComplex> |
MODS <tableOfContents>
The Following XML:
<tableOfContents>1. Nanook A No No.. 2. St. Alphonso's Pancake Breakfast. 3.Father O'blivion 4. Cosmik Debris. </tableOfContents> |
Results in the following RDF:
<tableOfContents>1. Nanook A No No.. 2. St. Alphonso's Pancake Breakfast. 3.Father O'blivion 4. Cosmik Debris. </tableOfContents> |
MODS <targetAudience>
The Following XML:
<targetAudience> adolescent </ targetAudience > |
Results in the following RDF:
<targetAudience> adolescent </ targetAudience > |
MODS <titleInfo>
The following MODS title/uniform title pair:
<titleInfo>
title> David O. Selznick's production of Margaret Mitchell's
Gone with the wind: original motion picture soundtrack
</title>
</titleInfo>
<titleInfo type="uniform">
<title> Gone with the wind</title>
</titleInfo>
|
Results in the following RDF:
<titlePrincipal>
<Title xmlns="http://www.loc.gov/mads/rdf/v1#">
<rdfs:label>
David O. Selznick's production of Margaret Mitchell's Gone with the wind: original motion picture soundtrack
</rdfs:label>
<elementList rdf:parseType="Collection">
<mainTitleElement>
<elementValue>David O. Selznick's production of Margaret Mitchell's Gone with the wind</elementValue>
</mainTitleElement>
<SubTitleElement>
<elementValue>original motion picture soundtrack</elementValue>
</SubTitleElement>
</elementList>
</Title>
</titlePrincipal>
<!-- *******uniform title -->
<titleUniform>
<Title xmlns="http://www.loc.gov/mads/rdf/v1#">
<label xmlns="http://www.w3.org/2000/01/rdf-schema#">Gone with the wind</label>
<elementList rdf:parseType="Collection">
<mainTitleElement>
<elementValue>Gone with the wind</elementValue>
</mainTitleElement>
</elementList>
</Title>
</titleUniform> |
The following MODS uniform title and principal name combination:
<titleInfo type="uniform">
<title>Gone with the wind</title>
</titleInfo>
<name type="personal" usage="primary">
<namePart>Steiner, Max</namePart>
<namePart type="date">1888-1971</namePart>
</name> |
Results in a NameTitle. The Name is described first, followed by the NameTitle which included the Name previously described by reference.
<namePrincipal xmlns="http://www.loc.gov/mods/rdf/v1#">
<PersonalName xmlns="http://www.loc.gov/mads/rdf/v1#" rdf:about="idroot186728552">
<label xmlns="http://www.w3.org/2000/01/rdf-schema#">Steiner, Max 1888-1971 </label>
<elementList rdf:parseType="Collection">
<FullNameElement>
<elementValue>Steiner, Max 1888-1971</elementValue>
</FullNameElement>
<DateNameElement>
<elementValue>1888-1971</elementValue>
</DateNameElement>
</elementList>
</PersonalName>
</namePrincipal>
<!-- *******uniform title-->
<titleUniform>
<NameTitle xmlns="http://www.loc.gov/mads/rdf/v1#">
<rdfs:label>Steiner, Max 1888-1971 -- Gone with the wind</rdfs:label>
<componentList rdf:parseType="Collection">
<Name rdf:about="idroot186728552" />
<Title>
<label xmlns="http://www.w3.org/2000/01/rdf-schema#">Gone with the wind</label>
<elementList rdf:parseType="Collection">
<mainTitleElement>
<elementValue>Gone with the wind</elementValue>
</mainTitleElement>
</elementList>
</Title>
</componentList>
</NameTitle>
</titleUniform> |
Following is a combination MODS principal title and variants.
<titleInfo>
<title>David O. Selznick's production of Margaret Mitchell's Gone with the wind</title>
</titleInfo>
<titleInfo type="abbreviated">
<title>Margaret Mitchell's Gone with the wind</title>
</titleInfo> |
This results in the following RDF/XML:
</titlePrincipal>
<Title xmlns="http://www.loc.gov/mads/rdf/v1#">
<rdfs:label>David O. Selznick's production of Margaret Mitchell's Gone with the wind</rdfs:label>
<elementList rdf:parseType="Collection">
<mainTitleElement>
<elementValue>David O. Selznick's production of Margaret Mitchell's Gone with the wind</elementValue>
</mainTitleElement>
</elementList>
<abbreviatedVariant>
<Title xmlns="http://www.loc.gov/mads/rdf/v1#">
<variantLabel>Margaret Mitchell's Gone with the wind</variantLabel>
<elementList rdf:parseType="Collection">
<mainTitleElement>
<elementValue>Margaret Mitchell's Gone with the wind</elementValue>
</mainTitleElement>
</elementList>
</Title>
</abbreviatedVariant>
</Title>
</titlePrincipal>
|
Following is a fully parsed title, with nonSort, title, subTitle, partNumber, and partName elements.
<titleInfo>
<nonSort>The</nonSort>
<title>Legend of Zelda</title>
<subTitle>Twilight Princess</subTitle>
<partNumber>Part 3</partNumber>
<partName> Forest Temple Walkthrough</partName>
</titleInfo> |
This results in the following RDF/XML:
<titlePrincipal>
<Title xmlns="http://www.loc.gov/mads/rdf/v1#">
<rdfs:label>The Legend of Zelda: Twilight Princess - Part 3: Forest Temple Walkthrough</rdfs:label>
<elementList rdf:parseType="Collection">
<nonSortElement>
<elementvalue>The</elementvalue>
</nonSortElement>
<mainTitleElement>
<elementValue>Legend of Zelda</elementValue>
</mainTitleElement>
<SubTitleElement>
<elementValue>Twilight Princess</elementValue>
</SubTitleElement>
<PartNameElement>
<elementValue> Forest Temple Walkthrough</elementValue>
</PartNameElement>
<PartNumber>
<elementValue>Part 3</elementValue>
</PartNumber>
</elementList>
</Title>
</titlePrincipal> |
|