Module identifiers
source code
Parsing identifiers, getting res tuples and resobs from them.
The DC-internal identifiers are, by default, formed as
ivo://<authority-from-config>/<sourceRD path>/<id within
path>.
Thus, all renderers of a given service have the same ivo-id, which is
to say, they are all just capabilities on the same record.
|
computeIdentifierFromRestup(restup)
returns an identifier from a res tuple. |
source code
|
|
|
|
|
getRestupFromIdentifier(identifier)
returns the record for identifier in the services table. |
source code
|
|
|
|
|
getResobFromIdentifier(identifier)
returns a resob for an identifier. |
source code
|
|
|
__package__ = ' gavo.registry '
|
returns a pair of authority, resource key for identifier.
Identifier has to be an ivo URI.
In the context of the gavo DC, the resource key either starts with
static/ or consists of an RD id and a service ID.
|
returns a resob for a res tuple.
restup at least has to contain the sourceRD and resId fields.
The item that is being returned is either a service or a
NonServiceResource (including DeletedResource). All of these have a
getMeta method and should be able to return the standard DC metadata.
|