Skip to Main Content

Rosetta Walkthrough (METS)


Setting up the Schema

Note: There is an existing file that can be utilized to skip the following steps. It will be attached when this documentation is finalized.

  • Open an XML editor and use the following code as a template for your schema file:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element nillable="true" name="metadata">
        <xsd:complexType>
            <xsd:sequence minOccurs="0">
                <xsd:element minOccurs="0" maxOccurs="unbounded" nillable="true" name="record" form="unqualified">
                    <xsd:complexType>
                        <xsd:sequence minOccurs="0">
                            <xsd:element minOccurs="0" nillable="true" type="xsd:string" name="title" form="unqualified"/>
                            <xsd:element minOccurs="0" nillable="true" type="xsd:string" name="author" form="unqualified"/>
                            <xsd:element minOccurs="0" nillable="true" type="xsd:string" name="date" form="unqualified"/>
                            <xsd:element minOccurs="0" nillable="true" type="xsd:string" name="identifier" form="unqualified"/>
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
</xsd:schema>

  • In your metadata file, you will have field names as headers in your first row. Each field delineates a column of metadata. The schema allows for the metadata to be exported out into XML format.
  • Where the code reads:
    • <xsd:element minOccurs="0" nillable="true" type="xsd:string" name="VARIABLE" form="unqualified"/>

you will need to change the VARIABLE to the desired Dublin Core element for each field you have in your metadata file.

  • Note: This line of code is specific to the number of fields you have. If you have 11 fields, including the filename, you will need to repeat that line of code 11 times.
  • Speaking of filename, when inputting the field names into the schema code, make sure that the filename is mapped to the "identifier" element. This is important for the purposes of Rosetta ingestion.
  • Once the schema file has been created in your XML editor, save the file