-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a fix for parsing rdflib literals. (#229)
# Description We cannot use the `value` attribute of an `rdflib.Literal` to access its value, since it is `None` for some datatypes (at least for rdf:JSON). Seems more robust to use the existence of the `n3()` method to test for a literal and the string representation to access its value. ## Type of change - [x] Bug fix and code cleanup - [ ] New feature - [ ] Documentation update - [ ] Testing --------- Co-authored-by: Francesca L. Bleken <48128015+francescalb@users.noreply.github.com>
- Loading branch information
1 parent
225fc78
commit f76cdd5
Showing
2 changed files
with
41 additions
and
3 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
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