JSON-LD Utilities for DBP
Add a following line in Cargo.toml > [dependencies]:
json-ld-utils = { git = "https://github.com/exdata-inc/dbp-json-ld-utils.git", rev = "<latest commit hash>"}
You can also check behavior of this library by running a following command:
cargo run
Load a JSON-LD from specified url and follow URLs in JSON-LD until specified depth.
If load_context = true, load @context JSON-LD (otherwise not.)
Load a JSON-LD Object obj and follow URLs in JSON-LD until specified depth.
If load_context = true, load @context JSON-LD (otherwise not.)
Load a JSON-LD Array arr and follow URLs in JSON-LD until specified depth.
If load_context = true, load @context JSON-LD (otherwise not.)
Update JSON-LD on url by json_ld.