Class PlaceEvidence

java.lang.Object
org.opensextant.data.GeoBase
org.opensextant.data.Place
org.opensextant.extractors.geo.PlaceEvidence
All Implemented Interfaces:
Comparable<Object>, org.opensextant.data.Geocoding, org.opensextant.data.LatLon

public final class PlaceEvidence extends org.opensextant.data.Place implements Comparable<Object>
A PlaceEvidence represents a fragment of evidence about a Place. Its intended purpose is to represent evidence about a Place's identity which has been extracted from a document. This evidence is used to help disambiguate (distinguish among) places which have the same or similar names. It is intentionally very similar to the Place class to facilitate comparisons with that class.
Author:
dlutz, ubaldino
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    SCOPE - Where did this evidence come from wrt to the PlaceCandidate it is part of? APRIORI - derived from the gazetteer only, not from any information in the document LOCAL - directly associated with this instance of PC COREF - associated with another (related) PC in the document MERGED - came from the merger of multiple PlaceEvidences (future use) DOCUMENT - in the same document but has no other direct association
  • Field Summary

    Fields inherited from class org.opensextant.data.Place

    admin1, admin1Name, admin2, admin2Name, adminName, country, country_id, method, name_type

    Fields inherited from class org.opensextant.data.GeoBase

    key, latitude, longitude, name
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    PlaceEvidence(org.opensextant.data.Place ev, String rule, double wt)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
     
     
    double
     
    boolean
    isSameFeature(org.opensextant.data.Place geo)
    if Place given has same feature class and code as the current evidence
    void
    setEvaluated(boolean b)
     
    void
     
    void
     
    void
    setWeight(double weight)
     
    Provide a reasonable string label for this PlaceEvidence
    boolean
     

    Methods inherited from class org.opensextant.data.Place

    compareTo, copyTo, defaultHierarchicalPath, getAdmin1, getAdmin1Name, getAdmin1PostalCode, getAdmin2, getAdmin2Name, getAdminName, getConfidence, getCountry, getCountryCode, getFeatureClass, getFeatureCode, getFeatureDesignation, getHierarchicalPath, getId_bias, getInstanceId, getMethod, getName_bias, getName_type, getNDNamenorm, getPlaceID, getPlaceName, getPlacePostalCode, getPopulation, getPrecision, getSource, isAbbreviation, isAdmin1, isAdministrative, isASCIIName, isCode, isCoordinate, isCountry, isName, isNationalCapital, isPlace, isPopulated, isPostal, isSame, isShortName, isSpot, isUpperAdmin, isUppercaseName, sameBoundary, setAdmin1, setAdmin1Name, setAdmin1PostalCode, setAdmin2, setAdmin2Name, setAdminName, setConfidence, setCountry, setCountryCode, setFeatureClass, setFeatureCode, setHierarchicalPath, setId_bias, setInstanceId, setMethod, setName_bias, setName_type, setPlaceID, setPlaceName, setPlacePostalCode, setPopulation, setPrecision, setSource

    Methods inherited from class org.opensextant.data.GeoBase

    getGeohash, getKey, getLatitude, getLongitude, getName, getNamenorm, hasCoordinate, setGeohash, setKey, setLatitude, setLatLon, setLongitude, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.opensextant.data.Geocoding

    hasCoordinate

    Methods inherited from interface org.opensextant.data.LatLon

    getLatitude, getLongitude, setLatitude, setLongitude
  • Constructor Details

    • PlaceEvidence

      public PlaceEvidence()
    • PlaceEvidence

      public PlaceEvidence(PlaceEvidence ev)
    • PlaceEvidence

      public PlaceEvidence(org.opensextant.data.Place ev, String rule, double wt)
  • Method Details

    • wasEvaluated

      public boolean wasEvaluated()
    • setEvaluated

      public void setEvaluated(boolean b)
    • compareTo

      public int compareTo(Object other)
      Specified by:
      compareTo in interface Comparable<Object>
    • getScope

      public PlaceEvidence.Scope getScope()
    • setScope

      public void setScope(PlaceEvidence.Scope scope)
    • getRule

      public String getRule()
    • setRule

      public void setRule(String rule)
    • getWeight

      public double getWeight()
    • setWeight

      public void setWeight(double weight)
    • isSameFeature

      public boolean isSameFeature(org.opensextant.data.Place geo)
      if Place given has same feature class and code as the current evidence
    • toString

      public String toString()
      Provide a reasonable string label for this PlaceEvidence
      Overrides:
      toString in class org.opensextant.data.Place