Open Journal Systems  2.4.8
 All Classes Namespaces Functions Variables Groups Pages
Nlm30CitationDemultiplexerFilter Class Reference
Inheritance diagram for Nlm30CitationDemultiplexerFilter:
Filter DataObject

Public Member Functions

 _filterConfidenceScore (&$metadataDescription)
_guessValues (&$scoredCitations, $scoreThreshold)
getCitationOutputFilter ()
getOriginalDescription ()
 getOriginalRawCitation ()
 Nlm30CitationDemultiplexerFilter ()
process (&$input)
 setCitationOutputFilter (&$citationOutputFilter)
 setOriginalDescription (&$originalDescription)
 setOriginalRawCitation ($originalRawCitation)
- Public Member Functions inherited from Filter
 addError ($message)
 clearErrors ()
execute (&$input)
 Filter ($inputType, $outputType)
 getDisplayName ()
 getErrors ()
getInputType ()
getLastInput ()
getLastOutput ()
getOutputType ()
getRuntimeEnvironment ()
 getSeq ()
 hasErrors ()
 isCompatibleWithRuntimeEnvironment ()
process (&$input)
 setDisplayName ($displayName)
 setRuntimeEnvironment (&$runtimeEnvironment)
 setSeq ($seq)
 setTransformationType (&$inputType, &$outputType)
 supportedRuntimeEnvironmentSettings ()
 supports (&$input, &$output)
 supportsAsInput (&$input)
- Public Member Functions inherited from DataObject
 addSupportedMetadataAdapter (&$metadataAdapter)
 DataObject ($callHooks=true)
extractMetadata (&$metadataSchema)
 getAdditionalMetadataFieldNames ()
getAllData ()
getData ($key, $locale=null)
 getHasLoadableAdapters ()
 getId ()
 getLocaleMetadataFieldNames ()
getLocalizedData ($key)
 getMetadataFieldNames ($translated=true)
 getSetMetadataFieldNames ($translated=true)
getSupportedExtractionAdapters ()
getSupportedInjectionAdapters ()
getSupportedMetadataSchemas ()
 hasData ($key, $locale=null)
 injectMetadata (&$metadataDescription)
 removeSupportedMetadataAdapter ($metadataSchemaName)
 setAllData (&$data)
 setData ($key, $value, $locale=null)
 setHasLoadableAdapters ($hasLoadableAdapters)
 setId ($id)
upcastTo (&$targetObject)

Additional Inherited Members

- Public Attributes inherited from DataObject
 $_data = array()

Detailed Description

Filter that takes a list of NLM citation descriptions and joins them into a single "best" citation.

Definition at line 23 of file

Member Function Documentation

Nlm30CitationDemultiplexerFilter::_filterConfidenceScore ( $metadataDescription)

Derive a confidence score calculated as the similarity of the original raw citation and the citation text generated from the citation description.

integer filter confidence score

Definition at line 151 of file

References String\diff(), getCitationOutputFilter(), getOriginalRawCitation(), and String\strlen().

Referenced by process().

& Nlm30CitationDemultiplexerFilter::_guessValues ( $scoredCitations,

Take an array of citation parse/lookup results and derive a citation with one "best" set of values.

We determine the best values within the citations that have a score above the given threshold. Citations with a score below the threshold will be ignored.

For these citations we count the frequency of values per meta-data property. The most frequent value will be chosen as "best" value.

If two values have the same frequency then decide based on the score. If this is still ambivalent then return the first of the remaining values.

$scoreThresholdinteger a number between 0 (=no threshold) and 100
Citation one citation with the "best" values set

Definition at line 201 of file

Referenced by process().

& Nlm30CitationDemultiplexerFilter::getCitationOutputFilter ( )

Get the citation output filter


Definition at line 93 of file

Referenced by _filterConfidenceScore().

& Nlm30CitationDemultiplexerFilter::getOriginalDescription ( )

Get the original citation description


Definition at line 77 of file

Referenced by process().

Nlm30CitationDemultiplexerFilter::getOriginalRawCitation ( )

Get the original raw citation


Definition at line 61 of file

Referenced by _filterConfidenceScore().

Nlm30CitationDemultiplexerFilter::Nlm30CitationDemultiplexerFilter ( )


Definition at line 39 of file

References Filter\setDisplayName().

& Nlm30CitationDemultiplexerFilter::process ( $input)
See Also
$inputarray incoming MetadataDescriptions

Definition at line 106 of file

References _filterConfidenceScore(), _guessValues(), and getOriginalDescription().

Nlm30CitationDemultiplexerFilter::setCitationOutputFilter ( $citationOutputFilter)

Set the citation output filter


Definition at line 85 of file

Nlm30CitationDemultiplexerFilter::setOriginalDescription ( $originalDescription)

Set the original citation description


Definition at line 69 of file

Nlm30CitationDemultiplexerFilter::setOriginalRawCitation (   $originalRawCitation)

Set the original raw citation


Definition at line 53 of file

The documentation for this class was generated from the following file: