Skip to content

Commit b10be8a

Browse files
committedMar 22, 2018
Update metadata xml definitions
1 parent d293c5d commit b10be8a

9 files changed

+352
-176
lines changed
 

‎python/core/metadata/qgsabstractmetadatabase.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ of all existing metadata schemas and accordingly conversion from specific
2727
metadata formats to QgsAbstractMetadataBase may result in a loss of information.
2828

2929
This class is designed to follow the specifications detailed in
30-
the schema definition available at resources/qgis-resource-metadata.xsd
30+
the schema definition available at resources/qgis-base-metadata.xsd
3131
within the QGIS source code.
3232

3333
Metadata can be validated through the use of QgsAbstractMetadataBaseValidator

‎python/core/metadata/qgsprojectmetadata.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ of all existing metadata schemas and accordingly conversion from specific
2626
metadata formats to QgsProjectMetadata may result in a loss of information.
2727

2828
This class is designed to follow the specifications detailed in
29-
the schema definition available at resources/qgis-resource-metadata.xsd
29+
the schema definition available at resources/qgis-project-metadata.xsd
3030
within the QGIS source code.
3131

3232
Metadata can be validated through the use of QgsLayerMetadataValidator

‎resources/qgis-base-metadata.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ResourceMetadata xmlns="http://qgis.org/base-metadata/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://qgis.org/base-metadata/1.0 qgis-base-metadata.xsd">
3+
<identifier>1234</identifier>
4+
<parentidentifier>xyz</parentidentifier>
5+
<language>en-CA</language>
6+
<type>dataset</type>
7+
<title>roads</title>
8+
<abstract>my roads</abstract>
9+
<keywords vocabulary="gmd:topicCategory">
10+
<keyword>natural</keyword>
11+
</keywords>
12+
<keywords vocabulary="GEMET">
13+
<keyword>kw1</keyword>
14+
<keyword>kw2</keyword>
15+
</keywords>
16+
<contact>
17+
<name>John Smith</name>
18+
<organization>ACME</organization>
19+
<position>staff</position>
20+
<contactAddress>
21+
<type>postal</type>
22+
<address>123 Main Street</address>
23+
<city>anycity</city>
24+
<administrativearea>anyprovince</administrativearea>
25+
<postalcode>90210</postalcode>
26+
<country>Canada</country>
27+
</contactAddress>
28+
<voice>xx.xxx.xxx.xxxx</voice>
29+
<fax>xx.xxx.xxx.xxxx</fax>
30+
<email>foo@example.org</email>
31+
<role>pointOfContact</role>
32+
</contact>
33+
<links>
34+
<link name="geonode:roads" type="OGC:WMS" description="my GeoNode road layer" url="http://example.org/wms"/>
35+
<link name="geonode:roads" type="OGC:WFS" description="my GeoNode road layer" url="http://example.org/wfs"/>
36+
<link name="roads" type="WWW:LINK" description="full dataset download" url="http://example.org/roads.tgz" format="ESRI Shapefile" mimeType="application/gzip" size="283676"/>
37+
</links>
38+
<history>Buffering</history>
39+
<history>Reprojecting</history>
40+
</ResourceMetadata>

