@hasInverse does not work with RDF input

Solved using regular expression. Check out this post: SQL migration tool: shenanigans and solutions

Suppose the generated dataset has Paragraph.character predicates and we want to add the inverse Character.paragraphs predicates.

In VS Code regex search for (.*?) <Paragraph.character> (.*?) . and replace with

$1 <Paragraph.character> $2 .
$2 <Character.paragraphs> $1 .

This gives us

_:Paragraph.866084 <Paragraph.character> _:Character.hamlet .
_:Character.hamlet <Character.paragraphs> _:Paragraph.866084 .