Skip to content
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

Error with Schema/API output regarding elementFormDefault="qualified" #3

Open
paulo-graca opened this issue Jul 26, 2021 · 0 comments

Comments

@paulo-graca
Copy link

Like #2 , I think this isn't the proper place to report this, but if you can do the favor to address to the right people, I would be much appreciated!

The schema https://www.openaire.eu/schema/1.0/oaf-project-1.0.xsd is defined as elementFormDefault="qualified" but the OpenAIRE API return non qualified elements like:

https://api.openaire.eu/search/projects?grantID=110062&funder=FCT

<oaf:entity
	xmlns:oaf="http://namespace.openaire.eu/oaf"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://namespace.openaire.eu/oaf https://www.openaire.eu/schema/1.0/oaf-1.0.xsd">
	<oaf:project>
		<collectedfrom name="FCT - Fundação para a Ciência e a Tecnologia" id="openaire____::3421f5eb10975742a75d3f42e1a9e848"/>
		<originalId>fct_________::110062</originalId>
		<websiteurl>http://www.fct.pt/apoios/projectos/consulta/vglobal_projecto.phtml.en?idProjecto=110062&idElemConcurso=3734</websiteurl>
		<code>110062</code>
		<acronym>PTDC/AGR-ALI/110062/2009</acronym>
		<title>Portuguese Wild Mushrooms: Chemical characterization and functional study of antiproliferative and proapoptotic properties in cancer cell lines</title>
		<startdate>2010-12-24</startdate>
		<enddate>2013-12-23</enddate>
		<callidentifier>PTDC/2009</callidentifier>
		<keywords>Agricultural and Forestry Sciences - Food Science and Technology</keywords>
		<duration>0</duration>
		<ecarticle29_3>false</ecarticle29_3>
		<contracttype classid="UNKNOWN" classname="UNKNOWN" schemeid="fct:contractTypes" schemename="fct:contractTypes"/>
		<oamandatepublications>false</oamandatepublications>
		<ecsc39>false</ecsc39>
		<totalcost>0.0</totalcost>
		<fundedamount>0.0</fundedamount>
		<fundingtree>
			<funder>
				<id>fct_________::FCT</id>
				<shortname>FCT</shortname>
				<name>Fundação para a Ciência e a Tecnologia, I.P.</name>
				<jurisdiction>PT</jurisdiction>
			</funder>
			<funding_level_0>
				<id>fct_________::FCT::5876-PPCDTI</id>
				<description>5876-PPCDTI</description>
				<name>5876-PPCDTI</name>
				<parent/>
				<class>fct:program</class>
			</funding_level_0>
		</fundingtree>
		<datainfo>
			<inferred>false</inferred>
			<deletedbyinference>false</deletedbyinference>
			<trust>0.900</trust>
			<inferenceprovenance>null</inferenceprovenance>
			<provenanceaction classid="sysimport:crosswalk:entityregistry" classname="Harvested" schemeid="dnet:provenanceActions" schemename="dnet:provenanceActions"/>
		</datainfo>
		<rels/>
		<children/>
	</oaf:project>
</oaf:entity>

if the API truly validates against the schema, the element:
<code>110062</code>
should instead be:
<oaf:code>110062</oaf:code>

to be in accordance, the API should change or the schema should be changed to be more permissive, changing https://www.openaire.eu/schema/1.0/oaf-project-1.0.xsd from the defined elementFormDefault="qualified" to elementFormDefault="unqualified"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant