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

	<xs:annotation>
		<xs:documentation>This schema describes elements and properties of OpenAIRE person entity: https://issue.openaire.research-infrastructures.eu/projects/openaire2020-wiki/wiki/Core_entity_person</xs:documentation>
	</xs:annotation>

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

	<xs:element name="person">
		<xs:complexType>
			<xs:choice maxOccurs="unbounded">
				<xs:element name="firstname" type="xs:string"/>
				<xs:element name="secondnames" type="xs:string"/>
				<xs:element name="fullname" type="xs:string"/>
				<xs:element name="nationality" type="controlledElementType">
					<xs:annotation>
						<xs:documentation> Countries in ISO 3166-1 alpha-2. <p>For allowed values
								check: $vocabulariesURL$/dnet:countries </p>
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="originalId" type="xs:string" maxOccurs="unbounded"/>
				<xs:element name="collectedfrom" type="namedIdElementType" 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="typedElementType"/>
				<xs:element name="rels" type="relsType">
					<xs:annotation>
						<xs:documentation>Relationships to other entities.</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
		</xs:complexType>
	</xs:element>
</xs:schema>
