Generating JSON entities list using aggregator-cli

Ian Young ian at iay.org.uk
Fri Dec 2 10:16:48 EST 2016


> On 1 Dec 2016, at 21:57, Matthew X. Economou <xenophon at irtnog.org> wrote:
> 
> Can aggregator-cli generate a JSON-formatted summary of the output
> per-entity metadata metadata similar to what's given by querying
> mdq-server's /x-entity-list endpoint?  I didn't see any references to
> JSON in the metadata aggregator documentation, but it's possible I
> missed something obvious. 
> 
> Yes, this means I want to use aggregator-cli instead of mdq-server to
> generate (and refresh) per-entity metadata from a given set of source
> metadata/metadata aggregates.  I might be better served by switching to
> mdq-server.  Alternatively, I could probably write my own script to
> generate the JSON-formatted summary by post-processing the output of
> aggregator-cli, but that strikes me as being firmly in wheel-inventing
> territory (which I'd prefer to avoid).

mdq-server is just an MDA application, in the sense of an application that
uses the MDA framework. It generates the JSON you are referring
to by implementing an MDA Stage to generate the output and including it in
the configuration. You could easily use that same stage in a configuration
invoked by the mda.sh CLI instead.

Cheers,

    -- Ian






More information about the users mailing list