PyOpenWorm.relationship module¶
-
class
PyOpenWorm.relationship.Relationship(s=None, p=None, o=None, **kwargs)[source]¶ Bases:
PyOpenWorm.dataObject.DataObjectA Relationship is typically related to a property and is an object that one points to for talking about the property relationship.
For SimpleProperty objects, this acts like a RDF Reified triple.
-
defined_augment()[source]¶ This fuction must return False if
identifier_augment()would raise anIdentifierMissingException. Override it when defining a non-standard identifier for subclasses of DataObjects.
-
identifier_augment()[source]¶ Override this method to define an identifier in lieu of one explicity set.
One must also override
defined_augment()to return True whenever this method could return a valid identifier.IdentifierMissingExceptionshould be raised if an identifier cannot be generated by this method.Raises: - IdentifierMissingException
-