helper functions for jsonld