Changeset 1430 for FederatedSearch
- Timestamp:
- 06/22/11 07:32:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
FederatedSearch/ccsResource.xsd
r1427 r1430 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 3 targetNamespace="http://clarin.eu/schemas/ccs" 4 xmlns:ccs="http://clarin.eu/schemas/ccs" 5 > 3 targetNamespace="http://clarin.eu/schemas/ccs" xmlns:ccs="http://clarin.eu/schemas/ccs"> 6 4 <xs:annotation> 7 5 <xs:documentation>This schema shall define the generic inner structure … … 24 22 <xs:complexType> 25 23 <xs:sequence> 26 <xs:element maxOccurs="unbounded" minOccurs="0" name="Metadata" type="ccs:MetadataType"/> 27 <xs:element maxOccurs="unbounded" minOccurs="0" name="ResourceFragment" type="ccs:ResourceFragmentType"/> 28 <xs:element maxOccurs="unbounded" minOccurs="0" name="DataView" type="ccs:DataViewType"/> 24 <xs:element maxOccurs="unbounded" minOccurs="0" name="Metadata" 25 type="ccs:MetadataType"/> 26 <xs:element maxOccurs="unbounded" minOccurs="0" name="ResourceFragment" 27 type="ccs:ResourceFragmentType"/> 28 <xs:element maxOccurs="unbounded" minOccurs="0" name="DataView" 29 type="ccs:DataViewType"/> 29 30 </xs:sequence> 30 31 <xs:attribute name="pid" type="ccs:pidType" use="optional"/> 31 32 <xs:attribute name="ref" type="ccs:refType" use="optional"/> 32 33 </xs:complexType> 33 34 34 35 </xs:element> 35 36 37 <xs:complexType name="ResourceFragmentType"> 38 <xs:sequence> 39 <xs:element maxOccurs="unbounded" minOccurs="0" name="Metadata" type="ccs:MetadataType"/> 40 <xs:element maxOccurs="unbounded" minOccurs="0" name="DataView" type="ccs:DataViewType"/> 41 </xs:sequence> 36 37 38 <xs:complexType name="ResourceFragmentType"> 39 <xs:sequence> 40 <xs:element maxOccurs="unbounded" minOccurs="0" name="Metadata" type="ccs:MetadataType"/> 41 <xs:element maxOccurs="unbounded" minOccurs="0" name="DataView" type="ccs:DataViewType" 42 /> 43 </xs:sequence> 42 44 <xs:attribute name="pid" type="ccs:pidType" use="optional"/> 43 45 <xs:attribute name="ref" type="ccs:refType" use="optional"/> 44 </xs:complexType> 45 46 46 </xs:complexType> 47 48 47 49 <xs:complexType name="MetadataType"> 48 50 <xs:annotation> … … 58 60 </xs:sequence> 59 61 <xs:attribute name="pid" type="ccs:pidType" use="optional"/> 60 <xs:attribute name="ref" type="ccs:refType" use="optional"/> 62 <xs:attribute name="ref" type="ccs:refType" use="optional"/> 61 63 </xs:complexType> 62 64 63 65 <xs:complexType name="DataViewType"> 64 66 <xs:annotation> … … 68 70 <xs:sequence> 69 71 <xs:any namespace="##other" processContents="strict"/> 70 </xs:sequence> 71 <xs:attribute name="type" type="ccs:DataViewTypeType"/> 72 </xs:sequence> 73 <xs:attribute name="type" type="ccs:DataViewTypeType"/> 72 74 <xs:attribute name="pid" type="ccs:pidType"/> 73 75 <xs:attribute name="ref" type="ccs:refType"/> 74 </xs:complexType> 75 76 </xs:complexType> 77 76 78 <xs:simpleType name="DataViewTypeType"> 77 79 <xs:annotation> 78 <xs:documentation>This is obviously not exhaustive.</xs:documentation> 79 </xs:annotation> 80 <xs:documentation>This is obviously not exhaustive. 81 82 Shouldn't this be MIME-type ?</xs:documentation> 83 </xs:annotation> 80 84 <xs:restriction base="xs:string"> 81 85 <xs:enumeration value="kwic"/> 82 <xs:enumeration value="fulltext"/> 86 <xs:enumeration value="fulltext"/> 83 87 <xs:enumeration value="image"/> 84 88 </xs:restriction> 85 89 </xs:simpleType> 86 90 87 91 <xs:simpleType name="pidType"> 88 92 <xs:annotation> 89 <xs:documentation>a persistent! identifier of given entity. This should be really only used, when a PID is available </xs:documentation>93 <xs:documentation>a persistent! identifier of given entity. This should be really only used, when a PID is available. Provider should also fill the sru:record/sru:recordIdentifier-element. If there are more PIDs in one record (for Resource, Metadata, DataView), provider selects the "most important"/primary PID to put into sru:recordIdentifier</xs:documentation> 90 94 </xs:annotation> 91 95 <xs:restriction base="xs:anyURI"/> … … 98 102 <xs:restriction base="xs:anyURI"/> 99 103 </xs:simpleType> 100 101 104 105 102 106 </xs:schema>
Note: See TracChangeset
for help on using the changeset viewer.