-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bnode as public id for graph.parse. test + fixes #300.
- Loading branch information
Showing
2 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1342,8 +1342,10 @@ def parse(self, source=None, publicID=None, format="xml", | |
source=source, publicID=publicID, location=location, | ||
file=file, data=data, format=format) | ||
|
||
# id = self.context_id(self.absolutize(source.getPublicId())) | ||
g_id = URIRef(publicID and publicID or source.getPublicId()) | ||
g_id = publicID and publicID or source.getPublicId() | ||
if not isinstance(g_id, Node): | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
gromgull
Author
Member
|
||
g_id = URIRef(g_id) | ||
|
||
context = Graph(store=self.store, identifier=g_id) | ||
context.remove((None, None, None)) | ||
context.parse(source, publicID=publicID, format=format, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I think this allows Literals? Is that wanted?