public class DatabasePopulator extends Object
RandomVariableAtoms
to a database.Constructor and Description |
---|
DatabasePopulator(Database db)
Constructs a DatabasePopulator using the specified
Database . |
Modifier and Type | Method and Description |
---|---|
void |
populate(QueryAtom qAtom,
Map<Variable,Set<Constant>> substitutions)
|
void |
populateFromDB(Database sourceDB,
StandardPredicate p)
|
public void populate(QueryAtom qAtom, Map<Variable,Set<Constant>> substitutions)
Variables
from the substitution map into a
QueryAtom
and commits the resulting RandomVariableAtoms into the Database provided
to the constructor.qAtom
- the QueryAtom to perform substitution onsubstitutions
- the map of Variables to their possible GroundTerm substitutionspublic void populateFromDB(Database sourceDB, StandardPredicate p)
Copyright © 2018 University of California, Santa Cruz. All rights reserved.