diff options
author | Munyoki Kilyungi | 2023-11-13 13:21:46 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-11-27 12:29:25 +0300 |
commit | d902a3f5af32d7f81e8e21604ae0f2c6c118c5e2 (patch) | |
tree | 459ebda749a82b75296abeebdb4deee4b0a816f2 /gn3/api | |
parent | acf6270d55a15a6773ceed6182fd76bf93263e77 (diff) | |
download | genenetwork3-d902a3f5af32d7f81e8e21604ae0f2c6c118c5e2.tar.gz |
Add ex:pages and ex:hits to the search context.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/api')
-rw-r--r-- | gn3/api/metadata.py | 6 |
1 files changed, 4 insertions, 2 deletions
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 ; |