Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow hext to participate in RDF format roundtripping #1656

Merged
merged 11 commits into from
Jan 15, 2022
Prev Previous commit
Next Next commit
Update rdflib/plugins/parsers/hext.py
Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
  • Loading branch information
nicholascar and aucampia committed Jan 9, 2022
commit da9c5a2f15723c6c9d6ff2ad495fbda464bd34a8
2 changes: 1 addition & 1 deletion rdflib/plugins/parsers/hext.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _parse_hextuple(self, cg: ConjunctiveGraph, tup: List[Union[str, None]]):
# 3 - value
o: Union[URIRef, BNode, Literal]
if tup[3] == "globalId":
o = cast(URIRef, URIRef(tup[2]))
o = URIRef(tup[2])
elif tup[3] == "localId":
o = BNode(value=tup[2].replace("_:", ""))
else: # literal
Expand Down