Skip to content

Commit

Permalink
Merge pull request #148 from openaire/add-generic-Person-identifier
Browse files Browse the repository at this point in the history
Add generic Person identifier
  • Loading branch information
ACz-UniBi authored Jun 9, 2023
2 parents b550990 + 810c14d commit 8a79e45
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/cerif_xml_equipment_entity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Identifier
^^^^^^^^^^
:Description: An identifier of this equipment
:Use: optional, possibly multiple (0..*)
:Representation: XML element ``Identifier`` with mandatory ``type`` attribute
:Representation: XML element ``Identifier`` with a required ``type`` attribute (the URI of the identifier scheme)
:CERIF: the FederatedIdentifier entity (`<https://w3id.org/cerif/model#FederatedIdentifier>`_)


Expand Down
2 changes: 1 addition & 1 deletion docs/cerif_xml_funding_entity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Identifier
^^^^^^^^^^
:Description: An identifier of the funding
:Use: optional, possibly multiple (0..*)
:Representation: XML element ``Identifier`` with mandatory ``type`` attribute
:Representation: XML element ``Identifier`` with a required ``type`` attribute (the URI of the identifier scheme)
:CERIF: the FederatedIdentifier entity (`<https://w3id.org/cerif/model#FederatedIdentifier>`_)


Expand Down
3 changes: 2 additions & 1 deletion docs/cerif_xml_organisation_entity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ Identifier
^^^^^^^^^^
:Description: A generic identifier, to be used only if your identifier does not fit in any of the above specific identifier types.
:Use: optional, possibly multiple (0..*)
:Representation: XML element ``Identifier``
:Representation: XML element ``Identifier`` with a required ``type`` attribute (the URI of the identifier scheme)
:CERIF: the FederatedIdentifier entity (`<https://w3id.org/cerif/model#FederatedIdentifier>`_)



Expand Down
9 changes: 9 additions & 0 deletions docs/cerif_xml_person_entity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,15 @@ AlternativeDAI
:Format: regular expression ``info\:eu\-repo/dai/nl/\d{8}[\dxX]`` (as per `<https://wiki.surfnet.nl/display/standards/DAI>`_)


Identifier
^^^^^^^^^^
:Description: A generic identifier, to be used only if your identifier does not fit in any of the above specific identifier types. This in particular applies to various national and service-specific identifiers that can be relevant in some interchange scenarios.
:Use: optional, possibly multiple (0..*)
:Representation: XML element ``Identifier`` with a required ``type`` attribute (the URI of the identifier scheme)
:CERIF: the FederatedIdentifier entity (`<https://w3id.org/cerif/model#FederatedIdentifier>`_)



ElectronicAddress
^^^^^^^^^^^^^^^^^
:Description: An electronic address associated with the person
Expand Down
2 changes: 1 addition & 1 deletion docs/cerif_xml_project_entity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Identifier
^^^^^^^^^^
:Description: An identifier of the project
:Use: optional, possibly multiple (0..*)
:Representation: XML element ``Identifier`` with mandatory ``type`` attribute
:Representation: XML element ``Identifier`` with a required ``type`` attribute (the URI of the identifier scheme)
:CERIF: the FederatedIdentifier entity (`<https://w3id.org/cerif/model#FederatedIdentifier>`_)


Expand Down
2 changes: 1 addition & 1 deletion docs/cerif_xml_service_entity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Identifier
^^^^^^^^^^
:Description: An identifier of this service
:Use: optional, possibly multiple (0..*)
:Representation: XML element ``Identifier`` with mandatory ``type`` attribute
:Representation: XML element ``Identifier`` with a required ``type`` attribute (the URI of the identifier scheme)
:CERIF: the FederatedIdentifier entity (`<https://w3id.org/cerif/model#FederatedIdentifier>`_)


Expand Down
18 changes: 18 additions & 0 deletions samples/openaire_cerif_xml_example_persons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -290,5 +290,23 @@
</metadata>
</record>

<record>
<header>
<identifier>oai:cris.example.org:Persons/2000002</identifier>
<datestamp>2023-05-27T06:00:00Z</datestamp>
<setSpec>openaire_cris_persons</setSpec>
</header>
<metadata>
<Person xmlns="https://www.openaire.eu/cerif-profile/1.1/" id="Persons/2000002">
<!-- a sample person to demonstrate the Peruvian DNI, following https://www.limaeasy.com/peru-guide/glossary-terms-peru/dni-peru-s-national-id-card -->
<PersonName>
<FamilyNames>Contreras Villavicencio</FamilyNames>
<FirstNames>Ana Patricia</FirstNames>
</PersonName>
<Identifier type="https://www.wikidata.org/wiki/Q5797148">70025425-8</Identifier>
</Person>
</metadata>
</record>

</ListRecords>
</OAI-PMH>
2 changes: 1 addition & 1 deletion schemas/includes/orgunit-identifiers.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
-->

<!-- the generic identifier -->
<xs:element name="Identifier" type="cfGenericIdentifier__Type" minOccurs="0" maxOccurs="unbounded">
<xs:element name="Identifier" type="cfGenericIdentifier__Type" minOccurs="0" maxOccurs="unbounded" cflink:identifier="true">
<xs:annotation>
<xs:documentation>A generic identifier, to be used only if your identifier does not fit in any of the above specific identifier types.</xs:documentation>
</xs:annotation>
Expand Down
8 changes: 8 additions & 0 deletions schemas/includes/person-identifiers.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@
</xs:element>
-->

<!-- the generic identifier -->
<xs:element name="Identifier" type="cfGenericIdentifier__Type" minOccurs="0" maxOccurs="unbounded" cflink:identifier="true">
<xs:annotation>
<xs:documentation>A generic identifier, to be used only if your identifier does not fit in any of the above specific identifier types.
This in particular applies to various national and service-specific identifiers that can be relevant in some interchange scenarios.</xs:documentation>
</xs:annotation>
</xs:element>

</xs:sequence>
</xs:group>

Expand Down
2 changes: 1 addition & 1 deletion schemas/scripts/xsd2cerif-rst.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ Internal Identifier
<xsl:call-template name="document-use"/>
<xsl:text>:Representation: XML element ``</xsl:text><xsl:value-of select="@name"/><xsl:text>``</xsl:text>
<xsl:if test="@type = 'cfGenericIdentifier__Type'">
<xsl:text> with mandatory ``type`` attribute</xsl:text>
<xsl:text> with a required ``type`` attribute (the URI of the identifier scheme)</xsl:text>
</xsl:if>
<xsl:text>
</xsl:text>
Expand Down

0 comments on commit 8a79e45

Please sign in to comment.