def getResourceMap(self, pid):
url = "<STR_LIT>".format(url_base=self.url_base,<EOL>pid=pid)<EOL>r = self._request('<STR_LIT:GET>', url)<EOL>if r.status_code != <NUM_LIT:200>:<EOL><INDENT>if r.status_code == <NUM_LIT>:<EOL><INDENT>raise HydroShareNotAuthorized(('<STR_LIT:GET>', url))<EOL><DEDENT>elif r.status_code == <NUM_LIT>:<EOL><INDENT>raise HydroShareNotFound((pid,))<EOL><DEDENT>else:<EOL><INDENT>raise HydroShareHTTPException((url, '<STR_LIT:GET>', r.status_code))<EOL><DEDENT><DEDENT>return str(r.content)<EOL>
Get resource map metadata for a resource

        :param pid: The HydroShare ID of the resource
        :raises: HydroShareNotAuthorized if the user is not authorized to view the metadata.
        :raises: HydroShareNotFound if the resource was not found.
        :raises: HydroShareHTTPException to signal an HTTP error.
        :return: A string representing the XML+RDF serialization of resource map metadata.
        Example of data returned:

        <?xml version="1.0" encoding="UTF-8"?>
        <rdf:RDF
           xmlns:citoterms="http://purl.org/spar/cito/"
           xmlns:dc="http://purl.org/dc/elements/1.1/"
           xmlns:dcterms="http://purl.org/dc/terms/"
           xmlns:foaf="http://xmlns.com/foaf/0.1/"
           xmlns:ore="http://www.openarchives.org/ore/terms/"
           xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
           xmlns:rdfs1="http://www.w3.org/2001/01/rdf-schema#"
        >
          <rdf:Description rdf:about="http://foresite-toolkit.googlecode.com/#pythonAgent">
            <foaf:name>Foresite Toolkit (Python)</foaf:name>
            <foaf:mbox>foresite@googlegroups.com</foaf:mbox>
          </rdf:Description>
          <rdf:Description rdf:about="http://www.hydroshare.org/terms/GenericResource">
            <rdfs1:label>Generic</rdfs1:label>
            <rdfs1:isDefinedBy>http://www.hydroshare.org/terms</rdfs1:isDefinedBy>
          </rdf:Description>
          <rdf:Description rdf:about="http://www.hydroshare.org/resource/03c862ccf17b4853ac4288d63ab2d766/data/contents/test.txt">
            <ore:isAggregatedBy>http://www.hydroshare.org/resource/03c862ccf17b4853ac4288d63ab2d766/data/resourcemap.xml#aggregation</ore:isAggregatedBy>
            <dc:format>text/plain</dc:format>
          </rdf:Description>
          <rdf:Description rdf:about="http://www.hydroshare.org/resource/03c862ccf17b4853ac4288d63ab2d766/data/resourcemap.xml">
            <dc:identifier>03c862ccf17b4853ac4288d63ab2d766</dc:identifier>
            <ore:describes rdf:resource="http://www.hydroshare.org/resource/03c862ccf17b4853ac4288d63ab2d766/data/resourcemap.xml#aggregation"/>
            <rdf:type rdf:resource="http://www.openarchives.org/ore/terms/ResourceMap"/>
            <dc:format>application/rdf+xml</dc:format>
            <dc:creator rdf:resource="http://foresite-toolkit.googlecode.com/#pythonAgent"/>
            <dcterms:created>2016-11-29T16:17:52Z</dcterms:created>
            <dcterms:modified>2016-11-29T16:17:52Z</dcterms:modified>
          </rdf:Description>
          <rdf:Description rdf:about="http://www.openarchives.org/ore/terms/ResourceMap">
            <rdfs1:isDefinedBy>http://www.openarchives.org/ore/terms/</rdfs1:isDefinedBy>
            <rdfs1:label>ResourceMap</rdfs1:label>
          </rdf:Description>
          <rdf:Description rdf:about="http://www.hydroshare.org/resource/03c862ccf17b4853ac4288d63ab2d766/data/resourcemap.xml#aggregation">
            <citoterms:isDocumentedBy>http://www.hydroshare.org/resource/03c862ccf17b4853ac4288d63ab2d766/data/resourcemetadata.xml</citoterms:isDocumentedBy>
            <dc:title>Gen Res-1</dc:title>
            <dcterms:type rdf:resource="http://www.hydroshare.org/terms/GenericResource"/>
            <ore:isDescribedBy>http://www.hydroshare.org/resource/03c862ccf17b4853ac4288d63ab2d766/data/resourcemap.xml</ore:isDescribedBy>
            <ore:aggregates rdf:resource="http://www.hydroshare.org/resource/03c862ccf17b4853ac4288d63ab2d766/data/resourcemetadata.xml"/>
            <ore:aggregates rdf:resource="http://www.hydroshare.org/resource/03c862ccf17b4853ac4288d63ab2d766/data/contents/test.txt"/>
            <rdf:type rdf:resource="http://www.openarchives.org/ore/terms/Aggregation"/>
              </rdf:Description>
          <rdf:Description rdf:about="http://www.hydroshare.org/resource/03c862ccf17b4853ac4288d63ab2d766/data/resourcemetadata.xml">
            <ore:isAggregatedBy>http://www.hydroshare.org/resource/03c862ccf17b4853ac4288d63ab2d766/data/resourcemap.xml#aggregation</ore:isAggregatedBy>
            <citoterms:documents>http://www.hydroshare.org/resource/03c862ccf17b4853ac4288d63ab2d766/data/resourcemap.xml#aggregation</citoterms:documents>
            <dc:title>Dublin Core science metadata document describing the HydroShare resource</dc:title>
            <dc:format>application/rdf+xml</dc:format>
          </rdf:Description>
          <rdf:Description rdf:about="http://www.openarchives.org/ore/terms/Aggregation">
            <rdfs1:label>Aggregation</rdfs1:label>
            <rdfs1:isDefinedBy>http://www.openarchives.org/ore/terms/</rdfs1:isDefinedBy>
          </rdf:Description>
        </rdf:RDF>