-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Creators element in xsd is different of documentation #142
Comments
@tomfris, would you please have an error message from the validator (or are you using some other XML parser)? |
No, we don't have any errors in the validator, because we are not building the creator object, since we don't know how. We are using the openaire validator: https://github.com/EuroCRIS/openaire-cris-validator, but there everything passes. You can have a look at our endpoint : https://app.r4.researchportal.be/interface/oai?verb=ListRecords&metadataPrefix=oai_dc&set=openaire_cris_products. |
I trust it should be possible to add a In case I am not guessing correctly where the problem is please email me and we could have a short call. |
The problem is that the person element is not present under the Creator element :
Are we using the wrong xsd? we can discuss tomorrow during the meeting. BR, |
Hi, this still blocks us, did you manage to reproduce it with the POC that we've provided to you? |
Dear @tomfris , @NazimeAtimene , if I use the command line call, eg. Could you elaborate more about creating the classes from openaire_cerif_profile.xsd ? Best, Andreas |
Hi @ACz-UniBi, |
I'm not seeing any mention of a JAXB plugin to generate the sources in the pom.xml file, so am I correct in guessing you're currently generating the sources through your IDE? |
Hi @jdvorak001, |
Hi, |
Thank you @NazimeAtimene for the note. Thanks a lot. |
Hi @ACz-UniBi, |
We are trying to deliver datasets to openaire from FRIS , the flemish research information portal (researchportal.be). We have problems delivering the creator -element.
The Creators element in xsd is different of documentation, as you can see in the snippet below the Creators contains a sequence of “cfLinkWithDisplayNameToPersonWithAffiliationsOrOrgUnit__Type”
1<xs:element cflink:container="ordered" minOccurs="0" name="Creators">
2 xs:annotation
3 xs:documentationThe creators of this product</xs:documentation>
4 </xs:annotation>
5 xs:complexType
6 xs:sequence
7 <xs:element cflink:link=https://w3id.org/cerif/model#Person_ResultProduct(https://w3id.org/cerif/vocab/PersonOutputContributions#Creator) https://w3id.org/cerif/model#OrganisationUnit_ResultProduct(https://w3id.org/cerif/vocab/OrganisationOutputContributions#Creator) maxOccurs="unbounded" minOccurs="0" name="Creator" type="cfLinkWithDisplayNameToPersonWithAffiliationsOrOrgUnit__Type"/>
8 </xs:sequence>
9 </xs:complexType>
10</xs:element>
Below you can see the cfLinkWithDisplayNameToPersonWithAffiliationsOrOrgUnit__Type structure, it’s based on cfLinkWithDisplayName__BaseType
1<xs:complexType name="cfLinkWithDisplayNameToPersonWithAffiliationsOrOrgUnit__Type">
2 xs:complexContent
3 <xs:extension base="cfLinkWithDisplayName__BaseType">
4 xs:choice
5 <xs:group ref="PersonWithAffiliations__Group"/>
6 <xs:element ref="OrgUnit__SubstitutionGroupHead"/>
7 </xs:choice>
8 </xs:extension>
9 </xs:complexContent>
10 </xs:complexType>
And the cfLinkWithDisplayName__BaseType contains only “DisplayName”
1<xs:complexType name="cfLinkWithDisplayName__BaseType">
2 xs:complexContent
3 <xs:extension base="cfLink__BaseType">
4 xs:sequence
5 <xs:element minOccurs="0" name="DisplayName" type="xs:string"/>
6 </xs:sequence>
7 </xs:extension>
8 </xs:complexContent>
9 </xs:complexType>
So it’s not possible to create a person object with "FamilyNames” and “FirstNames” like is described in documentation:
1
2
3 Singhal
4 Sonal
5
6
You can check further using xsd provided by openaire
guidelines-cris-managers/openaire-cerif-profile.xsd at master · openaire/guidelines-cris-managers
Can you please tell us how to fix this?
The text was updated successfully, but these errors were encountered: