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

Support for text/plain for remote context in JSON-LD #34

Closed
EmidioStani opened this issue Jan 22, 2024 · 1 comment
Closed

Support for text/plain for remote context in JSON-LD #34

EmidioStani opened this issue Jan 22, 2024 · 1 comment

Comments

@EmidioStani
Copy link

Hello,

I was testing the below example:

{
"@context": "https://raw.githubusercontent.com/SEMICeu/DCAT-AP/master/releases/3.0.0/html/examples/context.jsonld",
"@graph": [
{
"@id": "example-ds:BeePopulation",
"@type": "Dataset",
"description": {
"en": "A dataset about bee population in Greece"
},
"publisher": "example-ag:GreekEnvironmentAgency",
"title": {
"en": "Bee population"
}
}
]
}

but I get parsing error as the remote context is passed in text/plain. Would it be possible to add it text/plain for json-ld ?

Thanks,

Emidio

@tpluscode
Copy link
Collaborator

Internally, the parsing is done by jsonld-streaming-parser

I would suggest to ask there first.

While it could be possible to overcome, I will close here for now. I find this problem not exactly within the scope of the converter app. If you feel like no solutions on the lower level are possible, please feel free to reopen and we'll see what can be done

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

No branches or pull requests

2 participants