CBIIT / bento-meta

Bento Metamodel
8 stars 2 forks source link

add all models from db #4

Closed bensonml closed 4 years ago

bensonml commented 4 years ago

The main issue with Bento::Meta currently is that there isn’t a clean way to get all models from the MDB a priori. You have to know what models you want to pull out.

Example code:

#!/usr/bin/env perl
use strict;
use warnings;
use Data::Dumper;
use Bento::Meta;
my $bolt_url = 'bolt://localhost:7687';
print "using version: $Bento::Meta::VERSION\n";
my $m = Bento::Meta->new;
my @handles = $m->list_db_models($bolt_url);
print Dumper(@handles);

or

my $m = Bento::Meta->new;
my @handles =  $m->load_all_db_models($bolt_url);
print Dumper (@handles);

attn: @majensen -- thoughts?