code: def get_pid(self, uri):
          
          # if the wikibase is wikidata, and we give a wikidata uri or a PID with no URI specified:
          if (self.sparql_endpoint_url == 'https://query.wikidata.org/sparql' and
                  (uri.startswith("P") or uri.startswith("http://www.wikidata.org/entity/"))):
              # don't look up anything, just return the same value
              return uri
          if uri.startswith("P"):
              uri = "http://www.wikidata.org/entity/" + uri
          return self.URI_PID[uri]
docs: Get the pid for the property in this wikibase instance ( the one at `sparql_endpoint_url` ),
           that corresponds to (i.e. has the equivalent property) `uri`