Editing metadata related resources
Date | 2013-01-02 |
Contact(s) | Francois Prunayre, Florent Gravin |
Status | CFV |
Assigned to release | 2.9.0 |
Resources | Available (funding Ifremer, PIGMA) |
Ticket # | #1255 |
Github dev branch | https://github.com/fxprunayre/core-geonetwork/tree/improvement/metadata-relation |
Overview
This proposal aims to improve the way a resource is linked to a metadata in editing mode. Indeed, GeoNetwork provides multiples ways of adding link to external or internal resources in different places of the editor. We could list:
- in the editor using the binocular to search for a record to link (eg. parentIdentifier, sources, feature catalog, operatesOn, aggregates)
- file upload for thumbnails or online resources
- custom UI for service/dataset link
This proposal provides a main component to view, add or remove the related resources.
The following related resources are managed:
- A thumbnail (linked using a URL or a file to upload)
- A parent metadata record (UUID to the metadata)
- A service metadata record
- A dataset metadata record
- A source dataset
- An online resource
- A feature catalog
- A sibling (See http://trac.osgeo.org/geonetwork/wiki/MetadataSiblings)
This component is only available for ISO19139 records (or ISO19139 profiles) but when related resources are metadata records, those records could be in any of the catalog supported standards (eg. ISO19110 for feature catalog, dublin core).
The relation manager provides a list of related resources and links to remove them.
New relation could be added using the top right menu:
Proposal Type
- Type: GUI Change
- App: GeoNetwork
- Module: Widgets
Links
- Documents:
Voting History
- Vote proposed 08/04/2013
- +1 Emanuele, Francois, Simon
- 0
- -1
Motivations
Make relation management easier.
Proposal
This related resource panel rely on:
- the relation service (to retrieve current relation for a record)
- XSL processing to add or remove a relation
Add a thumbnail
Two types of thumbnails could be linked to a metadata record:
- an image linked using its URL (the image needs to be published online)
- an image uploaded in the record data directory. During upload a small thumbnail could be created if requested.
The relation panel allows to quickly remove a thumbnail.
When the image is uploaded, the XML snippet corresponding to the image is the following:
<!-- Thumbnail added by upload --> <gmd:graphicOverview> <gmd:MD_BrowseGraphic> <gmd:fileName> <gco:CharacterString>http://localhost:8080/geonetwork/srv/eng/resources.get?uuid=7e512c38-f916-43ba-8367-85f17dcadca1&fname=thumbnail.jpg</gco:CharacterString> </gmd:fileName> <gmd:fileDescription> <gco:CharacterString>large_thumbnail</gco:CharacterString> </gmd:fileDescription> <gmd:fileType> <gco:CharacterString>jpg</gco:CharacterString> </gmd:fileType> </gmd:MD_BrowseGraphic> </gmd:graphicOverview>
When linking using a URL, the following XML snippet is inserted
<!-- Thumbnail added by URL --> <gmd:graphicOverview> <gmd:MD_BrowseGraphic> <gmd:fileName> <gco:CharacterString>http://organization.org/images/thumbnail.jpg</gco:CharacterString> </gmd:fileName> </gmd:MD_BrowseGraphic> </gmd:graphicOverview>
In both cases, the information could be improved or updated using the editor from the advanced view > identification section.
Add an online source
The relation manager allows to add an online resource element defining the following information:
- URL or a file to upload
- name
- description
- protocol
Link metadata records
Add a parent metadata record
In order to add a link to a parent metadata record, search for the target record and select the parent metadata to link to the current in editing.
Once added, the following XML fragment is inserted in the metadata record:
<gmd:parentIdentifier> <gco:CharacterString>SDN:PRODUCT:1850:Time Series Tributyltin (TBT) in Sediment</gco:CharacterString> </gmd:parentIdentifier>
In the editor, the relation could be updated in the metadata section:
When a record has children records, the update children wizard could be executed (See http://geonetwork-opensource.org/manuals/trunk/eng/users/quickstartguide/new_metadata/index.html#parent-child-relation).
Add a sibling
ISO Metadata records can be related to another record with different type of relations. The elements in the ISO standard providing those links is the aggregationInfo element. Sibling relationships types can be specified using the initiative type and association type fields. See http://trac.osgeo.org/geonetwork/wiki/MetadataSiblings for more details.
In order to add a sibling link:
- choose a type of association
- choose a type of initiative
- and search for the records to link
Multiple sibling could be linked to the record in one time defining for each element the association type and initiative type to use:
The type of sibling is displayed in the relation manager which allows to quickly remove the relation if needed:
Once added, the following XML is inserted in the metadata record:
<gmd:aggregationInfo> <gmd:MD_AggregateInformation> <gmd:aggregateDataSetIdentifier> <gmd:MD_Identifier> <!-- optional gmd:authority here: could have details of a register describing the some details of the sibling record --> <!-- code is UUID/urn of the sibling record, could be a gmx:Anchor --> <gmd:code> <gco:CharacterString>urn:marine.csiro.au:project:1532</gco:CharacterString> </gmd:code> </gmd:MD_Identifier> </gmd:aggregateDataSetIdentifier> <gmd:associationType> <gmd:DS_AssociationTypeCode codeList="http://...#DS_AssociationTypeCode" codeListValue="crossReference">crossReference</gmd:DS_AssociationTypeCode> </gmd:associationType> <!-- initiative type describes the type of sibling relationship - in this case the code is a project related to the record that contains this aggregateInformation --> <gmd:initiativeType> <gmd:DS_InitiativeTypeCode codeList="http://...#DS_InitiativeTypeCode" codeListValue="project">project</gmd:DS_InitiativeTypeCode> </gmd:initiativeType> </gmd:MD_AggregateInformation> </gmd:aggregationInfo>
Add a source dataset
In the data quality section, the source dataset could be linked to a record.
Once added, the following XML fragment is inserted in the metadata record:
<gmd:source uuidref="095cdc57-f44b-4613-894c-f09f1b672140"> </gmd:source>
In the editor, the relation could be updated in the data quality section:
Add a feature catalog
The feature catalog is used to describe the data model of a dataset using the ISO19110 standards. In the content information section, the feature catalog could be linked to a record. The relation panel filter ISO19110 record in order to quickly link a feature catalog.
Once added, the following XML fragment is inserted in the metadata record:
<gmd:contentInfo> <gmd:MD_FeatureCatalogueDescription> <gmd:includedWithDataset/> <gmd:featureCatalogueCitation uuidref="46ce9c2f-6c37-4ae7-9511-63940ece5760" xlink:href="http://localhost:8080/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=46ce9c2f-6c37-4ae7-9511-63940ece5760"/> </gmd:MD_FeatureCatalogueDescription> </gmd:contentInfo>
In the editor, the relation could be updated in the content information section:
Add a service/dataset
Relation manager widget advanced configuration
The relation manager provides some advanced configuration for developpers:
- per schema configuration in order to define which type of relations to handle
// Define a custom configuration for the iso19139.xyz profile. resourcesTypesCfg: { 'iso19139.xyz': ['thumbnail', 'fcats', 'sibling'], // only support 3 types of relation },
Backwards Compatibility Issues
None.
New libraries added
None.
Risks
Everything involves some element of risk....
Participants
- Francois Prunayre
- Florent Gravin (Camptocamp)
- Ifremer
- PIGMA
Installation de coffres-forts, dépannage et entretient de coffre-fort et armoire forte : coffre-fort homologué coffre-fort armoire forte anti-feu coffre-fort ignifuge
Attachments (12)
- geonetwork-add-parents.png (93.0 KB ) - added by 12 years ago.
- geonetwork-edit-parents.png (15.8 KB ) - added by 12 years ago.
- geonetwork-add-siblings-ref.png (4.3 KB ) - added by 12 years ago.
- geonetwork-add-multiple-siblings.png (46.6 KB ) - added by 12 years ago.
- geonetwork-add-siblings.png (12.9 KB ) - added by 12 years ago.
- geonetwork-relation-manager.png (38.8 KB ) - added by 12 years ago.
- geonetwork-relation-manager-actions.png (28.5 KB ) - added by 12 years ago.
- geonetwork-add-thumbnails-by-url.png (23.4 KB ) - added by 12 years ago.
- geonetwork-add-thumbnails.png (13.4 KB ) - added by 12 years ago.
- geonetwork-add-simple-online-resource.png (20.2 KB ) - added by 12 years ago.
- geonetwork-edit-sources.png (15.2 KB ) - added by 12 years ago.
- geonetwork-edit-fcats.png (21.7 KB ) - added by 12 years ago.
Download all attachments as: .zip