Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from Nov 3, 2021
Merged

Conversation

alex-mashin
Copy link
Contributor

@alex-mashin alex-mashin commented Oct 29, 2021

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.

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.

Fixes #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.

Fixes #667
@JeroenDeDauw
Copy link
Member

@alex-mashin
Copy link
Contributor Author

@JeroenDeDauw JeroenDeDauw merged commit dcfd97f into SemanticMediaWiki:master Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants