📄 csw-discovery.xsd
字号:
<?xml version="1.0" encoding="UTF-8"?><xsd:schema id="csw-discovery" targetNamespace="http://www.opengis.net/cat/csw" xmlns:csw="http://www.opengis.net/cat/csw" xmlns:ogc="http://www.opengis.net/ogc" xmlns:ows="http://www.opengis.net/ows" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="2.0.1"> <xsd:annotation> <xsd:appinfo> <dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/"> http://schemas.opengis.net/csw/2.0.1/CSW-discovery.xsd </dc:identifier> </xsd:appinfo> <xsd:documentation xml:lang="en"> This schema defines the request and response messages for the CSW-Discovery operations specified in clause 10 of OGC-04-021. </xsd:documentation> </xsd:annotation> <xsd:include schemaLocation="./record.xsd"/> <xsd:import namespace="http://www.opengis.net/ows" schemaLocation="../../ows/1.0.0/owsGetCapabilities.xsd"/> <xsd:import namespace="http://www.opengis.net/ogc" schemaLocation="../../filter/1.1.0/filter.xsd"/> <xsd:complexType name="RequestBaseType" id="RequestBaseType" abstract="true"> <xsd:annotation> <xsd:documentation> Base type for all request messages except GetCapabilities. The attributes identify the relevant service type and version. </xsd:documentation> </xsd:annotation> <xsd:attribute name="service" type="ows:ServiceType" use="optional" default="http://www.opengis.net/cat/csw"/> <xsd:attribute name="version" type="ows:VersionType" use="optional" default="2.0.1"/> </xsd:complexType> <xsd:element name="GetCapabilities" type="csw:GetCapabilitiesType" id="GetCapabilities" /> <xsd:complexType name="GetCapabilitiesType" id="GetCapabilitiesType"> <xsd:annotation> <xsd:documentation> Request for a description of service capabilities. See OGC 05-008 for more information. </xsd:documentation> </xsd:annotation> <xsd:complexContent> <xsd:extension base="ows:GetCapabilitiesType"> <xsd:attribute name="service" type="ows:ServiceType" use="optional" default="http://www.opengis.net/cat/csw"/> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:element name="Capabilities" type="csw:CapabilitiesType" id="Capabilities" /> <xsd:complexType name="CapabilitiesType" id="CapabilitiesType"> <xsd:annotation> <xsd:documentation> This type extends ows:CapabilitiesBaseType defined in OGC-05-008 to include information about supported OGC filter components. A profile may extend this type to describe additional capabilities. </xsd:documentation> </xsd:annotation> <xsd:complexContent> <xsd:extension base="ows:CapabilitiesBaseType"> <xsd:sequence> <xsd:element ref="ogc:Filter_Capabilities" /> </xsd:sequence> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:element name="DescribeRecord" type="csw:DescribeRecordType" id="DescribeRecord"/> <xsd:complexType name="DescribeRecordType" id="DescribeRecordType"> <xsd:annotation> <xsd:documentation xml:lang="en"> This request allows a user to discover elements of the information model supported by the catalogue. If no TypeName elements are included, then all of the schemas for the information model must be returned. schemaLanguage - preferred schema language (W3C XML Schema by default) outputFormat - preferred output format (application/xml by default) </xsd:documentation> </xsd:annotation> <xsd:complexContent> <xsd:extension base="csw:RequestBaseType"> <xsd:sequence> <xsd:element name="TypeName" type="csw:TypeNameType" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="outputFormat" type="xsd:string" use="optional" default="application/xml"/> <xsd:attribute name="schemaLanguage" type="xsd:anyURI" use="optional" default="http://www.w3.org/XML/Schema"/> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="TypeNameType" id="TypeNameType"> <xsd:annotation> <xsd:documentation> The unqualified name of the model element for which the type definition is requested. The targetNamespace MUST be specified, although it may have the value "##any" to indicate any namespace. </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:extension base="xsd:NCName"> <xsd:attribute name="targetNamespace" type="xsd:anyURI" use="required"/> </xsd:extension> </xsd:simpleContent> </xsd:complexType> <xsd:element name="DescribeRecordResponse" type="csw:DescribeRecordResponseType" id="DescribeRecordResponse"/> <xsd:complexType name="DescribeRecordResponseType" id="DescribeRecordResponseType"> <xsd:annotation> <xsd:documentation xml:lang="en"> The response contains a list of matching schema components in the requested schema language. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="SchemaComponent" type="csw:SchemaComponentType" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="SchemaComponentType" mixed="true" id="SchemaComponentType"> <xsd:annotation> <xsd:documentation xml:lang="en"> A schema component includes a schema fragment (type definition) or an entire schema from some target namespace; the schema language is identified by URI. If the component is a schema fragment its parent MUST be referenced (parentSchema). </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:any namespace="##any" processContents="lax"/> </xsd:sequence> <xsd:attribute name="targetNamespace" type="xsd:anyURI" use="required"/> <xsd:attribute name="parentSchema" type="xsd:anyURI" use="optional"/> <xsd:attribute name="schemaLanguage" type="xsd:anyURI" use="required"/> </xsd:complexType> <xsd:element name="GetRecords" type="csw:GetRecordsType" id="GetRecords"/> <xsd:complexType name="GetRecordsType" id="GetRecordsType"> <xsd:annotation> <xsd:documentation xml:lang="en"> The principal means of searching the catalogue. The matching catalogue entries may be included with the response. The client may assign a requestId (absolute URI). A distributed search is performed if the DistributedSearch element is present and the catalogue is a member of a federation. Profiles may allow alternative query expressions. </xsd:documentation> </xsd:annotation> <xsd:complexContent> <xsd:extension base="csw:RequestBaseType"> <xsd:sequence> <xsd:element name="DistributedSearch" type="csw:DistributedSearchType" minOccurs="0"/> <xsd:element name="ResponseHandler" type="xsd:anyURI" minOccurs="0" maxOccurs="unbounded"/> <xsd:choice> <xsd:element ref="csw:AbstractQuery"/> <xsd:any processContents="strict" namespace="##other" /> </xsd:choice> </xsd:sequence> <xsd:attribute name="requestId" type="xsd:anyURI" use="optional" /> <xsd:attribute name="resultType" type="csw:ResultType" use="optional" default="hits"/> <xsd:attributeGroup ref="csw:BasicRetrievalOptions"/> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:attributeGroup name="BasicRetrievalOptions" id="BasicRetrievalOptions"> <xsd:annotation> <xsd:documentation xml:lang="en"> Various attributes that specify basic retrieval options: outputFormat - the media type of the response message outputSchema - the preferred schema for records in the result set startPosition - requests a slice of the result set, starting at this position maxRecords - the maximum number of records to return. No records are returned if maxRecords=0. </xsd:documentation> </xsd:annotation> <xsd:attribute name="outputFormat" type="xsd:string" use="optional" default="application/xml"/> <xsd:attribute name="outputSchema" type="xsd:anyURI" use="optional"/> <xsd:attribute name="startPosition" type="xsd:positiveInteger" use="optional" default="1"/> <xsd:attribute name="maxRecords" type="xsd:nonNegativeInteger" use="optional" default="10"/> </xsd:attributeGroup> <xsd:simpleType name="ResultType" id="ResultType"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="results"> <xsd:annotation> <xsd:documentation> Include results in the response. </xsd:documentation> </xsd:annotation> </xsd:enumeration> <xsd:enumeration value="hits"> <xsd:annotation> <xsd:documentation> Provide a result set summary, but no results. </xsd:documentation> </xsd:annotation> </xsd:enumeration> <xsd:enumeration value="validate"> <xsd:annotation> <xsd:documentation> Validate the request and return an Acknowledgement message if it is valid. Continue processing the request asynchronously. </xsd:documentation> </xsd:annotation> </xsd:enumeration> </xsd:restriction> </xsd:simpleType> <xsd:complexType name="DistributedSearchType" id="DistributedSearchType"> <xsd:annotation> <xsd:documentation xml:lang="en"> Governs the behaviour of a distributed search. hopCount - the maximum number of message hops before the search is terminated. Each catalogue node decrements this value when the request is received, and must not forward the request if hopCount=0. </xsd:documentation> </xsd:annotation> <xsd:attribute name="hopCount" type="xsd:positiveInteger" use="optional" default="2"/> </xsd:complexType> <xsd:element name="AbstractQuery" type="csw:AbstractQueryType" id="AbstractQuery" abstract="true"/> <xsd:complexType name="AbstractQueryType" id="AbstractQueryType" abstract="true"/> <xsd:element name="Query" type="csw:QueryType" id="Query" substitutionGroup="csw:AbstractQuery"/> <xsd:complexType name="QueryType" id="QueryType"> <xsd:annotation> <xsd:documentation xml:lang="en"> Specifies a query to execute against instances of one or more object types. A set of ElementName elements may be included to specify an adhoc view of the csw:Record instances in the result set. Otherwise, use ElementSetName to specify a predefined view. The Constraint element contains a query filter expressed in a supported query language. A sorting criterion that specifies a property to sort by may be included. typeNames - a list of object types to query. </xsd:documentation> </xsd:annotation> <xsd:complexContent> <xsd:extension base="csw:AbstractQueryType"> <xsd:sequence> <xsd:choice> <xsd:element ref="csw:ElementSetName"/> <xsd:element name="ElementName" type="xsd:anyURI" minOccurs="1" maxOccurs="unbounded"/> </xsd:choice> <xsd:element ref="csw:Constraint" minOccurs="0" maxOccurs="1"/> <xsd:element ref="ogc:SortBy" minOccurs="0" maxOccurs="1"/> </xsd:sequence> <xsd:attribute name="typeNames" type="csw:TypeNameListType" use="required"/> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:simpleType name="TypeNameListType" id="TypeNameListType"> <xsd:annotation> <xsd:documentation xml:lang="en"> The exact syntax is defined in an application profile. If querying against the common record properties, only a single type may be specified (Record). </xsd:documentation> </xsd:annotation> <xsd:list itemType="xsd:anyURI"/> </xsd:simpleType> <xsd:element name="Constraint" type="csw:QueryConstraintType" id="Constraint"/>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -