From 37e9eaf0d877a923defc3091602acb2b4b96d704 Mon Sep 17 00:00:00 2001 From: Gregory Todd Williams Date: Fri, 31 May 2024 08:42:43 -0700 Subject: [PATCH] Make fwd and rev preds both optional in Attean::Algebra::NegatedPropertySet. --- lib/Attean/Algebra.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Attean/Algebra.pm b/lib/Attean/Algebra.pm index b443f21..afd1b75 100644 --- a/lib/Attean/Algebra.pm +++ b/lib/Attean/Algebra.pm @@ -843,8 +843,8 @@ package Attean::Algebra::NegatedPropertySet 0.033 { with 'Attean::API::PropertyPath'; - has 'predicates' => (is => 'ro', isa => ArrayRef[ConsumerOf['Attean::API::IRI']], required => 1); - has 'reversed' => (is => 'ro', isa => ArrayRef[ConsumerOf['Attean::API::IRI']], required => 1); + has 'predicates' => (is => 'ro', isa => ArrayRef[ConsumerOf['Attean::API::IRI']], required => 0, default => sub { [] }); + has 'reversed' => (is => 'ro', isa => ArrayRef[ConsumerOf['Attean::API::IRI']], required => 0, default => sub { [] }); sub as_string { my $self = shift;