Class/Object

org.clulab.reach.grounding

InMemoryKB

Related Docs: object InMemoryKB | package grounding

Permalink

class InMemoryKB extends AnyRef

Class implementing an in-memory knowledge base indexed by key and species. Written by: Tom Hicks. 10/25/2015. Last Modified: Replacement of reverse lookups: add species for NS/ID method.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InMemoryKB
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InMemoryKB(metaInfo: IMKBMetaInfo = new IMKBMetaInfo(), keyTransforms: KBKeyTransformsGroup = new KBKeyTransformsGroup())

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addEntries(text: String, namespace: String, refId: String, species: String = NoSpeciesValue): Unit

    Permalink

    Add zero or more KB entries for the given info.

    Add zero or more KB entries for the given info. Duplicate entries are not added.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def dump: Unit

    Permalink

    Print a textual representation of the IMKB contents to standard output.

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. val keyTransforms: KBKeyTransformsGroup

    Permalink
  15. def keys: Seq[String]

    Permalink

    Return a sequence of ALL the NS/ID keys in this KB.

  16. def lookup(text: String): Resolutions

    Permalink

    Return resolutions for the set of all KB entries for the given text string.

  17. def lookupByASpecies(text: String, species: String): Resolutions

    Permalink

    Find the set of KB entries, for the given text string, which match the given single species.

    Find the set of KB entries, for the given text string, which match the given single species. Returns resolutions for matching entries or None.

  18. def lookupBySpecies(text: String, speciesSet: Speciated.SpeciesNameSet): Resolutions

    Permalink

    Finds the set of KB entries, for the given text string, which contains a species in the given set of species.

    Finds the set of KB entries, for the given text string, which contains a species in the given set of species. Returns resolutions for matching entries or None.

  19. def lookupHuman(text: String): Resolutions

    Permalink

    Finds the set of KB entries, for the given text string, which have humans as the species.

    Finds the set of KB entries, for the given text string, which have humans as the species. Returns resolutions for matching entries or None.

  20. def lookupNoSpecies(text: String): Resolutions

    Permalink

    Find the set of KB entries, for the given text string, which do not contain a species.

    Find the set of KB entries, for the given text string, which do not contain a species. Returns resolutions for matching entries or None.

  21. def lookupNsId(namespace: String, id: String): Resolutions

    Permalink

    Return resolutions for the set of KB entries for the given namespace and ID strings.

  22. def lookupNsId(nsId: String): Resolutions

    Permalink

    Return resolutions for the set of KB entries for the given NS/ID string.

  23. def lookupNsIds(nsIds: Set[String]): Resolutions

    Permalink

    Try lookups for all given NS/IDs until one succeeds or all fail.

  24. val metaInfo: IMKBMetaInfo

    Permalink
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def nsIds: Seq[String]

    Permalink

    Return a sequence of ALL the NS/ID keys in this KB.

  29. def resolutions: Resolutions

    Permalink

    Return a sequence of ALL the KB resolutions in this KB.

  30. def speciesForNsId(nsId: String): Speciated.SpeciesNameSet

    Permalink

    Return the set of species for the entries mapped by the given NS/ID key.

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped