resourceName

Returns the last path segment of iri (the resource name), excluding any trailing slash.

Examples:

  • https://pod.example/foo/bar.ttl → bar.ttl

  • https://pod.example/foo/bar/ → bar