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

Add a way to more easily generate a JSON-LD context from a set of keywords+prefixes #654

Open
theferrit32 opened this issue Sep 7, 2022 · 0 comments

Comments

@theferrit32
Copy link
Contributor

We can look them up in property-names.edn and namespaces.edn. Should reduce duplicate definition of what terms are and how they should be expanded/compacted.

A function should be able to produce a keywordized jsonld-esque map structure (using genegraph's class/property keywords), and the caller should be able to, without knowing the details about what the map contains:

  • serialize to plain JSON
  • generate a JSON-LD context to attach to the plain JSON
  • expand and compact the JSON using this context
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