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

jskos-convert: support RDF/Turtle output format #12

Open
nichtich opened this issue Sep 27, 2019 · 3 comments
Open

jskos-convert: support RDF/Turtle output format #12

nichtich opened this issue Sep 27, 2019 · 3 comments
Labels
feature Additional functionality
Milestone

Comments

@nichtich
Copy link
Member

nichtich commented Sep 27, 2019

Converting from JSKOS to RDF should be straight-forward with the existing JSON-LD context document.

This feature is required to better support vocabularies in annif

@nichtich nichtich added the feature Additional functionality label Sep 27, 2019
@nichtich nichtich added this to the 1.0.0 milestone Nov 25, 2019
nichtich added a commit that referenced this issue Dec 4, 2020
@nichtich
Copy link
Member Author

nichtich commented Dec 4, 2020

Support of Turtle serialization is possible with n3. jsonld library only supports nquads serialization so the rdf data needs to be re-parsed and serialized with n3.

@nichtich
Copy link
Member Author

See https://www.npmjs.com/package/jsonld2rdf for implementation. Requires gbv/jsonld2rdf#2 for integration.

@nichtich
Copy link
Member Author

nichtich commented Oct 1, 2024

Current workaround is to use jsonld2rdf command line client, JSKOS context and a list of prefixes but this should better directly be supported by jskos-convert:

jskos-convert ... > result.ndjson
jq -s . result.ndjson | jsonld2rdf -c ../jskos/context.json -p prefixes.json

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

No branches or pull requests

1 participant