An action for declaratory judgement aims to establish whether a right exists when an illegal act has been reported (e.g. the failure to respect a copyright).
When a rights holder suspects that their rights have been infringed, they can bring an action for declaratory judgement to secure the evidence needed to claim for damages.