-
Notifications
You must be signed in to change notification settings - Fork 498
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
Export dataset metadata as DDI #2579
Comments
Also add "citation" to DatasetVersionDTO since we need it to export DDI.
@sekmiller I'll go through this in person, but here's a summary of where this issue stands. The goal generally is for the DDI output to be complete, accurate, and valid against an XML schema. You might find http://www.ddialliance.org/resources/markup-examples helpful. I would advise starting by opening DdiExportUtilTest.java in Netbeans and clicking "Test File" (under "Run"). This should should show "Tests run: 2, Failures: 0" and some (incomplete) DDI output for two datasets, one that has files and one that doesn't. My approach has been to have these tests not rely on a running database. They're unit tests in the spirit of the doc by @michbarsinai at 9f91b93 and #2746. Next I would play around with the integration tests of the API I've written using REST Assured. Open DatasetsIT.java and do "Test File". As before, you should see "Tests run: 2, Failures: 0". One of the two tests The next integration test to try is in BatchIT.java. If you haven't already, run the I hope this helps you get started! You'll find TODO's scattered in the code for stuff that isn't done. And I'm sure there's more stuff in my head that I will try to pass along. Also, here are some questions I have about this issue that are top of mind:
|
Regarding DDI 2.5 vs 2.0:
Also when we talk about JSON export are we talking about the native On Tue, Jan 5, 2016 at 1:49 PM, Philip Durbin [email protected]
Eleni Castro
|
@posixeleni when I asked "For DDI export via API, should the same access rules apply as for JSON export?" I was referring to the existing native JSON export we shipped in #422 as part of Dataverse 4.0. If there are JSON representations of DDI or Dublin Core I'm not aware of them. #2608 is the issue to track for having a button in the GUI to export datasets as native Dataverse JSON. |
@sekmiller ran into similar trouble. This morning we did some testing with In the code base we have the DDI 2.0 schema at https://github.com/IQSS/dataverse/blob/v4.3.1/src/test/java/edu/harvard/iq/dataverse/export/ddi/Version2-0.xsd and the tests that use it are at https://github.com/IQSS/dataverse/blob/v4.3.1/src/test/java/edu/harvard/iq/dataverse/util/xml/XmlValidatorTest.java |
…tadata tab of the dataset pg. [ref #2579]
Cleaned up styling and layout of the Export Metadata button in the Metadata tab of the dataset pg. |
@kcondon gave me some good info about how to test this. Going to give it a shot. |
Going to close this. Will open a related issue for the logic of how we handle "fundag," but that's an existing issue and unrelated to Export. |
Here's the existing issue: #3323 |
Exporting dataset metadata as DDI is a subtask of the main export issue (#907) which lists other non-DDI formats as well.
See also DRAFT - Dataset Metadata Export Functional Requirements Document (FRD).
The text was updated successfully, but these errors were encountered: