10.12.3 XML encoding
The following XML-Schema fragment defines the XML encoding for a Harvest operation request:
xsd:element name=Harvest type=csw:HarvestType xsd:complexType
name=HarvestType xsd:complexContent
xsd:extension base=csw:RequestBaseType xsd:sequence
xsd:element name=Source type=xsd:anyURI xsd:element name=ResourceType type=xsd:anyURI
xsd:element name=ResourceFormat type=xsd:string minOccurs=0 default=applicationxml
xsd:element name=HarvestInterval type=xsd:duration
minOccurs=0 xsd:element name=ResponseHandler type=xsd:anyURI
minOccurs=0 maxOccurs=unbounded xsd:sequence
xsd:extension xsd:complexContent
xsd:complexType
10.12.4 Parameter descriptions
10.12.4.1 Source parameter
The Source parameter is used to specify a URI reference to the metadata resource to be harvested.
10.12.4.2 ResourceType parameter
The ResourceType parameter references a document that defines the structure of the resource being harvested. For high interoperability, this resource should be an XML
document, and the ResourceType parameter string value should be a URI that references the structure of that XML document i.e., its XML Schema namespace identifier URI. If
a server can harvest resources in the schema of an information model it supports, the ResourceType URI should be the same as the outputSchema parameter URI defined for
the GetRecords operation.
Table 69 defines a set of URIs that may be used to identify well know metadata formats. CSW implementations and CSW application profiles may support other values of the
ResourceType parameter for harvesting additional artifact types. If creating new ResourceType URNs is needed, the format of the values may be
urn:ogc:def:resourceType:CSW:token,
where token is a placeholder for a value that denotes the specific resource type.
172
Copyright © 2007 Open Geospatial Consortium, Inc. All Rights Reserved.
Table 69 — URIs for well known metadata standards
URI Description
http:www.opengis.netwms WMS capability document, all current versions
http:www.opengis.netwfs WFS capability document, versions 1.0 and 1.1
http:www.opengis.netwfs1.2.0 WFS capability document, version 1.2
http:www.opengis.netwcs WCS capability document, version 1.0
http:www.opengis.netwcs1.1 WCS capability document, version 1.1
http:www.opengis.netcatcsw CSW capability document, versions 2.0.0 and 2.0.1
http:www.opengis.netcatcsw2.0.2 CSW capability document, version 2.0.2
http:www.fgdc.govmetadatacsdgm Content Standard for Digital Geospatial Metadata
CSDGM, Vers. 2 FGDC-STD-001-1998 http:www.auslig.gov.audtdanzmeta-1.3.dtd
Australian Spatial Data Infrastructure Standard http:www.isotc211.orgschemas2005gmd
ISO19139 document http:metadata.dod.milmdrnsDDMS1.3
DEPARTMENT OF DEFENSE DISCOVERY METADATA STANDARD DDMS
A CSW may accept a MIME type as the string value of the ResourceType parameter. If MIME types are accepted, the value of the MIME type shall match the value of the
Content Type: MIME header when the resource is accessed by the catalogue. If these two values do not agree, the catalogue shall raise as exception
A compliant server shall, in its Capabilities document, advertise the resource type URIs it recognizes using the Parameter element within the Operation element.
EXAMPLE The following XML fragment illustrates how a catalogue server could advertise which resource
types it can harvest: ows:Operation name=Harvest
... ows:Parameter name=ResourceType
ows:Valuehttp:www.opengis.netwmsows:Value ows:Valuehttp:www.opengis.netwfsows:Value
ows:Valuehttp:www.opengis.netwmsows:Value ows:Valuehttp:www.opengis.netwfsows:Value
ows:Valuehttp:www.opengis.netcatcsw2.0.2ows:Value ows:Valueurn:ogc:def:resourceType:CSW:FGDCows:Value
ows:Valuehttp:www.auslig.gov.audtdanzmeta-1.3.dtdows:Value ows:Valuehttp:metadata.dod.milmdrnsDDMS1.3ows:Value
ows:Valueaudiompegows:Value ows:Valueapplicationpdfows:Value
ows:Parameter ...
ows:Operation
10.12.4.3 ResourceFormat parameter