User offline. Last seen 42 weeks 3 days ago. Offline
Joined: 06/17/2011

Hi, I am trying to get the pure RDF response from the web service using php. I know that the url I am supposed to use:

web service url: http://api.opencalais.com/enlighten/calais.asmx/Enlighten

key: eweq8gktfaavsex38vp3wwa2

content:  Thomas M. Laughlin to Join Zila Inc. as Chief Operating Officer
PHOENIX, March 28 /PRNewswire/ -- Zila, Inc. (Nasdaq: ZILA) Chairman and President Joseph Hines announced that Thomas M. Laughlin will join the Company as Chief Operating Officer on April 11, 2000.
Hines said, 'Continuing internal growth and an aggressive acquisition program have created a clear need for additional management breadth. Tom Laughlin will bring to the Company a wealth of knowledge, resulting from his extensive
experience in several of the world's largest and most successful healthcare products companies. We believe Zila's corporate management team and all of our product lines will benefit substantially from Tom's keen business instincts and
growth-oriented leadership talents.'

As stated below, if I put those on the browser, of course I get the rdf string. If you want try this on your browser and see what you get:

http://api.opencalais.com/enlighten/calais.asmx/Enlighten?licenseID=eweq8gktfaavsex38vp3wwa2&content=Thomas M. Laughlin to Join Zila Inc. as Chief Operating Officer
PHOENIX, March 28 /PRNewswire/ -- Zila, Inc. (Nasdaq: ZILA) Chairman and President Joseph Hines announced that Thomas M. Laughlin will join the Company as Chief Operating Officer on April 11, 2000.
Hines said, 'Continuing internal growth and an aggressive acquisition program have created a clear need for additional management breadth. Tom Laughlin will bring to the Company a wealth of knowledge, resulting from his extensive
experience in several of the world's largest and most successful healthcare products companies. We believe Zila's corporate management team and all of our product lines will benefit substantially from Tom's keen business instincts and
growth-oriented leadership talents.'

What I want to do is to get the same response from php. I looked at the CalaisPhpDemo(http://www.opencalais.com/calais-php-and-json-demos) but that gives me json output. I want to get only that rdf string from php. Could you help me with that please?

Trackback URL for this post:

http://www.opencalais.com/trackback/108170

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 2 weeks 3 days ago. Offline
Joined: 12/15/2010

I'm not an PHP expert as default OpenCalais response is using RDF, it looks like you should be using CalaisEnlighten.php to get the RDF back