‎resources/qgis-base-metadata.xsd

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
###############################################################################
4+
#
5+
# Copyright (C) 2017 Tom Kralidis (tomkralidis@gmail.com)
6+
# Copyright (C) 2017 Angelos Tzotsos (gcpp.kalxas@gmail.com)
7+
#
8+
# This source is free software; you can redistribute it and/or modify it under
9+
# the terms of the GNU General Public License as published by the Free
10+
# Software Foundation; either version 2 of the License, or (at your option)
11+
# any later version.
12+
#
13+
# This code is distributed in the hope that it will be useful, but WITHOUT ANY
14+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15+
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
16+
# details.
17+
#
18+
# You should have received a copy of the GNU General Public License along
19+
# with this program; if not, write to the Free Software Foundation, Inc.,
20+
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21+
#
22+
###############################################################################
23+
-->
24+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:rm="http://qgis.org/base-metadata/1.0" targetNamespace="http://qgis.org/base-metadata/1.0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
25+
<xs:element name="BaseMetadata" type="rm:BaseMetadataType">
26+
<xs:annotation>
27+
<xs:appinfo>QGIS Base Metadata Schema</xs:appinfo>
28+
<xs:documentation>Copyright (C) 2017 Tom Kralidis (tomkralidis@gmail.com)</xs:documentation>
29+
<xs:documentation>Copyright (C) 2017 Angelos Tzotsos (gcpp.kalxas@gmail.com)</xs:documentation>
30+
</xs:annotation>
31+
</xs:element>
32+
<xs:complexType name="BaseMetadataType">
33+
<xs:sequence>
34+
<xs:element name="identifier" type="xs:string">
35+
<xs:annotation>
36+
<xs:documentation>Reference, URI, URL or some other mechanism to identify a given resource. </xs:documentation>
37+
</xs:annotation>
38+
</xs:element>
39+
<xs:element name="parentidentifier" type="xs:string" minOccurs="0">
40+
<xs:annotation>
41+
<xs:documentation>Reference, URI, URL or some other mechanism that that a given resource is a part of (child).</xs:documentation>
42+
</xs:annotation>
43+
</xs:element>
44+
<xs:element name="language" type="xs:string">
45+
<xs:annotation>
46+
<xs:documentation>Human language associated with a given resource. While a formal vocabulary is not imposed, it is advised to use ISO 3166/ISO 639.</xs:documentation>
47+
</xs:annotation>
48+
</xs:element>
49+
<xs:element name="type" type="xs:string">
50+
<xs:annotation>
51+
<xs:documentation>Nature of a given resource. While a formal vocabulary is not imposed, it is advised to use the ISO 19115 MD_ScopeCode.</xs:documentation>
52+
</xs:annotation>
53+
</xs:element>
54+
<xs:element name="title" type="xs:string">
55+
<xs:annotation>
56+
<xs:documentation>Human readable name of a given resource typically displayed in search results.</xs:documentation>
57+
</xs:annotation>
58+
</xs:element>
59+
<xs:element name="abstract" type="xs:string">
60+
<xs:annotation>
61+
<xs:documentation>Description of a given resource.</xs:documentation>
62+
</xs:annotation>
63+
</xs:element>
64+
<xs:element name="keywords" type="rm:keywordsType" minOccurs="0" maxOccurs="unbounded">
65+
<xs:annotation>
66+
<xs:documentation>Set of descriptive keywords associated with a given resource.</xs:documentation>
67+
</xs:annotation>
68+
</xs:element>
69+
<xs:element name="contact" type="rm:contactType" maxOccurs="unbounded">
70+
<xs:annotation>
71+
<xs:documentation>Contact person/entity associated with a given resource.</xs:documentation>
72+
</xs:annotation>
73+
</xs:element>
74+
<xs:element name="links" type="rm:linksType">
75+
<xs:annotation>
76+
<xs:documentation>Set of online resources associated with a given resource.</xs:documentation>
77+
</xs:annotation>
78+
</xs:element>
79+
<xs:element name="history" type="xs:string" minOccurs="0" maxOccurs="unbounded">
80+
<xs:annotation>
81+
<xs:documentation>Freeform description of the history or lineage of the resource.</xs:documentation>
82+
</xs:annotation>
83+
</xs:element>
84+
</xs:sequence>
85+
<xs:attribute name="version" use="required" fixed="1.0">
86+
<xs:annotation>
87+
<xs:documentation>Version of QGIS Base Metadata schema used. </xs:documentation>
88+
</xs:annotation>
89+
</xs:attribute>
90+
</xs:complexType>
91+
<xs:complexType name="keywordsType">
92+
<xs:sequence>
93+
<xs:element name="keyword" maxOccurs="unbounded">
94+
<xs:annotation>
95+
<xs:documentation>Descriptive keyword associated with a resource. While a formal vocabulary is not imposed, it is advised to use rm:keywords/@vocabulary to identify a codelist or applicable vocabulary.</xs:documentation>
96+
</xs:annotation>
97+
</xs:element>
98+
</xs:sequence>
99+
<xs:attribute name="vocabulary" type="xs:string">
100+
<xs:annotation>
101+
<xs:documentation>Reference (URI/URL preferred) to a codelist or vocabulary associated with keyword list.</xs:documentation>
102+
</xs:annotation>
103+
</xs:attribute>
104+
</xs:complexType>
105+
<xs:complexType name="contactType">
106+
<xs:sequence>
107+
<xs:element name="name" type="xs:string">
108+
<xs:annotation>
109+
<xs:documentation>Name of contact.</xs:documentation>
110+
</xs:annotation>
111+
</xs:element>
112+
<xs:element name="organization" type="xs:string" minOccurs="0">
113+
<xs:annotation>
114+
<xs:documentation>Organization contact belongs to/represents.</xs:documentation>
115+
</xs:annotation>
116+
</xs:element>
117+
<xs:element name="position" type="xs:string" minOccurs="0">
118+
<xs:annotation>
119+
<xs:documentation>Position/title of contact.</xs:documentation>
120+
</xs:annotation>
121+
</xs:element>
122+
<xs:element name="contactAddress" type="rm:addressType" minOccurs="0" maxOccurs="unbounded">
123+
<xs:annotation>
124+
<xs:documentation>Address associated with a given contact.</xs:documentation>
125+
</xs:annotation>
126+
</xs:element>
127+
<xs:element name="voice" type="xs:string" minOccurs="0">
128+
<xs:annotation>
129+
<xs:documentation>Voice telephone.</xs:documentation>
130+
</xs:annotation>
131+
</xs:element>
132+
<xs:element name="fax" type="xs:string" minOccurs="0">
133+
<xs:annotation>
134+
<xs:documentation>Facsimile telephone.</xs:documentation>
135+
</xs:annotation>
136+
</xs:element>
137+
<xs:element name="email" type="xs:string" minOccurs="0">
138+
<xs:annotation>
139+
<xs:documentation>Electronic mail address (note, do not include mailto: protocol as part of the email address).</xs:documentation>
140+
</xs:annotation>
141+
</xs:element>
142+
<xs:element name="role" type="xs:string" minOccurs="0">
143+
<xs:annotation>
144+
<xs:documentation>Role of contact. While no vocabulary is imposed, it is advised to use ISO 19115 CI_RoleCode.</xs:documentation>
145+
</xs:annotation>
146+
</xs:element>
147+
</xs:sequence>
148+
</xs:complexType>
149+
<xs:complexType name="addressType">
150+
<xs:sequence>
151+
<xs:element name="type" type="xs:string" minOccurs="0">
152+
<xs:annotation>
153+
<xs:documentation>Type of address (e.g. 'postal').</xs:documentation>
154+
</xs:annotation>
155+
</xs:element>
156+
<xs:element name="address" type="xs:string" minOccurs="0">
157+
<xs:annotation>
158+
<xs:documentation>Physical address.</xs:documentation>
159+
</xs:annotation>
160+
</xs:element>
161+
<xs:element name="city" type="xs:string" minOccurs="0">
162+
<xs:annotation>
163+
<xs:documentation>City.</xs:documentation>
164+
</xs:annotation>
165+
</xs:element>
166+
<xs:element name="administrativearea" type="xs:string" minOccurs="0">
167+
<xs:annotation>
168+
<xs:documentation>Administrative area (state, province/territory, etc.).</xs:documentation>
169+
</xs:annotation>
170+
</xs:element>
171+
<xs:element name="postalcode" type="xs:string" minOccurs="0">
172+
<xs:annotation>
173+
<xs:documentation>Postal code.</xs:documentation>
174+
</xs:annotation>
175+
</xs:element>
176+
<xs:element name="country" type="xs:string" minOccurs="0">
177+
<xs:annotation>
178+
<xs:documentation>Country.</xs:documentation>
179+
</xs:annotation>
180+
</xs:element>
181+
</xs:sequence>
182+
</xs:complexType>
183+
<xs:complexType name="linksType">
184+
<xs:sequence>
185+
<xs:element name="link" type="rm:linkType" maxOccurs="unbounded">
186+
<xs:annotation>
187+
<xs:documentation>Online resource associated with a given resource. Attribute definitions:
188+
* name: short name (like WMS layer name)
189+
* type: link type. Strongly suggested to use values from the 'identifier' column in https://github.com/OSGeo/Cat-Interop/blob/master/LinkPropertyLookupTable.csv
190+
* description: abstract text about link
191+
* url: endpoint. If the URL is an OWS server, specify the *base* URL only without parameters like service=xxx.....
192+
* format: format specification of online resource. Strongly suggested to use GDAL/OGR format values
193+
* mimeType: MIME type representative of the online resource response (image/png, application/json, etc.)
194+
* size: estimated size (in bytes) of the online resource response
195+
</xs:documentation>
196+
</xs:annotation>
197+
</xs:element>
198+
</xs:sequence>
199+
</xs:complexType>
200+
<xs:complexType name="linkType">
201+
<xs:attributeGroup ref="rm:linkAttrs"/>
202+
</xs:complexType>
203+
<xs:attributeGroup name="linkAttrs">
204+
<xs:attribute name="name" type="xs:string" use="required"/>
205+
<xs:attribute name="type" type="xs:string" use="required"/>
206+
<xs:attribute name="url" type="xs:anyURI" use="required"/>
207+
<xs:attribute name="description" type="xs:string" use="optional"/>
208+
<xs:attribute name="format" type="xs:string" use="optional"/>
209+
<xs:attribute name="mimeType" type="xs:string" use="optional"/>
210+
<xs:attribute name="size" type="xs:string" use="optional"/>
211+
</xs:attributeGroup>
212+
</xs:schema>

