Title: DEDSL
1- DEDSL XML
-
- Arnaud LUCAS (Arnaud.Lucas_at_cnes.fr)
-
2DATA_ENTITY_DICTIONARY
DTD DEFINITION lt!ELEMENT DATA_ENTITY_DICTIONARY
( DICTIONARY_DESCRIPTION,
USER_DEFINED_ATTRIBUTE_DEFINITION,
DATA_ENTITY_DEFINITION )gt XML
EXAMPLE ltDATA_ENTITY_DICTIONARYgt
ltDICTIONARY_DESCRIPTIONgt
lt/DICTIONARY_DESCRIPTIONgt ltUSER_DEFINED_ATTRIB
UTE_DEFINITIONgt lt/USER_DEFINED_ATTRIBUTE
_DEFINITIONgt ltDATA_ENTITY_DEFINITION gt
lt/DATA_ENTITY_DEFINITIONgt lt/DATA_ENTITY_DICT
IONARYgt
3DICTIONARY_DESCRIPTION
DTD DEFINITION lt!ELEMENT DICTIONARY_DESCRIPTION
( DICTIONARY_NAME, DICTIONARY_DEFINITION?,
EXTERNAL_DICTIONARY_REFERENCE,
DICTIONARY_CASE_SENSITIVITY,
DICTIONARY_LANGUAGE, DICTIONARY_VERSION?,
DICTIONARY_IDENTIFIER?, DEDSL_VERSION,
DICTIONARY_USER_DEFINED_ATTRIBUTES? )gt
4DICTIONARY_NAME
DTD DEFINITION lt!ELEMENT DICTIONARY_NAME
(PCDATA)gt XML EXAMPLE ltDICTIONARY_NAMEgtPlanetary
_Science_Data_Dictionarylt/DICTIONARY_NAMEgt
DICTIONARY_DEFINITION
DTD DEFINITION lt!ELEMENT DICTIONARY_DEFINITION
(PCDATA)gt XML EXAMPLE ltDICTIONARY_DEFINITIONgtThi
s dictionary contains data entity definitions
relative to planetary science and which may be
re-used for defining data products.
lt/DICTIONARY_DEFINITIONgt
5EXTERNAL_DICTIONARY_REFERENCE
DTD DEFINITION lt!ELEMENT EXTERNAL_DICTIONARY_REFER
ENCE ( LOCAL_NAME, DICTIONARY_ID,
REGISTRATION_AUTHORITY )gt lt!ELEMENT LOCAL_NAME
(PCDATA)gt lt!ELEMENT DICTIONARY_ID
(PCDATA)gt lt!ELEMENT REGISTRATION_AUTHORITY
(PCDATA)gt XML EXAMPLE ltEXTERNAL_DICTIONARY_REFER
ENCEgt ltLOCAL_NAMEgtCDPP_Plasma_Dictionarylt/LOCA
L_NAMEgt ltDICTIONARY_IDgtFCST0172lt/DICTIONARY_ID
gt ltREGISTRATION_AUTHORITYgtCCSDS_Control_Author
ity lt/REGISTRATION_AUTHORITYgt lt/EXTERNAL_DICTIONAR
Y_REFERENCEgt
6TEXT_FIELD_CHARACTER_SET
Already defined in the ENCODING attribute of the
XML file header XML EXAMPLE lt?xml version"1.0"
encoding"ISO-8859-1" ?gt
CASE_SENSITIVITY
DTD DEFINITION lt!ELEMENT DICTIONARY_CASE_SENSITIVI
TY EMPTYgt lt!ATTLIST DICTIONARY_CASE_SENSITIVITY
OPTION (CASE_SENSITIVE NOT_CASE_SENSITIVE)
REQUIREDgt XML EXAMPLE ltDICTIONARY_CASE_SENSITIVI
TY OPTION"NOT_CASE_SENSITIVE"/gt
7DICTIONARY_LANGUAGE
DTD DEFINITION lt!ELEMENT DICTIONARY_LANGUAGE
EMPTYgt lt!ATTLIST DICTIONARY_LANGUAGE IN_ENGLISH
CDATA REQUIREDgt lt!ATTLIST
DICTIONARY_LANGUAGE IN_ORIGINAL_LANGUAGE CDATA
IMPLIEDgt XML EXAMPLE ltDICTIONARY_LANGUAGE
IN_ENGLISH"French" IN_ORIGINAL_LANGUAGE"Français
"/gt ltDICTIONARY_LANGUAGE IN_ENGLISH"English"/gt
8DICTIONARY_VERSION
DTD DEFINITION lt!ELEMENT DICTIONARY_VERSION
(PCDATA)gt XML EXAMPLE ltDICTIONARY_VERSIONgt1.0lt/D
ICTIONARY_VERSIONgt
DICTIONARY_IDENTIFIER
DTD DEFINITION lt!ELEMENT DICTIONARY_IDENTIFIER
(PCDATA)gt XML EXAMPLE ltDICTIONARY_IDENTIFIERgtFCS
T0185lt/DICTIONARY_IDENTIFIERgt
9DEDSL_VERSION
DTD DEFINITION lt!ELEMENT DEDSL_VERSION
(PCDATA)gt XML EXAMPLE ltDEDSL_VERSIONgt2.3lt/DEDSL_
VERSIONgt
DICTIONARY_USER_DEFINED_ATTRIBUTES
DTD DEFINITION lt!ELEMENT DICTIONARY_USER_DEFINED_A
TTRIBUTES EMPTYgt lt!ELEMENT DICTIONARY_USER_DEFINE
D_ATTRIBUTES (TREE)gt lt!ELEMENT TREE
(PCDATA)gt XML EXAMPLE ltDICTIONARY_USER_DEFINED_A
TTRIBUTESgt ltTREEgtdata_tree.jpglt/TREEgt lt/DICTIO
NARY_USER_DEFINED_ATTRIBUTESgt
10USER_DEFINED_ATTRIBUTE_DEFINITION
DTD DEFINITION lt!ELEMENT USER_DEFINED_ATTRIBUTE_DE
FINITION ( ATTRIBUTE_NAME,
ATTRIBUTE_DEFINITION, ATTRIBUTE_CONDITION?,
ATTRIBUTE_MAXIMUM_OCCURRENCE,
ATTRIBUTE_VALUE_TYPE, ATTRIBUTE_MAXIMUM_SIZE?,
ATTRIBUTE_ENUMERATION_VALUES?,
ATTRIBUTE_COMMENT?, ATTRIBUTE_INHERITANCE?,
ATTRIBUTE_DEFAULT_VALUE?,
ATTRIBUTE_VALUE_EXAMPLE? )gt
11ATTRIBUTE_NAME
DTD DEFINITION lt!ELEMENT ATTRIBUTE_NAME
(PCDATA)gt lt!ATTLIST ATTRIBUTE_NAME OBLIGATION
(MANDATORYCONDITIONALOPTIONALDEFAULTED)
REQUIREDgt lt!ATTLIST ATTRIBUTE_NAME SCOPE
(DATADICTIONARYALL) "DATA"gt XML EXAMPLE Define
the dictionary attribute TREE optional
ltATTRIBUTE_NAME OBLIGATION"OPTIONAL"
SCOPE"DICTIONARY"gt TREE lt/ATTRIBUTE_NAMEgt
12ATTRIBUTE_DEFINITION
DTD DEFINITION lt!ELEMENT ATTRIBUTE_DEFINITION
(PCDATA)gt XML EXAMPLE ltATTRIBUTE_DEFINITIONgtThis
is the picture of the TREE of the DATA
lt/ATTRIBUTE_DEFINITIONgt
ATTRIBUTE_CONDITION
DTD DEFINITION lt!ELEMENT ATTRIBUTE_CONDITION
(PCDATA)gt XML EXAMPLE ltATTRIBUTE_CONDITIONgtAttri
bute ORIGINE appears only for extra-terrestrial
datalt/ATTRIBUTE_CONDITIONgt
13ATTRIBUTE_MAXIMUM_OCCURRENCE
DTD DEFINITION lt!ELEMENT ATTRIBUTE_MAXIMUM_OCCURRE
NCE (PCDATA)gt XML EXAMPLE ltATTRIBUTE_MAXIMUM_OCC
URRENCEgt1lt/ATTRIBUTE_MAXIMUM_OCCURRENCEgt
ATTRIBUTE_VALUE_TYPE
DTD DEFINITION lt!ELEMENT ATTRIBUTE_VALUE_TYPE
(PCDATA)gt XML EXAMPLE ltATTRIBUTE_VALUE_TYPEgtList
(Text,Text)lt/ATTRIBUTE_VALUE_TYPEgt
14ATTRIBUTE_MAXIMUM_SIZE
DTD DEFINITION lt!ELEMENT ATTRIBUTE_MAXIMUM_SIZE
(PCDATA)gt XML EXAMPLE ltATTRIBUTE_MAXIMUM_SIZEgt12
lt/ATTRIBUTE_MAXIMUM_SIZEgt
ATTRIBUTE_ENUMERATION_VALUES
DTD DEFINITION lt!ELEMENT ATTRIBUTE_ENUMERATION_VAL
UES (PCDATA)gt XML EXAMPLE For the declaration
of an attribute BOOLEAN, there are 2 values
ltATTRIBUTE_ENUMERATION_VALUESgtTRUElt/ATTRIBUTE_E
NUMERATION_VALUESgt ltATTRIBUTE_ENUMERATION_VALUESgtF
ALSElt/ATTRIBUTE_ENUMERATION_VALUESgt
15ATTRIBUTE_COMMENT
DTD DEFINITION lt!ELEMENT ATTRIBUTE_COMMENT
(PCDATA)gt XML EXAMPLE ltATTRIBUTE_COMMENTgtThe
value is expressed as a path name. lt/ATTRIBUTE_COM
MENTgt
ATTRIBUTE_INHERITANCE
DTD DEFINITION lt!ELEMENT ATTRIBUTE_INHERITANCE
EMPTYgt lt!ATTLIST ATTRIBUTE_INHERITANCE OPTION
(INHERITABLENOT_INHERITABLE) "INHERITABLE"gt XML
EXAMPLE ltATTRIBUTE_INHERITANCE
OPTION"INHERITABLE" /gt
16ATTRIBUTE_DEFAULT_VALUE
DTD DEFINITION lt!ELEMENT ATTRIBUTE_DEFAULT_VALUE
(PCDATA)gt XML EXAMPLE ltATTRIBUTE_DEFAULT_VALUEgtF
ALSElt/ATTRIBUTE_DEFAULT_VALUEgt
ATTRIBUTE_VALUE_EXAMPLE
DTD DEFINITION lt!ELEMENT ATTRIBUTE_VALUE_EXAMPLE
(PCDATA)gt XML EXAMPLE ltATTRIBUTE_VALUE_EXAMPLEgte
xamples for the ORIGINE attribute
MARS,JUPITER,MOONlt/ATTRIBUTE_VALUE_EXAMPLEgt
17DATA_ENTITY_DEFINITION
18lt!ELEMENT DATA_ENTITY_DEFINITION ( ALIAS,
DEFINITIONAL_PART, RELATIONAL_PART?,
REPRESENTATIONAL_PART?, USER_DEFINED_ATTRIBUTE
S_PART? )gt lt!ATTLIST DATA_ENTITY_DEFINITION NAME
CDATA REQUIRED gt lt!ATTLIST DATA_ENTITY_DEFINITION
CLASS (MODELDATA_FIELDCONSTANT) "DATA_FIELD"
gt lt!ELEMENT DEFINITIONAL_PART ( DEFINITION,
SHORT_DEFINITION?, COMMENT, UNITS,
SPECIFIC_INSTANCE )gt lt!ELEMENT
RELATIONAL_PART ( INHERITS_FROM?,
RELATION, COMPONENT, KEYWORD )gt lt!ELEME
NT REPRESENTATIONAL_PART ( RANGE?,
TEXT_SIZE?, ENUMERATION,
CONSTANT_VALUE?, LANGUAGE? )gt
19DATA_ENTITY_DEFINITION
XML EXAMPLE ltDATA_ENTITY_DEFINITION
NAME"A_MODEL" CLASS"MODEL" gt
ltDEFINITIONAL_PARTgt lt/DEFINITIONAL_PARTgt
ltRELATIONAL_PARTgt
lt/RELATIONAL_PARTgt ltREPRESENTATIONAL_PARTgt
lt/REPRESENTATIONAL_PARTgt lt/DATA_ENTITY_DEFI
NITIONgt
20ALIAS
DTD DEFINITION lt!ELEMENT ALIAS (PCDATA)gt lt!ATTLIS
T ALIAS NAME CDATA REQUIREDgt XML EXAMPLE ltALIAS
NAME"ACQUTIME"gtUsed in the FITS headerlt/ALIASgt
DEFINITION
DTD DEFINITION lt!ELEMENT DEFINITION
(PCDATA)gt XML EXAMPLE ltDEFINITIONgtThe PRODUCT_ID
represents a permanent unique identifier assigned
to a data product by its producer lt/DEFINITIONgt
21COMMENT
DTD DEFINITION lt!ELEMENT COMMENT (PCDATA)gt XML
EXAMPLE ltCOMMENTgtThe image is an array of
W_IMAGE_SIZE items called DATA_2_PIXELlt/COMMENTgt
UNITS
DTD DEFINITION lt!ELEMENT UNITS (PCDATA)gt XML
EXAMPLE ltUNITSgtNO_UNITlt/UNITSgt For multiple
units ltUNITSgtkilometerslt/UNITSgt ltUNITSgtmileslt/UN
ITSgt
22SPECIFIC_INSTANCE
DTD DEFINITION lt!ELEMENT SPECIFIC_INSTANCE
(PCDATA)gt lt!ATTLIST SPECIFIC_INSTANCE VALUE
CDATA REQUIREDgt XML EXAMPLE ltSPECIFIC_INSTANCE
VALUE"00.00"gtEquatorlt/SPECIFIC_INSTANCEgt
INHERITS_FROM
DTD DEFINITION lt!ELEMENT INHERITS_FROM
(PCDATA)gt lt!ATTLIST INHERITS_FROM
EXTERNAL_DICTIONARY CDATA IMPLIEDgt XML
EXAMPLE ltINHERITS_FROMgtA_DATA_TYPElt/INHERITS_FROMgt
Inherits from the A_ROCKET model from the
SPACE_VEHICLE dictionary ltINHERITS_FROM
EXTERNAL_DICTIONARY"SPACE_VEHICLE"gt
A_ROCKETlt/INHERITS_FROMgt
23RELATION
DTD DEFINITION lt!ELEMENT RELATION
(PCDATA)gt lt!ATTLIST RELATION WITH CDATA
REQUIREDgt lt!ATTLIST RELATION FROM_DICTIONARY
CDATA IMPLIEDgt XML EXAMPLE ltRELATION
WITH"DATA_2"gtnumber of pixels of a spacecraft W2
image lt/RELATIONgt ltRELATION WITH"POIDS"
FROM_DICTIONARY"FRENCH_DICTIONARY"gt translation
in French of WEIGHT lt/RELATIONgt
24COMPONENT
DTD DEFINITION lt!ELEMENT COMPONENT
(PCDATA)gt lt!ATTLIST COMPONENT MIN CDATA
"1"gt lt!ATTLIST COMPONENT MAX CDATA "1"gt XML
EXAMPLE ltCOMPONENTgtHEADERlt/COMPONENTgt ltCOMPONENTgtB
ODYlt/COMPONENTgt An array of W_IMAGE_SIZE
DATA_2_PIXELs ltCOMPONENT MAX"W_IMAGE_SIZE"gtDAT
A_2_PIXELlt/COMPONENTgt
25KEYWORD
DTD DEFINITION lt!ELEMENT KEYWORD (PCDATA)gt XML
EXAMPLE ltKEYWORDgtIMAGElt/KEYWORDgt
DATA_TYPE
DTD DEFINITION lt!ATTLIST REPRESENTATIONAL_PART
DATA_TYPE (ENUMERATEDTEXTREALINTEGERCOMPOSITE)
IMPLIEDgt XML EXAMPLE ltREPRESENTATIONAL_PART
DATA_TYPE"COMPOSITE"/gt
26RANGE
DTD DEFINITION lt!ELEMENT RANGE EMPTYgt lt!ATTLIST
RANGE MIN CDATA REQUIREDgt lt!ATTLIST RANGE MAX
CDATA REQUIREDgt XML EXAMPLE ltREPRESENTATIONAL_PA
RT DATA_TYPE"INTEGER"gt ltRANGE MIN"0"
MAX"255"/gt lt/REPRESENTATIONAL_PARTgt
TEXT_SIZE
DTD DEFINITION lt!ELEMENT TEXT_SIZE
(PCDATA)gt XML EXAMPLE ltREPRESENTATIONAL_PART
DATA_TYPE"TEXT"gt ltTEXT_SIZEgt40lt/TEXT_SIZEgt lt/
REPRESENTATIONAL_PARTgt
27ENUMERATION
DTD DEFINITION lt!ELEMENT ENUMERATION (
ENUMERATION_MEANING?, ENUMERATION_CONVENTION?
)gt lt!ATTLIST ENUMERATION VALUE CDATA
IMPLIEDgt lt!ELEMENT ENUMERATION_MEANING
(PCDATA)gt lt!ELEMENT ENUMERATION_CONVENTION
(PCDATA)gt XML EXAMPLE ltREPRESENTATIONAL_PART
DATA_TYPE"ENUMERATED"gt ltENUMERATION
VALUE"AMERICA"gt ltENUMERATION_MEANINGgtstati
on in Americalt/ENUMERATION_MEANINGgt
lt/ENUMERATIONgt ltENUMERATION VALUE"EUROPE"gt
ltENUMERATION_MEANINGgtstation in
Europelt/ENUMERATION_MEANINGgt
lt/ENUMERATIONgt lt/REPRESENTATIONAL_PARTgt
28CONSTANT_VALUE
DTD DEFINITION lt!ELEMENT CONSTANT_VALUE
(PCDATA)gt XML EXAMPLE ltREPRESENTATIONAL_PART
DATA_TYPE"INTEGER"gt ltCONSTANT_VALUEgt1 440
000lt/CONSTANT_VALUEgt lt/REPRESENTATIONAL_PARTgt
LANGUAGE
DTD DEFINITION lt!ELEMENT LANGUAGE EMPTY
gt lt!ATTLIST LANGUAGE IN_ENGLISH CDATA
REQUIREDgt lt!ATTLIST LANGUAGE IN_ORIGINAL_LANGUAGE
CDATA IMPLIEDgt XML EXAMPLE ltLANGUAGE
IN_ENGLISH"English"/gt
29CASE_SENSITIVITY
DTD DEFINITION lt!ELEMENT CASE_SENSITIVITY
EMPTYgt lt!ATTLIST CASE_SENSITIVITY OPTION
(CASE_SENSITIVE NOT_CASE_SENSITIVE)
REQUIREDgt XML EXAMPLE ltCASE_SENSITIVITY
OPTION"CASE_SENSITIVE"/gt