See issue #1 for info about encoding oddities in the XML.
In the json examples I've included a number of fields that are not present in the XML source, just to show you that these fields do exist in our schema. Things that look like:
{
"date_modified": null,
"association_type": [],
"position_name": {
"en": null,
"fr": null
},
"keywords": {
"en": [],
"fr": []
}
}
If no data is present it's not necessary to provide these fields in the json.
The date_modified
above would be a simple string value.
The association_type
list above would contain strings values.
The position_name
object above would contain simple strings for each language present.
The keywords
object above would contain lists of string values.
OGDMES FINAL DRAFT | ckan field |
---|---|
fileIdentifier | id (core) |
metadataRecordLanguage | |
characterSet | |
parentIdentifier | parent_id |
hierarchyLevel | hierarchy_level |
metadataContactEnglish | metadata_contact.en |
metadataContactFrench | metadata_contact.fr |
metadataRecordDateStamp | metadata_modified (core) |
metadataStandardName | |
metadataURI | url (core) |
locale | |
title english | title.en (core) |
title french | title.fr (core) |
dateContributed | metadata_created (core) |
datePublished | date_published |
dateModified | date_modified |
identifier | digital_object_identifier |
individualName | individual_name |
organisationNameEnglish | responsible_organization.en |
organisationNameFrench | responsible_organization.fr |
positionNameEnglish | position_name.en |
positionNameFrench | position_name.fr |
contactInfo-deliveryPoint | contact_delivery_point |
contactInfo-CI_Address | contact_address |
contactInfo-administrativeArea | contact_administrative_area |
contactInfo-postalCode | contact_postal_code |
contactInfo-country | contact_country |
contactInfo-electronicMailAddress | maintainer_email (core) |
role | responsible_role |
abstractEnglish | notes.en (core) |
abstractFrench | notes.fr (core) |
descriptiveKeywordsEnglish | keywords.en[] |
descriptiveKeywordsFrench | keywords.fr[] |
status | status |
associationType | association_type[] |
aggregateDataSetIdentifier | aggregate_identifier[] |
spatialRepresentationType | spatial_representation_type[] |
topicCategory | topic_category[] |
westBoundingLongitude | spatial (core, as geojson string) |
eastBoundingLongitude | |
southBoundingLatitude | |
northBoundingLatitude | |
temporalElement | time_period_coverage_start, time_period_coverage_end |
maintenanceAndUpdateFrequency | frequency |
licence | license_id (core) |
referenceSystemInformation | reference_system |
distributorEnglish | distributor.en |
distributorFrench | distributor.fr |
catalogueType | type (core, always = 'hnap') |
ResourceNameEnglish | resources[].name.en (core) |
ResourceNameFrench | resources[].name.fr (core) |
accessURL | resources[].url (core) |
format | resources[].format (core) |
language | resources[].language |
contentType | resources[].content |