Skip to content
Snippets Groups Projects
Commit c664ecfe authored by bourgesl's avatar bourgesl
Browse files

fixed keys generation from xsd schema (3.1 & 4.1)

parent 72e6e712
No related branches found
No related tags found
No related merge requests found
Showing
with 56 additions and 683 deletions
......@@ -14,4 +14,4 @@ data/public/*/
data/staging/*/
tmp/*/
www/
src/test/resources/staging/
# 1 [identifier] identifier [A persistent identifier that identifies a resource.] identifier:DOI [identifierType = DOI] # 2 [creators] # creators # creator [The main researchers involved working on the data, or the authors of the publication in priority order. May be a corporate/institutional or personal name.] creatorName # optional nameIdentifier:ORCID # optional affiliation # 3 [titles] # titles title [A name or title by which a resource is known.] title:AlternativeTitle [titleType = AlternativeTitle] title:Subtitle [titleType = Subtitle] title:TranslatedTitle [titleType = TranslatedTitle] # 4 [publisher] publisher [The name of the entity that holds, archives, publishes prints, distributes, releases, issues, or produces the resource. This property will be used to formulate the citation, so consider the prominence of the role.] # 5 [publicationYear] publicationYear [Year when the data is made publicly available. If an embargo period has been in effect, use the date when the embargo period ends.] # 6 [subjects] # subjects subject [Subject, keywords, classification codes, or key phrases describing the resource.] subject:main [subjectScheme = main] subject:var [subjectScheme = var] # 7 [contributors] # contributors # contributorName [The institution or person responsible for collecting, creating, or otherwise contributing to the developement of the dataset.] contributorName:ContactPerson [contributorType = ContactPerson] contributorName:DataCollector [contributorType = DataCollector] contributorName:DataCurator [contributorType = DataCurator] contributorName:DataManager [contributorType = DataManager] contributorName:Distributor [contributorType = Distributor] contributorName:Editor [contributorType = Editor] contributorName:Funder [contributorType = Funder] contributorName:HostingInstitution [contributorType = HostingInstitution] contributorName:Other [contributorType = Other] contributorName:Producer [contributorType = Producer] contributorName:ProjectLeader [contributorType = ProjectLeader] contributorName:ProjectManager [contributorType = ProjectManager] contributorName:ProjectMember [contributorType = ProjectMember] contributorName:RegistrationAgency [contributorType = RegistrationAgency] contributorName:RegistrationAuthority [contributorType = RegistrationAuthority] contributorName:RelatedPerson [contributorType = RelatedPerson] contributorName:ResearchGroup [contributorType = ResearchGroup] contributorName:RightsHolder [contributorType = RightsHolder] contributorName:Researcher [contributorType = Researcher] contributorName:Sponsor [contributorType = Sponsor] contributorName:Supervisor [contributorType = Supervisor] contributorName:WorkPackageLeader [contributorType = WorkPackageLeader] # optional nameIdentifier:ORCID # optional affiliation # 8 [dates] # dates date [Different dates relevant to the work.] date:Accepted [dateType = Accepted] date:Available [dateType = Available] date:Collected [dateType = Collected] date:Copyrighted [dateType = Copyrighted] date:Created [dateType = Created] date:Issued [dateType = Issued] date:Submitted [dateType = Submitted] date:Updated [dateType = Updated] date:Valid [dateType = Valid] # 9 [language] language [Primary language of the resource. Allowed values are taken from IETF BCP 47, ISO 639-1 language codes.] # 10 [resourceType] resourceType [The type of a resource. You may enter an additional free text description.] resourceType:Audiovisual [resourceTypeGeneral = Audiovisual] resourceType:Collection [resourceTypeGeneral = Collection] resourceType:Dataset [resourceTypeGeneral = Dataset] resourceType:Event [resourceTypeGeneral = Event] resourceType:Image [resourceTypeGeneral = Image] resourceType:InteractiveResource [resourceTypeGeneral = InteractiveResource] resourceType:Model [resourceTypeGeneral = Model] resourceType:PhysicalObject [resourceTypeGeneral = PhysicalObject] resourceType:Service [resourceTypeGeneral = Service] resourceType:Software [resourceTypeGeneral = Software] resourceType:Sound [resourceTypeGeneral = Sound] resourceType:Text [resourceTypeGeneral = Text] resourceType:Workflow [resourceTypeGeneral = Workflow] resourceType:Other [resourceTypeGeneral = Other] # 11 [alternateIdentifiers] # alternateIdentifiers alternateIdentifier [An identifier or identifiers other than the primary Identifier applied to the resource being registered. This may be any alphanumeric string which is unique within its domain of issue. May be used for local identifiers. AlternateIdentifier should be used for another identifier of the same instance (same location, same file).] alternateIdentifier.alternateIdentifierType # 12 [relatedIdentifiers] # relatedIdentifiers relatedIdentifier [Identifiers of related resources. Use this property to indicate subsets of properties, as appropriate.] # Only to list all possible values (but should be composed with relatedIdentifier:<relationType> { relatedIdentifier:ARK [relatedIdentifierType = ARK] relatedIdentifier:arXiv [relatedIdentifierType = arXiv] relatedIdentifier:bibcode [relatedIdentifierType = bibcode] relatedIdentifier:DOI [relatedIdentifierType = DOI] relatedIdentifier:EAN13 [relatedIdentifierType = EAN13] relatedIdentifier:EISSN [relatedIdentifierType = EISSN] relatedIdentifier:Handle [relatedIdentifierType = Handle] relatedIdentifier:ISBN [relatedIdentifierType = ISBN] relatedIdentifier:ISSN [relatedIdentifierType = ISSN] relatedIdentifier:ISTC [relatedIdentifierType = ISTC] relatedIdentifier:LISSN [relatedIdentifierType = LISSN] relatedIdentifier:LSID [relatedIdentifierType = LSID] relatedIdentifier:PMID [relatedIdentifierType = PMID] relatedIdentifier:PURL [relatedIdentifierType = PURL] relatedIdentifier:UPC [relatedIdentifierType = UPC] relatedIdentifier:URL [relatedIdentifierType = URL] relatedIdentifier:URN [relatedIdentifierType = URN] # } relatedIdentifier:IsCitedBy [relationType = IsCitedBy] relatedIdentifier:Cites [relationType = Cites] relatedIdentifier:IsSupplementTo [relationType = IsSupplementTo] relatedIdentifier:IsSupplementedBy [relationType = IsSupplementedBy] relatedIdentifier:IsContinuedBy [relationType = IsContinuedBy] relatedIdentifier:Continues [relationType = Continues] relatedIdentifier:IsNewVersionOf [relationType = IsNewVersionOf] relatedIdentifier:IsPreviousVersionOf [relationType = IsPreviousVersionOf] relatedIdentifier:IsPartOf [relationType = IsPartOf] relatedIdentifier:HasPart [relationType = HasPart] relatedIdentifier:IsReferencedBy [relationType = IsReferencedBy] relatedIdentifier:References [relationType = References] relatedIdentifier:IsDocumentedBy [relationType = IsDocumentedBy] relatedIdentifier:Documents [relationType = Documents] relatedIdentifier:IsCompiledBy [relationType = IsCompiledBy] relatedIdentifier:Compiles [relationType = Compiles] relatedIdentifier:IsVariantFormOf [relationType = IsVariantFormOf] relatedIdentifier:IsOriginalFormOf [relationType = IsOriginalFormOf] relatedIdentifier:IsIdenticalTo [relationType = IsIdenticalTo] relatedIdentifier:HasMetadata [relationType = HasMetadata] relatedIdentifier:IsMetadataFor [relationType = IsMetadataFor] relatedIdentifier:Reviews [relationType = Reviews] relatedIdentifier:IsReviewedBy [relationType = IsReviewedBy] relatedIdentifier:IsDerivedFrom [relationType = IsDerivedFrom] relatedIdentifier:IsSourceOf [relationType = IsSourceOf] # 13 [sizes] # sizes size [Unstructures size information about the resource.] # 14 [formats] # formats format [Technical format of the resource.] # 15 [version] version [Version number of the resource. If the primary resource has changed the version number increases.] # 16 [rightsList] # rightsList rights [Any rights information for this resource. Provide a rights management statement for the resource or reference a service providing such information. Include embargo information if applicable. Use the complete title of a license and include version information if applicable.] # 17 [descriptions] # descriptions description [All additional information that does not fit in any of the other categories. May be used for technical information. It is a best practice to supply a description.] description:Abstract [descriptionType = Abstract] description:Methods [descriptionType = Methods] description:SeriesInformation [descriptionType = SeriesInformation] description:TableOfContents [descriptionType = TableOfContents] description:Other [descriptionType = Other] # 18 [geoLocations] # geoLocations # geoLocation [Spatial region or named place where the data was gathered or about which the data is focused.] geoLocationPoint geoLocationBox geoLocationPlace
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
2013-05 v3.0: Addition of ID to simpleType element, added values "ResearchGroup" & "Other"
2014-08-20 v3.1: Addition of value "DataCurator"
2015-05-14 v4.0 dropped value "Funder", use new "funderReference" -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified">
<xs:simpleType name="contributorType" id="contributorType">
<xs:annotation>
<xs:documentation>The type of contributor of the resource.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="ContactPerson"/>
<xs:enumeration value="DataCollector"/>
<xs:enumeration value="DataCurator"/>
<xs:enumeration value="DataManager"/>
<xs:enumeration value="Distributor"/>
<xs:enumeration value="Editor"/>
<xs:enumeration value="HostingInstitution"/>
<xs:enumeration value="Other"/>
<xs:enumeration value="Producer"/>
<xs:enumeration value="ProjectLeader"/>
<xs:enumeration value="ProjectManager"/>
<xs:enumeration value="ProjectMember"/>
<xs:enumeration value="RegistrationAgency"/>
<xs:enumeration value="RegistrationAuthority"/>
<xs:enumeration value="RelatedPerson"/>
<xs:enumeration value="ResearchGroup"/>
<xs:enumeration value="RightsHolder"/>
<xs:enumeration value="Researcher"/>
<xs:enumeration value="Sponsor"/>
<xs:enumeration value="Supervisor"/>
<xs:enumeration value="WorkPackageLeader"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
2013-05 v3.0: Addition of ID to simpleType element; addition of value "Collected"; deleted "StartDate" & "EndDate"-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified">
<xs:simpleType name="dateType" id="dateType">
<xs:annotation>
<xs:documentation>The type of date. Use RKMS‐ISO8601 standard for depicting date ranges.To indicate the end of an embargo period, use Available. To indicate the start of an embargo period, use Submitted or Accepted, as appropriate.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Accepted"/>
<xs:enumeration value="Available"/>
<xs:enumeration value="Collected"/>
<xs:enumeration value="Copyrighted"/>
<xs:enumeration value="Created"/>
<xs:enumeration value="Issued"/>
<xs:enumeration value="Submitted"/>
<xs:enumeration value="Updated"/>
<xs:enumeration value="Valid"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
2013-05 v3.0: Addition of ID to simpleType element, addition of value "Methods"
2015-02-12 v4.0: Addition of value "TechnicalInfo"-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified">
<xs:simpleType name="descriptionType" id="descriptionType">
<xs:annotation>
<xs:documentation>The type of the description.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Abstract"/>
<xs:enumeration value="Methods"/>
<xs:enumeration value="SeriesInformation"/>
<xs:enumeration value="TableOfContents"/>
<xs:enumeration value="TechnicalInfo"/>
<xs:enumeration value="Other"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<!-- Version 1.0 - Created 2016-05-14 -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified">
<xs:simpleType name="funderIdentifierType" id="funderIdentifierType">
<xs:annotation>
<xs:documentation>The type of the funderIdentifier.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="ISNI"/>
<xs:enumeration value="GRID"/>
<xs:enumeration value="Crossref Funder ID"/>
<xs:enumeration value="Other"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
2013-05 v3.0: Addition of ID to simpleType element; addition of value "PMID"
2014-08-20 v3.1: Addition of values "arxiv" and "bibcode"
2015-02-12 v4.0 Addition of value "IGSN" -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified">
<xs:simpleType name="relatedIdentifierType" id="relatedIdentifierType">
<xs:annotation>
<xs:documentation>The type of the RelatedIdentifier.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="ARK"/>
<xs:enumeration value="arXiv"/>
<xs:enumeration value="bibcode"/>
<xs:enumeration value="DOI"/>
<xs:enumeration value="EAN13"/>
<xs:enumeration value="EISSN"/>
<xs:enumeration value="Handle"/>
<xs:enumeration value="IGSN"/>
<xs:enumeration value="ISBN"/>
<xs:enumeration value="ISSN"/>
<xs:enumeration value="ISTC"/>
<xs:enumeration value="LISSN"/>
<xs:enumeration value="LSID"/>
<xs:enumeration value="PMID"/>
<xs:enumeration value="PURL"/>
<xs:enumeration value="UPC"/>
<xs:enumeration value="URL"/>
<xs:enumeration value="URN"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<!--
2011-01-13 v1.0 - FZ, TIB, Germany
2013-05 v3.0: Addition of ID to simpleType element, addition of values "IsIdenticalTo", "HasMetadata" & "IsMetadataFor"
2014-08-20 v3.1: Addition of values "Reviews" & "IsReviewedBy" and "IsDerivedFrom" & "IsSourceOf"-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified">
<xs:simpleType name="relationType" id="relationType">
<xs:annotation>
<xs:documentation>Description of the relationship of the resource being registered (A) and the related resource (B).</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="IsCitedBy"/>
<xs:enumeration value="Cites"/>
<xs:enumeration value="IsSupplementTo"/>
<xs:enumeration value="IsSupplementedBy"/>
<xs:enumeration value="IsContinuedBy"/>
<xs:enumeration value="Continues"/>
<xs:enumeration value="IsNewVersionOf"/>
<xs:enumeration value="IsPreviousVersionOf"/>
<xs:enumeration value="IsPartOf"/>
<xs:enumeration value="HasPart"/>
<xs:enumeration value="IsReferencedBy"/>
<xs:enumeration value="References"/>
<xs:enumeration value="IsDocumentedBy"/>
<xs:enumeration value="Documents"/>
<xs:enumeration value="IsCompiledBy"/>
<xs:enumeration value="Compiles"/>
<xs:enumeration value="IsVariantFormOf"/>
<xs:enumeration value="IsOriginalFormOf"/>
<xs:enumeration value="IsIdenticalTo"/>
<xs:enumeration value="HasMetadata"/>
<xs:enumeration value="IsMetadataFor"/>
<xs:enumeration value="Reviews"/>
<xs:enumeration value="IsReviewedBy"/>
<xs:enumeration value="IsDerivedFrom"/>
<xs:enumeration value="IsSourceOf"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
2013-05 v3.0: Addition of ID to simpleType element; added values "Audiovisual", "Workflow" & "Other"; deleted value "Film" -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified">
<xs:simpleType name="resourceType" id="resourceType">
<xs:annotation>
<xs:documentation>The general type of a resource.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Audiovisual"/>
<xs:enumeration value="Collection"/>
<xs:enumeration value="Dataset"/>
<xs:enumeration value="Event"/>
<xs:enumeration value="Image"/>
<xs:enumeration value="InteractiveResource"/>
<xs:enumeration value="Model"/>
<xs:enumeration value="PhysicalObject"/>
<xs:enumeration value="Service"/>
<xs:enumeration value="Software"/>
<xs:enumeration value="Sound"/>
<xs:enumeration value="Text"/>
<xs:enumeration value="Workflow"/>
<xs:enumeration value="Other"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
2013-05 v3.0: Addition of ID to simpleType element
2015-02-12 v4.0 Added value "Other" -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified">
<xs:simpleType name="titleType" id="titleType">
<xs:restriction base="xs:string">
<xs:enumeration value="AlternativeTitle"/>
<xs:enumeration value="Subtitle"/>
<xs:enumeration value="TranslatedTitle"/>
<xs:enumeration value="Other"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
This diff is collapsed.
# 1 [identifier] identifier [A persistent identifier that identifies a resource.] identifier:DOI [identifierType = DOI] # 2 [creators] # creators # creatorName [The main researchers involved working on the data, or the authors of the publication in priority order. May be a corporate/institutional or personal name.] creatorName creatorName:Organizational [nameType = Organizational] creatorName:Personal [nameType = Personal] # optional givenName # optional familyName # optional nameIdentifier:ORCID # optional affiliation # 3 [titles] # titles title [A name or title by which a resource is known.] title:AlternativeTitle [titleType = AlternativeTitle] title:Subtitle [titleType = Subtitle] title:TranslatedTitle [titleType = TranslatedTitle] title:Other [titleType = Other] # 4 [publisher] publisher [The name of the entity that holds, archives, publishes prints, distributes, releases, issues, or produces the resource. This property will be used to formulate the citation, so consider the prominence of the role.] # 5 [publicationYear] publicationYear [Year when the data is made publicly available. If an embargo period has been in effect, use the date when the embargo period ends.] # 6 [resourceType] resourceType [The type of a resource. You may enter an additional free text description.] resourceType:Audiovisual [resourceTypeGeneral = Audiovisual] resourceType:Collection [resourceTypeGeneral = Collection] resourceType:DataPaper [resourceTypeGeneral = DataPaper] resourceType:Dataset [resourceTypeGeneral = Dataset] resourceType:Event [resourceTypeGeneral = Event] resourceType:Image [resourceTypeGeneral = Image] resourceType:InteractiveResource [resourceTypeGeneral = InteractiveResource] resourceType:Model [resourceTypeGeneral = Model] resourceType:PhysicalObject [resourceTypeGeneral = PhysicalObject] resourceType:Service [resourceTypeGeneral = Service] resourceType:Software [resourceTypeGeneral = Software] resourceType:Sound [resourceTypeGeneral = Sound] resourceType:Text [resourceTypeGeneral = Text] resourceType:Workflow [resourceTypeGeneral = Workflow] resourceType:Other [resourceTypeGeneral = Other] # 7 [subjects] # subjects subject [Subject, keywords, classification codes, or key phrases describing the resource.] subject:main [subjectScheme = main] subject:var [subjectScheme = var] # 8 [contributors] # contributors # contributorName [The institution or person responsible for collecting, creating, or otherwise contributing to the developement of the dataset.] contributorName:ContactPerson [contributorType = ContactPerson] contributorName:DataCollector [contributorType = DataCollector] contributorName:DataCurator [contributorType = DataCurator] contributorName:DataManager [contributorType = DataManager] contributorName:Distributor [contributorType = Distributor] contributorName:Editor [contributorType = Editor] contributorName:HostingInstitution [contributorType = HostingInstitution] contributorName:Other [contributorType = Other] contributorName:Producer [contributorType = Producer] contributorName:ProjectLeader [contributorType = ProjectLeader] contributorName:ProjectManager [contributorType = ProjectManager] contributorName:ProjectMember [contributorType = ProjectMember] contributorName:RegistrationAgency [contributorType = RegistrationAgency] contributorName:RegistrationAuthority [contributorType = RegistrationAuthority] contributorName:RelatedPerson [contributorType = RelatedPerson] contributorName:ResearchGroup [contributorType = ResearchGroup] contributorName:RightsHolder [contributorType = RightsHolder] contributorName:Researcher [contributorType = Researcher] contributorName:Sponsor [contributorType = Sponsor] contributorName:Supervisor [contributorType = Supervisor] contributorName:WorkPackageLeader [contributorType = WorkPackageLeader] # optional givenName # optional familyName # optional nameIdentifier:ORCID # optional affiliation # 9 [dates] # dates date [Different dates relevant to the work.] date:Accepted [dateType = Accepted] date:Available [dateType = Available] date:Collected [dateType = Collected] date:Copyrighted [dateType = Copyrighted] date:Created [dateType = Created] date:Issued [dateType = Issued] date:Other [dateType = Other] date:Submitted [dateType = Submitted] date:Updated [dateType = Updated] date:Valid [dateType = Valid] date.dateInformation # 10 [language] language [Primary language of the resource. Allowed values are taken from IETF BCP 47, ISO 639-1 language codes.] # 11 [alternateIdentifiers] # alternateIdentifiers alternateIdentifier [An identifier or identifiers other than the primary Identifier applied to the resource being registered. This may be any alphanumeric string which is unique within its domain of issue. May be used for local identifiers. AlternateIdentifier should be used for another identifier of the same instance (same location, same file).] alternateIdentifier.alternateIdentifierType # 12 [relatedIdentifiers] # relatedIdentifiers relatedIdentifier [Identifiers of related resources. Use this property to indicate subsets of properties, as appropriate.] relatedIdentifier:Audiovisual [resourceTypeGeneral = Audiovisual] relatedIdentifier:Collection [resourceTypeGeneral = Collection] relatedIdentifier:DataPaper [resourceTypeGeneral = DataPaper] relatedIdentifier:Dataset [resourceTypeGeneral = Dataset] relatedIdentifier:Event [resourceTypeGeneral = Event] relatedIdentifier:Image [resourceTypeGeneral = Image] relatedIdentifier:InteractiveResource [resourceTypeGeneral = InteractiveResource] relatedIdentifier:Model [resourceTypeGeneral = Model] relatedIdentifier:PhysicalObject [resourceTypeGeneral = PhysicalObject] relatedIdentifier:Service [resourceTypeGeneral = Service] relatedIdentifier:Software [resourceTypeGeneral = Software] relatedIdentifier:Sound [resourceTypeGeneral = Sound] relatedIdentifier:Text [resourceTypeGeneral = Text] relatedIdentifier:Workflow [resourceTypeGeneral = Workflow] relatedIdentifier:Other [resourceTypeGeneral = Other] # Only to list all possible values (but should be composed with relatedIdentifier:<relationType> { relatedIdentifier:ARK [relatedIdentifierType = ARK] relatedIdentifier:arXiv [relatedIdentifierType = arXiv] relatedIdentifier:bibcode [relatedIdentifierType = bibcode] relatedIdentifier:DOI [relatedIdentifierType = DOI] relatedIdentifier:EAN13 [relatedIdentifierType = EAN13] relatedIdentifier:EISSN [relatedIdentifierType = EISSN] relatedIdentifier:Handle [relatedIdentifierType = Handle] relatedIdentifier:IGSN [relatedIdentifierType = IGSN] relatedIdentifier:ISBN [relatedIdentifierType = ISBN] relatedIdentifier:ISSN [relatedIdentifierType = ISSN] relatedIdentifier:ISTC [relatedIdentifierType = ISTC] relatedIdentifier:LISSN [relatedIdentifierType = LISSN] relatedIdentifier:LSID [relatedIdentifierType = LSID] relatedIdentifier:PMID [relatedIdentifierType = PMID] relatedIdentifier:PURL [relatedIdentifierType = PURL] relatedIdentifier:UPC [relatedIdentifierType = UPC] relatedIdentifier:URL [relatedIdentifierType = URL] relatedIdentifier:URN [relatedIdentifierType = URN] # } relatedIdentifier:IsCitedBy [relationType = IsCitedBy] relatedIdentifier:Cites [relationType = Cites] relatedIdentifier:IsSupplementTo [relationType = IsSupplementTo] relatedIdentifier:IsSupplementedBy [relationType = IsSupplementedBy] relatedIdentifier:IsContinuedBy [relationType = IsContinuedBy] relatedIdentifier:Continues [relationType = Continues] relatedIdentifier:IsNewVersionOf [relationType = IsNewVersionOf] relatedIdentifier:IsPreviousVersionOf [relationType = IsPreviousVersionOf] relatedIdentifier:IsPartOf [relationType = IsPartOf] relatedIdentifier:HasPart [relationType = HasPart] relatedIdentifier:IsReferencedBy [relationType = IsReferencedBy] relatedIdentifier:References [relationType = References] relatedIdentifier:IsDocumentedBy [relationType = IsDocumentedBy] relatedIdentifier:Documents [relationType = Documents] relatedIdentifier:IsCompiledBy [relationType = IsCompiledBy] relatedIdentifier:Compiles [relationType = Compiles] relatedIdentifier:IsVariantFormOf [relationType = IsVariantFormOf] relatedIdentifier:IsOriginalFormOf [relationType = IsOriginalFormOf] relatedIdentifier:IsIdenticalTo [relationType = IsIdenticalTo] relatedIdentifier:HasMetadata [relationType = HasMetadata] relatedIdentifier:IsMetadataFor [relationType = IsMetadataFor] relatedIdentifier:Reviews [relationType = Reviews] relatedIdentifier:IsReviewedBy [relationType = IsReviewedBy] relatedIdentifier:IsDerivedFrom [relationType = IsDerivedFrom] relatedIdentifier:IsSourceOf [relationType = IsSourceOf] relatedIdentifier:Describes [relationType = Describes] relatedIdentifier:IsDescribedBy [relationType = IsDescribedBy] relatedIdentifier:HasVersion [relationType = HasVersion] relatedIdentifier:IsVersionOf [relationType = IsVersionOf] relatedIdentifier:Requires [relationType = Requires] relatedIdentifier:IsRequiredBy [relationType = IsRequiredBy] # 13 [sizes] # sizes size [Unstructures size information about the resource.] # 14 [formats] # formats format [Technical format of the resource.] # 15 [version] version [Version number of the resource. If the primary resource has changed the version number increases.] # 16 [rightsList] # rightsList rights [Any rights information for this resource. Provide a rights management statement for the resource or reference a service providing such information. Include embargo information if applicable.Use the complete title of a license and include version information if applicable.] # 17 [descriptions] # descriptions description [All additional information that does not fit in any of the other categories. May be used for technical information. It is a best practice to supply a description.] description:Abstract [descriptionType = Abstract] description:Methods [descriptionType = Methods] description:SeriesInformation [descriptionType = SeriesInformation] description:TableOfContents [descriptionType = TableOfContents] description:TechnicalInfo [descriptionType = TechnicalInfo] description:Other [descriptionType = Other] # 18 [geoLocations] # geoLocations # geoLocation geoLocationPlace [Spatial region or named place where the data was gathered or about which the data is focused.] geoLocationPoint [A point contains a single latitude-longitude pair, separated by whitespace.] geoLocationBox [A box contains two white space separated latitude-longitude pairs, with each pair separated by whitespace. The first pair is the lower corner, the second is the upper corner.] # geoLocationPolygon [A drawn polygon area, defined by a set of points and lines connecting the points in a closed chain.] geoLocationPolygon.polygonPoint geoLocationPolygon.inPolygonPoint # 19 [fundingReferences] # fundingReferences funderName [Information about financial support (funding) for the resource being registered.] funderIdentifier [Uniquely identifies a funding entity, according to various types.] funderIdentifier:ISNI [funderIdentifierType = ISNI] funderIdentifier:GRID [funderIdentifierType = GRID] funderIdentifier:Crossref Funder ID [funderIdentifierType = Crossref Funder ID] funderIdentifier:Other [funderIdentifierType = Other] # optional awardNumber [The code assigned by the funder to a sponsored award (grant).] # optional awardTitle [The human readable title of the award (grant).]
\ No newline at end of file
......@@ -11,7 +11,7 @@
<xsl:output method="text" indent="no" omit-xml-declaration="yes" encoding="utf-8"/>
<xsl:variable name="REL_PATH" select="'../xsd/'"/>
<xsl:variable name="REL_PATH" select="'../../xsd/3.1/'"/>
<xsl:variable name="included" select="//xs:include/@schemaLocation"/>
......@@ -102,9 +102,15 @@
<xsl:otherwise>
<xsl:variable name="path">
<xsl:choose>
<xsl:when test="$elementName = 'creator'">
<xsl:value-of select="'creatorName'"/>
</xsl:when>
<xsl:when test="$elementName = 'contributor'">
<xsl:value-of select="'contributorName'"/>
</xsl:when>
<xsl:when test="$elementName = 'fundingReference'">
<xsl:value-of select="'funderName'"/>
</xsl:when>
<xsl:when test="local-name() = 'element' and contains($elementName, $parent)">
<xsl:value-of select="$elementName"/>
</xsl:when>
......@@ -171,10 +177,20 @@
</xsl:if>
</xsl:for-each>
<!-- recursion: child element -->
<xsl:for-each select="./xs:complexType/xs:sequence/xs:element[@name != 'nameIdentifier' and @name != 'affiliation' and @name != 'contributorName']">
<xsl:call-template name="element">
<xsl:with-param name="parent" select="$child_path"/>
</xsl:call-template>
<xsl:for-each select="./xs:complexType/xs:sequence/xs:element[@name != 'contributorName']">
<xsl:choose>
<xsl:when test="@name != 'nameIdentifier' and @name != 'affiliation'">
<xsl:call-template name="element">
<xsl:with-param name="parent" select="$child_path"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:text># optional </xsl:text>
<xsl:value-of select="@name"/>
<xsl:if test="@name = 'nameIdentifier'">:ORCID</xsl:if>
<xsl:text>&#13;</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
......
File moved
File moved
......@@ -5,13 +5,13 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:d="http://datacite.org/schema/kernel-4"
exclude-result-prefixes="d"
xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd"
xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4.1/metadata.xsd"
xmlns:exsl="http://exslt.org/common"
extension-element-prefixes="exsl">
<xsl:output method="text" indent="no" omit-xml-declaration="yes" encoding="utf-8"/>
<xsl:variable name="REL_PATH" select="'../xsd/'"/>
<xsl:variable name="REL_PATH" select="'../../xsd/4.1/'"/>
<xsl:variable name="included" select="//xs:include/@schemaLocation"/>
......@@ -102,9 +102,18 @@
<xsl:otherwise>
<xsl:variable name="path">
<xsl:choose>
<xsl:when test="$elementName = 'creator'">
<xsl:value-of select="'creatorName'"/>
</xsl:when>
<xsl:when test="$elementName = 'contributor'">
<xsl:value-of select="'contributorName'"/>
</xsl:when>
<xsl:when test="$elementName = 'fundingReference'">
<xsl:value-of select="'funderName'"/>
</xsl:when>
<xsl:when test="$elementName = 'funderIdentifier'">
<xsl:value-of select="'funderIdentifier'"/>
</xsl:when>
<xsl:when test="local-name() = 'element' and contains($elementName, $parent)">
<xsl:value-of select="$elementName"/>
</xsl:when>
......@@ -171,10 +180,27 @@
</xsl:if>
</xsl:for-each>
<!-- recursion: child element -->
<xsl:for-each select="./xs:complexType/xs:sequence/xs:element[@name != 'nameIdentifier' and @name != 'affiliation' and @name != 'contributorName']">
<xsl:call-template name="element">
<xsl:with-param name="parent" select="$child_path"/>
</xsl:call-template>
<xsl:for-each select="./xs:complexType/xs:sequence/xs:element[@name != 'contributorName'] | ./xs:complexType/xs:all/xs:element[@name != 'funderName']">
<xsl:choose>
<xsl:when test="@name != 'nameIdentifier' and @name != 'affiliation'
and @name != 'givenName' and @name != 'familyName'
and not(contains(@name, 'award'))">
<xsl:call-template name="element">
<xsl:with-param name="parent" select="$child_path"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:text># optional </xsl:text>
<xsl:value-of select="@name"/>
<xsl:if test="@name = 'nameIdentifier'">:ORCID</xsl:if>
<xsl:if test="./xs:annotation">
<xsl:text>&#09;&#09;&#09;&#09;[</xsl:text>
<xsl:value-of select="./xs:annotation/xs:documentation/text()"/>
<xsl:text>]</xsl:text>
</xsl:if>
<xsl:text>&#13;</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment