← Back to team overview

dhis2-devs team mailing list archive

Re: Proposal for new DXF format

 

Hi Jason,

Yes, all my work is publicly available from bzr branch
lp:~murodlatifov/+junk/dhis2.
I am using JAXB for validating and marshalling XML. Reason for having
separate branch is validation, which fails for cyrrilyc chars. Also I made
locale handling differently. Last week up to now I only commited to my local
Bazaar only, as was strugling with third party installers in NDIS module for
installer. They are huge and meaningless to be kept in bazaar. But metadata
part should be there by now.
Looking forward for your comments.
Most of metadata handling is in dhis-web-datadictionary/dataset/orgunit/
modules under "meta" packages. There are two menu options in "Data Elements
and Indicators"(Data Dictionary)  menu with same nane at the bottom :), one
brows metaobjects in tabs, other produces xml representation of metaobjects
according to given xsd. There are also autogeneretaed Java objects for each
object in xsd to ensure valid output. Package "org.hisp.dhis.meta" in
dhis-web-datadictionary has these objects, they are created each time you
run mvn from src/main/resources/dxf3.xsd and placed in target generated
sources. You need to manually copy them over to "org.hisp.dhis.meta" if
modified xsd.

regards,
murod

On Thu, Mar 10, 2011 at 7:38 PM, Jason Pickering <
jason.p.pickering@xxxxxxxxx> wrote:

> Hi Murod,
> I think you raise some really good points, but being more towards the
> implementers side than the developers side, it would be very useful to
> see what you describe in action. Is the "local copy" which you refer
> to available on Launchpad so that maybe those of us that are
> interested could take a look at what you have done thus far?
>
>
> Regards,
> Jason
>
>
> On Thu, Mar 10, 2011 at 5:26 PM, Murod Latifov <mlatifov@xxxxxxxxx> wrote:
> > Hi,
> >
> > As you know I was working to create metadata that is unique (in terms of
> > metaobjects) all over the implementation. Details of how metadata is
> created
> > was posted previously. Now, we have XML representation of metadata as no
> > "Wow Snap" typew of things. Attached is dhis metadata (dxf3.xsd), which
> > ensures that every XML import/export complying with this XSD will be
> always
> > valid for W3. Every external source suplying data to DHIS2 following this
> > XSD will not fail, and so on.
> > Also each metadata screen had icon for adding new metadata object. Once
> > object is added to metadata, it is shown in green color to distinguish it
> > from ordinary objects. Also views for metadata view were created in
> > hierarchy and relations along with metadta export in xml (.xml). Changes
> > made to master database could be easily transfered to local installations
> > without any failure as long as we follow this XSD, which is built in
> DHIS2
> > implementation (one i am using). XSD counts for all relations in DHIS2
> > metadata and restores them in similar manner without failure. If someting
> is
> > not counted for, it fails rather creating false output, that fails later
> for
> > sure.
> > Much more to this shouls be added as we hear feedback from interested
> > devs/implementers.
> > All code is some line to call lib functions, no need to take care of
> string
> > beign XML compliant not to "Wow snap" users in specific utils of date and
> > minutes handling.
> > So, I propose this XSD to be next version od DXF with feedbacks from
> > users/devs incorporated. Most, and noticeable part of it is to respect
> duely
> > relations between meta objects. My understanding is that unless we adhear
> to
> > these issues, we will be solving individual issues of cases.
> > Please revise and comment as it is important for me to take further
> steps.
> >
> > regards,
> > murod
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~dhis2-devs
> > Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~dhis2-devs
> > More help   : https://help.launchpad.net/ListHelp
> >
> >
>
>
>
> --
> Jason P. Pickering
> email: jason.p.pickering@xxxxxxxxx
> tel:+260974901293
>

Follow ups

References