blacklight icon indicating copy to clipboard operation
blacklight copied to clipboard

PoC and docs for schema.org implementation demonstrating mapping of Solr doc fields

Open anarchivist opened this issue 7 years ago • 5 comments

Identified from the July 2018 Blacklight Summit: Build out a proof of concept implementation of an Schema.org implementation (probably as an export format). The initial implementation should map index fields to Schema.org, and provide an embedded JSON-LD serialization the show view, as well as a JSON-LD response. Google now prefers embedded JSON-LD over HTML5 microdata, so we should rethink the approach previously implemented and undo what's there now.

TODO

  • [ ] Redo previous implementation #680
  • [ ] Add a default (but configurable) mapping from the default Blacklight/blacklight-marc schema to Schema.org.
  • [ ] Improve documentation around export formats within Blacklight
  • [ ] Add embedded JSON-LD response to show view
  • [ ] Serve up JSON-LD using content negotiation for /catalog/:id when receiving request with header Accept: application/ld+json
  • [ ] Serve up JSON-LD using request for /catalog/:id.jsonld

Ref #680, #688

anarchivist avatar Jul 25 '18 20:07 anarchivist

This request is going to conflict with our existing JSON-API that uses /catalog/:id(.:format) to return a JSON-API response.

jcoyne avatar Jul 26 '18 16:07 jcoyne

Perhaps you can have the .jsonld endpoint and the application/ld+json mime-type for this endpoint.

jcoyne avatar Jul 26 '18 16:07 jcoyne

Fixed up the above - thanks for the feedback.

anarchivist avatar Jul 26 '18 17:07 anarchivist

Am I right to read this as a new feature that could be released in the 7.x line, but not a necessary feature for 7.0?

barmintor avatar Oct 23 '18 21:10 barmintor

@barmintor Correct, at least for me.

anarchivist avatar Oct 23 '18 21:10 anarchivist