Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood...

21
Gerard Lemson, IVOA DM 28/5/2004 -name :string Standards:: C ategory *-baseClass 0..1 1 -possibleValue 1..* -abbreviation :string -amount:numeric Standards:: Atom icUnit -power:rational -amount:numeric Standards:: Com ponentU nit Standards:: Com poundUnit 1 -com ponent 1..* Standards:: Unit * -com ponent 1 -amount:numeric Values:: Atom icQ uantity * -unit 1 Values:: C lassifier -nam e :string Values:: Com ponentQ uantity Values:: Com positeQ uantity 1 -com ponent 1..* Values:: Identifier Values:: Quantity * -quantity 1 Values:: Value -identifier:string Experiments:: E xperiment -identifier:string -docum entationU RL :string Protocols:: Protocol * -recipe 1 Experim ents:: Result 1 -result * P rotocols:: ConfigurationDescriptor -identifier:string Protocols:: O bjective 1 -observable * Experiments:: S ubject * -observable * 1 -observation * -nam e :string -isIndependent:boolean Protocols:: Variable * -property 1 1 -variables 1..* Experiments:: Image Experiments:: O bjectList Experiments:: ConfidenceIndication 1 -confidence * Experiments:: ValueAssignment 1 -values * * -variable 1 Experiments:: M easurem ent 1 -value 1 Experiments:: Identification * -value 1 Experiments:: C lassification * -value 1 Protocols:: AstronomicalObservatory Protocols:: Analysis Protocols:: C allibration Protocols:: Sim ulator Experim ents:: Configuration * -protocol 1 1 -configuration * 1 -configurationParameter 1 Protocols:: SourceExtraction Experiments:: InputD ata Experim ents:: Tim eO rderedData Experim ents:: VisibilityD ata Standards:: C oordinateSystem -nam e :string Standards:: EnergyB and -locator:string -description :string Products:: PhysicalA rtifact -nam e :string -description :string Standards:: N am e * -subject 1 * -artifact 1 1 -inputD ata * * -id 1 Standards:: C lassificationSystem * -baseClassifcation * * -category 1 Standards:: N am ingSystem 1 -object * * -phenom enon 1 * -phenom enon 1 -identifier:string -description :string Standards:: ReferenceSystem Protocols:: InputD ataType 1 -inputD ataType * * -type 1 Standards:: MagnitudeSystem Protocols:: D ataProcessing Protocols:: Stacking Protocols:: CrossM atching S tandards:: C onstant -name :string -abbreviation :string Standards:: PhysicalC onstant * -value 1 -nam e :string Types:: A bstractType Types:: D atatype Types:: R epresentation -nam e :string Types:: Field 1 -field * * * -referenceSystem 0..1 * -type_1 1 * -type 1 Protocols:: Q uery Phenomenology:: AtomicNumericPhenomenon * -phenom enon 1 Phenomenology:: B aseN um ericPhenom enon Phenomenology:: C ategoricalPhenom enon Phenomenology:: CompositePhenomenon Phenomenology:: D ecom positionalPhenom enon Phenomenology:: D erivedN um ericP henom enon -pow er:integer Phenomenology:: DerivedPhenom enonCom ponent Phenomenology:: Identification Phenomenology:: NumericPhenomenon -nam e :string -description :string Phenomenology:: Phenomenon Phenomenology:: PositionalPhenomenon -name :string Phenomenology:: P roperty Phenomenology:: ScientificA rtifact Phenomenology:: SpatialS ubjectType -nam e :string -description :string Phenomenology:: S ubjectType * -type 1 Phenomenology:: Substance 1 -property 1..* 1 -components 1..* * -phenom enon 1 Phenom enology:: TangibleObject * -com ponent 1 * -phenom enon 1 1 -uncertainty 1 Experiments:: Uncertainty

Transcript of Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood...

Page 1: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

-name : string

Standards::Category

*-baseClass 0..1

1

-possibleValue

1..*

-abbreviation : string-amount : numeric

Standards::AtomicUnit

-power : rational-amount : numeric

Standards::ComponentUnit

