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

Mapping DDI XML #18

Open
21 tasks
skasberger opened this issue Jun 22, 2019 · 3 comments
Open
21 tasks

Mapping DDI XML #18

skasberger opened this issue Jun 22, 2019 · 3 comments
Assignees
Labels
pkg:models models related activities prio:low status:confirmed Is a valid issue and will be moved forward soon. type:feature New feature

Comments

@skasberger
Copy link
Member

skasberger commented Jun 22, 2019

Implement mapping from and to DDI XML.

Requirements

  • DDI XML from NESSTAR mapping
  • DDI XML from OAI-PMH endpoint mapping
  • DDI XML from frontend download mapping
  • import from all DDI XML versions
  • import from all DDI XML versions (lower priority)
  • validate data against schema
  • XML schemas

ACTIONS

0. Pre-Requisites

  • Part of re-factor models module Re-factor models module #102
  • is there already a Python module out there, which works with DDI XML (or code, or developer)?
  • Check out DANS service

1. Research

  • [ ]

2. Plan

  • Define requirements

3. Implement

  • Write tests
    • Create Mapping File
  • Write code
  • Update Docs
    • Basic Usage
    • Advanced Usage
    • Quickstart
  • Write Docstrings
  • Run pytest
  • Run tox
  • Run pylint
  • Run mypy

4. Follow Ups

  • Review
    • Code
    • Tests
    • Docs

Follow-Ups

@skasberger skasberger added type:review Review pkg:models models related activities labels Jun 22, 2019
@skasberger skasberger self-assigned this Jun 22, 2019
@skasberger skasberger pinned this issue Jul 2, 2019
@skasberger skasberger added this to the v0.4.0 or later milestone Jun 19, 2020
@skasberger skasberger changed the title Import/export DDI XML into models Import and export DDI XML Jun 26, 2020
@skasberger
Copy link
Member Author

skasberger commented Jun 26, 2020

Here some resources:

Functionalities:

  • Data types: Datasets, Datafiles
  • Validate data before export and import
  • Import to DVObjects Dataset and Datafile
  • Export to DVObjects Dataset and Datafile
  • Include NESSTAR Dialect
  • add custom mapping with custom XSLT
  • Use/Create XSLT Schemas: CESSDA has some, DANS ddi-converter uses one too and another one on GitHub.

Mapping for DDI 2.5. Some attributes mapped:

abstract -> dsDescriptionValue
notes -> notesText
titl -> titel
subTitl -> subtitle
altTitl -> alternativeTitle
grantNo -> grantNumberValue
grantNo (agency) -> grantNumberAgency
timePrd (event="start") -> timePeriodCoveredStart
timePrd (event="end") -> timePeriodCoveredEnd
collDate (event="start") -> dateOfCollectionStart
collDate (event="end") -> dateOfCollectionEnd
dataKind -> kindOfData
serName -> seriesName
serInfo -> seriesInformation
relMat -> relatedMaterial
relStdy -> relatedDatasets
othRefs -> otherReferences
srcOrig -> originOfSources

@skasberger skasberger added prio:low status:confirmed Is a valid issue and will be moved forward soon. labels Jun 26, 2020
@skasberger skasberger added type:feature New feature and removed type:review Review labels Jan 26, 2021
djbrooke pushed a commit to djbrooke/pyDataverse that referenced this issue Feb 9, 2021
@skasberger skasberger modified the milestones: Later, v0.5.0 Feb 17, 2021
@skasberger skasberger changed the title Import and export DDI XML Mapping DDI XML Apr 2, 2021
@skasberger skasberger modified the milestones: v0.5.0, Later Apr 2, 2021
@pdurbin
Copy link
Member

pdurbin commented Mar 4, 2024

As discussed during the 2024-02-14 meeting of the pyDataverse working group, we are closing old milestones in favor of a new project board at PyDataverse Working Group and removing issues (like this one) from those old milestones. Please feel free to join the working group! You can find us at https://py.gdcc.io and https://dataverse.zulipchat.com/#narrow/stream/377090-python

@pdurbin pdurbin removed this from the Later milestone Mar 4, 2024
@pdurbin pdurbin unpinned this issue Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:models models related activities prio:low status:confirmed Is a valid issue and will be moved forward soon. type:feature New feature
Projects
None yet
Development

No branches or pull requests

2 participants