A resource descriptor.
RDs collect all information about how to parse a particular source
(like a collection of FITS images, a catalogue, or whatever), about the
database tables the data ends up in, and the services used to access
them.
In DaCHS' RD XML serialisation, they correspond to the root
element.
|
|
__init__(self,
srcId,
**kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
isDirty(self)
returns true if the RD on disk has a timestamp newer than loadedAt. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getAbsPath(self,
relPath)
returns the absolute path for a resdir-relative relPath. |
source code
|
|
|
|
openRes(self,
relPath,
mode='r')
returns a file object for relPath within self's resdir. |
source code
|
|
|
|
getTimestampPath(self)
returns a path to a file that's accessed by Resource each time a bit
of the described resource is written to the db. |
source code
|
|
|
|
touchTimestamp(self)
updates the timestamp on the rd's state file. |
source code
|
|
|
|
|
|
|
copy(self,
parent)
returns a deep copy of self, reparented to parent. |
source code
|
|
|
|
|
|
|
|
|
|
macro_RSTccby(self,
stuffDesignation)
expands to a declaration that stuffDesignation is available under
CC-BY. |
source code
|
|
|
|
macro_RSTcc0(self,
stuffDesignation)
expands to a declaration that stuffDesignation is available under
CC-0. |
source code
|
|
|
|
|
|
|
| getProperty(self,
name,
default=<Undefined>) |
source code
|
|
|
|
|
|
|
|
|
Inherited from base.structure.Structure:
__provides__,
callCompletedCallbacks,
completeElement,
finishElement
Inherited from base.structure.ParseableStructure:
end_,
feed,
feedFrom,
feedObject,
getAttribute,
iterEvents,
start_,
value_
Inherited from base.structure.StructureBase:
__providedBy__,
adopt,
breakCircles,
change,
getAttributes,
getCopyableAttributes,
getSourcePosition,
iterChildren,
setPosition
Inherited from base.common.Parser:
feedEvent
Inherited from base.meta.ComputedMetaMixin:
getMetaKeys
Inherited from base.meta.MetaMixin:
addMeta,
buildRepr,
copyMetaFrom,
delMeta,
getAllMetaPairs,
getMeta,
getMetaParent,
isEmpty,
iterMeta,
keys,
makeOriginal,
setMeta,
setMetaParent,
traverse
Inherited from rscdef.scripting.ScriptingMixin:
getRunner
Inherited from base.macros.StandardMacroMixin:
macro_RSTservicelink,
macro_RSTtable,
macro_decapitalize,
macro_getConfig,
macro_internallink,
macro_magicEmpty,
macro_metaSeq,
macro_metaString,
macro_rdId,
macro_rdIdDotted,
macro_schema,
macro_test,
macro_today,
macro_upper,
macro_urlquote
Inherited from base.macros.MacroPackage:
execMacro,
expand,
getExpander,
listMacros,
macro_quote,
macro_reSub,
macro_sql_standardPubDID,
macro_sqlquote
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|