longdistance
A Go library for folks whose relationship status with Linked Data is "It's Complicated".
This library implements parts of the JSON-LD 1.0 and JSON-LD 1.1 specification. It was initially written to handle ActivityStreams 2.0, but works for most JSON-LD documents. See the Features section for what does and does not work.
For each implemented functionality, it passes the associated JSON-LD test suite provided by the W3C.
Documentation
See the godoc.
Features
A limited feature set of JSON-LD Processing Algorithms and API specification is supported:
- Context processing.
- Remote context retrieval is supported, but requires a loader to be provided.
- Document expansion.
- Document compaction.
- Except
@preserve since framing is not supported.
Not supported:
ordered processing option.
- Document flattening.
- Framing.
- RDF serialisation/deserialisation.
- Remote document retrieval and extraction of JSON-LD script elements from HTML.
By not supporting some of these features, the internals of the library can remain fairly simple. Adding any of these features comes with significant complexity. If you're able and willing to contribute one of these features, please start by opening an issue so we can discuss how to appraoch it.
License
This library is licensed under the Mozilla Public License Version 2.0.