How to query terms metadata?

11 views
Skip to first unread message

fa...@kb.dk

unread,
Nov 17, 2025, 8:12:06 AM (12 days ago) Nov 17
to Dataverse Users Community
Is it possible to retrieve license and access information for published datasets via the Search API?

The guide only mentions how to include metadata fields that are part of the metadata blocks, but the fields for terms and access are (somewhere?) outside of the regular blocks.

Best regards,
Falco

James Myers

unread,
Nov 17, 2025, 8:48:29 AM (12 days ago) Nov 17
to dataverse...@googlegroups.com

You can query for license:"CC0 1.0", etc. via the UI or API. FWIW: I don’t think these fields are in the guides, but you can look in the JSON export to see most of them (although in cases like license, the value in the JSON export is not what’s in Solr – Solr just has the “name” and not the “uri” or “iconUri”. Looking in the Solr schema.xml would give you the full list.

 

-- Jim

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dataverse-community/7e11b342-85f5-4f7c-bd32-63a5d974b044n%40googlegroups.com.

fa...@kb.dk

unread,
Nov 17, 2025, 10:13:03 AM (12 days ago) Nov 17
to Dataverse Users Community
The thing is that I would have to do the JSON export for each dataset individually, right?
What I was wondering is, whether I could extend the basic search example  https://demo.dataverse.org/api/search?q=trees to include the license and access terms somehow (those are not displayed by default). For other metadata fields, I can use "&metadata_fields=..." but I don't know if that works for license and access terms. If it works, can you provide an example?

Regards,
Falco

Philip Durbin

unread,
Nov 17, 2025, 10:22:25 AM (12 days ago) Nov 17
to dataverse...@googlegroups.com
I don't believe the metadata_fields trick works for licenses (since they aren't part of the metadata blocks infrastructure).

Please feel free to create an issue.



--
Reply all
Reply to author
Forward
0 new messages