4 ms·
The canonical JSON mapping of protocol buffers uses a JSON-LD @type field for google.protobuf.Any. Other than that, the only use I've ever run into is for Sche
by endtime 4y ago
The canonical JSON mapping of protocol buffers uses a JSON-LD @type field for google.protobuf.Any.
Other than that, the only use I've ever run into is for Schema.org, which is as you say a "semantic web"-era initiative.
- dunham 4y agoBecause of Google, json-ld is very common on recipe web sites on the web. (Recipes for cooking.) It's typically found in a script tag and usually contains the full recipe, even if the page itself is paywalled. This can neatly solve the problem of extracting the recipe to save, and the complaints about having to dig through a page of text to read a recipe. I wrote a little browser plugin that pops up the recipe in a window and offers to save it to Obsidian (using a custom url and hammerspoon). I don't know if the schema.org stuff is in wide use outside of that. It would perhaps be useful to enable a browser to pull things like appointments and contacts out of a web page, but I suspect the world will just go the way of data detection instead.
- karmahunter1234 4y agoGoogle also uses them for other types of structured information to show what they call "rich results": https://developers.google.com/search/docs/appearance/structured-data/search-gallery https://developers.google.com/search/docs/appearance/structu...