-
Notifications
You must be signed in to change notification settings - Fork 495
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
invalid schema and metadataNamespace fields in OAI-PMH ListMetadataFormats response #3621
Comments
Another place where I thought about using a namespace for Dataverse was in the context of SWORD. I ended up using |
These days we're using URLs like https://dataverse.org/schema/citation/... in our experimental Semantic Metadata API. See this pull request for examples: |
@tdilauro we are reviewing old tickets related to Harvesting. I was hoping that you could answer the following questions to help us determine if this issue is still open and if so, how to go about fixing it. Thanks! What steps does it take to reproduce the issue?
Which version of Dataverse are you using? |
I've reached out to the author of the ticket for more information, but it's possible that this is not applicable to DV 5.x since there's a reference in the original post to "(Dataverse4 to Dataverse4 harvesting only)" It's difficult to estimate the effort without additional information, as I have not been able to reproduce the error state. |
Sorry to chime in, stumbled over this one. Looking at https://demo.dataverse.org/oai?verb=ListMetadataFormats, it looks like we still are sending out that information. It should be a very simple fix, looking at dataverse/src/main/java/edu/harvard/iq/dataverse/harvest/server/web/servlet/OAIServlet.java Lines 168 to 174 in 8b9d7f5
dataverse/src/main/java/edu/harvard/iq/dataverse/harvest/server/web/servlet/OAIServlet.java Line 100 in 8b9d7f5
|
Thanks, Oliver. |
sizing: This is part of the OAI servlet. This could be possibly just changing static strings. There are two strings.We should put it in the bundle. This will not be coding. We just need to decide how to change the string to make it more appropriate. |
Daily
|
From talk after at standup, this this what we agreed on. Note that these are not real URLs! This is from the OAI_ORE export. At the bottom, the dvcore value is https://dataverse.org/schema/core# . We looked at this example (dvcore is at the bottom): https://dataverse.harvard.edu/api/datasets/export?exporter=OAI_ORE&persistentId=doi%3A10.7910/DVN/TJCLKP There's a lot more work to do to actually define the JSON Schema for Dataverse: All we're doing is adding two URLs so that https://demo.dataverse.org/oai?verb=ListMetadataFormats for example validates.
|
The metadataFormat chunk for prefix dataverse_json looks like:
The value for metadataNamespace should be a URI and the value for schema should be a URL, but any URI will validate. In the short term, it might be reasonable to make up values in the http://dataverse.org namespace, so that the responses comply with the OAI-PMH 2.0 schema.
The text was updated successfully, but these errors were encountered: