UTS-eResearch / ro-crate-js

Research Object Crate (RO-Crate) utilities
GNU General Public License v3.0
2 stars 6 forks source link

A method for fetching the entire context of an item as a subgraph #10

Open spikelynch opened 3 years ago

spikelynch commented 3 years ago

The resolveAll method collects everything seen along the way to resolving a chain of properties.

A simpler, but more comprehensive, version which follows all links from the item(s) and gathers everything into a subgraph - it bottoms out when it runs out of ids it hasn't seen before.