1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
.. rdflib_jsonld documentation master file
Welcome to rdflib_jsonld's documentation!
=========================================
DEPRECATED
----------
This `rdflib <https://pypi.org/project/rdflib/>`_ plugin is deprecated
for, as of the 2021-07-21 release of rdflib 6.0.0, JSON-LD handing has been
integrated.
*This plugin is now 'tombstoned' meaning this - 0.6.0 - is a final release and
all users of Python > 3.6 are encouraged to move to rdflib > 6.0.0.*
----
RDFLib plugin providing JSON-LD parsing and serialization.
This parser/serialiser will
* read in an JSON-LD formatted document and create an RDF graph
* serialize an RDF graph to JSON-LD formatted output
JSON-LD is described on the `JSON-LD <http://json-ld.org/>`_ web site as:
JSON-LD (JavaScript Object Notation for Linking Data) is a lightweight
Linked Data format that gives your data context. It is easy for humans
to read and write. It is easy for machines to parse and generate. It is
based on the already successful JSON format and provides a way to help
JSON data interoperate at Web-scale. If you are already familiar with
JSON, writing JSON-LD is very easy. These properties make JSON-LD an
ideal Linked Data interchange language for JavaScript environments, Web
service, and unstructured databases such as CouchDB and MongoDB.
A simple example of a JSON object expressing Linked Data:
.. code-block:: js
{
"@context": "http://json-ld.org/contexts/person",
"@id": "http://dbpedia.org/resource/John_Lennon",
"name": "John Lennon",
"birthday": "10-09",
"member": "http://dbpedia.org/resource/The_Beatles"
}
The example above describes a person whose name is John Lennon. The
difference between regular JSON and JSON-LD is that the JSON-LD object
above uniquely identifies itself on the Web and can be used, without
introducing ambiguity, across every Web site, Web service and
JSON-based database in operation today. The secret lies in the ``@context``
which instructs Linked Data-aware processors on how to interpret
the JSON object.
Contents:
.. toctree::
:maxdepth: 2
jsonld-serializer
jsonld-parser
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
|