question

Upvotes
Accepted
3 0 1 2

How to go from rdf:resource URL to displaying value?

So this is probably trivial (sorry) but using the API I'm getting back a company_acquirer value, but rather than it being the actual company name (e.g., Panasonic), it is a comphash URL (i.e., http://d.opencalais.com/comphash-1/1f4f00b7-6be7-3364-bd3e-2eb8bb58017a)
So my question is simply, how do I display the name Panasonic and not the comphash URL?
apiintelligent-tagging-apiintelligent-taggingopen-calais-apisemantic-metadata-taggingcompanyurl
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
101 1 0 1

I am using a snippet of an RDF here:

<rdf:Description rdf:about="http://d.opencalais.com/comphash-1/f5c95fec-d58d-3193-92af-c10011b7a72c">
        <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Company"/>
        <c:forenduserdisplay>false</c:forenduserdisplay>
        <c:name>Thomson Reuters</c:name>
        <c:nationality>N/A</c:nationality>
        <c:confidencelevel>0.931</c:confidencelevel>
    </rdf:Description>

You should notice that the "Description" element contains attributes such as "Type" which state the element of type COMPANY. Another attribute, "name" holds the name of the company in this example Thomson Reuters.

Please provide an example of usage so we can help you further.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea