Directly assign and visualize the prefix of a QNode
Task to solve
As a developer, I want that every QNode which has the URITerm and a prefix available to only own its prefix. With this a QNode do not need to get a graph instance to extract its prefixes. When every QNode has only its prefix, then I can better visualize the QNode QName.
Goals
-
By creating a QNode there should be a parameter which is used to declare if the prefix should be shown to the user or not. -
By creating a QNode the qname should be a parameter. -
If the prefix should be shown to the user, then elided the qname starting on the left side of the text. -
The text visualized inside the node should always stay inside the node. -
The text visualized inside the node should when possible take multiple rows.
Proposal
- First thing to try should be to extract the nodes prefix of the dictionary prefixes in QRDFGraph and then assign it to the node with the config to show the prefix or not.
- Then the label variable should be redefined to be displayed text.
- After this the inferLabel method of QNode need to be modified so that the prefix can be added to the label or not.
Edited by Coskun, Ertan