Standards::CompoundUnit

1-component 1..*

Standards::Unit

*

-component1

-amount : numeric

Values::AtomicQuantity

*

-unit

1

Values::Classifier

-name : string

Values::ComponentQuantity

Values::CompositeQuantity

1

-component

1..*

Values::Identifier

Values::Quantity

*

-quantity 1Values::Value

-identifier : string

Experiments::Experiment-identifier : string-documentationURL : string

Protocols::Protocol

*

-recipe

1

Experiments::Result

1

-result

*

Protocols::ConfigurationDescriptor

-identifier : string

Protocols::Objective

1

-observable

*

Experiments::Subject

*

-observable *

1

-observation

*

-name : string-isIndependent : boolean

Protocols::Variable

*

-property

1

1

-variables

1..*

Experiments::Image

Experiments::ObjectList

Experiments::ConfidenceIndication

1

-confidence

*

Experiments::ValueAssignment

1

-values

* *

-variable 1

Experiments::Measurement

1

-value

1

Experiments::Identification

*

-value1

Experiments::Classification

* -value1

Protocols::AstronomicalObservatory

Protocols::Analysis

Protocols::Callibration Protocols::Simulator

Experiments::Configuration

*

-protocol

1

1

-configuration

*

1

-configurationParameter

1

Protocols::SourceExtraction

Experiments::InputData

Experiments::TimeOrderedData

Experiments::VisibilityData

Standards::CoordinateSystem

-name : string

Standards::EnergyBand

-locator : string-description : string

Products::PhysicalArtifact

-name : string-description : string

Standards::Name

*

-subject

1

*

-artifact 1

1

-inputData

*

*

-id

1

Standards::ClassificationSystem

*

-baseClassifcation

*

*

-category

1

Standards::NamingSystem

1

-object

*

*

-phenomenon

1

*

-phenomenon

1

-identifier : string-description : string

Standards::ReferenceSystem

Protocols::InputDataType

1

-inputDataType

* *

-type

1

Standards::MagnitudeSystem

Protocols::DataProcessingProtocols::Stacking

Protocols::CrossMatching

Standards::Constant

-name : string-abbreviation : string

Standards::PhysicalConstant

*

-value1

-name : string

Types::AbstractType

Types::DatatypeTypes::Representation

-name : string

Types::Field1

-field

*

*

-type1

*

-referenceSystem0..1* -type_11

*

-type 1

Protocols::Query

Phenomenology::AtomicNumericPhenomenon

*

-phenomenon

1

Phenomenology::BaseNumericPhenomenon

Phenomenology::CategoricalPhenomenon

Phenomenology::CompositePhenomenon

Phenomenology::DecompositionalPhenomenon

Phenomenology::DerivedNumericPhenomenon

-power : integer

Phenomenology::DerivedPhenomenonComponent

Phenomenology::Identification

Phenomenology::NumericPhenomenon

-name : string-description : string

Phenomenology::Phenomenon

Phenomenology::PositionalPhenomenon

-name : string

Phenomenology::Property

Phenomenology::ScientificArtifact

Phenomenology::SpatialSubjectType

-name : string-description : string

Phenomenology::SubjectType

*

-type

1

Phenomenology::Substance

1

-property1..*

1 -components1..*

*

-phenomenon

1

Phenomenology::TangibleObject

*

-component 1

*

-phenomenon

1

1

-uncertainty1

Experiments::Uncertainty

Page 2: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

Unified domain model for Astronomy“Much maligned and misunderstood”

(anonymous)with Pat Dowler and Tony Banday (MPA)

• Background/goals

• Methodology (analysis model)

• Language (UML)

• Content

• Binding (XML Schema, Java, …)

• Usage (views)

Page 3: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

Goal• Find place for (seemingly) disparate sub-areas in

DM: quantity-observation-simulation-phenomenology(-proposal ?)

Background: analysis phase in software design• Understand the “universe of discourse” (problem

domain)

Benefits• Patterns for design and implementation models.• Formalize “comparability”• Domain model as Esperanto • Domain model == ontology ?

