UB-Mannheim / zotkat

Erweiterung von Zotero für die Katalogisierung
GNU Affero General Public License v3.0
45 stars 22 forks source link

WQS: Add unit tests from Wikidata translator #55

Open nichtich opened 7 years ago

nichtich commented 7 years ago

The Zotero Wikidata translator, as proposed here does the reverse of Wikidata QuickStatements exporter, so it should be possible to round-trip export and import. As far as I understand

Given a QuickStatements to RDF/XML mapping we could use unit tests for both translator and exporter, right? Maybe @maxlath is interested in a QuickStatements parser/writer in JavaScript, but the format is easy to parse anyway.

Sure this issue has no top priority, I just wanted to note the idea.

nichtich commented 6 years ago

This issue is not solved, the existing unit tests only cover the QuickStatements exporter one way. The Zotero-to-Wikiata exporter contains its own test cases. Both can be combined to ensure test round-tripping import and export.

nichtich commented 6 years ago

There is also CitationJS Wikidata parser to test against.