studioevoque / python-dlp

Automatically exported from code.google.com/p/python-dlp
0 stars 0 forks source link

Typo in rdflib/Graph.py #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
source.getPublicID() should be source.getPublicId()

in:

def parse(self, source, publicID=None, format="xml", **args):
    """Parse source into Graph into it's own context (sub graph)

    Format defaults to xml (AKA rdf/xml). The publicID argument is for
    specifying the logical URI for the case that it's different from the
    physical source URI. Returns the context into which the source was
    parsed. In the case of n3 it returns the root context.
    """
    source = self.prepare_input_source(source, publicID)
    #id = self.context_id(self.absolutize(source.getPublicId()))
    context = Graph(store=self.store, identifier=
      publicID and URIRef(publicID) or source.getPublicID())
    context.remove((None, None, None))
    context.parse(source, publicID=publicID, format=format, **args)
    return context

Original issue reported on code.google.com by gjhigg...@gmail.com on 25 Aug 2010 at 11:29