Changeset 2154 for TI07-MOLES


Ignore:
Timestamp:
13/02/07 11:42:31 (12 years ago)
Author:
ko23
Message:

Refactoring intermediate

Location:
TI07-MOLES/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/DIF/XQuery/NDG-DIF.xquery

    r2132 r2154  
    11import module namespace voclib='http://ndg.nerc.ac.uk/xquery/lib/vocab' at 'xmldb:exist:///db/xqueryLib/Vocabs/vocab_xquery_lib.xquery'; 
     2import module namespace utillib='http://ndg.nerc.ac.uk/xquery/lib/inputParse' at 'xmldb:exist:///db/xqueryLib/Utilities/utility_xquery_lib.xquery'; 
    23declare default element namespace 'http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/'; 
    34declare namespace xsi='http://www.w3.org/2001/XMLSchema-instance';  
     
    67declare variable $repositoryIdentifier as xs:string {'RepositoryID'}; 
    78declare variable $localIdentifier as xs:string {'LocalID'}; 
     9 
     10voclib:spot-vocab($vocab_root as xs:string, $vocab_uri as xs:string) 
    811 
    912for $DE in collection($targetCollection)/moles:dgMetadata/moles:dgMetadataRecord[ 
     
    1518element DIF { 
    1619        attribute xsi:schemaLocation {'http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/ http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/dif_v9.4.xsd'}, 
    17         element Entry_ID {concat($DE/moles:dgMetadataID/moles:repositoryIdentifier, '__DIF__', $DE/moles:dgMetadataID/moles:localIdentifier)}, 
     20        element Entry_ID {concat($DE/moles:dgMetadataID/moles:repositoryIdentifier, $utillib:moles_id_separator, 'DIF', $utillib:moles_id_separator, $DE/moles:dgMetadataID/moles:localIdentifier)}, 
    1821        element Entry_Title {string($DE/moles:name)}, 
    1922        element Data_Set_Citation { 
  • TI07-MOLES/trunk/xqueryLib/Utilities/utility_xquery_lib.xquery

    r2132 r2154  
    11module namespace utillib='http://ndg.nerc.ac.uk/xquery/lib/utilities'; 
     2 
     3declare variable $utillib:moles_id_separator as xs:string {'__'}; 
    24 
    35declare function utillib:strip-namespace($e as element()) as element()  
  • TI07-MOLES/trunk/xqueryLib/Vocabs/vocab_xquery_lib.xquery

    r2132 r2154  
    22(: Standard vocab stubs :) 
    33declare variable $voclib:unknown_vocab_id as xs:string {'http://vocab.ndg.nerc.ac.uk/null'}; 
     4 
     5declare variable $voclib:iso_3166_alpha2 as xs:string {'http://vocab.ndg.nerc.ac.uk/C320'}; 
     6 
     7declare variable $voclib:bodc_parameter_usage_vocab as xs:string {'http://vocab.ndg.nerc.ac.uk/P011'}; 
    48declare variable $voclib:bodc_parameter_discovery_vocab as xs:string {'http://vocab.ndg.nerc.ac.uk/P021'}; 
     9 
     10declare variable $voclib:ndg_data_provider_vocab as xs:string {'http://vocab.ndg.nerc.ac.uk/N010'}; 
     11 
     12declare variable $voclib:gcmd_science_valids as xs:string {'http://vocab.ndg.nerc.ac.uk/P04'};  
     13declare variable $voclib:gcmd_science_valids_correct as xs:string {'http://vocab.ndg.nerc.ac.uk/P041'};  
     14declare variable $voclib:gcmd_science_valids_deprecated as xs:string {'http://vocab.ndg.nerc.ac.uk/P042'};  
     15declare variable $voclib:gcmd_science_valids_categories as xs:string {'http://vocab.ndg.nerc.ac.uk/P111'};  
     16declare variable $voclib:gcmd_science_valids_topics as xs:string {'http://vocab.ndg.nerc.ac.uk/P121'};  
     17declare variable $voclib:gcmd_science_valids_terms as xs:string {'http://vocab.ndg.nerc.ac.uk/P131'};  
     18declare variable $voclib:gcmd_science_valids_variables as xs:string {'http://vocab.ndg.nerc.ac.uk/P141'};  
     19 
     20declare variable $voclib:iso_topic_list as xs:string {'http://vocab.ndg.nerc.ac.uk/P051'}; 
     21declare variable $voclib:bodc_unit_names as xs:string {'http://vocab.ndg.nerc.ac.uk/P061'}; 
    522declare variable $voclib:cf_standard_names as xs:string {'http://vocab.ndg.nerc.ac.uk/P071'}; 
    6 declare variable $voclib:gcmd_science_valids as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/gcmd_parameters.html'}; 
    7 declare variable $voclib:gcmd_science_valids as xs:string {'http://vocab.ndg.nerc.ac.uk/P041'};  
     23 
     24declare variable $voclib:gcmd_instrument_valids as xs:string {'http://vocab.ndg.nerc.ac.uk/P101'};  
     25declare variable $voclib:gcmd_project_valids as xs:string {'http://vocab.ndg.nerc.ac.uk/P161'};  
     26declare variable $voclib:gcmd_location_valids as xs:string {'http://vocab.ndg.nerc.ac.uk/P171'};  
     27declare variable $voclib:gcmd_chronostratigraphic_valids as xs:string {'http://vocab.ndg.nerc.ac.uk/P181'};  
    828 
    929declare variable $voclib:gcmd_project_valids as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/projects.html'}; 
    10 declare variable $voclib:gcmd_location_valids as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/locations.html'}; 
    11 declare variable $voclib:gcmd_paleotemporal_valids as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/paleotemporal.html'}; 
    1230declare variable $voclib:gcmd_iso_topic_list as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/iso_topic_list.html'}; 
    13 declare variable $voclib:iso_topic_list as xs:string {'http://vocab.ndg.nerc.ac.uk/P051'}; 
    14 declare variable $voclib:ndg_data_provider_vocab as xs:string {'http://vocab.ndg.nerc.ac.uk/N010'}; 
    1531 
    1632declare function voclib:spot-vocab($vocab_root as xs:string, $vocab_uri as xs:string) as xs:boolean  
Note: See TracChangeset for help on using the changeset viewer.