Skip to content

Commit

Permalink
Align prez function to get item with item function
Browse files Browse the repository at this point in the history
  • Loading branch information
recalcitrantsupplant committed Sep 13, 2023
1 parent 718eb7b commit cbabadd
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions prez/routers/vocprez.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,20 +193,7 @@ async def concept_route(
request: Request, concept_scheme_curie: str, concept_curie: str
):
"""Get a SKOS Concept."""
profiles_mediatypes_info = ProfilesMediatypesInfo(
request=request, classes=frozenset([SKOS.Concept])
)

concept_iri = get_iri_route(concept_curie)
graph = await get_resource(concept_iri)
if "anot+" in profiles_mediatypes_info.mediatype:
await _add_prez_links(graph)
return await return_from_graph(
graph,
profiles_mediatypes_info.mediatype,
profiles_mediatypes_info.profile,
profiles_mediatypes_info.profile_headers,
)
return await item_function(request, object_curie=concept_curie)


@router.get(
Expand Down

0 comments on commit cbabadd

Please sign in to comment.