public class SimpleTripleSorter extends Object implements TripleSorter
The notion of "lightness" makes more concrete triples lighter than less concrete ones, and variables lighter than ANY. Variables that have been bound by the time their containing triple is processed weigh just a little.
The notion of "bind the most" is just the sum of occurances of the variables in the triple in the other triples.
No weighting is applied to predicate position, and no knowledge about the graph being queried is required.
dontSort
Constructor and Description |
---|
SimpleTripleSorter()
A public SimpleTripleSorter needs no arguments (we imagine more sophisticated
ones might).
|
public SimpleTripleSorter()
public Triple[] sort(Triple[] ts)
sort
in interface TripleSorter
Copyright ? 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP