Dumb fix to code storing triples

Stills needs more work to generate resource IDs