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

XML serialization #122

Closed
nichtich opened this issue Jan 5, 2024 · 1 comment
Closed

XML serialization #122

nichtich opened this issue Jan 5, 2024 · 1 comment

Comments

@nichtich
Copy link
Member

nichtich commented Jan 5, 2024

JSKOS is a JSON format with mapping to RDF. This allows for JSON and RDF tools but some environments better use XML. An official XML representation may help to support this use case.

Meanwhile a straightforward transformation from JSKOS to XML is possible with yq (since version 4). For instance a NDJSON file with concepts can be transformed this way:

# optionally download yq 
wget https://github.com/mikefarah/yq/releases/download/v4.40.5/yq_linux_amd64
chmod +x /yq_linux_amd64
jq -s {concepts:{concept:.}} concepts.ndjson | ./yq_linux_amd64 -oxml

A non-normative section about JSKOS/XML should be added to the specification.

@nichtich
Copy link
Member Author

Better not open this can of worms.

@nichtich nichtich closed this as not planned Won't fix, can't repro, duplicate, stale Sep 27, 2024
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

1 participant