Metadata XML Schema

From Biowikifarm Metawiki
Jump to: navigation, search

Let us suppose we have a database having these data:

Type Title Caption Service_Attribution_URI Resource_ID Collection By Resource ID Copyright Statement Creators Language Metadata Language Best_Quality_URI Best_Quality_Availability
InteractiveResource Ustilago tragopogi-pratensis Ustilago tragopogi-pratensis (Pers.) Roussel; http://ServiceProvider/MyDB d1e4 872783096 © XXX Mr Smith fr fr URI of InteractiveResource online (free)
Collection Puccinia coronata Puccinia coronata Cda.; sur Alopecurus agrestis L. http://ServiceProvider/MyDB d1e5 872783097 © ABC Mr Fritz de de    
StillImage Uromyces arenariae-leptoclados Uromyces arenariae-leptoclados Vienn.-Bourg.; sur Arenaria leptoclados Guss. http://ServiceProvider/MyDB d1e6 872783098 © ZZZ Mr Fritz it it URI of StillImage online (free)
Provider My Provider                    

You have to create XML file with this content:

File 1: (demoData.xml)

<?xml version="1.0" encoding="UTF-8"?>
<K2NMetadata xmlns:xsi="" xsi:noNamespaceSchemaLocation="" timestamp="2009-11-04T13:05:01.667+02:00">
		<!-- Mandatory -->
		<!-- End Mandatory -->		
		<Title>Ustilago tragopogi-pratensis</Title>
                <Caption>Ustilago tragopogi-pratensis (Pers.) Roussel;</Caption>		
                <Best_Quality_URI>URI of InteractiveResource</Best_Quality_URI>
		<Best_Quality_Availability>online (free)</Best_Quality_Availability>
                <Copyright_Statement>@ XXX</Copyright_Statement>
		<Creators>Mr Smith</Creators>
		<!-- Mandatory -->
		<!-- End Mandatory -->		
		<Title>Puccinia coronata</Title>
                <Caption>Puccinia coronata Cda.; sur Alopecurus agrestis L.</Caption>		
                <Copyright_Statement>@ ABC</Copyright_Statement>
		<Creators>Mr Fritz</Creators>
		<!-- Mandatory -->
		<!-- End Mandatory -->		
		<Title>Uromyces arenariae-leptoclados</Title>
                <Caption>Uromyces arenariae-leptoclados Vienn.-Bourg.; sur Arenaria leptoclados Guss.</Caption>	
                <Best_Quality_URI>URI of StillImage</Best_Quality_URI>
		<Best_Quality_Availability>online (free)</Best_Quality_Availability>
                <Copyright_Statement>@ ZZZ</Copyright_Statement>
		<Creators>Mr Fritz</Creators>
		<Title>My Provider</Title>


The XML file must be valid according to the scheme K2N.xsd and K2NDictionary.xsd. You can check the validity of your XML file by using online validation tool at The tool allows you to upload the XML file as well as the required XSD files for validation. If your XML file is valid, the tool replies "No errors were found". If your XML file is not valid, a report is generated showing your errors and allowing you to edit the XML file for any corrections. Next image show successfully XML validation.


You can upload those XML files to Fedora repository from http://<URL of application>.

A form is presented to you (see next image), where you must supply some information:


  • fedora Host: host name of Fedora application server (localhost if Fedora is installed on same server of XML upload application);
  • fedora Port: port number of Fedora application server;
  • fedora Path: application path of Fedora application server (default fedora);
  • fedora Login and Fedora Password: credential to submit file to Fedora repository (admin credentials);
  • PID: unique identifier to assign to content to be published;
  • XML File: XML file to publish to repository.

After clicking on 'Upload File' button, a page shows server messages indicating the success or failure of operation.