Skip to content

knowledgeTank

galyfray edited this page Sep 24, 2021 · 2 revisions

semanticTank internal description

All of the return format of the methods of this object follow the usual format {"status":true|false,"error?":{}} the fields described under the return section are added to the base object in case of success.

internal objects:

UCD storage

{
    "name":["meta.id","meta.main", "meta.id"],
    "longitude": ["pos.eq.ra;meta.main", "pos.gal.lon;meta.main","pos.eq.ra", "pos.gal.lon"],
    "latitude": ["pos.eq.dec;meta.main", "pos.gal.lat;meta.main","pos.eq.dec", "pos.gal.lat"],
    "luminosity": ["..."]
}

Tap services descriptor storage

{
    "shortname":{
        "tapService":"url to the tap service",
        "scheme":"scheme to explore",
        "table":"a root table"
    }
} 

Preset value storage

{
    "table.column":{
        "available_values": ["sets of commun value to propose"],
        "default_value": "a common value to propose as a default"
    }
}

methods

selectAH

  • params :
    • AHList:Array; list of attribute handlers
  • return :
    • selected:Array; list of attribute handlers selected to be possible default fields of interest for the user. The list may be empty

setPresetValue

  • params :
    • AHList:Array; list of attribute handlers
  • return :
    • AHList:Array; list of the same attribute handlers but with their default_value and available_value attribute set according to the available data stored in the preset value storage

getDescriptors

  • return :
    • descriptors:Object; the descriptor storage object.

Clone this wiki locally