| Package | Description |
|---|---|
| amie | |
| amie.data | |
| amie.mining.assistant | |
| javatools.datatypes | |
| javatools.parsers |
| Modifier and Type | Method and Description |
|---|---|
static <E,T> IntHashMap<java.lang.Integer> |
U.buildHistogram(java.util.Map<T,java.util.List<E>> map)
It constructs a histogram based on a multimap.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
U.printHistogram(IntHashMap<java.lang.Integer> histogram)
Prints a IntHashMap representing a histogram.
|
| Modifier and Type | Field and Description |
|---|---|
protected IntHashMap<ByteString> |
KB.objectSize
Number of facts per object
|
protected IntHashMap<ByteString> |
KB.relationSize
Number of facts per relation
|
protected IntHashMap<ByteString> |
KB.subjectSize
Number of facts per subject
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<ByteString,IntHashMap<ByteString>> |
KB.object2objectOverlap
Object-object overlaps
|
protected java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>> |
KB.object2predicate2subject
Index
|
protected java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>> |
KB.object2subject2predicate
Index
|
protected java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>> |
KB.predicate2object2subject
Index
|
protected java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>> |
KB.predicate2subject2object
Index
|
protected java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>> |
KB.subject2object2predicate
Index
|
protected java.util.Map<ByteString,IntHashMap<ByteString>> |
KB.subject2objectOverlap
Subject-object overlaps
|
protected java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>> |
KB.subject2predicate2object
Index
|
protected java.util.Map<ByteString,IntHashMap<ByteString>> |
KB.subject2subjectOverlap
Subject-subject overlaps
|
| Modifier and Type | Method and Description |
|---|---|
protected IntHashMap<ByteString> |
KB.countBindings(int pos,
ByteString... triple)
Counts, for each binding of the variable at position pos, the number of
instantiations of the triple
|
IntHashMap<ByteString> |
KB.countProjectionBindings(ByteString[] projectionTriple,
java.util.List<ByteString[]> otherTriples,
ByteString variable)
For each instantiation of variable, it returns the number of instances of
the projectionTriple satisfy the query.
|
IntHashMap<ByteString> |
KB.countProjectionBindings(java.lang.CharSequence[] projectionTriple,
java.util.List<java.lang.CharSequence[]> query,
java.lang.CharSequence variable)
Counts, for each binding of the variable the number of instantiations of
the projection triple
|
protected IntHashMap<ByteString> |
KB.countProjectionBindings(int pos,
ByteString[] projectionTriple,
java.util.List<ByteString[]> otherTriples)
Counts for each binding of the variable at pos how many instances of the
projection triple exist in the query
|
IntHashMap<ByteString> |
KB.frequentBindingsOf(ByteString variable,
ByteString projectionVariable,
java.util.List<ByteString[]> query)
For each instantiation of variable, it returns the number of different
instances of projectionVariable that satisfy the query.
|
IntHashMap<ByteString> |
KB.frequentBindingsOf(java.lang.CharSequence variable,
java.lang.CharSequence projectionVariable,
java.util.List<java.lang.CharSequence[]> query)
Maps each value of the variable to the number of distinct values of the
projection variable
|
protected IntHashMap<ByteString> |
KB.get(java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>> map,
ByteString key1,
ByteString key2)
It returns the third level values of a map given the keys for the first
and second level.
|
IntHashMap<ByteString> |
KB.getRelationsBiggerOrEqualThan(int threshold)
Return all the relations (and their sizes) that are bigger than the given
threshold.
|
protected IntHashMap<ByteString> |
KB.resultsOneVariable(ByteString... triple)
Returns the results of the triple pattern query, if it contains exactly 1
variable
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<ByteString,java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>>> |
KB.difference(ByteString var1,
ByteString var2,
ByteString var3,
ByteString var4,
java.util.List<ByteString[]> antecedent,
ByteString[] head)
Bindings of the projection variables that satisfy the first list of atoms
but not the second.
|
java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>> |
KB.difference(ByteString var1,
ByteString var2,
ByteString var3,
java.util.List<ByteString[]> antecedent,
ByteString[] head)
Bindings of the projection variables that satisfy the first list of atoms
but not the atom 'head'
|
java.util.Map<ByteString,IntHashMap<ByteString>> |
KB.difference(ByteString var1,
ByteString var2,
java.util.List<ByteString[]> antecedent,
ByteString[] head)
Bindings of the projection variables that satisfy the first list of atoms
but not the atom 'head'.
|
java.util.Map<ByteString,IntHashMap<ByteString>> |
KB.difference(ByteString var1,
ByteString var2,
java.util.List<ByteString[]> antecedent,
java.util.List<ByteString[]> headList)
Bindings of the projection variables that satisfy the first list of atoms
but not the second.
|
java.util.Map<ByteString,java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>>> |
KB.difference(java.lang.CharSequence var1,
java.lang.CharSequence var2,
java.lang.CharSequence var3,
java.lang.CharSequence var4,
java.util.List<? extends java.lang.CharSequence[]> antecedent,
java.lang.CharSequence[] head)
Bindings of the projection variables that satisfy the first list of atoms
but not the atom 'head'
|
java.util.Map<ByteString,java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>>> |
KB.difference(java.lang.CharSequence var1,
java.lang.CharSequence var2,
java.lang.CharSequence var3,
java.lang.CharSequence var4,
java.util.List<? extends java.lang.CharSequence[]> antecedent,
java.lang.CharSequence[] head,
boolean swap)
Bindings of the projection variables that satisfy the first list of atoms
but not the second.
|
java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>> |
KB.difference(java.lang.CharSequence var1,
java.lang.CharSequence var2,
java.lang.CharSequence var3,
java.util.List<? extends java.lang.CharSequence[]> antecedent,
java.lang.CharSequence[] head)
Bindings of the projection variables that satisfy the first list of atoms
but not the atom 'head'.
|
java.util.Map<ByteString,IntHashMap<ByteString>> |
KB.difference(java.lang.CharSequence var1,
java.lang.CharSequence var2,
java.util.List<? extends java.lang.CharSequence[]> antecedent,
java.lang.CharSequence[] head)
Bindings of the projection variables that satisfy the first list of atoms
but not the atom 'head'.
|
java.util.Map<ByteString,java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>>> |
KB.differenceNotVarsInCommon(ByteString var1,
ByteString var2,
ByteString var3,
ByteString var4,
java.util.List<ByteString[]> antecedent,
ByteString[] head)
It performs set difference for the case where the head contains 2 out of the 4 variables
defined in the body.
|
java.util.Map<ByteString,java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>>> |
KB.differenceNotVarsInCommon(java.lang.CharSequence var1,
java.lang.CharSequence var2,
java.lang.CharSequence var3,
java.lang.CharSequence var4,
java.util.List<? extends java.lang.CharSequence[]> antecedent,
java.lang.CharSequence[] head)
It performs set difference for the case where the head contains 2 out of the 4 variables
defined in the body.
|
java.util.Map<ByteString,IntHashMap<ByteString>> |
KB.differenceNoVarsInCommon(ByteString var1,
ByteString var2,
java.util.List<ByteString[]> antecedent,
ByteString[] head)
Bindings of the projection variables that satisfy the first list of atoms
but not the atom 'head'.
|
java.util.Map<ByteString,IntHashMap<ByteString>> |
KB.differenceNoVarsInCommon(java.lang.CharSequence var1,
java.lang.CharSequence var2,
java.util.List<? extends java.lang.CharSequence[]> antecedent,
java.lang.CharSequence[] head)
Bindings of the projection variables that satisfy the first list of atoms
but not the atom 'head'.
|
protected java.util.Map<ByteString,IntHashMap<ByteString>> |
KB.get(java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>> map,
ByteString key)
It returns the second and third level values of a map given the keys for the first
level.
|
java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>> |
KB.resultsThreeVariables(ByteString var1,
ByteString var2,
ByteString var3,
ByteString[] triple)
Returns the results of a triple query pattern with three variables as
a nested map, firstValue : {secondValue : thirdValue}.
|
java.util.Map<ByteString,IntHashMap<ByteString>> |
KB.resultsTwoVariables(ByteString var1,
ByteString var2,
ByteString[] triple)
Returns the results of a triple query pattern with two variables as a map
of first value to set of second values
|
java.util.Map<ByteString,IntHashMap<ByteString>> |
KB.resultsTwoVariables(java.lang.CharSequence var1,
java.lang.CharSequence var2,
java.lang.CharSequence[] triple)
Returns the results of a triple query pattern with two variables as a map
of first value to set of second values.
|
java.util.Map<ByteString,IntHashMap<ByteString>> |
KB.resultsTwoVariables(int pos1,
int pos2,
ByteString[] triple)
Returns the results of a triple query pattern with two variables as a map
of first value to set of second values
|
java.util.Map<ByteString,IntHashMap<ByteString>> |
KB.resultsTwoVariables(int pos1,
int pos2,
java.lang.CharSequence[] triple)
Returns the results of a triple query pattern with two variables as a map
of first value to set of second values.
|
java.util.Map<ByteString,java.util.Map<ByteString,java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>>>> |
KB.selectDistinct(ByteString var1,
ByteString var2,
ByteString var3,
ByteString var4,
ByteString var5,
java.util.List<ByteString[]> query) |
java.util.Map<ByteString,java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>>> |
KB.selectDistinct(ByteString var1,
ByteString var2,
ByteString var3,
ByteString var4,
java.util.List<ByteString[]> query) |
java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>> |
KB.selectDistinct(ByteString var1,
ByteString var2,
ByteString var3,
java.util.List<ByteString[]> query) |
java.util.Map<ByteString,IntHashMap<ByteString>> |
KB.selectDistinct(ByteString var1,
ByteString var2,
java.util.List<ByteString[]> query)
Returns all (distinct) pairs of values that make the query true
|
java.util.Map<ByteString,java.util.Map<ByteString,java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>>>> |
KB.selectDistinct(java.lang.CharSequence var1,
java.lang.CharSequence var2,
java.lang.CharSequence var3,
java.lang.CharSequence var4,
java.lang.CharSequence var5,
java.util.List<? extends java.lang.CharSequence[]> query) |
java.util.Map<ByteString,java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>>> |
KB.selectDistinct(java.lang.CharSequence var1,
java.lang.CharSequence var2,
java.lang.CharSequence var3,
java.lang.CharSequence var4,
java.util.List<? extends java.lang.CharSequence[]> query) |
java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>> |
KB.selectDistinct(java.lang.CharSequence var1,
java.lang.CharSequence var2,
java.lang.CharSequence var3,
java.util.List<? extends java.lang.CharSequence[]> query)
Return all triplets of values that make the query true
|
java.util.Map<ByteString,IntHashMap<ByteString>> |
KB.selectDistinct(java.lang.CharSequence var1,
java.lang.CharSequence var2,
java.util.List<? extends java.lang.CharSequence[]> query)
Returns all (distinct) pairs of values that make the query true
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
KB.add(ByteString subject,
ByteString relation,
ByteString object,
java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>> map)
Methods to add single facts to the KB
|
static long |
KB.aggregate(java.util.Map<ByteString,IntHashMap<ByteString>> bindings)
Counts the number of bindings in the given nested map.
|
protected java.util.Map<ByteString,IntHashMap<ByteString>> |
KB.get(java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>> map,
ByteString key)
It returns the second and third level values of a map given the keys for the first
level.
|
protected IntHashMap<ByteString> |
KB.get(java.util.Map<ByteString,java.util.Map<ByteString,IntHashMap<ByteString>>> map,
ByteString key1,
ByteString key2)
It returns the third level values of a map given the keys for the first
and second level.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
MiningAssistant.buildInitialQueries(IntHashMap<ByteString> relations,
double minSupportThreshold,
java.util.Collection<Rule> output)
Given a list of relations with their corresponding support (one assistant could count based on the number of pairs,
another could use the number of subjects), it adds one rule per relation to the output.
|
| Modifier and Type | Method and Description |
|---|---|
IntHashMap<K> |
IntHashMap.putAll(java.lang.Object... keyValuePairs)
Creates an intHashMap from a list that contains keys and values in alternation
|
| Modifier and Type | Method and Description |
|---|---|
void |
IntHashMap.add(IntHashMap<K> countBindings)
Adds all integer values up
|
void |
IntHashMap.addAll(IntHashMap<K> countBindings)
Adds all integer values up
|
static <K> double |
FastFrequencyVector.fuzzyPrecision(IntHashMap<K> me,
IntHashMap<K> other)
Computes the fuzzy precision of this vector wrt the other vector
|
static <K> double |
FastFrequencyVector.fuzzyPrecision(IntHashMap<K> me,
IntHashMap<K> other)
Computes the fuzzy precision of this vector wrt the other vector
|
static <K> double |
FastFrequencyVector.fuzzyRecall(IntHashMap<K> me,
IntHashMap<K> other)
Computes the fuzzy recall of this vector wrt the other vector
|
static <K> double |
FastFrequencyVector.fuzzyRecall(IntHashMap<K> me,
IntHashMap<K> other)
Computes the fuzzy recall of this vector wrt the other vector
|
| Constructor and Description |
|---|
IntHashMap(java.util.Map<K,IntHashMap<K>> map)
Creates an intHashMap with the same keys and the sizes
|
| Modifier and Type | Field and Description |
|---|---|
static IntHashMap<java.lang.String> |
Char17.ampersandMap
Maps HTML ampersand sequences to strings
|