pyld
pyld copied to clipboard
JSON-LD processor written in Python
## Question How can I require multiple types? ## I expect ``` frame = { "@type": { @requireAll: true, @value: [ skos:Concept, dct:Location ] } } ``` ## Instead E...
## This PR - checks a value before accessing an index. ## Notes See the [JSON Playground behavior](https://json-ld.org/playground/#startTab=tab-framed&json-ld=%7B%22http%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23notation%22%3A%5B%7B%22%40type%22%3A%22http%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23EUDOR_LNG%22%2C%22%40value%22%3A%22EN%22%7D%2C%7B%22%40type%22%3A%22http%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23FD_060%22%2C%22%40value%22%3A%22EN%22%7D%2C%7B%22%40type%22%3A%22http%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23ISO_639_1%22%2C%22%40value%22%3A%22en%22%7D%2C%7B%22%40type%22%3A%22http%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23PLANJO%22%2C%22%40value%22%3A%22EN%22%7D%2C%7B%22%40type%22%3A%22http%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23PUB_LANG%22%2C%22%40value%22%3A%22EN%22%7D%2C%7B%22%40type%22%3A%22http%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23PUB_LNGISO%22%2C%22%40value%22%3A%22EN%22%7D%2C%7B%22%40type%22%3A%22http%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23TED%22%2C%22%40value%22%3A%22EN%22%7D%2C%7B%22%40type%22%3A%22http%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23TED_SCHEMA%22%2C%22%40value%22%3A%22EN%22%7D%2C%7B%22%40type%22%3A%22http%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23XML_LNG%22%2C%22%40value%22%3A%22en%22%7D%2C%7B%22%40type%22%3A%22http%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23ISO_639_2B%22%2C%22%40value%22%3A%22eng%22%7D%2C%7B%22%40type%22%3A%22http%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23ISO_639_2T%22%2C%22%40value%22%3A%22eng%22%7D%2C%7B%22%40type%22%3A%22http%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23ISO_639_3%22%2C%22%40value%22%3A%22eng%22%7D%5D%7D&frame=%7B%22%40context%22%3A%7B%22skos%22%3A%22http%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23%22%2C%22id%22%3A%7B%22%40id%22%3A%22skos%3Anotation%22%2C%22%40type%22%3A%22http%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23FD_060%22%7D%7D%2C%22skos%3Anotation%22%3A%7B%22%40type%22%3A%22http%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23FD_060%22%2C%22%40value%22%3A%7B%7D%7D%7D)
## Reproduce when JsonLdProcessor.get_values(pattern, "@value") == [] ## I expect return False ## Instead IndexError
not sure if this functionality is on the roadmap but reading context's from IPFS are helpful to a personal use case. Please let me know what you think, and what...
Changing the `@id` alias in an inner context doesn't work correctly. Synopsis: ```json { "@context": { "namespace": "@id", "contents": { "@context": { "uri": "@id } } } } ``` Doesn't...
I am currently trying to upgrade pyld to version 2.0.x. But sadly some of our test cases fail and I think thats due to an Bug in pyld. The problem...
fixes issue #156
CONTRIBUTING.rst states: ``` As of early 2020, the process to generate an EARL report for the official JSON-LD Processor Conformance page is: Run the tests on the json-ld-api and json-ld-framing...
pyld is not correctly loading json-ld content from https://schema.org, when http://schema.org is used in the context. There are two open PR's that fix this issue (https://github.com/digitalbazaar/pyld/pull/129 and https://github.com/digitalbazaar/pyld/pull/141). It would...