robrwo / SemanticWeb-Schema

9 stars 3 forks source link

Inconsistent hierarchy during C3 merge of class 'SemanticWeb::Schema::Dentist' #5

Open mreitinger opened 3 years ago

mreitinger commented 3 years ago

SemanticWeb::Schema::Dentist currently fails with Inconsistent hierarchy during C3 merge of class 'SemanticWeb::Schema::Dentist'.

The extends seems to be incorrect.

Version: v11.01.0 Perl: perl5 (revision 5 version 26 subversion 1) OS: OpenSuSE Leap 15.2

perl -MSemanticWeb::Schema::Dentist -e 'print SemanticWeb::Schema::Dentist->new({})->json_ld;'
Inconsistent hierarchy during C3 merge of class 'SemanticWeb::Schema::Dentist':
        current merge results [
                SemanticWeb::Schema::Dentist,
        ]
        merging failed on 'SemanticWeb::Schema::LocalBusiness' at /usr/lib/perl5/5.26.1/x86_64-linux-thread-multi/mro.pm line 35.

other modules work as expected:

perl -MSemanticWeb::Schema::Physician -e 'print SemanticWeb::Schema::Physician->new({})->json_ld;'
{
   "@context" : "http://schema.org/",
   "@type" : "Physician"
}
robrwo commented 3 years ago

Confirmed. That's because it is both a MedicalBusiness and LocalBusiness.

robrwo commented 3 years ago

I am releasing a temporary fix until I fix the schema generation script