‎resources/qgis-project-metadata.xml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ResourceMetadata xmlns="http://qgis.org/project-metadata/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://qgis.org/project-metadata/1.0 qgis-project-metadata.xsd">
3+
<identifier>1234</identifier>
4+
<parentidentifier>xyz</parentidentifier>
5+
<language>en-CA</language>
6+
<type>document</type>
7+
<title>roads</title>
8+
<abstract>my project</abstract>
9+
<author>Gary Sherman</author>
10+
<creationDateTime>2017-08-05 13:15:02</creationDateTime>
11+
<keywords vocabulary="gmd:topicCategory">
12+
<keyword>natural</keyword>
13+
</keywords>
14+
<keywords vocabulary="GEMET">
15+
<keyword>kw1</keyword>
16+
<keyword>kw2</keyword>
17+
</keywords>
18+
<contact>
19+
<name>John Smith</name>
20+
<organization>ACME</organization>
21+
<position>staff</position>
22+
<contactAddress>
23+
<type>postal</type>
24+
<address>123 Main Street</address>
25+
<city>anycity</city>
26+
<administrativearea>anyprovince</administrativearea>
27+
<postalcode>90210</postalcode>
28+
<country>Canada</country>
29+
</contactAddress>
30+
<voice>xx.xxx.xxx.xxxx</voice>
31+
<fax>xx.xxx.xxx.xxxx</fax>
32+
<email>foo@example.org</email>
33+
<role>pointOfContact</role>
34+
</contact>
35+
<links>
36+
<link name="geonode:roads" type="OGC:WMS" description="my GeoNode road layer" url="http://example.org/wms"/>
37+
<link name="geonode:roads" type="OGC:WFS" description="my GeoNode road layer" url="http://example.org/wfs"/>
38+
<link name="roads" type="WWW:LINK" description="full dataset download" url="http://example.org/roads.tgz" format="ESRI Shapefile" mimeType="application/gzip" size="283676"/>
39+
</links>
40+
<history>Buffering</history>
41+
<history>Reprojecting</history>
42+
</ResourceMetadata>