Page 4: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

Page 5: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

Page 6: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

Methodology• Object oriented analysis:

– “a method of analysis in which requirements are examined from the perspective of the classes and objects found in the vocabulary of the problem domain.” (Booch)

• Universe of Discourse– ”.. the world(or universe) that we are interested in

talking (or discoursing) about” (Halpin)

• List concepts and relations• Translate into formal language (UML)

– Normalized– Explicit– Patterns

Page 7: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

UML

-id : integer-description : string

aas::A

-data : real

aas::B

aas::F

1

-f

0..1

-name : string

cees::C

cees::D

-dees*

*

-c

1

aas

cees

cees::D1 cees::D2

Page 8: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

Universe of Discourse for VO

We want to talk/discourse about

the work that astronomers, astrophysicists

and support scientists do and the results they have obtained

We want to do this

in a scientifically rigorous manner

Page 9: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

Concepts

experiment, observation, simulation, result, protocol,

objective (observable, goal), variable (dependent,

independent), measurement, value, quantity,

category, uncertainty, confidence, error,

classification, identification, phenomenon, property,

subject (body, substance, space, ...), unit,

reference system, representation, standard, physical

artifact, file, table

Page 10: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

Analysis pattern:Observation and Measurement

Martin Fowler 1997, Analysis Patterns, Addisson Wesley

PhenomenonType

Person Measurement

-amount : real

Quantity Unit

*

-unit

0..1

*

-subject

1

*

-property 1

*

-value

1

Page 11: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

SI

http://physics.nist.gov/cuu/Units/introduction.html .

A quantity in the general sense is a property ascribed to phenomena, bodies, or substances that can be quantified for, or assigned to, a particular phenomenon, body, or substance. Examples are mass and electric charge.

A quantity in the particular sense is a quantifiable or assignable property ascribed to a particular phenomenon, body, or substance. Examples are the mass of the moon and the electric charge of the proton.

A physical quantity is a quantity that can be used in the mathematical equations of science and technology.

A unit is a particular physical quantity, defined and adopted by convention, with which other particular quantities of the same kind are compared to express their value.

The value of a physical quantity is the quantitative expression of a particular physical quantity as the product of a number and a unit, the number being its numerical value. Thus, the numerical value of a particular physical quantity depends on the unit in which it is expressed.

Page 12: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

Protocols Phenomenology

Standards

Values

Experiments

Products

Types

Physics

Page 13: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

«key» -identifier : string

Experiments::Experiment

Experiments::Result

-result*

Experiments::Measurement

Experiments::ValueAssignment

Values::Quantity

1

-value

1

Values::ClassifierExperiments::Classification -value

1

Experiments::Subject

-values*

-observation*

«key» -identifier : string-documentationURL : string

Protocols::Protocol-recipe

1

«key» -identifier : string

Protocols::Objective

-observable*

-observable

*

«key» -name : string-isIndependent : boolean

Protocols::Variable-variable

1

-variables1..*

«key» -name : string-description : string

Phenomenology::SubjectType-type

1

«key» -name : string

Phenomenology::Property-property

1

-property1..*

«key» -name : string-description : string

Phenomenology::Phenomenon

-phenomenon1

«key» -locator : string-description : string

Products::PhysicalArtifact

-artifact 1

Page 14: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

AtomicNumericPhenomenon

CategoricalPhenomenon

CompositePhenomenon

DecompositionalPhenomenon

DerivedNumericPhenomenon

-power : integer

DerivedPhenomenonComponent

-components

1..*

*

-component 1

Identification

NumericPhenomenon

«key» -name : string-description : string

Phenomenon

PositionalPhenomenon

ScientificArtifact

SpatialSubjectType

«key» -name : string-description : string

SubjectType

Substance

TangibleObject

IVOA::Phenomenology

BaseNumericPhenomenon

«key» -name : string

Property-property

1..*

-phenomenon

1

Page 15: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

IVOA::Protocols

Analysis

AstronomicalObservatory

Callibration

CrossMatching

ConfigurationDescriptor

DataProcessing

