<?xml version="1.0" encoding="UTF-8"?>
<!-- BoreholeML version 3.1.0 (Header) - date: 2024-07-01 - XML schema document created manually by Taskforce 1 of AK BML -->
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gn="urn:x-inspire:specification:gmlas:GeographicalNames:3.0" xmlns:bmlh="https://schemas.bgr.de/boreholeml/3.1" targetNamespace="https://schemas.bgr.de/boreholeml/3.1" elementFormDefault="qualified" version="BoreholeML 3.1.0 (Header) - date: 2024-07-01 - XML schema document created manually by Taskforce 1 of AK BML">
	<import namespace="http://www.isotc211.org/2005/gmd" schemaLocation="http://schemas.opengis.net/iso/19139/20070417/gmd/gmd.xsd"/>
	<import namespace="http://www.opengis.net/gml/3.2" schemaLocation="http://schemas.opengis.net/gml/3.2.1/gml.xsd"/>
	<import namespace="urn:x-inspire:specification:gmlas:GeographicalNames:3.0" schemaLocation="https://inspire.ec.europa.eu/schemas/gn/3.0/GeographicalNames.xsd"/>
	<element name="BoreholeHeader" type="bmlh:BoreholeHeaderType" substitutionGroup="gml:AbstractFeature">
		<annotation>
			<documentation>[de] Enthält die Daten der Bohrung. Das XML-Attribut gml:id des Borehole-Elements selbst dient hier als eindeutiger technischer Identifikator im Gesamtdatensatz. Am Anfang von gml:id darf keine Ziffer, kein Bindestrich und kein Punkt stehen. gml:id kann aus anderen Elementen zusammengesetzt werden, beispielsweise in der Form: databaseSource_id. [en] Contains the borehole data. The XML attribute gml:id of the borehole elment itself is used here as a unique technical identifier in the overall data set. The gml:id must not begin with a number, a hyphen or a period. gml:id can be composed of other elements, for example in the form: databaseSource_id.</documentation>
		</annotation>
	</element>
	<complexType name="BoreholeHeaderType">
		<complexContent>
			<extension base="gml:AbstractFeatureType">
				<sequence>
					<element name="location" type="gml:PointPropertyType">
						<annotation>
							<documentation>[de] GML-Geometrie der Position des Bohrloch-Ansatzpunktes. Enthält ein Koordinaten-Tripel, bezogen auf das definierte Koordinaten- und Höhensystem. Das XML-Attribut gml:id des location-Elements dient hier als eindeutiger technischer Identifikator im Gesamtdatensatz. Am Anfang von gml:id darf keine Ziffer, kein Bindestrich und kein Punkt stehen. gml:id kann aus anderen Elementen sowie konstanten Suffixes zusammengesetzt werden, beispielsweise in der Form: databaseSource_id_BML_LOCATION. [en] GML-geometry of the location of the borehole starting point. Contains a coordinate triple related to the given coordinate- and elevation reference system. The XML attribute gml:id of the location element is used here as a unique technical identifier in the overall data set. gml:id must not begin with a number, a hyphen or a period. gml:id can be composed of other elements and constant suffixes, for example in the form: databaseSource_id_BML_LOCATION.</documentation>
						</annotation>
					</element>
					<element name="boreholePath" type="gml:CurvePropertyType">
						<annotation>
							<documentation>[de] GML-Geometrie des Bohrlochverlaufs (Bohrpfad) in Koordinatentripeln bezogen auf das definierte Koordinaten- und Höhensystem. Das XML-Attribut gml:id des boreholePath-Elements dient hier als eindeutiger technischer Identifikator im Gesamtdatensatz. Am Anfang von gml:id darf keine Ziffer, kein Bindestrich und kein Punkt stehen. gml:id kann aus anderen Elementen sowie konstanten Suffixes zusammengesetzt werden, beispielsweise in der Form: databaseSource_id_BML_BOREHOLEPATH. [en] GML-geometry of the borehole path in coordinate triples related to the given coordinate- and elevation reference system. The XML attribute gml:id of the boreholePath element is used here as a unique technical identifier in the overall data set. gml:id must not begin with a number, a hyphen or a period. gml:id can be composed of other elements and constant suffixes, for example in the form: databaseSource_id_BML_BOREHOLEPATH.</documentation>
						</annotation>
					</element>
					<element name="id" type="string">
						<annotation>
							<documentation>[de] Eindeutiger fachlicher Identifikator (ID) der Bohrung entsprechend der Datenquelle. [en] Unique identifier (ID) of the borehole according to the data source.</documentation>
						</annotation>
					</element>
					<element name="shortName" type="gmd:LocalisedCharacterString_PropertyType" minOccurs="0">
						<annotation>
							<documentation>[de] Kurzname der Bohrung. [en] Short name of the borehole.</documentation>
						</annotation>
					</element>
					<element name="fullName" type="gmd:LocalisedCharacterString_PropertyType">
						<annotation>
							<documentation>[de] Vollständiger Name der Bohrung. [en] Full name of the borehole.</documentation>
						</annotation>
					</element>
					<element name="boreholeStatus" type="gml:CodeType">
						<annotation>
							<documentation>[de] Aktueller Status der Bohrung. [en] Current status of the borehole.</documentation>
						</annotation>
					</element>
					<element name="totalLength" type="gml:LengthType">
						<annotation>
							<documentation>[de] Die Aufschlusslänge der Bohrung in Meter. Abstand des Endpunktes der Bohrung vom Ansatzpunkt, entlang des Bohrpfades gemessen. [en] Length along the borehole path in meter measured from the drilling start point to the end point.</documentation>
						</annotation>
					</element>
					<element name="databaseSource" type="gml:CodeType">
						<annotation>
							<documentation>[de] Kurzbezeichnung der Quelldatenbank. [en] Short name of the source database.</documentation>
						</annotation>
					</element>
					<element name="exportDate" type="date">
						<annotation>
							<documentation>[de] Datum des Auszuges aus der Datenquelle. [en] Date of the export from the data source.</documentation>
						</annotation>
					</element>
					<element name="language" type="gmd:LanguageCode_PropertyType">
						<annotation>
							<documentation>[de] Sprachcode nach ISO 639-3 oder ISO 639-5. [en] Language code according to ISO 639-3 or ISO 639-5.</documentation>
						</annotation>
					</element>
					<element name="codingStandard" type="gml:CodeType">
						<annotation>
							<documentation>[de] Standard, nach dem die Schichtdaten in der Datenquelle kodiert sind. [en] Standard used for coding the borehole strata data in the data source.</documentation>
						</annotation>
					</element>
					<element name="organisation" type="bmlh:BoreholeProviderPropertyType">
						<annotation>
							<documentation>[de] Daten abgebende Organisation. Erster Ansprechpartner für weitere Informationen. [en] Data providing organisation. First point of contact for further information.</documentation>
						</annotation>
					</element>
					<element name="boreholeWebLink" type="anyURI" minOccurs="0">
						<annotation>
							<documentation>[de] URL einer Webseite mit den Daten der Bohrung. [en] URL of a website with the borehole data.</documentation>
						</annotation>
					</element>
					<element name="project" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Name des Projektes, in welchem die Bohrung abgeteuft worden ist. [en] Name of the project the borehole was drilled for.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="string">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="owner" nillable="true">
						<annotation>
							<documentation>[de] Eigentümer der Bohrung. [en] Owner of the borehole.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="string">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="locationName" nillable="true">
						<annotation>
							<documentation>[de] Bezeichnung des Standorts der Bohrung, z.B. Ortschaft oder Gemarkung. [en] Name of the borehole location, e.g. quarter or district.</documentation>
						</annotation>
						<complexType>
							<sequence>
								<element ref="gn:GeographicalName"/>
							</sequence>
							<attribute name="nilReason" type="gml:NilReasonType"/>
						</complexType>
					</element>
					<element name="origin" nillable="true">
						<annotation>
							<documentation>[de] Originale Koordinaten und Daten zur Lage des Bohransatzpunktes entsprechend den Quelldaten. [en] Original coordinates and location data of the borehole according to the source data.</documentation>
						</annotation>
						<complexType>
							<sequence>
								<element ref="bmlh:Origin"/>
							</sequence>
							<attribute name="nilReason" type="gml:NilReasonType"/>
						</complexType>
					</element>
					<element name="boreholeDescription" type="gmd:LocalisedCharacterString_PropertyType" minOccurs="0">
						<annotation>
							<documentation>[de] Allgemeine oder weitere Angaben zur Bohrung. [en] General or further information about the borehole.</documentation>
						</annotation>
					</element>
					<element name="drillingStartDate" type="gml:CalDate" minOccurs="0">
						<annotation>
							<documentation>[de] Datum des Beginns der Bohrungsarbeiten (tages-, monats- oder jahresgenau). [en] Date of drilling start (accuracy by day, month or year).</documentation>
						</annotation>
					</element>
					<element name="drillingEndDate" type="gml:CalDate" minOccurs="0">
						<annotation>
							<documentation>[de] Datum des Endes der Bohrungsarbeiten (tages-, monats- oder jahresgenau). [en] Date of drilling end (accuracy by day, month or year).</documentation>
						</annotation>
					</element>
					<element name="drillingDate" nillable="true">
						<annotation>
							<documentation>[de] Datum der Bohrung (tages-, monats- oder jahresgenau), falls keine genaueren Angaben zum Beginn oder Ende der Bohrungsarbeiten gemacht werden können. [en] Date of drilling (accuracy by day, month or year), in case no more precise information can be provided on the start or end of the drilling work.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CalDate">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="drillingMethod" nillable="true">
						<annotation>
							<documentation>[de] Während der Bohrung verwendetes Bohrverfahren. Bei mehreren Bohrverfahren in einer Bohrung wird ein entsprechendes Kombibohrverfahren aus der Begriffsliste verwendet. [en] Drilling method used during drilling. If several drilling methods are applied in one borehole, a corresponding combined drilling method from the codelist is used.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="drillingPurpose" nillable="true">
						<annotation>
							<documentation>[de] Zweck bzw. Fachgebiet, für welches die Bohrung abgeteuft worden ist. [en] Purpose for sinking the borehole.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="groundwaterEncountered" nillable="true">
						<annotation>
							<documentation>[de] Information, ob Grundwasser angetroffen wurde oder nicht. [en] Information whether groundwater was encountered or not.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="boolean">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="lastHorizon" type="gmd:LocalisedCharacterString_PropertyType" nillable="true">
						<annotation>
							<documentation>[de] Lithostratigraphische Einstufung der letzten bei der Bohrung erschlossenen Schicht, wie in der Klasse Stratigraphy angegeben. [en] Lithostratigraphic classification of the last layer encountered in the borehole, as given in the class Stratigraphy.</documentation>
						</annotation>
					</element>
					<element name="layerDataLegalAvail" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Rechtliche Verfügbarkeit von digitalen Schichtdaten. [en] Legal availability of digital strata data.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="layerDataTechAvail" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Technische Verfügbarkeit von digitalen Schichtdaten. [en] Technical availability of digital strata data.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="installationLegalAvail" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Rechtliche Verfügbarkeit von digitalen Ausbaudaten. [en] Legal availability of digital borehole installation data.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="installationTechAvail" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Technische Verfügbarkeit von digitalen Ausbaudaten. [en] Technical availability of digital borehole installation data.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="groundwaterLevelDataLegalAvail" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Rechtliche Verfügbarkeit von digitalen Grundwasserstandsdaten. [en] Legal availability of digital groundwater level data.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="groundwaterLevelDataTechAvail" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Technische Verfügbarkeit von digitalen Grundwasserstandsdaten. [en] Technical availability of digital groundwater level data.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="boreholeMeasurementLegalAvail" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Rechtliche Verfügbarkeit von digitalen Bohrungsmessdaten (Logs). [en] Legal availability of digital borehole measurements data (logging data).</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="boreholeMeasurementTechAvail" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Technische Verfügbarkeit von digitalen Bohrungsmessdaten (Logs). [en] Technical availability of digital borehole measurement data (logging data).</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="archiveDataLegalAvail" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Rechtliche Verfügbarkeit von analogen Archivdokumenten. [en] Legal availability of analog archived documents.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="archiveDataTechAvail" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Technische Verfügbarkeit von analogen Archivdokumenten. [en] Technical availability of analog archived documents.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="scansLegalAvail" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Rechtliche Verfügbarkeit von gescannten Dokumenten oder Bildern. [en] Legal availability of scanned documents or images.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="scansTechAvail" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Technische Verfügbarkeit von gescannten Dokumenten oder Bildern. [en] Technical availability of scanned documents or images.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="samplesLegalAvail" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Rechtliche Verfügbarkeit von Probendaten. [en] Legal availability of sample data.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="samplesTechAvail" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Technische Verfügbarkeit von Probendaten. [en] Technical availability of sample data.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="labDataLegalAvail" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Rechtliche Verfügbarkeit von Laboruntersuchungsdaten. [en] Legal availability of laboratory data.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
					<element name="labDataTechAvail" nillable="true" minOccurs="0">
						<annotation>
							<documentation>[de] Technische Verfügbarkeit von Laboruntersuchungsdaten. [en] Technical availability of laboratory data.</documentation>
						</annotation>
						<complexType>
							<simpleContent>
								<extension base="gml:CodeType">
									<attribute name="nilReason" type="gml:NilReasonType"/>
								</extension>
							</simpleContent>
						</complexType>
					</element>
				</sequence>
			</extension>
		</complexContent>
	</complexType>
	<complexType name="BoreholeHeaderPropertyType">
		<sequence minOccurs="0">
			<element ref="bmlh:BoreholeHeader"/>
		</sequence>
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
		<attributeGroup ref="gml:OwnershipAttributeGroup"/>
	</complexType>
	<element name="BoreholeProvider" type="bmlh:BoreholeProviderType" substitutionGroup="gmd:CI_ResponsibleParty">
		<annotation>
			<documentation>[de] Daten abgebende Organisation. Erster Ansprechpartner für weitere Informationen. [en] Data providing organisation. First point of contact for further information.</documentation>
		</annotation>
	</element>
	<complexType name="BoreholeProviderType">
		<complexContent>
			<extension base="gmd:CI_ResponsibleParty_Type">
			</extension>
		</complexContent>
	</complexType>
	<complexType name="BoreholeProviderPropertyType">
		<sequence>
			<element ref="bmlh:BoreholeProvider"/>
		</sequence>
	</complexType>
	<element name="Origin" type="bmlh:OriginType" substitutionGroup="gml:AbstractObject">
		<annotation>
			<documentation>[de] Originale Koordinaten und Daten zur Lage des Bohransatzpunktes entsprechend den Quelldaten. [en] Original coordinates and location data of the borehole according to the source data.</documentation>
		</annotation>
	</element>
	<complexType name="OriginType">
		<sequence>
			<element name="originalLocation" type="gml:DirectPositionType">
				<annotation>
					<documentation>[de] Originale Koordinaten des Bohransatzpunktes (2D-Koordinaten mit Angabe des Referenzsystems). [en] Original coordinates of the borehole location (2D-coordinates with reference system).</documentation>
				</annotation>
			</element>
			<element name="elevation" type="gml:DirectPositionType">
				<annotation>
					<documentation>[de] Höhe des Bohransatzpunktes (mit Angabe des Referenzsystems). [en] Altitude of the borehole location according to the data source (with reference system).</documentation>
				</annotation>
			</element>
			<element name="locationMethod" nillable="true">
				<annotation>
					<documentation>[de] Art der Koordinatenermittlung. [en] Determination method of location.</documentation>
				</annotation>
				<complexType>
					<simpleContent>
						<extension base="gml:CodeType">
							<attribute name="nilReason" type="gml:NilReasonType"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
			<element name="levelMethod" nillable="true">
				<annotation>
					<documentation>[de] Art der Höhenermittlung. [en] Determination method of altitude.</documentation>
				</annotation>
				<complexType>
					<simpleContent>
						<extension base="gml:CodeType">
							<attribute name="nilReason" type="gml:NilReasonType"/>
						</extension>
					</simpleContent>
				</complexType>
			</element>
		</sequence>
	</complexType>
	<complexType name="OriginPropertyType">
		<sequence>
			<element ref="bmlh:Origin"/>
		</sequence>
	</complexType>
</schema>