def _context_names():
    """Return list of valid context names."""
    import inspect

    from renku.models import provenance
    from renku.models._jsonld import JSONLDMixin

    for name in dir(provenance):
        cls = getattr(provenance, name)
        if inspect.isclass(cls) and issubclass(cls, JSONLDMixin):
            yield name
def _context_names ( ) : import inspect from renku . models import provenance from renku . models . _jsonld import JSONLDMixin for name in dir ( provenance ) : cls = getattr ( provenance , name ) if inspect . isclass ( cls ) and issubclass ( cls , JSONLDMixin ) : yield name
Return list of valid context names.