Use base of graph or default_base_iri as default in encoder

This commit is contained in:
Marcel Otto 2022-04-23 01:11:09 +02:00
commit f3bc0a1d84
3 changed files with 67 additions and 1 deletions

View file

@ -16,6 +16,8 @@ This project adheres to [Semantic Versioning](http://semver.org/) and
- context maps can be given now with atom keys or as `RDF.PropertyMap` to
`JSON.LD.context/2` and `JSON.LD.compact/3`
- the base IRI of a `RDF.Graph` or the `RDF.default_base_iri/0` is used as the
default `:base` in the `JSON.LD.Encoder`
- `RDF.Vocabulary.Namespace` modules can be set as base IRI