Function toNamedTerm

  • Converts a string to a named node when needed.

    Parameters

    • subject: string

      Subject to potentially transform.

    Returns NamedNode

  • Type Parameters

    • T extends Term

    Parameters

    • subject: T

    Returns T

  • Type Parameters

    • T extends Term

    Parameters

    • subject: string | T

    Returns T | NamedNode