resourceName

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

Examples:

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

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