Package gavo :: Package base :: Module meta :: Class RelatedResourceMeta
[frames] | no frames]

Class RelatedResourceMeta

source code

object --+        
         |        
 MetaMixin --+    
             |    
     MetaValue --+
                 |
                RelatedResourceMeta

A meta value containing an ivo-id and a name of a related resource.

These all are translated to relationship elements in VOResource renderings. These correspond to the terms in the official relationship vocabulary http://docs.g-vo.org/vocab-test/relationship_type. There, the camelCase terms are preferred, and for DaCHS meta, they are written with a lowercase initial.

Relationship metas should look like this:

       servedBy: GAVO TAP service
       servedBy.ivoId: ivo://org.gavo.dc

``servedBy`` and ``serviceFor`` are somewhat special cases, as the service attribute of data publications automatically takes care of them; so, you shouldn't usually need to bother with these two manually.

Instance Methods
 
__init__(self, title, format='plain', ivoId=None)
is a constructor for standalone use.
source code

Inherited from MetaValue: __str__, __unicode__, copy, encode, getContent, getExpandedContent

Inherited from MetaMixin: addMeta, buildRepr, copyMetaFrom, delMeta, getAllMetaPairs, getMeta, getMetaKeys, getMetaParent, isEmpty, iterMeta, keys, makeOriginal, setMeta, setMetaParent, traverse

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables

Inherited from MetaValue: consecutiveWSPat, knownFormats, paragraphPat, plainWrapper

Properties

Inherited from object: __class__

Method Details

__init__(self, title, format='plain', ivoId=None)
(Constructor)

source code 

is a constructor for standalone use. You do *not* want to call this when mixing into a Structure.

Overrides: object.__init__
(inherited documentation)