summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlex Nelson <alexander.nelson@nist.gov>2021-09-07 10:21:02 -0400
committerAlex Nelson <alexander.nelson@nist.gov>2021-09-07 10:21:02 -0400
commite778e9413510721c2fedaae56d4ff826df265c30 (patch)
tree14a42572ce95e35fe900d0536361a19b5e6b3627 /docs
parent27216580449033a11b2552cc2f9ff6f9aaedabd8 (diff)
downloadrdflib-e778e9413510721c2fedaae56d4ff826df265c30.tar.gz
Add JSON-LD to guess_format()
Now that the `rdflib` package provides the functionality formerly in the package `rdflib-jsonld`, it would be helpful for the utility function `guess_format` to recognize file extensions indicative of JSON-LD content. This patch adds recognition of two file extensions, preserving syntax of the `SUFFIX_FORMAT_MAP` variable: * `.json` * `.jsonld` The latter is in recognition of the IANA media type `application/ld+json` reporting the `.jsonld` file extension. References: https://www.iana.org/assignments/media-types/application/ld+json via https://www.iana.org/assignments/media-types/media-types.xhtml via https://w3c.github.io/json-ld-syntax/#iana-considerations Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions