opencadc / caom2

Common Archive Observation Model
GNU Affero General Public License v3.0
5 stars 11 forks source link

Artifact.uri referring to a table in a TAP service #179

Open pdowler opened 4 weeks ago

pdowler commented 4 weeks ago

This is technically possible, but we should define a common practice for the URI structure so that other users can, in principle, understand the URI and do something useful.

pdowler commented 4 weeks ago

naively, if there is a table named my_project.my_stuff in a TAP service with registry identifier ivo://example.net/cat then a URI for the table might be

ivo://example.net/cat?my_project.my_stuff

where the implicit assumption is that objects in a TAP service are the tables. The bit after the ? would need to be more elaborate to denote schemas, tables, etc.... maybe

ivo://example.net/cat?schema_name=my_project
ivo://example.net/cat?table_name=my_project.my_stuff

where schema_name and table_name are keys defined in the TAP spec.

pdowler commented 4 weeks ago

further complication:

A single table in a TAP service may have records from multiple Artifact(s) in CAOM, so the Artifact.uri could/should refer to a set of records in that table... that could be quite complex in the general case. TBD