As a follow up, this is a sample of text that I was working with (from National 
Geographic if you were wondering :-))...

"In Brazil, the events set in motion by logging are almost always more 
destructive than the logging itself. Once the trees are extracted and the 
loggers have moved on, the roads serve as conduits for an explosive mix of 
squatters, speculators, ranchers, farmers, and, invariably, hired gunmen. The 
land sharks follow the roads deep into previously impenetrable forest, then 
destroy tracts to make it look as if they own them. Land thievery is committed 
through corruption, strong-arm tactics, and fraudulent titles and is so 
widespread that Brazilians have a name for it: grilagem, from the Portuguese 
word grilo, or cricket. Grileiros, the practitioners, have been known to age 
phony land titles in a drawer full of hungry crickets. When Brazil's agrarian 
reform agency, Instituto Nacional de Colonização e Reforma Agrária, reviewed 
Amazonian land ownership records over the past three years, it voided more than 
62,000 claims that appeared to be fraudulent."

So my request looked something like:

POST /rest/candidates HTTP/1.1
Host: spotlight.dbpedia.org
Content-Type: application/x-www-form-encoded
Accept: application/json
<...Other HTTP headers...>

text=In%20Brazil%2C%20the%20events%20set%20in%20motion%20by%20logging%20are%20almost%20always%20more%20destructive%20than%20the%20logging%20itself.%20Once%20the%20trees%20are%20extracted%20and%20the%20loggers%20have%20moved%20on%2C%20the%20roads%20serve%20as%20conduits%20for%20an%20explosive%20mix%20of%20squatters%2C%20speculators%2C%20ranchers%2C%20farmers%2C%20and%2C%20invariably%2C%20hired%20gunmen.%20The%20land%20sharks%20follow%20the%20roads%20deep%20into%20previously%20impenetrable%20forest%2C%20then%20destroy%20tracts%20to%20make%20it%20look%20as%20if%20they%20own%20them.%20Land%20thievery%20is%20committed%20through%20corruption%2C%20strong-arm%20tactics%2C%20and%20fraudulent%20titles%20and%20is%20so%20widespread%20that%20Brazilians%20have%20a%20name%20for%20it%3A%20grilagem%2C%20from%20the%20Portuguese%20word%20grilo%2C%20or%20cricket.%20Grileiros%2C%20the%20practitioners%2C%20have%20been%20known%20to%20age%20phony%20land%20titles%20in%20a%20drawer%20full%20of%20hungry%20crickets.%20When%20Brazil's%20agrarian%20reform%20agency%2C%20Instituto%20Nacional%20de%20Coloniza%C3%A7%C3%A3o%20e%20Reforma%20Agr%C3%A1ria%2C%20reviewed%20Amazonian%20land%20ownership%20records%20over%20the%20past%20three%20years%2C%20it%20voided%20more%20than%2062%2C000%20claims%20that%20appeared%20to%20be%20fraudulent.%20%0A&confidence=0.0&support=0

Cheers,
-Eric

On Jun 20, 2012, at 2:03 PM, Eric Rozell wrote:

> Hi,
> 
> I'm interested in the "candidates" REST service, since I want to get a 
> variety of candidates that might fit a particular surface form, rather than a 
> single disambiguated entity.
> 
> I'm trying to hit the public DBPedia Spotlight endpoint to put together a 
> proof-of-concept application.  Once I do that, I need to look into a local 
> solution.
> 
> However, when I hit the candidates REST service, I often get an HTTP 400 
> response that looks like the follow:
> 
> Not found in index: SurfaceForm[(some string)] - at position *26* in - 
> Text[... (some text containing string) ...]
> 
> I'm curious if this is expected behavior for the candidates REST service.
> 
> Cheers,
> -Eric Rozell
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. 
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
> Dbp-spotlight-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users

Reply via email to