Changeset 2192 for TI07-MOLES/trunk/MDIP


Ignore:
Timestamp:
20/02/07 15:32:38 (13 years ago)
Author:
ko23
Message:

Corrected MDIP deconstructors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/MDIP/XQueries/MDIP2MOLES.xquery

    r2142 r2192  
    1010declare namespace mdip='http://www.dassh.ac.uk'; 
    1111declare namespace gco='http://www.isotc211.org/2005/gco'; 
    12 declare namespace f='http://ndg.nerc.ac.uk/moles/localfunctions'; 
     12 
    1313declare variable $input_collection as xs:string {'TargetCollection'}; 
    14  
    1514declare variable $input_repository as xs:string {'Input_Repository_Code'}; 
    1615declare variable $input_repository_local as xs:string {'Input_Repository_LocalID'}; 
     
    2322 
    2423declare variable $cf_standard_names as xs:string {'http://www.cgd.ucar.edu/cms/eaton/cf-metadata/standard_name.html'}; 
    25  
    26 (: declare variable $gcmd_science_valids as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/gcmd_parameters.html'}; :) 
    27 declare variable $gcmd_science_valids as xs:string {'http://vocab.ndg.nerc.ac.uk/P041'}; 
    28 declare variable $gcmd_project_valids as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/projects.html'}; 
    29 declare variable $gcmd_location_valids as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/locations.html'}; 
    30 declare variable $gcmd_paleotemporal_valids as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/paleotemporal.html'}; 
    31 declare variable $gcmd_iso_topic_list as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/iso_topic_list.html'}; 
    32  
    33 declare variable $iho_s23_list as xs:string {'http://vocab.ndg.nerc.ac.uk/C161'}; 
    34  
    35 (: declare variable $iso_topic_list as xs:string {'http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_TopicCategoryCode'}; :) 
    36 declare variable $iso_topic_list as xs:string {'http://vocab.ndg.nerc.ac.uk/P051'}; 
    37 declare variable $ISO_639-2_ns as xs:string{'UKGemini_Langauge_Categories'}; 
    38 declare variable $ISO_3166_ns as xs:string{'UKGemini_Land_Area_Categories'}; 
    39  
    40 declare variable $ndg_data_provider_vocab as xs:string {'http://vocab.ndg.nerc.ac.uk/N010'}; 
    41 declare variable $ndg_vertical_extent_base as xs:string {'http://vocab.ndg.nerc.ac.uk/null'}; 
    4224 
    4325for $MDIP in collection($input_collection)/mdip:Metadata[mdip:DatasetIdentifier=$input_DatasetIdentifier] 
     
    136118                                                                } 
    137119                                                } (: /dgSpatialCoverage :), 
    138                                                 element dgTemporalCoverage { (: didn't bother trying to validate the Dates as the example is naff to start with :) 
     120                                                element dgTemporalCoverage {  
     121                                                (: didn't bother trying to validate the Dates as the example is naff to start with :) 
    139122                                                        for $date in $MDIP/mdip:Date 
    140123                                                        return 
     
    146129                                                                else if (exists($MDIP/mdip:Date/mdip:DatasetStartDate)) then  element DataSingle {data($MDIP/mdip:Date/mdip:DatasetStartDate)} 
    147130                                                                else element DataSingle {data($MDIP/mdip:Date/mdip:DatasetEndDate)} 
    148                                                 } 
    149                                         } (: /dgDataCoverage :), 
     131                                                                } (: /dgTemporalCoverage :) 
     132                                                        } (: /dgDataCoverage :), 
    150133                                        if (exists($MDIP/mdip:DatasetRefDate)) then 
    151134                                                element dgDatasetProvenance {element dgDataPublicationDate {data($MDIP/mdip:DatasetRefDate)}} 
     
    279262                                        } 
    280263                                else () 
    281                         } 
     264                        } (: dgMetadataProvenance :) 
    282265                else () 
    283266        } (: </dgMetadataRecord>:), 
    284267        for $creator in $MDIP/mdip:Originator 
    285268        return 
    286                 element dgOrganisation { (: needs expansion... :) 
     269                element dgOrganisation { 
     270                (: needs expansion... :) 
    287271                        element dgMetadataID { 
    288272                                element schemeIdentifier {'NDG-B0'}, 
     
    297281                        element contactDetails {''} 
    298282                } 
    299 } (:    </dgMetadata> :) 
     283} 
     284(:    </dgMetadata> :) 
Note: See TracChangeset for help on using the changeset viewer.