Skip to content

Instantly share code, notes, and snippets.

@fils
Created November 5, 2015 12:01
Show Gist options
  • Save fils/a6b81747b3d16bd8f7ba to your computer and use it in GitHub Desktop.
Save fils/a6b81747b3d16bd8f7ba to your computer and use it in GitHub Desktop.
Example LiPD JOSN-LD package. This uses the pattern described at https://www.authorea.com/users/17200/articles/19163/_show_article .
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fils
Copy link
Author

fils commented Nov 5, 2015

It's worth noting that this JSON-LD also contains a GeoJSON aspect. Which github detects and attempts to render as a map. Select the "source" blob view to see the body. This text also correctly parses as JSON-LD via linters like http://json-ld.org/playground/ and http://www.markus-lanthaler.com/jsonld/playground/ as well as GeoJSON linters such as http://geojsonlint.com/ .

This means this data can be quickly cast to RDF, or other structured formats and also easily machine parsed in workflows.

@fils
Copy link
Author

fils commented Nov 5, 2015

Another note....
Given this is JSON-LD, the rather large context aspect can be removed from the rest of the body and linked in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment