Generación de metadatos

Páginas: 10 (2378 palabras) Publicado: 17 de mayo de 2011
Crear nuevo metadato

1.- crear nueva carpeta en ROOT\web\xml\schema
Llamarlo organisation
2
Creamos el archivo organisation_template.xml dentro de O y copiamos lo siguiente
<metadata>
        <orgTitle>New organisation</orgTitle>
        <orgAcronym/>
        <orgParentInstitution/>
        <orgDesc/>
        <orgSuppInfo/>
       <orgContactus>
            <orgAddress/>
            <orgPOBox/>
            <orgCity/>
            <orgPostalcode/>
            <orgProvince/>
            <orgCountry/>
            <orgPhone/>
            <orgFax/>
            <orgWebsite/>
            <orgEmail/>
        </orgContactus>
        <orgContactInfo>            <orgContactName/>
            <orgContactRole/>
            <orgContactEmail/>
            <orgContactPhone/>
        </orgContactInfo>
        <mdFileID>este debe ser unico</mdFileID>
</metadata>
En geonetwork\web\geonetwork\loc\en\xml

Creamos el archive organsation.xml con el contenido
<?xml version="1.0" encoding="UTF-8"?><root>
      <metadata help="root entity which defines metadata about the organisation">Organisation's Metadata</metadata>
      <orgTitle help="The organisation's name">Organisation's name</orgTitle>
      <orgAcronym help="abbreviations that is formed using the initial letters of words or word parts in a name.">Acronym</orgAcronym>
     <orgParentInstitution help="The institution above this organisation, if applicable">Parent institution</orgParentInstitution>
      <orgDesc help="Description of the main goal of the organisation">Description</orgDesc>
      <orgContactus>Contact us</orgContactus>
            <orgAddress>Address</orgAddress>
            <orgPOBox>P.O. Box</orgPOBox>            <orgCity>City</orgCity>
            <orgPostalcode>Postal Code / Zip</orgPostalcode>
            <orgProvince>Province / State</orgProvince>
            <orgCountry>Country</orgCountry>
            <orgPhone>Phone</orgPhone>
            <orgFax>Fax</orgFax>
            <orgWebsite>Websitehttp://</orgWebsite>
            <orgEmail>Email</orgEmail>
      <orgSuppInfo help="any other descriptive information about the dataset">Supplemental Information</orgSuppInfo>
      <orgContactInfo help="person to contact">Contact name</orgContactInfo>
            <orgContactName>Name</orgContactName>
           <orgContactRole>Position</orgContactRole>
            <orgContactEmail>Email</orgContactEmail>
            <orgContactPhone>Phone and ext.</orgContactPhone>
      <mdFileID help="unique identifier for this metadata file">File identifier</mdFileID>
</root>
3 en organisation crear schema.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schemaxmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<!-- complex type declaration -->
<xs:element name="metadata" type="metadata"/>

<xs:complexType name="metadata">

<xs:sequence>

<xs:element ref="orgTitle"/>

<xs:element ref="orgAcronym"/>

<xs:element ref="orgParentInstitution"/>

<xs:elementref="orgDesc"/>

<xs:element ref="orgSuppInfo"/>

<xs:element ref="orgContactus"/>

<xs:element minOccurs="0" maxOccurs="unbounded" ref="orgContactInfo" />

<xs:element ref="mdFileID"/>

</xs:sequence>

</xs:complexType>



<xs:element name="orgContactInfo" type="orgContactInfo" />

<xs:complexType...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • metadatos
  • metadatos
  • Que es un metadata
  • Metadatos
  • metadatos
  • metadatos
  • Metadatos
  • Metadatos y atributos

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS