def resource(self, identifier):
        if not isinstance(identifier, Node):
            identifier = URIRef(identifier)
        return Resource(self, identifier)
Create a new ``Resource`` instance.
dataset/ETHPy150Open RDFLib/rdflib/rdflib/graph.py/Graph.resource