Add produceGeneralizedRdf and related edits to the API.
This addresses David Booth's comments in issue #222.
Merge branch 'origin/master'