Introduce BackLinkViewer component and associated config #342
No reviewers
Labels
No labels
bug
config
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
orinoco/shacl-vue!342
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "backlinks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes: #303
This new component allows viewing so-called backlinks for a record, i.e. other records
that reference the current record via some property, directly or indirectly. Upon
mounting, the component will first fetch all
Thingrecords (importantly: includingsubclasses) that somehow include the PID of the current record (via
matchingparament)from the backend service. Determining which referencing records to show required a new
utility function
getReferencingRecordswhich does the following:This means it recurses into the second level to find referencing records, and no further.
This is a restriction that could be reconsidered and addressed in future, although local
testing on actual data compliant to the xyzri schema has not shown this to be necessary.
Saving a referencing record also includes saving the quad's predicate, which is taken as
the referencing property, e.g. a
Personis referenced by aDatasetviaattributed_to.This allows grouping referencing records by property in the
BackLinkViewercomponent.Lastly, a new config sub-option
hideBackLinksis introduces for theNodeShapeViewer'scomponent_config. An example:hideBackLinkscan be a boolean or array. It is set totrueby default, meaning thatbacklinks won't be displayed by default (i.e. when the option is not configured). If an
array with class CURIEs is supplied, the back links will be displayed for records of all
classes except for those included in the configured array.
demo:
wip: back link viewerto IntroduceBackLinkViewercomponent and associated configb369e8090bto751c8340d1