‎resources/qgis-project-metadata.xsd

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
###############################################################################
4+
#
5+
# Copyright (C) 2017 Tom Kralidis (tomkralidis@gmail.com)
6+
# Copyright (C) 2017 Angelos Tzotsos (gcpp.kalxas@gmail.com)
7+
#
8+
# This source is free software; you can redistribute it and/or modify it under
9+
# the terms of the GNU General Public License as published by the Free
10+
# Software Foundation; either version 2 of the License, or (at your option)
11+
# any later version.
12+
#
13+
# This code is distributed in the hope that it will be useful, but WITHOUT ANY
14+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15+
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
16+
# details.
17+
#
18+
# You should have received a copy of the GNU General Public License along
19+
# with this program; if not, write to the Free Software Foundation, Inc.,
20+
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21+
#
22+
###############################################################################
23+
-->
24+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:rm="http://qgis.org/project-metadata/1.0" targetNamespace="http://qgis.org/project-metadata/1.0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
25+
<xs:include schemaLocation="qgis-base-metadata.xsd"/>
26+
<xs:element name="ProjectMetadata" type="rm:ProjectMetadataType" base="rm:BaseMetadataType">
27+
<xs:annotation>
28+
<xs:appinfo>QGIS Project Metadata Schema</xs:appinfo>
29+
<xs:documentation>Copyright (C) 2017 Tom Kralidis (tomkralidis@gmail.com)</xs:documentation>
30+
<xs:documentation>Copyright (C) 2017 Angelos Tzotsos (gcpp.kalxas@gmail.com)</xs:documentation>
31+
</xs:annotation>
32+
</xs:element>
33+
<xs:complexType name="ProjectMetadataType">
34+
<xs:sequence>
35+
<xs:element name="author" type="xs:string">
36+
<xs:annotation>
37+
<xs:documentation>Project author.</xs:documentation>
38+
</xs:annotation>
39+
</xs:element>
40+
<xs:element name="creationDateTime" type="xs:dateTime">
41+
<xs:annotation>
42+
<xs:documentation>Project creation date/time.</xs:documentation>
43+
</xs:annotation>
44+
</xs:element>
45+
</xs:sequence>
46+
<xs:attribute name="version" use="required" fixed="1.0">
47+
<xs:annotation>
48+
<xs:documentation>Version of QGIS Project Metadata schema used. </xs:documentation>
49+
</xs:annotation>
50+
</xs:attribute>
51+
</xs:complexType>
52+
</xs:schema>

