Skip to content

Releases October 10 2022

Data hub 1.1.0

Get version 1.1.0 on Github and on Dockerhub.

reverse

The data hub implementation of GET /datasets/<name>/changes now supports a new optional request parameter: reverse=true. If reverse is set, dataset changes are returned in reverse order. Newest to oldest.

Note that ?reverse=true must not be used when syncronizing datasets. Its primary purpose is to give users better insight and data exploration options.

Additionally, the release contains dependency updates and fixes.

Datahub CLI 0.8.0

Get version 0.8.0 on Github

reverse changes

Hand in hand with data hub 1.1.0, there is a new CLI release supporting the reverse feature. To retrieve dataset changes in reversed order, users can add -r/--reverse to the changes command.

Example:

$ mim dataset changes test_src -r

expanded namespace prefixes

The CLI also provides another new flag: -e/--expanded.

If the flag is set, the cli will replace all namespace prefixes in its print out with expanded URIs. This improves in many cases readability when users inspect data.

The flag is available for dataset entities, dataset changes and query.

Example with namespace prefixes:

$ mim dataset changes test_src

# Listing changes from http://localhost:8080/datasets/test_src/changes


# Namespaces:

#   | Namespace
ns0 | http://data.mimiro.io/core/dataset/
ns1 | http://data.mimiro.io/core/
ns2 | http://www.w3.org/1999/02/22-rdf-syntax-ns#
ns3 | http://hello/

# Continuation token: Mw==

Id    | Recorded            | Deleted | Props               | Refs
ns3:1 | 1662648998403368704 | false   | map[ns3:name:Bob]   | map[ns3:sister:ns3:2]
ns3:2 | 1662648998403368704 | false   | map[ns3:name:Alice] | map[]
ns3:3 | 1662648998403368704 | false   | map[ns3:name:Frank] | map[]

And now with expanded prefixes:

$ mim dataset changes test_src -e

# Listing changes from http://localhost:8080/datasets/test_src/changes


# Namespaces:

#   | Namespace
ns0 | http://data.mimiro.io/core/dataset/
ns1 | http://data.mimiro.io/core/
ns2 | http://www.w3.org/1999/02/22-rdf-syntax-ns#
ns3 | http://hello/

# Continuation token: Mw==

Id           | Recorded            | Deleted | Props                      | Refs
http://hello/1 | 1662648998403368704 | false   | map[http://hello/name:Bob]   | map[http://hello/sister:http://hello/2]
http://hello/2 | 1662648998403368704 | false   | map[http://hello/name:Alice] | map[]
http://hello/3 | 1662648998403368704 | false   | map[http://hello/name:Frank] | map[]

The full set of releases can be seen here.

To get started with the MIMIRO data hub check out the github repository readme and the user documentation. If you have questions about best practice and use of the data hub then please get in contact.