Class SpotlightUtil


  • public class SpotlightUtil
    extends Object
    Collection of utility methods to access the DBpedia Spotlight Disambiguation & Entity Linking service.
    • Field Detail

      • ORGANIZATIONtype

        public static String ORGANIZATIONtype
      • LOCATIONtype

        public static String LOCATIONtype
      • CITYtype

        public static String CITYtype
      • STATEtype

        public static String STATEtype
      • waitTimeAfterRequestInSeconds

        public static Integer waitTimeAfterRequestInSeconds
    • Constructor Detail

      • SpotlightUtil

        public SpotlightUtil()
    • Method Detail

      • spotTextOrganization

        public static Map<String,​String> spotTextOrganization​(String text,
                                                                    Integer timeourInSecods,
                                                                    String URLencodedTypes)
        Spot organization / location / city / state mentions in text
        Parameters:
        text - text to parse
        timeourInSecods - connection timeout
        URLencodedTypes - type of mention to spot
        Returns:
      • main

        public static void main​(String[] args)
        Compare Bing search result numbers for different queries
        Parameters:
        args -