inclusions and scope in VO-DML
Laurino, Omar
olaurino at cfa.harvard.edu
Fri Mar 17 14:27:53 CET 2017
Hi Paul,
regarding the general question, from section 4.5 of the current VO-DML
document:
Note that only models directly used, or whose types are extended
> must be imported, and there is no need to explicitly import
> models recursively. In other
> words, if model A uses model B, and model B uses model C (but model A does
> not), only model B must be imported in model A.
>
So you are right that referencing a type from model B in model A without
model A also importing model B would be illegal.
I am not sure this is the case for the STC2 rework, though. I couldn't find
any references from CoordSys to Coords, which seems to confirm Mark's reply.
Omar.
On Fri, Mar 17, 2017 at 6:21 AM, Paul Harrison <
paul.harrison at manchester.ac.uk> wrote:
> Hi,
>
> I was looking at the latest STC modelling in VO-DML (
> http://volute.g-vo.org/svn/trunk/projects/dm/vo-dml/models/STC2/prototype/)
> and see that it has been factored out into 3 separate files. This leads me
> to a question about the scope of inclusions in VO-DML
>
> STCCoords-2.0 includes STCCoordSys-2.0 (and IVOA)
> STCCoordSys-2.0 only IVOA
>
> however, STCCoordSys-2.0 makes references to types that are defined in
> STCCoords-2.0 - is this legal?
>
> Regards,
> Paul.
>
>
> Dr. Paul Harrison
> JBO, Manchester University
> http://www.manchester.ac.uk/jodrellbank
>
>
>
>
--
Omar Laurino
Smithsonian Astrophysical Observatory
Harvard-Smithsonian Center for Astrophysics
100 Acorn Park Dr. R-377 MS-81
02140 Cambridge, MA
(617) 495-7227
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ivoa.net/pipermail/dm/attachments/20170317/8e7df087/attachment.html>
More information about the dm
mailing list