All Projects → RDFLib → Rdflib Jsonld

RDFLib / Rdflib Jsonld

Licence: other
JSON-LD parser and serializer plugins for RDFLib (Python 2.6+)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Rdflib Jsonld

Rdflib
RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
Stars: ✭ 1,584 (+533.6%)
Mutual labels:  rdf, serializer, json-ld, parser
jsonld-streaming-serializer.js
A fast and lightweight streaming JSON-LD serializer for JavaScript
Stars: ✭ 20 (-92%)
Mutual labels:  rdf, serializer, json-ld
Tomlplusplus
Header-only TOML config file parser and serializer for C++17 (and later!).
Stars: ✭ 403 (+61.2%)
Mutual labels:  json, serializer, parser
Sparql.js
A parser for the SPARQL query language in JavaScript
Stars: ✭ 271 (+8.4%)
Mutual labels:  rdf, serializer, parser
N3.js
Lightning fast, spec-compatible, streaming RDF for JavaScript
Stars: ✭ 521 (+108.4%)
Mutual labels:  rdf, serializer, parser
Serd
A lightweight C library for RDF syntax
Stars: ✭ 43 (-82.8%)
Mutual labels:  rdf, serializer, parser
Pxi
🧚 pxi (pixie) is a small, fast, and magical command-line data processor similar to jq, mlr, and awk.
Stars: ✭ 248 (-0.8%)
Mutual labels:  json, serializer, parser
Go
A high-performance 100% compatible drop-in replacement of "encoding/json"
Stars: ✭ 10,248 (+3999.2%)
Mutual labels:  json, serializer, parser
Java
jsoniter (json-iterator) is fast and flexible JSON parser available in Java and Go
Stars: ✭ 1,308 (+423.2%)
Mutual labels:  json, serializer, parser
Php Json Ld
PHP implementation of a JSON-LD Processor and API
Stars: ✭ 246 (-1.6%)
Mutual labels:  rdf, json-ld
Structomap
Easily and dynamically generate maps from Go static structures
Stars: ✭ 122 (-51.2%)
Mutual labels:  json, serializer
Json Autotype
Automatic Haskell type inference from JSON input
Stars: ✭ 139 (-44.4%)
Mutual labels:  json, parser
Hypergraphql
GraphQL interface for querying and serving linked data on the Web.
Stars: ✭ 120 (-52%)
Mutual labels:  rdf, json-ld
Alembic
⚗️ Functional JSON Parser - Linux Ready 🐧
Stars: ✭ 115 (-54%)
Mutual labels:  json, parser
Tiny Json
The tiny-json is a versatile and easy to use json parser in C suitable for embedded systems. It is fast, robust and portable.
Stars: ✭ 127 (-49.2%)
Mutual labels:  json, parser
Symfony Jsonapi
JSON API Transformer Bundle for Symfony 2 and Symfony 3
Stars: ✭ 114 (-54.4%)
Mutual labels:  json, serializer
Omniparser
omniparser: a native Golang ETL streaming parser and transform library for CSV, JSON, XML, EDI, text, etc.
Stars: ✭ 148 (-40.8%)
Mutual labels:  json, parser
Gelatin
Transform text files to XML, JSON, or YAML
Stars: ✭ 150 (-40%)
Mutual labels:  json, parser
Hypergraphql
GraphQL interface for querying and serving linked data on the Web.
Stars: ✭ 112 (-55.2%)
Mutual labels:  rdf, json-ld
Jaxon
Streaming JSON parser for Elixir
Stars: ✭ 145 (-42%)
Mutual labels:  json, parser

RDFLib plugin providing JSON-LD parsing and serialization

This is an implementation of JSON-LD for RDFLib. For more information about this technology, see the JSON-LD website.

This implementation will:

  • read in an JSON-LD formatted document and create an RDF graph
  • serialize an RDF graph to JSON-LD formatted output

Installation

The easiest way to install the RDFLib JSON-LD plugin is directly from PyPi using pip by running the command below:

pip install rdflib-jsonld

Otherwise you can download the source and install it directly by running:

python setup.py install

Using the plug-in JSONLD serializer/parser with RDFLib

The plugin parser and serializer are automatically registered if installed by setuptools.

>>> from rdflib import Graph, plugin
>>> from rdflib.serializer import Serializer

>>> testrdf = '''
... @prefix dc: <http://purl.org/dc/terms/> .
... <http://example.org/about>
...     dc:title "Someone's Homepage"@en .
... '''

>>> g = Graph().parse(data=testrdf, format='n3')

>>> print(g.serialize(format='json-ld', indent=4))
{
    "@id": "http://example.org/about",
    "http://purl.org/dc/terms/title": [
        {
            "@language": "en",
            "@value": "Someone's Homepage"
        }
    ]
}

>>> context = {"@vocab": "http://purl.org/dc/terms/", "@language": "en"}
>>> print(g.serialize(format='json-ld', context=context, indent=4))
{
    "@context": {
        "@language": "en",
        "@vocab": "http://purl.org/dc/terms/"
    },
    "@id": "http://example.org/about",
    "title": "Someone's Homepage"
}

Building the Sphinx documentation

If Sphinx is installed, Sphinx documentation can be generated with:

$ python setup.py build_sphinx

The documentation will be created in ./build/sphinx.

Continuous integration tests

Build Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].