Open
Description
With the simple OAI-PMH server (#52) working on toolforge (#53), generating compliant XML files from Wikidata entries is next.
Two possible path's seem worthy of initial exploration:
- using CitationJS to generate a JSON object from Wikidata and then producing XML output using either:
- creating a custom CitationJS output plugin
- XMLBuilder2
- xml-js
- using XSLT to transform the RDF record of a Wikidata entity (encoded as XML) into a BASE compliant XML file
Creating an XSLT transform (2) would probably be more useful in creating a generalised solution for Wikibase (#14) though involves traversing multiple interlinked nodes which could be tricky and might be more brittle than (1).
As we have established that CitationJS generates a well formed JSON object from Wikidata (including some clean up of Author names, etc) (1) might be a quicker, though more specific to solely our project, approach.
Thus I shall prioritise investigating (1) first.