Adding new parameters: AllowOnlyLinksToPages and AllowLinkExpansion #59
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Additional options that allow for example to cleanly graph relations between page list results generated by inline queries of Semantic Mediawiki.
The normal behavior from SMW example provided in readme makes graph hard to read:
AllowOnlyLinksToPages restricts the graph to nodes from page list, for example when set to true:
AllowLinkExpansion allows or suppresses adding new nodes to graph by holding nodes:
All images above were generated by following code and by changing the new parameters
Some translation files and readme with an example were updated.
Probably needs code review and maybe new variable names could be made more consistent with the rest of the code.
Modifications were tested and were working on a debian system with:
MediaWiki 1.37.4
PHP 7.4.30 (apache2handler)
MariaDB 10.5.15-MariaDB-0+deb11u1
ICU 67.1
LuaSandbox 3.0.3
Lua 5.1.5
Pygments 2.10.0
Semantic Forms Select 4.0.0-alpha
Semantic MediaWiki 4.0.2
Semantic Result Formats 4.0.1