Skip to content

SOLIDPOD: turtleToTripleMap() lacks support for special characters #628

@jesscmoore

Description

@jesscmoore

Describe the Bug

When the object of a triple has a special character, such as a colon, turtleToTripleMap() is failing with a saveToGroups errors as it is parsing on the colon in the object field, and returning the first part of the object in the predicate.

This happens with data that has a colon in the title of a book when testing personalLibrary app. I have since

eg the title of a book with value "Faking It: Artificial Intelligence in a Human World"

To Reproduce

Steps to reproduce the behavior:

  1. cd personalLibrary
  2. Edit _safeParseTtlToTriple() to uncomment return turtleToTripleMap(ttlContent);
    instead of the custom turtle deserialiser I have added.
  3. Scan a book with a ':" in the subtitle and 'Save' to add to your library
  4. Click 'Library' in menu/appbar
  5. See error
see error relating to _saveToGroups
...

and the book file will pop up in a list of unparsed files.

Expected Behaviour

Turtle files with ":" in the value fields of triples should parse successfully.

Context

Where has the issue been observed:

  • Android
  • Chrome
  • iOS
  • Linux
  • macOS
  • Web
  • Windows

[Add any other context about the problem here.]

App Version: personallibrary 0.0.10 (using custom deserialiser in 0.0.11)

Closing Criteria

Checklist for closing the issue:

  • No errors from make prep
  • All tests pass make qtest
  • Parses triples with ':' in the object field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions