Presentation is loading. Please wait.

Presentation is loading. Please wait.

Use of XML in the Baltic Sea Fisheries database Peter Sandbeck Danish Institute for Fisheries Research.

Similar presentations


Presentation on theme: "Use of XML in the Baltic Sea Fisheries database Peter Sandbeck Danish Institute for Fisheries Research."— Presentation transcript:

1 Use of XML in the Baltic Sea Fisheries database Peter Sandbeck Danish Institute for Fisheries Research

2 Presentation - Baltcom data exchange system - ICES format versus XML format - XML schema and data validation - Distributed system

3 Baltcom project Country DB ICES format ICES To XML Upload XML format XML schema Baltcom DW zip

4 Baltcom data structure TYPE 1: Record with detailed haul information TYPE 2: Length frequency data TYPE 3: Sex-maturity-age-length keys (SMALK's)

5 ICES format SPECIFICATIONS FOR RECORD TYPE 1 (Haul information) ------------------------------------------------------------------------------------- POSITIONNAMETYPEM/O*RANGE -------------------------------------------------------------------------------------- 1-2Record type2AM 3-5Country3AM 6-7Year2NM00 to 99 8-11Journey4NM1 to 9999 12-14Station no3NM1 to 999, 0 15-16Month2NM1 to 12

6 ICES format, example HHDEN99 634 6 628S 14315 25 2OTM110 830 144039G52554471529 HLDEN99 634 6 628OTM8791030402discard0 1 11 105 331 25 1 HLDEN99 634 6 628OTM8791030402discard0 1 11 105 331 27 1 HLDEN99 634 6 628OTM8791030402discard0 1 11 105 331 29 3 HLDEN99 634 6 628OTM8791030402discard0 1 11 105 331 30 2 HLDEN99 634 6 628OTM8791030402discard0 1 11 105 331 31 3 HLDEN99 634 6 628OTM8791030402discard0 1 11 105 331 32 6 HLDEN99 634 6 628OTM8791030402discard0 1 11 105 331 33 8 HLDEN99 634 6 628OTM8791030402discard0 1 11 105 331 34 9 HLDEN99 634 6 628OTM8791030402landing5 1 413 500 651 36 2

7 XML schema, structure

8 XML schema, key data

9 XML range and pattern

10 XML validation, enumeration

11 XML example <Baltcom xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "C:\Colour of the Ocean\Baltcom_Schema.xsd"> 2000-12-12 12

12 XML advantages Datafiles are more readable (using XML editor) Data can be outputted in any format using XSLT Data format can easily be changed Data validation via XML schema Easy upload/download to databases

13 Distributed system DW 1 Load Database 1 Web service DW 2 Load Database 2 Web service DW 3 Load Database 3 Web service Internet


Download ppt "Use of XML in the Baltic Sea Fisheries database Peter Sandbeck Danish Institute for Fisheries Research."

Similar presentations


Ads by Google