pyld icon indicating copy to clipboard operation
pyld copied to clipboard

JSON-LD processor written in Python

Results 84 pyld issues
Sort by recently updated
recently updated
newest added

I wanted to try using this package with my new JSON-LD API, with URLs such as http://api.conceptnet.io/c/en/example . It seems to be able to do simple transformations of the data,...

I have a context like: ``` "@context": {"dbpedia": "http://dbpedia.org/ontology/", "rdfs": "http://www.w3.org/2000/01/rdf-schema#", "owl": "http://www.w3.org/2002/07/owl#", "@base": "/astronomy", "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", "skos": "http://www.w3.org/2004/02/skos/core#", "schema": "https://schema.org/", "defines": {"@reverse": "rdfs:isDefinedBy"}, } ``` and then in the...

This is lacking actual tests from http://json-ld.org/test-suite/ "Transform RDF to JSON-LD tests", but does seem to work for the simple `--rdf-to-jsonld` case. I may have been a bit overeager in...

Hi! We noticed two bugs in your code. One is in the framing algorithm when the remote frame contains a context url (the "if" was never True and if/else branches...

The JSON-LD specification allows injecting a context into a json document before parsing.. https://w3c.github.io/json-ld-syntax/#interpreting-json-as-json-ld It is not obvious how PyLD supports this mode of processing - when accessing a document...

This fixes a bug with activitypub related documents: The schema "https://www.w3.org/ns/activitystreams" renders the spec if "application/json" has a lower prioritisation than "text/html".

needs tests

Alleviate the step of manually downloading specifications for tests to use them. Instead, put specifications into a dedicated directory using Git submodules mechanism.

Sample usage: ``` jsonld.set_document_loader( jsonld.requests_document_loader( timeout=Config.TIMEOUT, session=session, headers={"Accept": accept}, ) ) ```

feature
needs tests