User offline. Last seen 1 year 13 weeks ago. Offline
Joined: 12/15/2010

Hi,
first of all: thanks for this great tool! It's really astonishing what OpenCalais does!
However, I am currently stuck using the API. I am OC to parse HTML text. Everything works fine, except the fact, that the resulting JSON is invalid.
For instance, OC returns something like this:

    "http://d.opencalais.com/genericHasher-1/5715cdb9-ce78-389a-a45d-86c0bd4045df": {
        "_typeGroup": "entities",
        "_type": "Technology",
        "name": "Alpha",
        "_typeReference": "http://s.opencalais.com/1/type/em/e/Technology",
        "instances": [
            {
                "detection": "[                           How does the Wolfram ]Alpha[ input                           "x^2
            ]","prefix":" How does the Wolfram ","exact":"Alpha","suffix":" input<br> "x^2",
            "offset": 152,
            "length": 5
        }
    ],
    "relevance": 0.313
 
The problem here is that the text x^2 is preceded by a quotation mark (") - see the line that starts with "detection".
Is this an OC bug, or am using the API wrongly?
Thanks for your kind support,
      Christian
 

Trackback URL for this post:

http://www.opencalais.com/trackback/97698
from הובלות דירות באר שבע on Wed, 04/11/2012 - 20:00

... הובלות דירה - אל אחסנת תכולת דירה בהכרח בחברה הובלות דירות באר שבע, שכן היא לא תמיד מתאימות לסוג ההובלה הספ...


Login or Register to post a comment.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
User offline. Last seen 1 year 13 weeks ago. Offline
Joined: 12/15/2010

This is (of course) no OpenCalais bug. Instead, it was a stupid mistake I made. Forgot to escape the string before inserting it into the Database. Sorry for that...