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

json-ld type formatting functions #11

Open
marc-portier opened this issue Sep 23, 2021 · 2 comments
Open

json-ld type formatting functions #11

marc-portier opened this issue Sep 23, 2021 · 2 comments
Milestone

Comments

@marc-portier
Copy link
Member

to support not only ttl production, but also jsonld

helping out in the correct number formatting, and string-escaping

and following similar observations to those in #10

so maybe align the type-declarations and value-conformity-checking between both

@marc-portier
Copy link
Member Author

marc-portier commented Oct 4, 2021

consider looking into the exsiting jinja2 filter | tojson
see also https://jinja.palletsprojects.com/en/2.9.x/templates/#builtin-filters

  • surely for delegating to production of nested structures
  • but possibly also useful for single value formatting?

@marc-portier
Copy link
Member Author

consider looking into the exsiting jinja2 filter | tojson see also https://jinja.palletsprojects.com/en/2.9.x/templates/#builtin-filters

  • surely for delegating to production of nested structures

seems to work well for nested structures --> showcase in tests/templates/05-**

@laurianvm laurianvm modified the milestones: 0.3., 0.2. Feb 17, 2022
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