Move upgrading notes to Wiki page

This commit is contained in:
Marcel Otto 2019-07-15 01:14:40 +02:00
parent 609bd78e4a
commit a8bf387ee8
2 changed files with 4 additions and 29 deletions

View file

@ -33,6 +33,9 @@ This project adheres to [Semantic Versioning](http://semver.org/) and
## 0.6.0 - 2019-04-06
see [here](https://github.com/marcelotto/rdf-ex/wiki/Upgrading-to-RDF.ex-0.6) for
upgrading notes to RDF.ex 0.6
### Added
- `RDF.PrefixMap`

View file

@ -22,34 +22,6 @@ For more about RDF.ex and it's related projects, go to <https://rdf-elixir.dev>.
- [JSON-LD] is implemented in the separate [JSON-LD.ex] package
## Upgrading to RDF.ex 0.6
#### `RDF.Graph.new` and `RDF.Dataset.new`
The arguments of the constructor functions of `RDF.Graph` and `RDF.Dataset` have changed. They now take the name of the graph resp. dataset as a `name` option. So, for example this
```elixir
RDF.Graph.new(EX.GraphName, data)
```
now has to be written like this
```elixir
RDF.Graph.new(data, name: EX.GraphName)
```
An option argument was needed for the new `prefixes` option and was impossible to provide in a maintainable way with the old interface.
See [this section of the guide](https://rdf-elixir.dev/rdf-ex/serializations.html#managing-prefixes) for more on the new prefix management features.
#### Equality of graphs and datasets
With prefixes being added to the `RDF.Graph` data structure, you can no longer rely on `==` for equality comparisons between graphs and datasets, since graphs with the same data but different prefixes will be unequal in terms of `==`. You should use the new `RDF.Graph.equal?/2` and `RDF.Dataset.equal?/2` functions instead.
See [this section of the guide](https://rdf-elixir.dev/rdf-ex/data-structures.html#equality) for more on that.
## Contributing
There's still much to do for a complete RDF ecosystem for Elixir, which means there are plenty of opportunities for you to contribute. Here are some suggestions:
@ -73,7 +45,7 @@ If you need help with your Elixir and Linked Data projects, just contact <info@c
## License and Copyright
(c) 2017-2018 Marcel Otto. MIT Licensed, see [LICENSE](LICENSE.md) for details.
(c) 2017-2019 Marcel Otto. MIT Licensed, see [LICENSE](LICENSE.md) for details.
[RDF.ex]: https://hex.pm/packages/rdf