Does BookBrainz have a SPARQL endpoint?

I know it’s still early days at BookBrainz, but is there some way for me to query the live database? I was hoping to get a list with these columns:

  • Publisher name
  • Publisher ID
  • Wikidata item number (where available)
2 Likes

Hi @sibilant!

Currently, we only have an alpha version API running against the test database.
You can try it out in the live docs.

However, with only lookup requests currently implemented, there’s no way to fetch a list as you describe; you would have to know the BBID you want to fetch
You could then fetch that entity as well as its identifiers separately:
https://api.test.bookbrainz.org/1/publisher/6977a54c-0216-4469-b5ea-6c2f4942beb5 and
https://api.test.bookbrainz.org/1/publisher/6977a54c-0216-4469-b5ea-6c2f4942beb5/identifiers

Currently missing are the API endpoints to search for an entity by name and type.
We haven’t currently planned to offer a way to fetch all Publishers (same goes for other entity types).
Out of curiosity, what is your use case?

1 Like

Out of curiosity, what is your use case?

There is now a BookBrainz publisher ID property in Wikidata. I thought it would be nice to create a QuickStatement to add publisher IDs to Wikidata more quickly; and then, of course, to add missing QIDs to BookBrainz.

2 Likes