RDFLib / rdflib

RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
https://rdflib.readthedocs.org
BSD 3-Clause "New" or "Revised" License
2.15k stars 555 forks source link

added application/json plugin for sparql results parser #2893

Closed daghovland closed 1 month ago

daghovland commented 1 month ago

Summary of changes

Fixes issue #2887

This just adds the mediatype "application/json" to the list of mediatypes that are handled by JSONResultParser. Previously only "application/sparql-results+json" and" json" were handled.

This does not change any existing functionality, only allows one more mediatype to be parsed in the same way as json is parsed. I dont think there can be any negative impact of assuming sparql answers of type application/json are applicaiton/sparql-results+json, as i have not heard of any other json sparql result formats. It would also follow the same pattern as used for application/sparql-results+xml

Checklist

daghovland commented 1 month ago

Incorrect fix. See issue comment.