Skip to content

Filtering in the link palette generation #224

@mike1813

Description

@mike1813

The link palette consists of a JSON stanza containing lists of the possible relationships that could be added by a user. The palette data is used in the system modeller GUI to decide which relationshiptypes the user will be offered when they try to create an asset relationship.

The palette generation used to be very time consuming because it used an over-complex SPARQL query based on an overspecified set of restrictions. This has been fixed, but as a result there are fewer restrictions and some links are returned that shouldn't be offered to users by the GUI.

Each relationship type is currently defined as an owl:ObjectProperty, with properties core:hidden and core:isAssertable specifying whether the relationship type should be displayed in the GUI, or made available when creating an asserted relationship. Currently, the link palette generator uses a SPARQL query that returns the value of core:hidden, but does not filter on it.

In addition, it should not be possible to add a relationship unless it connects two 'concrete' assets, i.e., assets that are either assertible or inferred by construction patterns. At present, the link palette data contains entries in which one of the asset types is not concrete.

Ideally, filters would be added to the SPARQL query so the superflous entries are not created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions