<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://namespace.openaire.eu/oaf"
	targetNamespace="http://namespace.openaire.eu/oaf" elementFormDefault="unqualified">

	<xs:annotation>
		<xs:documentation>This schema describes elements and properties of
			OpenAIRE+ entities of type
			person
		</xs:documentation>
	</xs:annotation>

	<xs:include schemaLocation="oaf-common-0.2.xsd" />

	<xs:element name="person">
		<xs:complexType>
			<xs:choice maxOccurs="unbounded">
				<xs:element name="firstname" type="inferenceExtendedStringType" />
				<xs:element name="secondnames" type="inferenceExtendedStringType" />
				<xs:element name="fullname" type="inferenceExtendedStringType" />
				<xs:element name="fax" type="inferenceExtendedStringType" />
				<xs:element name="email" type="inferenceExtendedStringType" />
				<xs:element name="phone" type="inferenceExtendedStringType" />
				<xs:element name="nationality" type="optionalClassedSchemedElement">
					<xs:annotation>
						<xs:documentation>
							Countries in ISO 3166-1 alpha-2.
							<p>For allowed values check:
								https://services.openaire.eu/provision/mvc/vocabularies/dnet:countries
							</p>
						</xs:documentation>
					</xs:annotation>

				</xs:element>
				<xs:element name="originalId" type="inferenceExtendedStringType"
					maxOccurs="unbounded" />
				<xs:element name="collectedfrom" type="namedIdElement"
					maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>Identifier and name of the datasource from which
							this person has been
							collected from.
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="pid" type="optionalClassedSchemedElement" />
				<xs:element name="datainfo" type="datainfoType"/>
				<xs:element name="rels" type="relsType">
					<xs:annotation>
						<xs:documentation>Relationships to other entities.
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="children">
					<xs:complexType mixed="true" />
				</xs:element>
			</xs:choice>
		</xs:complexType>
	</xs:element>
</xs:schema>
