Re: Import behaviour to StructuredDataNodes

From: Guy Rixon <gtr-at-ast.cam.ac.uk>
Date: Thu, 3 Aug 2006 20:41:48 +0100 (BST)


Yes, sounds right to me.

On Thu, 3 Aug 2006, Matthew Graham wrote:

> Hi,
>
> So the <accepts> list is unchanged once created but the <provides> list
> needs to change to reflect changes in data formats:
>
> 1. I create a StructuredDataNode:
>
> <node xsi:type="vos:StructuredDataNode"
> uri="vos://nvo.caltech!vospace/0001">
> <accepts>
> <view uri="ivo://net.ivoa.vospace/views/tabular/votable-1.1"/>
> <view uri="ivo://net.ivoa.vospace/views/image/fits-image"/>
> </accepts>
> </node>
>
> 2. I then put votable data into this so the <provides> shows the views
> applicable to this format:
>
> <node xsi:type="vos:StructuredDataNode"
> uri="vos://nvo.caltech!vospace/0001">
> <accepts>
> <view uri="ivo://net.ivoa.vospace/views/tabular/votable-1.1"/>
> <view uri="ivo://net.ivoa.vospace/views/image/fits-image"/>
> </accepts>
> <provides>
> <view uri="ivo://net.ivoa.vospace/views/tabular/votable-1.1"/>
> </provides>
> </node>
>
> 3. At a later stage, I replace the votable with an image so <provides>
> now needs to change to reflect this:
>
> <node xsi:type="vos:StructuredDataNode"
> uri="vos://nvo.caltech!vospace/0001">
> <accepts>
> <view uri="ivo://net.ivoa.vospace/views/tabular/votable-1.1"/>
> <view uri="ivo://net.ivoa.vospace/views/image/fits-image"/>
> </accepts>
> <provides>
> <view uri="ivo://net.ivoa.vospace/views/image/jpeg"/>
> </provides>
> </node>
>
> Cheers,
>
> Matthew
>
>
> Dave Morris wrote:
> > I would agree with Guy on this.
> > If the (structured) data is stored in a database table, then even
> > though you imported a votable the first time, it wouldn't prevent you
> > from replacing the contents with data from a FITS file later.
> > Even if the FITS file contained different columns.
> >
> > Use case -
> > I'm setting up a database by importing into vospace API on the
> > database system.
> > I accidentally import the wrong file the first time.
> > I should just be able to replace this by importing the correct file.
> > Dave
> > ps. Can we move the discussion back to the vospace list.
> >
> > Matthew Graham wrote:
> >
> >> Hi,
> >>
> >> When I create a StructuredDataNode (either through createNode or one
> >> of the import methods), the created node will have the <accepts> that
> >> the service sets:
> >>
> >> <node xsi:type="vos:StructuredDataNode">
> >> <accepts>
> >> <view uri="ivo://net.ivoa.vospace/views/tabular/votable-1.1"/>
> >> <view uri="ivo://net.ivoa.vospace/views/tabular/fits-table"/>
> >> </accepts>
> >> </node>
> >>
> >> When data of a particular format flows to this node, should the list
> >> of <accepts> views be cut down to just that of the input data?
> >> Input format is votable so should the node become:
> >>
> >> <node xsi:type="vos:StructuredDataNode">
> >> <accepts>
> >> <view uri="ivo://net.ivoa.vospace/views/tabular/votable-1.1"/>
> >> </accepts>
> >> </node>
> >>
> >> If I were then to attempt to update the data with a second import, I
> >> would be constrained to provide my data in votable format.
> >> Is this the behaviour we want?
> >>
> >> Cheers,
> >>
> >> Matthew
> >
> >
>

Guy Rixon 				        gtr-at-ast.cam.ac.uk
Institute of Astronomy   	                Tel: +44-1223-337542
Madingley Road, Cambridge, UK, CB3 0HA		Fax: +44-1223-337523
Received on 2006-08-03Z21:42:53