Specification says that resource-id SHELL be anyURI. So theoretically you can use string data type. Function then will be string-equal.
At the same time, in most cases you can use anyURI without any problems. For example string "Alice" is anyURI.
Alternatively you can introduce another attribute, just name it appropriately and use instead of resource-id.