Package gavo :: Package protocols :: Module datalink
[frames] | no frames]

Module datalink

source code

The datalink core and its numerous helper classes.

More on this in "Datalink Cores" in the reference documentation.

Classes
  ProductDescriptor
An encapsulation of information about some "product" (i.e., file).
  FITSProductDescriptor
A SODA descriptor for FITS files.
  DLFITSProductDescriptor
A SODA descriptor for FITS files with datalink product paths.
  DescriptorGenerator
A procedure application for making product descriptors for PUBDIDs
  LinkDef
A definition of a datalink related document.
  MetaMaker
A procedure application that generates metadata for datalink services.
  DataFunction
A procedure application that generates or modifies data in a processed data service.
  DataFormatter
A procedure application that renders data in a processed service.
  DatalinkCoreBase
Basic functionality for datalink cores.
  DatalinkCore
A core for processing datalink and processed data requests.
Functions
 
getFITSDescriptor(pubDID, accrefPrefix=None, cls=<class 'gavo.protocols.datalink.FITSProductDescriptor'>, qnd=False)
returns a datalink descriptor for a FITS file.
source code
 
makeDatalinkServiceDescriptor(ctx, service, tableDef, columnName)
returns a datalink descriptor for a datalink (dlmeta) service).
source code
Variables
  __package__ = 'gavo.protocols'
Function Details

getFITSDescriptor(pubDID, accrefPrefix=None, cls=<class 'gavo.protocols.datalink.FITSProductDescriptor'>, qnd=False)

source code 

returns a datalink descriptor for a FITS file.

This is the implementation of fits_genDesc and should probably reused when making more specialised descriptors.

makeDatalinkServiceDescriptor(ctx, service, tableDef, columnName)

source code 

returns a datalink descriptor for a datalink (dlmeta) service).

What's returned is gavo.votable elements.

ctx is a votablewrite VOTableContext that manages the IDs of the elements involved, service is the datalink service as a svc.Service instance, tableDef is the rscdef.TableDef instance with the rows the datalink service operates on, and columnName names the column within table to take the datalink's ID parameter from.