Changeset 2008 for TI07-MOLES/trunk/MDIP


Ignore:
Timestamp:
16/01/07 16:26:54 (13 years ago)
Author:
ko23
Message:

Updated XQueries (DIF/DC) B->D part 1

Location:
TI07-MOLES/trunk/MDIP
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/MDIP/MDIPRelated.spp

    r1886 r2008  
    88        <Folder FolderName="DTD/Schemas" ExtStr="dtd;dcd;xdr;biz;xsd"> 
    99                <File FilePath=".\Schemae\MDIPMetaData_v0_5.xsd" HomeFolder="Yes"/> 
     10                <File FilePath=".\Schemae\MDIPMetaData_v1_0.xsd" HomeFolder="Yes"/> 
    1011                <File FilePath=".\..\v1Schema\Schemae\ndgmetadata1.3.xsd" HomeFolder="Yes"/> 
    1112        </Folder> 
  • TI07-MOLES/trunk/MDIP/MDIPRelated.xpr

    r1926 r2008  
    77    </meta> 
    88    <projectTree name="MDIPRelated.xpr"> 
     9        <folder path="file:/c:/test/mdip2moles/"/> 
    910        <file name="../DIF/XQuery/DIF2MOLES.xquery"/> 
    1011        <file name="Examples/Gemini_MDIP_v0.5.xml"/> 
     
    1213        <file name="Schemae/MDIPMetaData_v0_5.xsd"/> 
    1314        <file name="../DIF/XQuery/NDG-DIF.xquery"/> 
     15        <file name="../DublinCore/XQuery/NDG-DublinCore.xquery"/> 
     16        <file name="../ISO19115-19139/XQuery/NDG-ISO19115-139.xquery"/> 
    1417        <file name="XQueries/NDG-MDIP.xquery"/> 
    1518        <file name="../v1Schema/Schemae/ndgmetadata1.3.xsd"/> 
  • TI07-MOLES/trunk/MDIP/XQueries/MDIP2MOLES.xquery

    r1977 r2008  
    11(: Version for one MDIP per dgMetadata instance :) 
    22(: Note algoritm for creating non-pre-existing organisations :) 
    3  (: dgPersons are not created as one can't tell automatically which are people and which are orgs, and orgs are simpler :)   
     3(: dgPersons are not created as one can't tell automatically which are people and which are orgs, and orgs are simpler :)   
     4(: Not producing valid MOLES as still got to work out parameter vocabulary namespaces in the subject field :)   
    45 
    56declare default element namespace 'http://ndg.nerc.ac.uk/moles'; 
     
    1314declare variable $input_repository_local as xs:string {'Input_Repository_LocalID'}; 
    1415declare variable $input_DatasetIdentifier as xs:string {'Input_Entry_ID'}; 
     16declare variable $output_local_id as xs:string {'Output_LocalID'}; 
    1517 
    1618declare variable $unknown_vocab_id as xs:string {'http://vocab.ndg.nerc.ac.uk/null'}; 
     
    2123 
    2224(: declare variable $gcmd_science_valids as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/gcmd_parameters.html'}; :) 
    23 declare variable $gcmd_science_valids as xs:string {'http://vocab.ndg.nerc.ac.uk/041'}; 
     25declare variable $gcmd_science_valids as xs:string {'http://vocab.ndg.nerc.ac.uk/P041'}; 
    2426declare variable $gcmd_project_valids as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/projects.html'}; 
    2527declare variable $gcmd_location_valids as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/locations.html'}; 
     
    6769                        element schemeIdentifier {'NDG-B0'}, 
    6870                        element repositoryIdentifier {$input_repository}, 
    69                         element localIdentifier {string($MDIP/mdip:DatasetIdentifier)} 
     71                        if ($output_local_id != 'Output_LocalID') then 
     72                                element localIdentifier {$output_local_id} 
     73                        else 
     74                                element localIdentifier {escape-uri(data($MDIP/mdip:DatasetIdentifier), true())} 
    7075                }, 
    7176                element dgMetadataDescription { 
     
    101106                                                }, 
    102107                                                element dgStdParameterMeasured { 
    103                                                         element dgValidTerm {string($parameter/mdip:SubjectName)}, 
     108                                                element dgValidTerm {string($parameter/mdip:SubjectName)}, 
    104109                                                                element dgValidTermID { 
    105110                                                                        element ParentListID {string($parameter/mdip:SubjectVocab)}, 
     
    162167                                        } (: /dgDataCoverage :), 
    163168                                        if (exists($MDIP/mdip:DatasetRefDate)) then 
    164                                                 element dgDatasetProvenance {element dgDataPublicationData {data($MDIP/mdip:DatasetRefDate)}} 
     169                                                element dgDatasetProvenance {element dgDataPublicationDate {data($MDIP/mdip:DatasetRefDate)}} 
    165170                                        else () 
    166171                        } (: /dgDataSummary :), 
     
    181186                                                                element schemeIdentifier {'NDG-B0'}, 
    182187                                                                element repositoryIdentifier {$input_repository}, 
    183                                                                 element localIdentifier  {escape-uri(concat('generated_orgcit-', string($creatorID)), true())} 
     188                                                                element localIdentifier  {escape-uri(concat('generated_orgcit-', string($creatorID), '-', data($MDIP/mdip:DatasetIdentifier)), true())} 
    184189                                                        }, 
    185190                                                element startDate {current-date()} 
     
    286291                                element schemeIdentifier {'NDG-B0'}, 
    287292                                element repositoryIdentifier {$input_repository}, 
    288                                 element localIdentifier {escape-uri(concat('generated_orgcit-', string($creator/mdip:OriginatorName)), true())} 
     293                                element localIdentifier {escape-uri(concat('generated_orgcit-', string($creator/mdip:OriginatorName), '-', data($MDIP/mdip:DatasetIdentifier)), true())} 
    289294                        }, 
    290295                        element name {data($creator/mdip:OriginatorName)}, 
Note: See TracChangeset for help on using the changeset viewer.