InputDataType

«key» -identifier : string

Objective

«key» -identifier : string-documentationURL : string

Protocol

-observable*

-inputDataType*

-configurationParameter1

Query

Simulator

SourceExtraction

Stacking

«key» -name : string-isIndependent : boolean

Variable

-variables1..*

«key» -name : string-description : string

Phenomenology::SubjectType-type

1

-type 1

«key» -name : string

Phenomenology::Property-property

1

-property1..*

Page 16: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

-identifier : string

Experiment

Result

-result*

TimeOrderedData

Image

Configuration

-configuration*

InputData

-inputData*

Measurement

ObjectList

VisibilityData

ValueAssignment

Subject

-values

*

-observation

*

Classification

Identification

IVOA::Experiments

-locator : string-description : string

Products::PhysicalArtifact

-subject1

-artifact

1

Protocols::InputDataType

-type 1

Protocols::ConfigurationDescriptor-protocol

1

-identifier : string-documentationURL : string

Protocols::Protocol

-inputDataType

*

-recipe

1

-configurationParameter

1

-identifier : string

Protocols::Objective

-observable

*-observable

*

-name : string-isIndependent : boolean

Protocols::Variable-variable

1

-variables1..*

Values::Quantity-value

1

Values::Classifier-value

1

Values::Identifier-value

1

ConfidenceIndication

-confidence

*

Uncertainty

-uncertainty

1

Page 17: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

Value

Quantity

Identifier

Classifier-amount : numeric

AtomicQuantity

CompositeQuantity

-name : string

ComponentQuantity

*

-quantity 1

-component

1..*

Standards::Unit

-unit 1

-name : string

Standards::Category

-baseClass 0..1

-category

1

-name : string-description : string

Standards::Name

-id

1

IVOA::Values

-identifier : string-description : string

Standards::ReferenceSystem

-referenceSystem 1

Page 18: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

-abbreviation : string-amount : numeric

AtomicUnit

Unit

«key» -name : string

Category

*

-baseClass

0..1

ClassificationSystem

-possibleValue1..*

*

-baseClassifcation*

CompoundUnit

-power : rational-amount : numeric

ComponentUnit

-component1..*

*

-component 1

Constant

CoordinateSystem

«key» -name : string

EnergyBand

MagnitudeSystem

«key» -name : string-description : string

Name

NamingSystem

1 -object

*

«key» -name : string-abbreviation : string

PhysicalConstant

«key» -identifier : string-description : string

ReferenceSystem

IVOA::Standards

Values::Quantity

-value

1

Page 19: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

Binding

• XML Schema– Presentation during registry telecon

• Formalize bindings as XSLT working on XMI representation of UML diagrams

• Example:– Java + hibernate mapping files + AXIS

Java2WSDL == metadata repository

Page 20: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

Usage

• Complex model

• Simplify using view concept

• Example from RDB (email to Francois Bonnarel, link)

• XSLT for translation between domain XSD and application-specific derived schemas.

Page 21: Gerard Lemson, IVOA DM 28/5/2004. Unified domain model for Astronomy Much maligned and misunderstood (anonymous) with Pat Dowler and Tony Banday (MPA)

Gerard Lemson, IVOA DM 28/5/2004

-_RAJ2000-_DECJ2000-M_APP-classification-image

SextractorGalaxies

CREATE VIEW SEXTRACTOR_GALAXIES ASSELECT S.RA AS _RAJ2000,

S.DEC AS _DECJ2000, -2.5 * LOG(S.FLUX) AS M_APP, S.CLASSIFICATION, I.STORAGE_URL AS IMAGE

FROM SOURCE S, SOURCE_CATALOGUE SC,

IMAGE I, SOURCE_EXTRACTOR AS SE

WHERE S.CLASS = ‘GALAXY’AND S.FLUX < 15AND S.CATALOGUE_ID = SC.IDAND IMAGE.ID = SC.IMAGE_IDAND SC.EXTRACTED_WITH = SOURCE_EXTRACTOR.IDAND SE.IDENTIFIER = ‘SExtractor’