dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #09464
Re: DHIS2 DXF schema files
Thanks for all the info, very useful! A few follow up question then.
In future DHIS is looking at JSON as the main import/export API format?
So if I wanted to be able to import metadata from another system in the
long term, JSON is the way to go?
What is the best way to test the generated code is valid DHIS DXF?
I tried this page:
https://play.dhis2.org/demo/dhis-web-importexport/dxf2MetaDataImport.action
And the upload form sent, but no new indicators/data elements were shown in
the listing, but it didn't give me an error either.
--- Specificity is the soul of all good communication ---
--- When the game is over, the king and the pawn go into the same box ---
Find out more about me: http://about.me/legostormtroopr
On 1 March 2016 at 01:02, Bob Jolliffe <bobjolliffe@xxxxxxxxx> wrote:
> We don't follow or express schema for dxf. Particularly the metadata has
> been too dynamic. ( The link is very old and not maintained. )
>
>
> Morten did introduce a schemas endpoint to the API (eg see
> https://play.dhis2.org/demo/api/schemas/dataElement) which provides the
> structure and types of the metadata objects. In theory (and practice) I
> guess one can generate xsd or relaxng schema from these resources. Whether
> it makes sense to generate schema or not might be another matter. There
> are two reasons it might not ....
>
> 1. its hard to use schema for eg jaxb code generation if the schema is
> moving too much
>
> 2. recalling an earlier message from lars that the xml representation of
> metadata may be dropped sometime in the future in favour of concentrating
> on the json
>
>
>
>
>
> On 26 Feb 2016 11:22, "Jason Pickering" <jason.p.pickering@xxxxxxxxx>
> wrote:
>
>> Hi Samuel,
>> We do not really maintain up-to-date schemas as such. The best resource
>> which is available for a given version is the /api/schemas end point, which
>> gives detailed information about each object.
>>
>> In terms of the data format, you can have a look here (
>> https://github.com/dhis2/dhis2-docs/tree/master/src/schemas/dxf_v2_schema).
>> Maybe Bob can comment on whether these are actually still up to date.
>>
>> Regards,
>> Jason
>>
>>
>> On Fri, Feb 26, 2016 at 10:22 AM, Samuel Spencer <
>> theodore.therone@xxxxxxxxx> wrote:
>>
>>> Hi,
>>>
>>> I am looking at writing a DHIS2 import/export subsystem for a metadata
>>> registry I help administer and am having trouble finding the DHIS2/DXF
>>> schemas to make sure I am writing proper XML.
>>>
>>> Can someone point me towards these?
>>>
>>> Cheers,
>>> Samuel Spencer
>>>
>>> Aristotle Metadata Registry - Community Manager
>>> https://github.com/aristotle-mdr/aristotle-metadata-registry
>>>
>>> --- Specificity is the soul of all good communication ---
>>> --- When the game is over, the king and the pawn go into the same box ---
>>> Find out more about me: http://about.me/legostormtroopr
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.pickering@xxxxxxxxx
>> tel:+46764147049
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help : https://help.launchpad.net/ListHelp
>>
>>
References