Naive link traversal for TREE. This implementation simply follows all the tree:relation available.
Implementation
A ActorExtractLinksTree actor has been created the test method of this actor accept any action. The run method follow any tree:relation that has for implicit subject the current page.
Limitation
It seems that some TREE and LDES has inconsistent URL relation for example there URL execute an HTTP redirect and the document still referees to the original link.
The test method returns always true, which means that the actor must be chosen carefully in the configuration.
There is no stopping condition for the reading of relation which means that a document with a lot of tree:member will be slow to read in relation to the number of potential relations.
Testing method
A unit test has been implemented.
As there is no system tests currently, manual test has been done.
Engine configuration
The configuration file engines/query-sparql-link-traversal/config/config-default.json has the current values
Select a sources from the website https://treecg.github.io/TREE-LDES-visualizer/. Run node index.js in the root of the repo. Validate if the debugging info provided by the logger match the "Selected resource" information provided by the TREE Validator.
Introduction
Naive link traversal for
TREE
. This implementation simply follows all thetree:relation
available.Implementation
A ActorExtractLinksTree actor has been created the
test
method of this actor accept any action. Therun
method follow anytree:relation
that has for implicit subject the current page.Limitation
It seems that some
TREE
andLDES
has inconsistent URL relation for example there URL execute an HTTP redirect and the document still referees to the original link.The test method returns always true, which means that the actor must be chosen carefully in the configuration.
There is no stopping condition for the reading of relation which means that a document with a lot of
tree:member
will be slow to read in relation to the number of potential relations.Testing method
A unit test has been implemented.
As there is no system tests currently, manual test has been done.
Engine configuration
The configuration file
engines/query-sparql-link-traversal/config/config-default.json
has the current valuesTest Script
in the root of the repo an
index.js
file is created containing those linesValidation
Select a
sources
from the website https://treecg.github.io/TREE-LDES-visualizer/. Runnode index.js
in the root of the repo. Validate if the debugging info provided by the logger match the "Selected resource" information provided by the TREE Validator.