source: TI01-discovery/trunk/Query/xquery.txt @ 115

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI01-discovery/trunk/Query/xquery.txt@2114
Revision 115, 2.9 KB checked in by mguiterr, 15 years ago (diff)

* empty log message *

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1for $DE in document()//dgMetadataRecord[dgDataEntity!='' and dgMetadataID/repositoryIdentifier='badc.nerc.ac.uk' and dgMetadataID/localIdentifier='dataent93']
2let $RelDep := $DE//RelatedDeployment
3let $SRAct:=//dgMetadataRecord[(dgMetadataID/repositoryIdentifier=$RelDep/ActivityID/repositoryIdentifier and dgMetadataID/localIdentifier=$RelDep/ActivityID/localIdentifier)]
4let $SRDPT:=//dgMetadataRecord[(dgMetadataID/repositoryIdentifier=$RelDep/DataProductionToolID/repositoryIdentifier and dgMetadataID/localIdentifier=$RelDep/DataProductionToolID/localIdentifier)]
5let $SRObsStn:=//dgMetadataRecord[(dgMetadataID/repositoryIdentifier=$RelDep/ObservationStationID/repositoryIdentifier and dgMetadataID/localIdentifier=$RelDep/ObservationStationID/localIdentifier)]
6return
7<dgMetadataRecord>
8    {$DE/dgMetadataID}
9    {$DE/dgMetadataDescription}
10    {$DE/name}
11    {$DE/abbreviation}
12    <dgDataEntity>
13    {$DE/dgDataEntity/dgDataSetType}
14    {$DE/dgDataEntity/dgDataObjectType}
15    {$DE/dgDataEntity/dgDataGranule}
16    {$DE/dgDataEntity/dgDataSummary}
17    <RelatedDeployment>
18      {$RelDep/DateStart}
19      {$RelDep/DateEnd}
20      {$RelDep/dgMetadataID}
21      <activity>
22        {$SRAct/dgMetadataID}
23        {$SRAct/dgMetadataDescription}
24        {$SRAct/name}
25        {$SRAct/abbreviation}
26        <dgActivity>
27          {$SRAct/dgActivityDataCollection}
28          {$SRAct/dgActivityDataProject}
29          {$SRAct/dgActivityDataCampaign}
30          {$SRAct/dgActivityDataInvestigation}
31          {$SRAct/dgActivityCoverage}
32          {$SRAct/dgActivityDuration}
33        </dgActivity>
34        {$SRAct/dgStructuredKeyword}
35        {$SRAct/DataProvenance}
36        {$SRAct/MetadataSecurity}
37      </activity>
38      <dataproductiontool>
39        {$SRDPT/dgMetadataID}
40        {$SRDPT/dgMetadataDescription}
41        {$SRDPT/name}
42        {$SRDPT/abbreviation}
43        <dgDataProductionTool>
44          {$SRDPT/dgDataProductionTool/contactDetails}
45          {$SRDPT/dgDataProductionTool/dgModel}
46          {$SRDPT/dgDataProductionTool/dgInstrument}
47        </dgDataProductionTool>
48        {$SRDPT/dgStructuredKeyword}
49        {$SRDPT/DataProvenance}
50        {$SRDPT/MetadataSecurity}
51      </dataproductiontool>
52      <observationstation>
53        {$SRObsStn/dgMetadataID}
54        {$SRObsStn/dgMetadataDescription}
55        {$SRObsStn/name}
56        {$SRObsStn/abbreviation}
57        <dgObservationStation>
58          {$SRObsStn/dgObservationStation/contactDetails}
59          {$SRObsStn/dgObservationStation/dgStationaryPlatform}
60          {$SRObsStn/dgObservationStation/dgMovingPlatform}
61        </dgObservationStation>
62        {$SRObsStn/dgStructuredKeyword}
63        {$SRObsStn/DataProvenance}
64        {$SRObsStn/MetadataSecurity}
65      </observationstation>
66      {$RelDep/Coverage}
67    </RelatedDeployment>
68    {$RelDep/dgInputDataGranuleID}
69    {$RelDep/dgRelatedDataGranuleID}
70  </dgDataEntity>
71  {$DE/dgStructuredKeyword}
72  {$DE/DataProvenance}
73  {$DE/MetadataSecurity}
74</dgMetadataRecord>
Note: See TracBrowser for help on using the repository browser.