| 1 |
""" |
| 2 |
Registry interface: service list, record generation, OAI endpoint. |
| 3 |
|
| 4 |
Our identifiers have the form |
| 5 |
|
| 6 |
ivo://<authority>/<rd-path>/service-id |
| 7 |
|
| 8 |
except for the authority itself, which is, of course, just |
| 9 |
ivo://<authority>. |
| 10 |
|
| 11 |
authority is given by authority in the ivoa section of config. |
| 12 |
|
| 13 |
This package deals with two ways to represent resources: |
| 14 |
|
| 15 |
- res tuples, as returned by servicelist.queryServicesList and used |
| 16 |
whenever no or little metadata is necessary. Contrary to what their |
| 17 |
name suggests, they are actually dictionaries. |
| 18 |
|
| 19 |
- res objects. Those are the actual objects (e.g., svc.Service or |
| 20 |
similar). Since they may be expensive to construct (though, of |
| 21 |
course, most of them ought to be cached on reasonably busy sites), |
| 22 |
they are only constructed when real metadata is required. |
| 23 |
""" |
| 24 |
|
| 25 |
#c Copyright 2008-2025, the GAVO project <[email protected]> |
| 26 |
#c |
| 27 |
#c This program is free software, covered by the GNU GPL. See the |
| 28 |
#c COPYING file in the source distribution. |
| 29 |
|
| 30 |
|
| 31 |
# Not checked by pyflakes: API file with gratuitous imports |
| 32 |
|
| 33 |
from gavo.registry.common import * |
| 34 |
from gavo.registry import oaiinter # registration of RegistryCore |
| 35 |
from gavo.registry import servicelist # registration of getWebServiceList |
| 36 |
|
| 37 |
|
| 38 |
from gavo.registry.builders import (getVOResourceElement, |
| 39 |
getVORMetadataElement) |
| 40 |
from gavo.registry.identifiers import (getResobFromIdentifier, |
| 41 |
getResobFromRestup, parseIdentifier) |
| 42 |
from gavo.registry.publication import ( |
| 43 |
findAllRDs, |
| 44 |
findPublishedRDs, |
| 45 |
makeDeletedRecord, |
| 46 |
getManagedAuthorities, |
| 47 |
HIDDEN_RENDERERS) |
| 48 |
from gavo.registry.servicelist import getTableDef |
| 49 |
from gavo.registry.nonservice import ResRec |
| 50 |
from gavo.registry.tableset import getTablesetForService |