Skip to content

[Bug]: Migration scripts do not properly respect inheritance #157

@arne-bdt

Description

@arne-bdt

Summary

The update script seems to updates only instances of the last member of the inheritance hierarchy.

Steps to reproduce

  1. Load CGMES 3.0 DiagramLayoutProfile
  2. Add a new mandatory attribute DiagramObject.test, cim:String, mutiplicity:1..1, no default, no isFixed
  3. Start migration from fresh upload of DiagramLayoutProfile to the latest modified DiagramLayoutProfile in the store
  4. Klick throug the assistant, which correctly aks for a default value
  5. Download the migration script

Expected behavior

  • a SPARQL update script to update all concrete instances of DiagramObject from the inheritance hierarchy with the default value for DiagramObject.test, which in this case should be any instance of DiagramObject or TextDiagramObject

Actual behavior

The migration contains only one update for TextDiagramObject. Any DiagramObjects would not be updated using this script.

INSERT {
?instance http://iec.ch/TC57/CIM100#DiagramObject.test "default" .
}
WHERE
{ ?instance a http://iec.ch/TC57/CIM100#TextDiagramObject
FILTER NOT EXISTS { ?instance http://iec.ch/TC57/CIM100#DiagramObject.test ?any }
}

Impact

Blocks usage / critical

RDFArchitect version

1.1.0-12-gb6c2400c

Environment

any

Logs and screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions