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

[CLI] Support extension .json as JSON-LD content with option --load #339

Closed
enridaga opened this issue Feb 3, 2023 · 3 comments
Closed
Assignees
Labels
Feature New feature or request
Milestone

Comments

@enridaga
Copy link
Member

enridaga commented Feb 3, 2023

Sometimes JSON-LD content is delivered with the extension .json, which raises this error:

Problem was: Failed to determine the content type: (URI=file:///Users/ed4565/Development/sparql-anything/sparql.anything/sparql-anything-cli/target/test-classes/JsonldTest.json : stream=null)
enridaga added a commit that referenced this issue Feb 3, 2023
enridaga added a commit that referenced this issue Feb 3, 2023
@enridaga enridaga self-assigned this Feb 3, 2023
@enridaga enridaga added this to the v0.9.0 milestone Feb 3, 2023
@enridaga enridaga added the Feature New feature or request label Feb 3, 2023
enridaga added a commit that referenced this issue Feb 3, 2023
enridaga added a commit that referenced this issue Feb 3, 2023
enridaga added a commit that referenced this issue Feb 3, 2023
@enridaga enridaga changed the title [CLI] Failed to load JSON-LD from .json file [CLI] Support extension .json as JSON-LD content with option --load Feb 6, 2023
@luigi-asprino luigi-asprino reopened this Feb 9, 2023
@luigi-asprino
Copy link
Member

Jena 4.7.0 (see #326) replaced the JSONLDReader class with LangJSONLD11 and LangJSONLD10.
Which one should be used?

@luigi-asprino
Copy link
Member

I went for JSONLD 1.1.

@enridaga
Copy link
Member Author

This change introduced a bug in the RDFTriplifier, because now the content type application/ld+json returns the Lang JSON instead of JSONLD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants