From d902a3f5af32d7f81e8e21604ae0f2c6c118c5e2 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Mon, 13 Nov 2023 13:21:46 +0300 Subject: Add ex:pages and ex:hits to the search context. Signed-off-by: Munyoki Kilyungi --- gn3/api/metadata.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gn3/api') diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py index bf04389..60be66e 100644 --- a/gn3/api/metadata.py +++ b/gn3/api/metadata.py @@ -55,7 +55,8 @@ DATASET_CONTEXT = { } SEARCH_CONTEXT = { - "pages": "ex:totalCount", + "pages": "ex:pages", + "hits": "ex:hits", "result": "ex:result", "results": "ex:items", "resultItem": "ex:resultType", @@ -268,7 +269,8 @@ $prefix CONSTRUCT { ex:result rdf:type ex:resultType ; - ex:totalCount ?totalCount ; + ex:pages ?pages ; + ex:hits ?hits ; ex:currentPage $offset ; ex:items [ rdfs:label ?label ; -- cgit v1.2.3