You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Rupert Westenthaler (JIRA)" <ji...@apache.org> on 2013/10/21 12:46:42 UTC

[jira] [Commented] (STANBOL-1183) Stanbol Disambiguation API

    [ https://issues.apache.org/jira/browse/STANBOL-1183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13800540#comment-13800540 ] 

Rupert Westenthaler commented on STANBOL-1183:
----------------------------------------------

## Entity Disambiguation Context

Describes the disambiguation context known for an Entity. An `EntityContext` may have several `ContextField<VT>`. Those fields may represent different types of contexts (e.g. spacial, social, ...). An EntityContext defines values of type `<VT>` for a given `ContextField`. Optionally those values can be `Weighted`.

    EntityContext
        uri :: String // the URI of the entity
        fields :: Set<ContextField<VT>> //fields present in the context
        values(ContextField<VT> field) :: Set<VT>

    ContextField<VT>
        uri :: String // the property of the field
        valueType :: Class<VT> // the generic type of values
        weighted :: boolean  //if VT implements Weighted
        <<additional metadata>>

    Weighted /* used for values with weight */
        weight :: double //the weight
   
The value MUST BE available via the "toString() :: String" method of the `ContextField#valueType` property. This will allow valueType agnostic implementations. For simple implementations `java.lang.String` can be used as `valueType`.



> Stanbol Disambiguation API
> --------------------------
>
>                 Key: STANBOL-1183
>                 URL: https://issues.apache.org/jira/browse/STANBOL-1183
>             Project: Stanbol
>          Issue Type: New Feature
>            Reporter: Rupert Westenthaler
>
> Module providing an API for implementing disambiguation enhancement engines.



--
This message was sent by Atlassian JIRA
(v6.1#6144)