The sample site- or instance-specific schema has been changed to reflect MMI data, rather than PAHMA data, and includes both actual fields (with names exposed in its online collection catalog).
Schemas now include 'interleave' tags to allow elements to be included in any order.
Example file now includes sample data from a MMI collection object record.
A hypothetical, skeletal instance of an CollectionObject payload,
represented as an XML document.
+ This was inspired by
+
This is created for the CollectionSpace system, http://www.collectionspace.org/
-->
<collectionObject>
<serviceMetadata>
- <collectionSpaceId>1</collectionSpaceId>
+
+ <!-- An entirely arbitrary examle -->
+ <collectionSpaceId>org.collectionspace-eR5zB8tX2aE3wN6zG1</collectionSpaceId>
+
</serviceMetadata>
+
+
+ <!--
+ Data below was taken from the following item in the online catalog
+ of the Museum of the Moving Image in Astoria, NY.
+
+ http://collection.movingimage.us/index.php?g=detail&object_id=64117
+
+ and in turn by William Gibson's short story, The Gernsback Continuum.
+ -->
+
<defaultCollectionObject>
+
+ <objectNumber>1984.021.0049</objectNumber>
+
+ <objectName> Radio News, vol. 10, no. 2, August 1928</objectName>
+
<!-- Linebreaks were added to the following description for readability -->
- <description>Radio News, August 1928. The cover of this issue features an
+ <briefDescription>Radio News, August 1928. The cover of this issue features an
illustration of a man and woman watching an early "radio movie." Text on
the cover reads, "Radio's Greatest Magazine / Radio News / August 25
Cents / Over 200 illustrations / Edited by Hugo Gernsback / Radio Movies
television by the magazine's editor, Hugo Gernsback, which is followed
by an article about the radio movie receiver system invented by C.
Francis Jenkins. The article includes drawings illustrating the layout
-of the sytem.</description>
+of the sytem.</briefDescription>
+
</defaultCollectionObject>
+
<sampleMmiCollectionObject>
+
<artifactClass>Books, literature, and periodicals</artifactClass>
+
+ <format>Magazine</format>
+
<material>Paper</material>
+
<overallDimensions>
<height>11.75</height>
<width>8.75</width>
<measurementUnit>in</measurementUnit>
</overallDimensions>
+
</sampleMmiCollectionObject>
+
</collectionObject>
name="defaultCollectionObject"
xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
-
+
<!--
- Description appears here as an initial, sample data element.
- There are a number of other data elements which must be added
- to this schema to support the requirements of Release 0.1.
+ The following data elements are taken from the Basic section,
+ Object ID Information sub-section, of the Object Data Entry wireframe
+
+ See:
+
+ http://wiki.collectionspace.org/display/collectionspace/Wireframes+-+Object+Data+Entry
+ and
+ http://wiki.collectionspace.org/display/collectionspace/Hello+World+(Release+0.1)+Functionality+Requirements
+
-->
- <element name="description">
- <choice>
- <data type="string" />
- <empty />
- </choice>
- </element>
+
+ <!-- Allows child elements to appear in any order -->
+ <interleave>
+
+ <element name="objectNumber">
+ <choice>
+ <data type="string" />
+ <empty />
+ </choice>
+ </element>
+
+ <optional>
+ <element name="otherNumber">
+ <choice>
+ <data type="string" />
+ <empty />
+ </choice>
+ </element>
+ </optional>
+
+ <optional>
+ <element name="briefDescription">
+ <choice>
+ <data type="string" />
+ <empty />
+ </choice>
+ </element>
+ </optional>
+
+ <optional>
+ <element name="comments">
+ <choice>
+ <data type="string" />
+ <empty />
+ </choice>
+ </element>
+ </optional>
+
+ <optional>
+ <element name="distinguishingFeatures">
+ <choice>
+ <data type="string" />
+ <empty />
+ </choice>
+ </element>
+ </optional>
+
+ <optional>
+ <element name="objectName">
+ <choice>
+ <data type="string" />
+ <empty />
+ </choice>
+ </element>
+ </optional>
+
+ <optional>
+ <element name="responsibleDepartment">
+ <choice>
+ <data type="string" />
+ <empty />
+ </choice>
+ </element>
+ </optional>
+
+ <optional>
+ <element name="title">
+ <choice>
+ <data type="string" />
+ <empty />
+ </choice>
+ </element>
+ </optional>
+
+ </interleave>
</element>
sampleMmiCollectionObject.rng
A schema defining the structure of a completely hypothetical CollectionObject
- for the Museum of the Moving Image (MMI) in Astoria, New York. This is a minimal
- example created for a system demo.
+ for the Museum of the Moving Image (MMI) in Astoria, New York.
+
+ This is a minimal example created for an early system demo, and represents
+ what a site- or instance-specific entity definition might look like.
This schema was created for the CollectionSpace system,
http://www.collectionspace.org/
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<!--
- These initial choices were inspired by the following item in the
- museum's online catalog:
+ These initial choices for a small subset of site- or instance-specific
+ data elements were inspired by the following item in themuseum's online catalog:
http://collection.movingimage.us/index.php?g=detail&object_id=64117
and in turn by William Gibson's short story, The Gernsback Continuum.
-->
- <optional>
- <element name="artifactClass">
- <choice>
- <data type="string" />
- <empty />
- </choice>
- </element>
- </optional>
+ <!-- Allows child elements to appear in any order -->
+ <interleave>
- <optional>
- <element name="material">
- <choice>
- <data type="string" />
- <empty />
- </choice>
- </element>
- </optional>
-
- <!--
- The following is a somewhat awkward construction, because I
- don't know how yet to make the value of an attribute dependent on
- the value of its corresponding element, as in "if the value of
- this element is non-empty, then the attribute value must also be non-empty - Aron.
- -->
- <optional>
- <element name="overallDimensions">
- <element name="height">
+ <optional>
+ <element name="artifactClass">
<choice>
- <data type="decimal" />
+ <data type="string" />
<empty />
</choice>
</element>
- <element name="width">
+ </optional>
+
+ <optional>
+ <element name="format">
<choice>
- <data type="decimal" />
+ <data type="string" />
<empty />
</choice>
</element>
- <element name="measurementUnit">
+ </optional>
+
+ <optional>
+ <element name="material">
<choice>
- <value>in</value>
- <value>mm</value>
+ <data type="string" />
<empty />
</choice>
</element>
- </element>
- </optional>
+ </optional>
+
+ <!--
+ The following was constructed somewhat awkwardly, because I
+ don't know how yet to make the value of an attribute dependent on
+ the value of its corresponding element, as in the case where "if the
+ value of the 'height' element is non-empty, then the value of its
+ corresponding 'measurementUnit' attribute must also be non-empty." - Aron.
+ -->
+ <optional>
+ <element name="overallDimensions">
+ <element name="height">
+ <choice>
+ <data type="decimal" />
+ <empty />
+ </choice>
+ </element>
+ <element name="width">
+ <choice>
+ <data type="decimal" />
+ <empty />
+ </choice>
+ </element>
+ <element name="measurementUnit">
+ <choice>
+ <value>in</value>
+ <value>mm</value>
+ <empty />
+ </choice>
+ </element>
+ </element>
+ </optional>
+
+ </interleave>
</element>