|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dllearner.utilities.Helper
public class Helper
TODO: JavaDoc
| Constructor Summary | |
|---|---|
Helper()
|
|
| Method Summary | ||
|---|---|---|
static
|
addMapEntry(Map<T1,SortedSet<T2>> map,
T1 keyEntry,
T2 setEntry)
|
|
static String |
arrayContent(int[] ar)
|
|
static NamedClass |
checkConcepts(AbstractReasonerComponent rs,
Set<NamedClass> concepts)
Checks whether the roles exist in background knowledge |
|
static ObjectProperty |
checkRoles(AbstractReasonerComponent rs,
Set<ObjectProperty> roles)
Checks whether the roles exist in background knowledge |
|
static Set<NamedClass> |
computeConcepts(AbstractReasonerComponent rs)
|
|
static Set<NamedClass> |
computeConceptsUsingIgnoreList(AbstractReasonerComponent rs,
Set<NamedClass> ignoredConcepts)
|
|
static FlatABox |
createFlatABox(AbstractReasonerComponent rs)
|
|
static
|
difference(Set<T> set1,
Set<T> set2)
|
|
static
|
difference(SortedSet<T> set1,
SortedSet<T> set2)
|
|
static String |
getAbbreviatedCollection(Collection<String> list,
String baseURI,
Map<String,String> prefixes)
Transforms a list of URIs into their abbreviated version. |
|
static String |
getAbbreviatedString(String uri,
String baseURI,
Map<String,String> prefixes)
Transforms an URI to an abbreviated version, e.g. if the base URI is "http://example.com/" and the uri is "http://example.com/test", then "test" is returned. |
|
static List<NamedClass> |
getAtomicConcepts(Description concept)
|
|
static List<ObjectProperty> |
getAtomicRoles(Description concept)
|
|
static SortedSet<Individual> |
getIndividualSet(Set<String> individuals)
|
|
static SortedSetTuple<Individual> |
getIndividualTuple(SortedSetTuple<String> tuple)
|
|
static Map<String,SortedSet<String>> |
getStringMap(Map<Individual,SortedSet<Individual>> roleMembers)
|
|
static SortedSet<String> |
getStringSet(Set<Individual> individuals)
|
|
static SortedSetTuple<String> |
getStringTuple(SortedSetTuple<Individual> tuple)
|
|
static
|
intersection(SortedSet<T> set1,
SortedSet<T> set2)
|
|
static
|
intersectionTuple(SortedSet<T> set,
SortedSetTuple<T> tuple)
|
|
static String |
prettyPrintMilliSeconds(long milliSeconds)
|
|
static String |
prettyPrintNanoSeconds(long nanoSeconds)
|
|
static String |
prettyPrintNanoSeconds(long nanoSeconds,
boolean printMicros,
boolean printNanos)
|
|
static void |
removeUninterestingConcepts(Set<NamedClass> concepts)
Deprecated. Deprecated method, because it is not needed anymore. |
|
static
|
union(Set<T> set1,
Set<T> set2)
Das ist eine "generic method", d.h. die Methode hat einen bestimmten Typ. |
|
static
|
union(SortedSet<T> set1,
SortedSet<T> set2)
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Helper()
| Method Detail |
|---|
public static List<NamedClass> getAtomicConcepts(Description concept)
public static List<ObjectProperty> getAtomicRoles(Description concept)
public static String getAbbreviatedString(String uri,
String baseURI,
Map<String,String> prefixes)
uri - The full uri, which should be transformed to an abbreviated
version.baseURI - The base uri (ignored if null).prefixes - A prefix map (ignored if null), where each entry contains a
short string e.g. ns1 as key and the corresponding uri as
value.
public static String getAbbreviatedCollection(Collection<String> list,
String baseURI,
Map<String,String> prefixes)
list - List of URIs.baseURI - The base uri (ignored if null).prefixes - A prefix map (ignored if null), where each entry contains a
short string e.g. ns1 as key and the corresponding uri as
value.
getAbbreviatedString(String, String, Map)public static String prettyPrintNanoSeconds(long nanoSeconds)
public static String prettyPrintNanoSeconds(long nanoSeconds,
boolean printMicros,
boolean printNanos)
public static String prettyPrintMilliSeconds(long milliSeconds)
public static <T1,T2> void addMapEntry(Map<T1,SortedSet<T2>> map,
T1 keyEntry,
T2 setEntry)
public static <T> Set<T> union(Set<T> set1,
Set<T> set2)
T - set1 - set2 -
public static <T> SortedSet<T> union(SortedSet<T> set1,
SortedSet<T> set2)
public static <T> SortedSet<T> intersection(SortedSet<T> set1,
SortedSet<T> set2)
public static <T> SortedSet<T> intersectionTuple(SortedSet<T> set,
SortedSetTuple<T> tuple)
public static <T> SortedSet<T> difference(SortedSet<T> set1,
SortedSet<T> set2)
public static <T> Set<T> difference(Set<T> set1,
Set<T> set2)
public static SortedSet<Individual> getIndividualSet(Set<String> individuals)
public static SortedSetTuple<Individual> getIndividualTuple(SortedSetTuple<String> tuple)
public static SortedSetTuple<String> getStringTuple(SortedSetTuple<Individual> tuple)
public static SortedSet<String> getStringSet(Set<Individual> individuals)
public static Map<String,SortedSet<String>> getStringMap(Map<Individual,SortedSet<Individual>> roleMembers)
@Deprecated public static void removeUninterestingConcepts(Set<NamedClass> concepts)
concepts - The set from which concepts will be removed.public static Set<NamedClass> computeConcepts(AbstractReasonerComponent rs)
public static Set<NamedClass> computeConceptsUsingIgnoreList(AbstractReasonerComponent rs,
Set<NamedClass> ignoredConcepts)
public static ObjectProperty checkRoles(AbstractReasonerComponent rs,
Set<ObjectProperty> roles)
roles - The roles to check.
public static NamedClass checkConcepts(AbstractReasonerComponent rs,
Set<NamedClass> concepts)
concepts - The concepts to check.
public static FlatABox createFlatABox(AbstractReasonerComponent rs)
throws ReasoningMethodUnsupportedException
ReasoningMethodUnsupportedExceptionpublic static String arrayContent(int[] ar)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||