From 26f2f463e19fae8856a202d187521d2b707e0965 Mon Sep 17 00:00:00 2001 From: bkoschicek Date: Thu, 2 Nov 2023 14:44:51 +0100 Subject: [PATCH] fixed rdf for single entity --- openatlas/api/resources/resolve_endpoints.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openatlas/api/resources/resolve_endpoints.py b/openatlas/api/resources/resolve_endpoints.py index d4df07f1c..a8a1f2002 100644 --- a/openatlas/api/resources/resolve_endpoints.py +++ b/openatlas/api/resources/resolve_endpoints.py @@ -92,7 +92,8 @@ def get_entity_formatted( 'entity': entity, 'links': get_all_links_of_entities(entity.id), 'links_inverse': get_all_links_of_entities_inverse(entity.id)} - if parser['format'] == 'loud': + if parser['format'] == 'loud' \ + or parser['format'] in app.config['RDF_FORMATS']: return get_loud_entities(entity_dict, parse_loud_context()) return get_linked_places_entity(entity_dict, parser)