Dataset metadata attribute "topicClassVocabURI" missing
Closed this issue · 0 comments
skasberger commented
Bug report
The Dataset metadata attribute topicClassVocabURI is missing after Dataset creation via the API.
Environment
- OS: Ubuntu 18.04, 64bit
- pyDataverse: 0.3.0
- Python: 3.6.12
- Dataverse: 4.18.1 (Docker)
Possible solution
Add topicClassVocabURI in models.py to Dataset() class.
The JSON created should be of structure:
topicClassVocabURI
typeclass
:primitive
value
: VALUEmultiple
:false
typeName
:topicClassVocabURI
Root Cause Analysis
- Check if attribute is included in test data JSON files
- No
- Check, if attribute exists in model.spy
- No, no key listed inside Dataset() class list
__attr_import_dv_up_citation_fields_arrays["topicClassification"]
- No, no key listed inside Dataset() class list
- Check if attribute exists in a published Dataset
Solution
- Check existing tests
- Write test
- Update existing tests + test data
- Implement solution