[ckan-dev] Import cpomplex, nested metadata schema with attributes ...
Ian Ward
ian at excess.org
Mon Feb 18 17:12:58 UTC 2013
On Mon, Feb 18, 2013 at 11:40 AM, Ryan Clark <ryan.clark at azgs.az.gov> wrote:
> I'm working in a similar situation -- complex XML schema for metadata
> (ISO19139) that needs to be stored in CKAN "packages". I'm coming at it the
> other way, though, to start. That is, I'm working to export ISO19139 from
> CKAN Packages.
>
> I found that the "extras" concept wasn't exactly the right idea for the kind
> of relational data that I wanted to append to the CKAN package. Instead, I
> built a CKAN plugin that builds additional tables in the database (through a
> paster command), and correlates those tables to CKAN's package and resource
> tables through foreign key relationships. Then I can grab the bundle of
> related database objects and pick them apart to export an XML doc.
>
> In the near future, I'll be tackling it in the opposite direction: get the
> XML, convert it to CKAN package plus additional related tables.
>
> I looked at the ckanext-spatial extension for inspiration about how to
> develop the additional tables and the paster command. If this sounds like a
> good solution to you, I would take a look there.
> ____________________
>
> Ryan Clark
> ryan.clark at azgs.az.gov
> (520) 302-4871
Hi Ryan,
I was considering that route if my current approach using lots of
extra fields was too slow.
Is your plugin public by any chance?
Ian
More information about the ckan-dev
mailing list