def read_jsonld(context, request): request.response.content_type = 'application/ld+json' request.response.content_type_params = { 'profile': AnnotationJSONLDPresenter.CONTEXT_URL } presenter = AnnotationJSONLDPresenter(context) return presenter.asdict()
def read_jsonld(context, request): request.response.content_type = "application/ld+json" request.response.content_type_params = { "charset": "UTF-8", "profile": str(AnnotationJSONLDPresenter.CONTEXT_URL), } presenter = AnnotationJSONLDPresenter(context) return presenter.asdict()
def read_jsonld(context, request): request.response.content_type = "application/ld+json" request.response.content_type_params = { "charset": "UTF-8", "profile": str(AnnotationJSONLDPresenter.CONTEXT_URL), } presenter = AnnotationJSONLDPresenter(context) return presenter.asdict()
def read_jsonld(context, request): request.response.content_type = "application/ld+json" request.response.content_type_params = { "charset": "UTF-8", "profile": str(AnnotationJSONLDPresenter.CONTEXT_URL), } return AnnotationJSONLDPresenter( context.annotation, links_service=request.find_service(name="links") ).asdict()