Package | Description |
---|---|
net.sf.openschema |
Modifier and Type | Class and Description |
---|---|
class |
MapFrame
A Frame implementation using java.util.Map
|
Modifier and Type | Field and Description |
---|---|
protected Frame |
LocalChooser.Decision.currentFocus
New current focus.
|
protected static Frame |
OpenSchemaPlanner.EMPTY_FOCUS |
Modifier and Type | Field and Description |
---|---|
protected Map<String,Frame> |
RDFFrameSet.frames
The frames themselves, map from frame name to MapFrame.
|
protected List<Frame> |
LocalChooser.Decision.potentialFoci
New potential focus list.
|
protected List<Map<Object,Frame>> |
OpenSchemaPlanner.Cache.Entry.values
The values that satisty the predicate properties.
|
protected Map<String,Frame> |
OpenSchemaPlanner.Cache.Entry.vars
The mapping from global variable names to values.
|
Modifier and Type | Method and Description |
---|---|
protected Frame |
RDFFrameSet.findOrCreate(String id)
Find a frame with a given id or creates it anew if it is not found.
|
Frame |
LocalChooser.Decision.getCurrentFocus()
New current focus.
|
Frame |
RDFFrameSet.getFrame(String id)
Get a frame with a given name.
|
Frame |
FrameSet.getFrame(String id)
Get a frame with a given name or null if is undefined.
|
Modifier and Type | Method and Description |
---|---|
List<Frame> |
LocalChooser.extractPotentialFoci(Map<String,Object> fd,
FrameSet frames)
Extract a set of potential foci from a given clause.
|
List<Map<Object,Frame>> |
OpenSchemaPlanner.Cache.fetch(OpenSchemaPlanner.Node node,
Map<String,Frame> vars)
Access the cache by searching for the list of values for this node and variables.
|
protected static List<Frame> |
OpenSchemaPlanner.framesUnderType(Object type,
Ontology ontology,
FrameSet frames)
Retrieve all the frames in a FrameSet which type is a subtype of a given type.
|
Collection<Frame> |
RDFFrameSet.getFrames()
Get all the frames.
|
Collection<Frame> |
FrameSet.getFrames()
Get all the frames.
|
List<Frame> |
LocalChooser.Decision.getPotentialFoci()
New potential focus list.
|
List<Map<Object,Frame>> |
OpenSchemaPlanner.Cache.Entry.getValues()
Access the values list.
|
protected Set<Frame> |
Property.resolveAll(net.sf.openschema.VarRef varRef,
Frame frame) |
protected List<Map<Object,Frame>> |
OpenSchemaPlanner.searchValues(OpenSchemaPlanner.Node node,
Map<String,Frame> varMapping,
Ontology ontology,
FrameSet frames)
Search for values that satisfy the node properties and the given mapping of variables.
|
Modifier and Type | Method and Description |
---|---|
protected Set<Frame> |
Property.resolveAll(net.sf.openschema.VarRef varRef,
Frame frame) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
OpenSchemaPlanner.canBeInstantiated(OpenSchemaPlanner.Node node,
Map<String,Frame> varMapping,
OpenSchemaPlanner.Cache cache,
Ontology ontology,
FrameSet frames)
Check whether there is valid data to instantiate a node or not, given an initial variable mapping.
|
abstract boolean |
Property.check(Map<Object,Frame> vars,
Ontology ontology)
Check whether a map of variables to values verifies or not this property.
|
LocalChooser.Decision |
RandomChooser.choose(List<Map<String,Object>> fds,
List<Frame> defaultFoci,
Object currentFocus,
List<Frame> potentialFoci,
List<Frame> focusStack,
FrameSet frames) |
LocalChooser.Decision |
RandomChooser.choose(List<Map<String,Object>> fds,
List<Frame> defaultFoci,
Object currentFocus,
List<Frame> potentialFoci,
List<Frame> focusStack,
FrameSet frames) |
LocalChooser.Decision |
RandomChooser.choose(List<Map<String,Object>> fds,
List<Frame> defaultFoci,
Object currentFocus,
List<Frame> potentialFoci,
List<Frame> focusStack,
FrameSet frames) |
LocalChooser.Decision |
GreedyChooser.choose(List<Map<String,Object>> fds,
List<Frame> defaultFoci,
Object currentFocus,
List<Frame> potentialFoci,
List<Frame> focusStack,
FrameSet frames) |
LocalChooser.Decision |
GreedyChooser.choose(List<Map<String,Object>> fds,
List<Frame> defaultFoci,
Object currentFocus,
List<Frame> potentialFoci,
List<Frame> focusStack,
FrameSet frames) |
LocalChooser.Decision |
GreedyChooser.choose(List<Map<String,Object>> fds,
List<Frame> defaultFoci,
Object currentFocus,
List<Frame> potentialFoci,
List<Frame> focusStack,
FrameSet frames) |
LocalChooser.Decision |
SimpleFocusChooser.choose(List<Map<String,Object>> fds,
List<Frame> defaultFoci,
Object currentFocus,
List<Frame> potentialFoci,
List<Frame> focusStack,
FrameSet frames)
Choose the appropriate continuation, using some of McKeown (1985) strategies.
|
LocalChooser.Decision |
SimpleFocusChooser.choose(List<Map<String,Object>> fds,
List<Frame> defaultFoci,
Object currentFocus,
List<Frame> potentialFoci,
List<Frame> focusStack,
FrameSet frames)
Choose the appropriate continuation, using some of McKeown (1985) strategies.
|
LocalChooser.Decision |
SimpleFocusChooser.choose(List<Map<String,Object>> fds,
List<Frame> defaultFoci,
Object currentFocus,
List<Frame> potentialFoci,
List<Frame> focusStack,
FrameSet frames)
Choose the appropriate continuation, using some of McKeown (1985) strategies.
|
abstract LocalChooser.Decision |
LocalChooser.choose(List<Map<String,Object>> fds,
List<Frame> defaultFoci,
Object currentFocus,
List<Frame> potentialFoci,
List<Frame> focusStack,
FrameSet frames)
Decide which continuation to follow in the schema instantiation process.
|
abstract LocalChooser.Decision |
LocalChooser.choose(List<Map<String,Object>> fds,
List<Frame> defaultFoci,
Object currentFocus,
List<Frame> potentialFoci,
List<Frame> focusStack,
FrameSet frames)
Decide which continuation to follow in the schema instantiation process.
|
abstract LocalChooser.Decision |
LocalChooser.choose(List<Map<String,Object>> fds,
List<Frame> defaultFoci,
Object currentFocus,
List<Frame> potentialFoci,
List<Frame> focusStack,
FrameSet frames)
Decide which continuation to follow in the schema instantiation process.
|
protected LocalChooser.Decision |
SimpleFocusChooser.chooseOnPotentialToPotentialLinks(List<Integer> candidatePositions,
List<Frame> candidateDefaultFoci,
List<Map<String,Object>> fds,
List<Frame> potentialFoci,
FrameSet frames)
Final decision on a smaller set of candidates using the potential to potential links.
|
protected LocalChooser.Decision |
SimpleFocusChooser.chooseOnPotentialToPotentialLinks(List<Integer> candidatePositions,
List<Frame> candidateDefaultFoci,
List<Map<String,Object>> fds,
List<Frame> potentialFoci,
FrameSet frames)
Final decision on a smaller set of candidates using the potential to potential links.
|
protected List<OpenSchemaPlanner.DecoratedNode> |
OpenSchemaPlanner.computeConfusionSet(OpenSchemaPlanner.Node node,
Map<String,Frame> varMapping,
OpenSchemaPlanner.Cache cache,
Ontology ontology,
FrameSet frames)
Compute all the nodes that are reachable from current node without passing through another Predicate node.
|
boolean |
OpenSchemaPlanner.Cache.Entry.equals(OpenSchemaPlanner.Node node,
Map<String,Frame> vars)
Check when the node and the variables are the same.
|
List<Map<Object,Frame>> |
OpenSchemaPlanner.Cache.fetch(OpenSchemaPlanner.Node node,
Map<String,Frame> vars)
Access the cache by searching for the list of values for this node and variables.
|
DocumentPlan |
OpenSchemaPlanner.instantiate(FrameSet frames,
Map<String,Frame> initialMapping,
Ontology ontology)
Main method, takes data to instantiate the schema, an initial variable mapping and an ontology and returns a
DocumentPlan.
|
protected Map<String,Object> |
OpenSchemaPlanner.instantiateClause(Map<String,Object> fd,
Map<Object,Frame> valueMapping)
Instantiate a given FD by changing all the variable references via a provided variable mapping.
|
protected Map<String,Object> |
OpenSchemaPlanner.instantiatePredicate(OpenSchemaPlanner.Node node,
Map<String,Frame> varMapping,
OpenSchemaPlanner.Cache cache,
boolean commit)
Instantiate a predicate by fetching the values from the cache and resolving variables in the output FD of the
predicate.
|
void |
OpenSchemaPlanner.Cache.populate(OpenSchemaPlanner.Node node,
Map<String,Frame> vars,
List<Map<Object,Frame>> values)
Populate the cache entry for a node and variables with the values.
|
void |
OpenSchemaPlanner.Cache.populate(OpenSchemaPlanner.Node node,
Map<String,Frame> vars,
List<Map<Object,Frame>> values)
Populate the cache entry for a node and variables with the values.
|
protected List<Map<Object,Frame>> |
OpenSchemaPlanner.searchValues(OpenSchemaPlanner.Node node,
Map<String,Frame> varMapping,
Ontology ontology,
FrameSet frames)
Search for values that satisfy the node properties and the given mapping of variables.
|
void |
OpenSchemaPlanner.Cache.Entry.setValues(List<Map<Object,Frame>> values)
Set the values list.
|
Constructor and Description |
---|
Decision(int pos,
Frame currentFocus,
List<Frame> potentialFoci)
Full constructor (this class is immutable).
|
Constructor and Description |
---|
Decision(int pos,
Frame currentFocus,
List<Frame> potentialFoci)
Full constructor (this class is immutable).
|
Entry(OpenSchemaPlanner.Node node,
Map<String,Frame> vars)
Construct a new entry for a given node and global variables.
|
Copyright © 2015 Pablo Duboue. All rights reserved.