functional library to determine ownership of a resource