DBPedia Spotlight can be queried over the API which they provide. But for our convenience, it is not always possible to do so.
So setting it up locally was the best solution.
You can run DBpedia Spotlight from the comfort of your own machine in one or many of the following ways:
First we will install a pre-packaged lightweight deployment to get you started.
We can run the model right now, but I will do so after adding the larger data corpus.
sys2@sys2:~/dbpedia-spotlight-quickstart-0.6.5/data$ curl http://sys2:2222/rest/annotate -H "Accept: text/xml" --data-urlencode "text=The earliest authenticated human remains in South Asia date to about 30,000 years ago.[26] Nearly contemporaneous Mesolithic rock art sites have been found in many parts of the Indian subcontinent, including at the Bhimbetka rock shelters in Madhya Pradesh.[27] Around 7000 BCE, the first known Neolithic settlements appeared on the subcontinent in Mehrgarh and other sites in western Pakistan.[28] These gradually developed into the Indus Valley Civilisation,[29] the first urban culture in South Asia;[30] it flourished during 2500–1900 BCE in Pakistan and western India along the river valleys of Indus and Sarasvati.[31] Centred on cities such as Mohenjo-daro, Harappa, Rakhigarhi, Dholavira, and Kalibangan, and relying on varied forms of subsistence, the civilisation engaged robustly in crafts production and wide-ranging trade." --data "confidence=0" --data "support=0"
sys2@sys2:~/dbpedia-spotlight-quickstart-0.6.5/data$ curl http://sys2:2222/rest/annotate -H "Accept: text/xml" --data-urlencode "text=The earliest authenticated human remains in South Asia date to about 30,000 years ago.[26] Nearly contemporaneous Mesolithic rock art sites have been found in many parts of the Indian subcontinent, including at the Bhimbetka rock shelters in Madhya Pradesh.[27] Around 7000 BCE, the first known Neolithic settlements appeared on the subcontinent in Mehrgarh and other sites in western Pakistan.[28] These gradually developed into the Indus Valley Civilisation,[29] the first urban culture in South Asia;[30] it flourished during 2500–1900 BCE in Pakistan and western India along the river valleys of Indus and Sarasvati.[31] Centred on cities such as Mohenjo-daro, Harappa, Rakhigarhi, Dholavira, and Kalibangan, and relying on varied forms of subsistence, the civilisation engaged robustly in crafts production and wide-ranging trade." --data "confidence=0" --data "support=0"
<?xml version = "1.0" encoding = "utf-8" ?>
<Annotation text = "The earliest authenticated human remains in South Asia date to about 30,000 years ago.[26] Nearly contemporaneous Mesolithic rock art sites have been found in many parts of the Indian subcontinent, including at the Bhimbetka rock shelters in Madhya Pradesh.[27] Around 7000 BCE, the first known Neolithic settlements appeared on the subcontinent in Mehrgarh and other sites in western Pakistan.[28] These gradually developed into the Indus Valley Civilisation,[29] the first urban culture in South Asia;[30] it flourished during 2500–1900 BCE in Pakistan and western India along the river valleys of Indus and Sarasvati.[31] Centred on cities such as Mohenjo-daro, Harappa, Rakhigarhi, Dholavira, and Kalibangan, and relying on varied forms of subsistence, the civilisation engaged robustly in crafts production and wide-ranging trade." confidence = "0.0" support = "0" types = "" sparql = "" policy = "whitelist" >
<Resources>
<Resource URI = "http://dbpedia.org/resource/South_Asia" support = "2850" types = "Freebase:/book/book_subject,Freebase:/book,Freebase:/location/location,Freebase:/location,Freebase:/organization/organization_scope,Freebase:/organization,Freebase:/location/region,Freebase:/people/ethnicity,Freebase:/people" surfaceForm = "South Asia" offset = "44" similarityScore = "0.13776831328868866" percentageOfSecondRank = "-1.0" />
<Resource URI = "http://dbpedia.org/resource/Mesolithic" support = "681" types = "" surfaceForm = "Mesolithic" offset = "114" similarityScore = "0.13642436265945435" percentageOfSecondRank = "-1.0" />
<Resource URI = "http://dbpedia.org/resource/Indian_subcontinent" support = "1497" types = "DBpedia:Continent,DBpedia:PopulatedPlace,DBpedia:Place,Schema:Place,Schema:Continent,Freebase:/location/region,Freebase:/location,Freebase:/location/location" surfaceForm = "Indian subcontinent" offset = "177" similarityScore = "0.141897514462471" percentageOfSecondRank = "-1.0" />
<Resource URI = "http://dbpedia.org/resource/Madhya_Pradesh" support = "2950" types = "DBpedia:Settlement,DBpedia:PopulatedPlace,DBpedia:Place,Schema:Place,Freebase:/location/in_state,Freebase:/location,Freebase:/location/statistical_region,Freebase:/location/dated_location,Freebase:/location/location,Freebase:/book/author,Freebase:/book,Freebase:/location/administrative_division" surfaceForm = "Madhya Pradesh" offset = "242" similarityScore = "0.13563162088394165" percentageOfSecondRank = "-1.0" />
<Resource URI = "http://dbpedia.org/resource/Common_Era" support = "1247" types = "" surfaceForm = "BCE" offset = "274" similarityScore = "0.1675749570131302" percentageOfSecondRank = "0.20302364934710979" />
<Resource URI = "http://dbpedia.org/resource/Neolithic" support = "2903" types = "" surfaceForm = "Neolithic" offset = "295" similarityScore = "0.11610618233680725" percentageOfSecondRank = "-1.0" />
<Resource URI = "http://dbpedia.org/resource/Pakistan" support = "23561" types = "DBpedia:Country,DBpedia:PopulatedPlace,DBpedia:Place,Schema:Place,Schema:Country,Freebase:/location/country,Freebase:/location,Freebase:/organization/organization_member,Freebase:/organization,Freebase:/biology/breed_origin,Freebase:/biology,Freebase:/location/statistical_region,Freebase:/military/military_combatant,Freebase:/military,Freebase:/people/ethnicity,Freebase:/people,Freebase:/location/dated_location,Freebase:/law/court_jurisdiction_area,Freebase:/law,Freebase:/sports/sport_country,Freebase:/sports,Freebase:/government/governmental_jurisdiction,Freebase:/government,Freebase:/olympics/olympic_participating_country,Freebase:/olympics,Freebase:/location/location,Freebase:/meteorology/cyclone_affected_area,Freebase:/meteorology,Freebase:/book/book_subject,Freebase:/book,Freebase:/sports/sports_team_location" surfaceForm = "Pakistan" offset = "385" similarityScore = "0.0921529158949852" percentageOfSecondRank = "0.6893670279187828" />
<Resource URI = "http://dbpedia.org/resource/Indus_Valley_Civilization" support = "424" types = "Freebase:/time/event,Freebase:/time,Freebase:/book/book_subject,Freebase:/book" surfaceForm = "Indus Valley Civilisation" offset = "434" similarityScore = "0.20086094737052917" percentageOfSecondRank = "-1.0" />
<Resource URI = "http://dbpedia.org/resource/South_Asia" support = "2850" types = "Freebase:/book/book_subject,Freebase:/book,Freebase:/location/location,Freebase:/location,Freebase:/organization/organization_scope,Freebase:/organization,Freebase:/location/region,Freebase:/people/ethnicity,Freebase:/people" surfaceForm = "South Asia" offset = "492" similarityScore = "0.13776831328868866" percentageOfSecondRank = "-1.0" />
<Resource URI = "http://dbpedia.org/resource/Common_Era" support = "1247" types = "" surfaceForm = "BCE" offset = "539" similarityScore = "0.1675749570131302" percentageOfSecondRank = "0.20302364934710979" />
<Resource URI = "http://dbpedia.org/resource/Pakistan" support = "23561" types = "DBpedia:Country,DBpedia:PopulatedPlace,DBpedia:Place,Schema:Place,Schema:Country,Freebase:/location/country,Freebase:/location,Freebase:/organization/organization_member,Freebase:/organization,Freebase:/biology/breed_origin,Freebase:/biology,Freebase:/location/statistical_region,Freebase:/military/military_combatant,Freebase:/military,Freebase:/people/ethnicity,Freebase:/people,Freebase:/location/dated_location,Freebase:/law/court_jurisdiction_area,Freebase:/law,Freebase:/sports/sport_country,Freebase:/sports,Freebase:/government/governmental_jurisdiction,Freebase:/government,Freebase:/olympics/olympic_participating_country,Freebase:/olympics,Freebase:/location/location,Freebase:/meteorology/cyclone_affected_area,Freebase:/meteorology,Freebase:/book/book_subject,Freebase:/book,Freebase:/sports/sports_team_location" surfaceForm = "Pakistan" offset = "546" similarityScore = "0.0921529158949852" percentageOfSecondRank = "0.6893670279187828" />
<Resource URI = "http://dbpedia.org/resource/South_Asia" support = "2850" types = "Freebase:/book/book_subject,Freebase:/book,Freebase:/location/location,Freebase:/location,Freebase:/organization/organization_scope,Freebase:/organization,Freebase:/location/region,Freebase:/people/ethnicity,Freebase:/people" surfaceForm = "India" offset = "567" similarityScore = "0.1619909405708313" percentageOfSecondRank = "0.8368753166673841" />
<Resource URI = "http://dbpedia.org/resource/Indus_Valley_Civilization" support = "424" types = "Freebase:/time/event,Freebase:/time,Freebase:/book/book_subject,Freebase:/book" surfaceForm = "Indus" offset = "600" similarityScore = "0.20086094737052917" percentageOfSecondRank = "-1.0" />
<Resource URI = "http://dbpedia.org/resource/Sarasvati_River" support = "60" types = "Freebase:/geography/river,Freebase:/geography,Freebase:/location/location,Freebase:/location,Freebase:/geography/geographical_feature,Freebase:/geography/body_of_water,Freebase:/religion/deity,Freebase:/religion" surfaceForm = "Sarasvati" offset = "610" similarityScore = "0.08038105070590973" percentageOfSecondRank = "0.9255801653640217" />
<Resource URI = "http://dbpedia.org/resource/Mohenjo-daro" support = "136" types = "DBpedia:WorldHeritageSite,DBpedia:Place,Schema:Place,Freebase:/protected_sites/listed_site,Freebase:/protected_sites,Freebase:/location/location,Freebase:/location" surfaceForm = "Mohenjo-daro" offset = "651" similarityScore = "0.19224941730499268" percentageOfSecondRank = "-1.0" />
<Resource URI = "http://dbpedia.org/resource/Harappa" support = "163" types = "DBpedia:Settlement,DBpedia:PopulatedPlace,DBpedia:Place,Schema:Place,Freebase:/location/location,Freebase:/location,Freebase:/location/statistical_region,Freebase:/location/citytown,Freebase:/location/dated_location" surfaceForm = "Harappa" offset = "665" similarityScore = "0.17811940610408783" percentageOfSecondRank = "-1.0" />
</Resources>
</Annotation>
sys2@sys2:~/dbpedia-spotlight-quickstart-0.6.5/data$
So there you go.
Till then. Goodbye!