SemanticMediaWiki / SemanticResultFormats

Provides additional visualizations (result formats) for Semantic MediaWiki
https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Result_Formats
Other
45 stars 75 forks source link

Display non-page properties within nodes rather than as edges #676

Closed alex-mashin closed 2 years ago

alex-mashin commented 2 years ago

This PR is made in reference to: #667

Example:

{{#ask:[[Property:+]] [[Creation date::+]]<!-- to exclude subobjects -->
| ?Subproperty of
| ?Has type#Type
| format = graph
| parent = Subproperty of
| limit = 2000
| rankdir = RL
| graphlink = yes
| nodeshape = Mrecord
| graphlegend = yes
| graphcolor = yes
}}

will display nodes like this:

+-------------------+
| Is predecessor of |
| ----------+------ |
| Type      | Page  |
+-------------------+

and the edges will point to the parent properties.

JeroenDeDauw commented 2 years ago

Please add a short one line to https://github.com/SemanticMediaWiki/SemanticResultFormats/blob/master/RELEASE-NOTES.md

alex-mashin commented 2 years ago

Please add a short one line to https://github.com/SemanticMediaWiki/SemanticResultFormats/blob/master/RELEASE-NOTES.md

Added.