Use Authority in API Query

40 views
Skip to first unread message

jarmo.s...@uni-hildesheim.de

unread,
Dec 11, 2024, 5:10:43 AM12/11/24
to DSpace Technical Support
Hi all,

I need to construct a complex query for the Rest-API using authority values for the author field.
I know how to use authority as a filter (like f.author=1234567,authority) but is it also possible to use authority values in the query-part of a search request and if so how?

(What I am trying to achieve is this: I need all publications where a given person, identified by his authority-value, is either an author (any publication type) or an editor (all publication types excluding book-chapters).

So something similar to q=(dc.contributor.author :1234567,authority) OR (dc.contributor.editor:1234567,authority NOT dc.type:BookPart)

I am doing this on DSpace CRIS 2023.02

Any help or pointer to relevant documentation would be highly appreciated.

Jarmo

jarmo.s...@uni-hildesheim.de

unread,
Dec 16, 2024, 10:39:50 AM12/16/24
to DSpace Technical Support
Hi all,

I'll answer my own question, in the end ChatGPT gabe me the decisive hint:

One can use authority-IDs in a query by appending '_authority' to the name of the index like 'query=author_authority:123-456-789-123'

This feature is actually documented pretty well but apparently I did not use the correct search terms in google when trying to find it: https://wiki.lyrasis.org/display/DSArchive/Authority+Control+of+Metadata+Values#AuthorityControlofMetadataValues-Searching

Jarmo
Reply all
Reply to author
Forward
0 new messages