bbp_workflow.target

Luigi targets.

Classes

KgUrlTarget(cls, task)

Knowledge graph luigi target specified by url.

class bbp_workflow.target.KgUrlTarget(cls, task)

Bases: Target

Knowledge graph luigi target specified by url.

Parameters:
  • cls (classobj) – Knowledge graph entity class from entity_management lib.

  • url (str) – Url to the knowledge graph entity.

property entity

Property which looks up cls by url.

Returns:

Knowledge graph entity instance or None if not found.

exists()

Return True if entity is not None and False otherwise.