Calais type string misses
Calais type string misses
Posted on: Fri, 01/15/2010 - 06:08
I just wrote a Flash AS3 class for Opencalais, and I tackeled with some problems.
As I receive the answer in XML format, I just realized, that only a link show the type of the detected element. Is this normal or I just skiped some additional tag from paramsXML.
At this point my question is why the result XML doesn't contain an additional type string like:
<rdf:type rdf:resource="http://s.opencalais.com/1/type/er/Geo/Country" rdf:string="country"/>
I think this kind of informations will improve the usablity of Opencalais by standard web programmers.
Anyway Good job Calais Team!
Trackback URL for this post:
http://www.opencalais.com/trackback/62522

Hi,
It seems like you are using the Simple Format XML response type. We wanted to keep things really simple with this format and just output what was found rather than comprehensive details like what is the type, where was it found in the text, etc. Have you tried using the RDF of JSON output? It provides the details you are looking for.
Btw, is your AS3 class posted someplace we can share with other Open Calais users?
Thanks.
sumit
Hi,
I just wanted to share the class with you and with others, so just uploaded to my page: http://www.andzol.com/?p=243
My question is that are there any main differences between the output data send back in JSON rather than in XML/RDF format?
Thanks in advance.
Best Regards
Andzol
Thanks Andzol for sharing the AS3 class. We will post the URL in our showcase section so users can easily find it.
The amount of information in JSON and XML/RDF output format is same. You will find the same number of nodes with all their type information in both formats. JSON output format is generally smaller in size, which is why some users prefer it over XML/RDF. For some users XML/RDF is better aligned with schemas and existing framework that handles XML easily.
Let us know if you have more questions.
sumit