‎resources/qgis-resource-metadata.xsd

Lines changed: 2 additions & 172 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
###############################################################################
2323
-->
2424
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:rm="http://qgis.org/resource-metadata/1.0" targetNamespace="http://qgis.org/resource-metadata/1.0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
25-
<xs:element name="ResourceMetadata" type="rm:ResourceMetadataType">
25+
<xs:include schemaLocation="qgis-base-metadata.xsd"/>
26+
<xs:element name="ResourceMetadata" type="rm:ResourceMetadataType" base="rm:BaseMetadataType">
2627
<xs:annotation>
2728
<xs:appinfo>QGIS Resource Metadata Schema</xs:appinfo>
2829
<xs:documentation>Copyright (C) 2017 Tom Kralidis (tomkralidis@gmail.com)</xs:documentation>
@@ -31,41 +32,6 @@
3132
</xs:element>
3233
<xs:complexType name="ResourceMetadataType">
3334
<xs:sequence>
34-
<xs:element name="identifier" type="xs:string">
35-
<xs:annotation>
36-
<xs:documentation>Reference, URI, URL or some other mechanism to identify a given resource. </xs:documentation>
37-
</xs:annotation>
38-
</xs:element>
39-
<xs:element name="parentidentifier" type="xs:string" minOccurs="0">
40-
<xs:annotation>
41-
<xs:documentation>Reference, URI, URL or some other mechanism that that a given resource is a part of (child).</xs:documentation>
42-
</xs:annotation>
43-
</xs:element>
44-
<xs:element name="language" type="xs:string">
45-
<xs:annotation>
46-
<xs:documentation>Human language associated with a given resource. While a formal vocabulary is not imposed, it is advised to use ISO 3166/ISO 639.</xs:documentation>
47-
</xs:annotation>
48-
</xs:element>
49-
<xs:element name="type" type="xs:string">
50-
<xs:annotation>
51-
<xs:documentation>Nature of a given resource. While a formal vocabulary is not imposed, it is advised to use the ISO 19115 MD_ScopeCode.</xs:documentation>
52-
</xs:annotation>
53-
</xs:element>
54-
<xs:element name="title" type="xs:string">
55-
<xs:annotation>
56-
<xs:documentation>Human readable name of a given resource typically displayed in search results.</xs:documentation>
57-
</xs:annotation>
58-
</xs:element>
59-
<xs:element name="abstract" type="xs:string">
60-
<xs:annotation>
61-
<xs:documentation>Description of a given resource.</xs:documentation>
62-
</xs:annotation>
63-
</xs:element>
64-
<xs:element name="keywords" type="rm:keywordsType" minOccurs="0" maxOccurs="unbounded">
65-
<xs:annotation>
66-
<xs:documentation>Set of descriptive keywords associated with a given resource.</xs:documentation>
67-
</xs:annotation>
68-
</xs:element>
6935
<xs:element name="fees" type="xs:string" minOccurs="0">
7036
<xs:annotation>
7137
<xs:documentation>Any fees associated with a given resource.</xs:documentation>
@@ -108,21 +74,6 @@
10874
<xs:documentation>Spatial and temporal extents associated with a given resource.</xs:documentation>
10975
</xs:annotation>
11076
</xs:element>
111-
<xs:element name="contact" type="rm:contactType" maxOccurs="unbounded">
112-
<xs:annotation>
113-
<xs:documentation>Contact person/entity associated with a given resource.</xs:documentation>
114-
</xs:annotation>
115-
</xs:element>
116-
<xs:element name="links" type="rm:linksType">
117-
<xs:annotation>
118-
<xs:documentation>Set of online resources associated with a given resource.</xs:documentation>
119-
</xs:annotation>
120-
</xs:element>
121-
<xs:element name="history" type="xs:string" minOccurs="0" maxOccurs="unbounded">
122-
<xs:annotation>
123-
<xs:documentation>Freeform description of the history or lineage of the resource.</xs:documentation>
124-
</xs:annotation>
125-
</xs:element>
12677
</xs:sequence>
12778
<xs:attribute name="version" use="required" fixed="1.0">
12879
<xs:annotation>
@@ -141,20 +92,6 @@
14192
</xs:extension>
14293
</xs:simpleContent>
14394
</xs:complexType>
144-
<xs:complexType name="keywordsType">
145-
<xs:sequence>
146-
<xs:element name="keyword" maxOccurs="unbounded">
147-
<xs:annotation>
148-
<xs:documentation>Descriptive keyword associated with a resource. While a formal vocabulary is not imposed, it is advised to use rm:keywords/@vocabulary to identify a codelist or applicable vocabulary.</xs:documentation>
149-
</xs:annotation>
150-
</xs:element>
151-
</xs:sequence>
152-
<xs:attribute name="vocabulary" type="xs:string">
153-
<xs:annotation>
154-
<xs:documentation>Reference (URI/URL preferred) to a codelist or vocabulary associated with keyword list.</xs:documentation>
155-
</xs:annotation>
156-
</xs:attribute>
157-
</xs:complexType>
15895
<xs:complexType name="extentType">
15996
<xs:sequence>
16097
<xs:element name="spatial" type="rm:spatialType" maxOccurs="unbounded">
@@ -240,111 +177,4 @@
240177
</xs:annotation>
241178
</xs:attribute>
242179
</xs:complexType>
243-
<xs:complexType name="contactType">
244-
<xs:sequence>
245-
<xs:element name="name" type="xs:string">
246-
<xs:annotation>
247-
<xs:documentation>Name of contact.</xs:documentation>
248-
</xs:annotation>
249-
</xs:element>
250-
<xs:element name="organization" type="xs:string" minOccurs="0">
251-
<xs:annotation>
252-
<xs:documentation>Organization contact belongs to/represents.</xs:documentation>
253-
</xs:annotation>
254-
</xs:element>
255-
<xs:element name="position" type="xs:string" minOccurs="0">
256-
<xs:annotation>
257-
<xs:documentation>Position/title of contact.</xs:documentation>
258-
</xs:annotation>
259-
</xs:element>
260-
<xs:element name="contactAddress" type="rm:addressType" minOccurs="0" maxOccurs="unbounded">
261-
<xs:annotation>
262-
<xs:documentation>Address associated with a given contact.</xs:documentation>
263-
</xs:annotation>
264-
</xs:element>
265-
<xs:element name="voice" type="xs:string" minOccurs="0">
266-
<xs:annotation>
267-
<xs:documentation>Voice telephone.</xs:documentation>
268-
</xs:annotation>
269-
</xs:element>
270-
<xs:element name="fax" type="xs:string" minOccurs="0">
271-
<xs:annotation>
272-
<xs:documentation>Facsimile telephone.</xs:documentation>
273-
</xs:annotation>
274-
</xs:element>
275-
<xs:element name="email" type="xs:string" minOccurs="0">
276-
<xs:annotation>
277-
<xs:documentation>Electronic mail address (note, do not include mailto: protocol as part of the email address).</xs:documentation>
278-
</xs:annotation>
279-
</xs:element>
280-
<xs:element name="role" type="xs:string" minOccurs="0">
281-
<xs:annotation>
282-
<xs:documentation>Role of contact. While no vocabulary is imposed, it is advised to use ISO 19115 CI_RoleCode.</xs:documentation>
283-
</xs:annotation>
284-
</xs:element>
285-
</xs:sequence>
286-
</xs:complexType>
287-
<xs:complexType name="addressType">
288-
<xs:sequence>
289-
<xs:element name="type" type="xs:string" minOccurs="0">
290-
<xs:annotation>
291-
<xs:documentation>Type of address (e.g. 'postal').</xs:documentation>
292-
</xs:annotation>
293-
</xs:element>
294-
<xs:element name="address" type="xs:string" minOccurs="0">
295-
<xs:annotation>
296-
<xs:documentation>Physical address.</xs:documentation>
297-
</xs:annotation>
298-
</xs:element>
299-
<xs:element name="city" type="xs:string" minOccurs="0">
300-
<xs:annotation>
301-
<xs:documentation>City.</xs:documentation>
302-
</xs:annotation>
303-
</xs:element>
304-
<xs:element name="administrativearea" type="xs:string" minOccurs="0">
305-
<xs:annotation>
306-
<xs:documentation>Administrative area (state, province/territory, etc.).</xs:documentation>
307-
</xs:annotation>
308-
</xs:element>
309-
<xs:element name="postalcode" type="xs:string" minOccurs="0">
310-
<xs:annotation>
311-
<xs:documentation>Postal code.</xs:documentation>
312-
</xs:annotation>
313-
</xs:element>
314-
<xs:element name="country" type="xs:string" minOccurs="0">
315-
<xs:annotation>
316-
<xs:documentation>Country.</xs:documentation>
317-
</xs:annotation>
318-
</xs:element>
319-
</xs:sequence>
320-
</xs:complexType>
321-
<xs:complexType name="linksType">
322-
<xs:sequence>
323-
<xs:element name="link" type="rm:linkType" maxOccurs="unbounded">
324-
<xs:annotation>
325-
<xs:documentation>Online resource associated with a given resource. Attribute definitions:
326-
* name: short name (like WMS layer name)
327-
* type: link type. Strongly suggested to use values from the 'identifier' column in https://github.com/OSGeo/Cat-Interop/blob/master/LinkPropertyLookupTable.csv
328-
* description: abstract text about link
329-
* url: endpoint. If the URL is an OWS server, specify the *base* URL only without parameters like service=xxx.....
330-
* format: format specification of online resource. Strongly suggested to use GDAL/OGR format values
331-
* mimeType: MIME type representative of the online resource response (image/png, application/json, etc.)
332-
* size: estimated size (in bytes) of the online resource response
333-
</xs:documentation>
334-
</xs:annotation>
335-
</xs:element>
336-
</xs:sequence>
337-
</xs:complexType>
338-
<xs:complexType name="linkType">
339-
<xs:attributeGroup ref="rm:linkAttrs"/>
340-
</xs:complexType>
341-
<xs:attributeGroup name="linkAttrs">
342-
<xs:attribute name="name" type="xs:string" use="required"/>
343-
<xs:attribute name="type" type="xs:string" use="required"/>
344-
<xs:attribute name="url" type="xs:anyURI" use="required"/>
345-
<xs:attribute name="description" type="xs:string" use="optional"/>
346-
<xs:attribute name="format" type="xs:string" use="optional"/>
347-
<xs:attribute name="mimeType" type="xs:string" use="optional"/>
348-
<xs:attribute name="size" type="xs:string" use="optional"/>
349-
</xs:attributeGroup>
350180
</xs:schema>

‎src/core/metadata/qgsabstractmetadatabase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class QDomDocument;
4141
* metadata formats to QgsAbstractMetadataBase may result in a loss of information.
4242
*
4343
* This class is designed to follow the specifications detailed in
44-
* the schema definition available at resources/qgis-resource-metadata.xsd
44+
* the schema definition available at resources/qgis-base-metadata.xsd
4545
* within the QGIS source code.
4646
*
4747
* Metadata can be validated through the use of QgsAbstractMetadataBaseValidator

‎src/core/metadata/qgsprojectmetadata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* metadata formats to QgsProjectMetadata may result in a loss of information.
4040
*
4141
* This class is designed to follow the specifications detailed in
42-
* the schema definition available at resources/qgis-resource-metadata.xsd
42+
* the schema definition available at resources/qgis-project-metadata.xsd
4343
* within the QGIS source code.
4444
*
4545
* Metadata can be validated through the use of QgsLayerMetadataValidator

0 commit comments

Comments
 (0)
Please sign in to comment.