Implement a feature like the slurp parameter in [ShEx.js](https://github.com/shexjs/shex.js) which can record the neighbours visited during validation and write them to an RDF builder. This feature can be used to create RDF subsets based on SHACL schemas.