public class U
extends java.lang.Object
| Constructor and Description |
|---|
U() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<javatools.datatypes.ByteString> |
getAllEntitiesForType(KB source,
javatools.datatypes.ByteString type)
It returns all the instances of a given type.
|
static java.util.Set<javatools.datatypes.ByteString> |
getAllSuperTypes(KB source,
javatools.datatypes.ByteString type)
It returns all the supertypes of a given type.
|
static java.util.Set<javatools.datatypes.ByteString> |
getAllTypesForEntity(KB source,
javatools.datatypes.ByteString entity)
It returns all the types of a given entity.
|
static java.util.Set<javatools.datatypes.ByteString> |
getDomainSet(KB source,
javatools.datatypes.ByteString relation)
Gets all the entities of the type of the given relation's domain.
|
static java.util.Set<javatools.datatypes.ByteString> |
getLeafTypesForEntity(KB source,
javatools.datatypes.ByteString entity)
It returns the most specific types of an entity according to the type hierarchy
of the knowledge base.
|
static java.util.Set<javatools.datatypes.ByteString> |
getMaterializedTypesForEntity(KB source,
javatools.datatypes.ByteString entity)
It returns all the materialized types of an entity in a knowledge base.
|
static java.util.Set<javatools.datatypes.ByteString> |
getRangeSet(KB source,
javatools.datatypes.ByteString relation)
Gets all the entities of the type of the given relation's range.
|
static javatools.datatypes.ByteString |
getRelationDomain(KB source,
javatools.datatypes.ByteString relation)
Returns the domain of a given relation in a knowledge base
|
static javatools.datatypes.ByteString |
getRelationRange(KB source,
javatools.datatypes.ByteString relation)
Returns the range of a given relation in a knowledge base.
|
static java.util.Set<javatools.datatypes.ByteString> |
getSuperTypes(KB source,
javatools.datatypes.ByteString type)
It returns all the immediate super-types of a given type.
|
static boolean |
isLeafDatatype(KB source,
javatools.datatypes.ByteString type)
Determines whether a given type is specific, that is, it does not have subclasses.
|
static void |
main(java.lang.String[] args) |
public static javatools.datatypes.ByteString getRelationDomain(KB source, javatools.datatypes.ByteString relation)
source - relation - public static javatools.datatypes.ByteString getRelationRange(KB source, javatools.datatypes.ByteString relation)
source - relation - public static java.util.Set<javatools.datatypes.ByteString> getMaterializedTypesForEntity(KB source, javatools.datatypes.ByteString entity)
source - entity - public static boolean isLeafDatatype(KB source, javatools.datatypes.ByteString type)
source - type - public static java.util.Set<javatools.datatypes.ByteString> getLeafTypesForEntity(KB source, javatools.datatypes.ByteString entity)
source - entity - public static java.util.Set<javatools.datatypes.ByteString> getAllTypesForEntity(KB source, javatools.datatypes.ByteString entity)
source - entity - public static java.util.Set<javatools.datatypes.ByteString> getSuperTypes(KB source, javatools.datatypes.ByteString type)
source - type - public static java.util.Set<javatools.datatypes.ByteString> getAllSuperTypes(KB source, javatools.datatypes.ByteString type)
source - type - public static java.util.Set<javatools.datatypes.ByteString> getAllEntitiesForType(KB source, javatools.datatypes.ByteString type)
source - type - public static java.util.Set<javatools.datatypes.ByteString> getDomainSet(KB source, javatools.datatypes.ByteString relation)
source - relation - public static java.util.Set<javatools.datatypes.ByteString> getRangeSet(KB source, javatools.datatypes.ByteString relation)
source - relation - public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException