@faubulous/mentor-rdf
    Preparing search index...

    Class Uri

    A helper class for working with URI string.

    Index

    Constructors

    Methods

    • Get the portion of a URI after the first occurance of '#' or the last occurance of '/'.

      Parameters

      • uri: string

        A URI.

      Returns string | undefined

      The label portion of the URI.

    • Get the portion of a URI after the first occurance of '#' or the last occurance of '/'.

      Parameters

      • uri: string

        A URI.

      Returns string

      The namespace portion of the URI.

    • Get a normalized version of the URI which removes any trailing slashes or hashes.

      Parameters

      • uri: string

        A URI.

      Returns string

      A normalized URI.

    • Get a transformed version of the URI that can be used as a JSON identifier which only contains letters, numbers and dots.

      Parameters

      • uri: string

        A URI.

      Returns string | undefined

      A transformed version which only contains letters, numbers and dots.