CSVW RDF Convertor - Documentation
    Preparing search index...
    • Replaces the beginning of a given URL with a corresponding replacement string based on a set of path overrides. The function matches the longest prefix or regular expression match from the provided overrides.

      Parameters

      • url: string

        The URL to be processed and potentially replaced.

      • pathOverrides: [string | RegExp, string][]

        An array of tuples where each tuple contains:

        • from: A string or regular expression to match against the start of the URL.
        • to: A string to replace the matched portion of the URL.

      Returns string

      The modified URL if a match is found, or the original URL if no match is found.