Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

sourcery.dny.nu/longdistance

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sourcery.dny.nu/longdistance

Go Modules
Version
v0.4.2
Version published
Created
Source

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.

FAQs

Package last updated on 02 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts