Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JSON-LD to guess_format() #1403

Merged

Commits on Sep 7, 2021

  1. 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>
    ajnelson-nist committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    e778e94 View commit details
    Browse the repository at this point in the history