@property
    def uri_string(self):
        """ The fully resolved URI string for this target.

        :rtype: string

        """
        if isinstance(self.entity, int):
            uri_string = "{%d}" % self.entity
        elif isinstance(self.entity, NodePointer):
            uri_string = "{%d}" % self.entity.address
        else:
            remote_entity = remote(self.entity)
            if remote_entity:
                uri_string = remote_entity.ref
            else:
                uri_string = ustr(self.entity)
        if self.segments:
            if not uri_string.endswith("/"):
                uri_string += "/"
            uri_string += "/".join(map(percent_encode, self.segments))
        return uri_string
dataset/ETHPy150Open nigelsmall/py2neo/py2neo/ext/batman/jobs.py/Target.uri_string/original