By setting a labelOverride, the class name will be overridden in the DFRNT user interface. This provides a convenient way to customise the display name of a class according to your preference.
Instead of using the default class name, you can choose a more descriptive or meaningful label that accurately represents the purpose or content of the class. This can be particularly useful when working with complex data models or when the default class names are not intuitive.
With the ability to override the label, you can ensure that the class names in the DFRNT user interface align with your specific requirements.
propertyDisplayOrder: ["myProperty1", "myProperty2"]
If you set the propertyDisplayOrder, the properties in the record navigator will be displayed in the order you specify. This allows you to customise the display order of properties according to your preference.
Additionally, if a property is not included in the propertyDisplayOrder, it will be hidden from the navigator, allowing you to selectively hide certain keys from being displayed.
Example
An example of using the "reversedEdgeDirection" is in the class definition below, where the connection from would be in the wrong direction in a rendered diagram in the knowledge canvas when applying a layout. By reversing the interpretation of the from edge, it is visualised to be, as expected, from the connected object, to the instance of the class.
This is how the @metadata key can be structured in an example class when editing the schema definition, noted the "reversedEdgeDirection" that includes an array of properties to reverse the direction of.
{
"@type": "Class",
"@key": {
"@type": "Random"
},
"@id": "NistCsfSecurityControlInformativeReference",
"@metadata": {
"DFRNT": {
"propertyDisplayOrder": [],
"reversedEdgeDirection": [
"from"
]
}
},
"@inherits": [
"NistStatement"
],
"informativeReference": {
"@class": "NistStatement",
"@type": "Set"
},
"from": "NistCsfSubcategory"
}