Skip to content

rdflib.graph.ConjunctiveGraph.parse should return self #2351

Open
@aucampia

Description

@aucampia

Currently, rdflib.graph.ConjunctiveGraph.parse returns context instead of self, which seems wrong:

rdflib/rdflib/graph.py

Lines 2250 to 2251 in 5c3c78a

# TODO: FIXME: This should not return context, but self.
return context

It also causes confusion for users because it is not really something anyone would expect to happen, see #2335.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeThis involves or proposes breaking RDFLib's public API.coreRelates to core functionality of RDFLib, i.e. `rdflib.{graph,store,term}`feedback wantedFeedback from RDFLib users and contributors is wanted.good first issueGood for newcomersinterface bugAn issue with our public interfaceneeds discussionThis issue needs further discussion to find an optimal way to resolve it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions