
it.unibz.inf.ontop.dbschema.ImmutableMetadata Maven / Gradle / Ivy
package it.unibz.inf.ontop.dbschema;
import com.google.common.collect.ImmutableList;
import it.unibz.inf.ontop.dbschema.impl.CachingMetadataLookup;
import it.unibz.inf.ontop.exception.MetadataExtractionException;
public interface ImmutableMetadata {
ImmutableList getAllRelations();
DBParameters getDBParameters();
static ImmutableMetadata extractImmutableMetadata(MetadataProvider metadataProvider) throws MetadataExtractionException {
CachingMetadataLookup lookup = new CachingMetadataLookup(metadataProvider);
for (RelationID id : metadataProvider.getRelationIDs())
lookup.getRelation(id);
return lookup.extractImmutableMetadata();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy