Source code for osp.core.session.core_session

# Copyright (c) 2014-2019, Adham Hashibon, Materials Informatics Team,
# Fraunhofer IWM.
# All rights reserved.
# Redistribution and use are limited to the scope agreed with the end user.
# No parts of this software may be used outside of this context.
# No redistribution is allowed without explicit written permission.


from .session import Session


[docs]class CoreSession(Session): """ Core default session for all objects. """ def __str__(self): return "<CoreSession object>" # OVERRIDE def _notify_update(self, cuds_object): pass # OVERRIDE def _notify_delete(self, cuds_object): pass # OVERRIDE def _notify_read(self, cuds_object): pass
[docs] def get_triples(self): """Get the triples in the core session""" return [ triple for uid, cuds_object in self._registry.items() for triple in cuds_object.get_triples() ]