Trait

models.services

NetworkService

Related Doc: package services

Permalink

trait NetworkService extends AnyRef

Defines common method for creating and extending co-occurrence networks given a search query.

The trait is implemented by models.services.ESNetworkService.

Annotations
@ImplementedBy()
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NetworkService
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def createNetwork(facets: Facets, nodeFraction: Map[String, Int], exclude: List[Long])(index: String): Network

    Permalink

    Returns a co-occurrence network matching the given search query.

    Returns a co-occurrence network matching the given search query.

    facets

    the search query.

    nodeFraction

    a map linking from entity types to the number of nodes to request for each type.

    exclude

    a list of entity ids that should be excluded from the result. The result will contain no models.NodeBucket associated with one of the ids given in this list.

    index

    the data source index or database name to query.

    returns

    a models.Network consisting of the nodes and relationships of the created co-occurrence network.

  2. abstract def getEdgeKeywords(facets: Facets, source: Long, dest: Long, numTerms: Int)(index: String): List[KeyTerm]

    Permalink

    Returns important terms representing the relationship between both nodes based on the underlying document content.

    Returns important terms representing the relationship between both nodes based on the underlying document content.

    facets

    the search query.

    source

    the first adjacent node of the edge.

    dest

    the second adjacent node of the edge.

    numTerms

    the number of keywords to fetch.

    index

    the data source index or database name to query.

    returns

    a list of models.KeyTerm representing important terms for the given relationship.

  3. abstract def getNeighborCountsPerType(facets: Facets, entityId: Long)(index: String): Map[String, Int]

    Permalink

    Accumulates the number of entities that fall in a certain entity type and co-occur with the given entity.

    Accumulates the number of entities that fall in a certain entity type and co-occur with the given entity.

    The result will contain n different buckets with n representing the distinct entity types for the underlying collection.

    facets

    the search query.

    entityId

    the entity id.

    index

    the data source index or database name to query.

    returns

    a map linking from the unique entity type to the number of neighbors of that type.

  4. abstract def getNeighbors(facets: Facets, entityId: Long, size: Int, exclude: List[Long])(index: String): List[NodeBucket]

    Permalink

    Returns entities co-occurring with the given entity matching the search query.

    Returns entities co-occurring with the given entity matching the search query.

    facets

    the search query.

    entityId

    the entity id.

    size

    the number of neighbors to fetch.

    exclude

    a list of entity ids that should be excluded from the result. The result will contain no models.NodeBucket associated with one of the ids given in this list.

    index

    the data source index or database name to query.

    returns

    a list of models.NodeBucket co-occurring with the given entity.

  5. abstract def induceNetwork(facets: Facets, currentNetwork: List[Long], entitiesToAdd: List[Long])(index: String): Network

    Permalink

    Adds new nodes to the current network matching the given search query.

    Adds new nodes to the current network matching the given search query.

    The method induces relationships and nodes for the given entitiesToAdd considering the already present network i.e. it induces relationships between the new nodes and the current network and between the new nodes. It does not provide nodes for the current network nor relationships between those nodes.

    facets

    the search query.

    currentNetwork

    the entity ids of the current network.

    entitiesToAdd

    new entities to be added to the network.

    index

    the data source index or database name to query.

    returns

    a models.Network consisting of the nodes and relationships of the created co-occurrence network.

Concrete 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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped