User offline. Last seen 2 years 31 weeks ago. Offline
Joined: 07/28/2008

I see the example has  a page for IBM. I have a few questions. What was the input that was used to create the webpage http://d.opencalais.com/er/company/ralg-tr1r/9e3f6c34-aa6b-3a3b-b221-a07... I would like to see the rdfs that was produced. I assume that some other code parsed the output or was the output direct option from calais

Trackback URL for this post:

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

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 years 32 weeks ago. Offline
Joined: 06/01/2008

Hi,

Sure, np, always happy to help.

Your code looks really cool   -   I should look into that sometime...

A bit worried to see this line:

<set name="calaisUrl" value="http://${calaisHostUrl}/enlighten/rest" />
 

Because you are missing the trailing slash:   should be "..../rest/"  .

But hey  -  if it works, dont fix it...

Meir

 

User offline. Last seen 2 years 32 weeks ago. Offline
Joined: 06/01/2008

Hi again,

I think I see the problem:

If you look for the <c:document> element in the response, you can see there the original doc-text, as accepted by calais server.

In your case I see very little text, compared to the response of the tool.

All that's in there is:

=============================

"On January 1 2007, [[Slovenia]] officially joined the Eurozone and adopted the euro as its new official currency. At the same time, Slovenian euro
coins, which were available as a "

=============================

Meaning, your text is somehow truncated.

My guess, is that it has to do with URL-encoding:

Are you using the REST interface ? SOAP ?

If it is the REST, then note this:

The HTTP-POST arguments are transferred as one bulk of data, seperated by '&' signs, like this:

licenseID=123&content=Hello&paramXML=....

If you happen to have an ampersand or other trouble-making char in the text, you cannot just concat everything, because the parsing at the accepting side will yield bad results.

Fortunately, there are utility methods to do just that:

JAVA  ==>  java.net.URLEncoder      (make sure to use UTF-8)

.NET   ==>  System.web.HttpUtility

 

So, when constructing the arguments data-bulk, concat it like this:

StringBuilder sb = new StringBuilder(10000);

sb.append("licenseID=123456&content=")

sb.append(URLEncoder.encode(myContent, "UTF-8"));

sb.append("&paramsXML=");

sb.append(URLEncoder.encode(myParams, "UTF-8"));

 

 (didn't compile the above code  -  just a sample, from the top-of-my-head...)

Let me know if this was any help,

Tx

Meir

 

 

 

 

 

User offline. Last seen 2 years 31 weeks ago. Offline
Joined: 07/28/2008

I use a technology called naws to qucikly create web apps. Notice how compact it is. It is working. I am able to put the data directly into Sesame and I can start the next part of the project.  Thanks for the great support and solving my problem, not yours. Sorry about that.

 

<inline name="paramsXML" eval="false" >
    <?xml version="1.0" encoding="UTF-8"?>
   
    <c:params xmlns:c="http://s.opencalais.com/1/pred/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
   
        <c:processingDirectives
            c:contentType="text/raw"
            c:outputFormat="xml/rdf"
            c:enableMetadataType="GenericRelations"
        />
   
        <c:userDirectives c:allowDistribution="true" c:allowSearch="true" c:externalID="17cabs901" c:submitter="digitalrinaldo">
        </c:userDirectives>
   
        <c:externalMetadata>
        </c:externalMetadata>
   
   
    </c:params>
</inline> 

<set name="calaisHostUrl" value="api.opencalais.com" />
<set name="calaisHostUrl" value="beta.opencalais.com" />
<set name="calaisUrl" value="http://${calaisHostUrl}/enlighten/rest" />
<set name="licenseID" value="123131231" />
<set name="body" value="licenseID=${licenseID}&content=${parsedText}&paramsXML=${paramsXML}" />
<set name="uecontent" value="${newsarticle}" convert="url" />
<set name="ueparams" value="${paramsXML}" convert="url" />
<set name="body" value="licenseID=${licenseID}&content=${uecontent}&paramsXML=${ueparams}" />
<include href="${calaisUrl}" body="${body}" showHeaders="true" name="cresults" />
<get name="cresults" />


<interp language="groovy">
    import org.openrdf.model.Resource
    import java.util.ArrayList
    import org.openrdf.repository.Repository
    import org.openrdf.repository.RepositoryConnection
    import org.openrdf.repository.http.HTTPRepository
    import org.openrdf.rio.RDFFormat.*
    import java.io.StringBufferInputStream

    data = request.props.getProperty ( "cresults" )
    stringReader = new StringBufferInputStream(data)
       baseURI = "http://example.org/example/local"
    try {
        String sesameServer = "http://opensolaris:8080/openrdf-sesame"
        myRepository = new HTTPRepository(sesameServer, "calaisapi")
        myRepository.initialize()
        con = myRepository.getConnection()
        System.out.println ( data )
        con.add( stringReader, baseURI, org.openrdf.rio.RDFFormat.RDFXML )
        con.close()
    } catch ( e ) {
        e.printStackTrace()   
    }
</interp>

User offline. Last seen 2 years 32 weeks ago. Offline
Joined: 06/01/2008

Hi,

I think you are almost there...

The enableMetadataType directive must come inside the processingDirectives element,

either as a child-element or as an attribute  (see below).

This should do the trick  -  if not: please post again.

HTH

Meir

 

 

 

=============================================================

  <c:params xmlns:c="http://s.opencalais.com/1/pred/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
 
        <c:processingDirectives c:contentType="text/raw" c:outputFormat="xml/rdf" >
        <c:enableMetadataType>GenericRelations</c:enableMetadataType>
        </c:processingDirectives>
 
        <c:userDirectives c:allowDistribution="true" c:allowSearch="true" c:externalID="17cabs901" c:submitter="digitalrinaldo">
        </c:userDirectives>
 
        <c:externalMetadata>
        </c:externalMetadata>
 
        <c:enableMetadataType>
         GenericRelations
        </c:enableMetadataType>
 
    </c:params>

User offline. Last seen 2 years 31 weeks ago. Offline
Joined: 07/28/2008

I made the following change. Still not reproducing your results. I am sure I am doing something wrong, thanks for your help.

    <?xml version="1.0" encoding="UTF-8"?>
  
    <c:params xmlns:c="http://s.opencalais.com/1/pred/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  
        <c:processingDirectives
            c:contentType="text/raw"
            c:outputFormat="xml/rdf"
            c:enableMetadataType="GenericRelations"
        />
  
        <c:userDirectives c:allowDistribution="true" c:allowSearch="true" c:externalID="17cabs901" c:submitter="digitalrinaldo">
        </c:userDirectives>

        <c:externalMetadata>
        </c:externalMetadata>

    </c:params>
 

 

Here is the output that I get when I use the beta api.

 

<!--Use of the Calais Web Service is governed by the Terms of Service located at http://www.opencalais.com. By using this service or the results of the service you agree to these terms of service.--><!--Relations:

Country: Slovenia--><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:c="http://s.opencalais.com/1/pred/"><rdf:Description c:allowDistribution="true" c:allowSearch="true" c:calaisRequestID="c3c02f78-efda-4121-9679-f0c77a28fe9f" c:externalID="17cabs901" c:id="http://id.opencalais.com/HnlDGVH4-3DYmNQ5l4KCJQ" rdf:about="http://d.opencalais.com/dochash-1/0dd93b66-ba71-3c59-a37d-fd0a3f5352b3"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/DocInfo"/><c:document><![CDATA[On January 1 2007, [[Slovenia]] officially joined the Eurozone and adopted the euro as its new official currency. At the same time, Slovenian euro
coins, which were available as a ]]></c:document><c:docTitle/><c:docDate>2007-01-01</c:docDate><c:externalMetadata>
        </c:externalMetadata><c:submitter>digitalrinaldo</c:submitter></rdf:Description><rdf:Description c:contentType="text/raw" c:emVer="UserVocabulariesIM" c:langIdVer="DefaultLangId" c:language="English" c:processingVer="CalaisJob01" c:submissionDate="2009-03-02 08:52:16.589" rdf:about="http://d.opencalais.com/dochash-1/0dd93b66-ba71-3c59-a37d-fd0a3f5352b3/meta"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/DocInfoMeta"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/0dd93b66-ba71-3c59-a37d-fd0a3f5352b3"/><c:submitterCode>4e3d7d65-f012-ff7f-b6b9-50f7a5d6af1c</c:submitterCode><c:signature>digestalg-1|dRoenrhEMP8cYHmgIKHH08Cr4GQ=|SvyxXf8sR/C21GKLzo/77r6ve94IF6rwWnOBfyMNdgAlUJrDYYkvQg==</c:signature></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/0dd93b66-ba71-3c59-a37d-fd0a3f5352b3/lid/DefaultLangId"><rdf:type rdf:resource="http://s.opencalais.com/1/type/lid/DefaultLangId"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/0dd93b66-ba71-3c59-a37d-fd0a3f5352b3"/><c:lang rdf:resource="http://d.opencalais.com/lid/DefaultLangId/English"/></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/0dd93b66-ba71-3c59-a37d-fd0a3f5352b3/cat/1"><rdf:type rdf:resource="http://s.opencalais.com/1/type/cat/DocCat"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/0dd93b66-ba71-3c59-a37d-fd0a3f5352b3"/><c:category rdf:resource="http://d.opencalais.com/cat/Calais/Sports"/><c:classifierName>Calais</c:classifierName><c:categoryName>Sports</c:categoryName><c:score>1.000</c:score></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/er/geo/country/ralg-geo1/7f65809a-80ea-1477-2b90-e9ffb2053857"><rdf:type rdf:resource="http://s.opencalais.com/1/type/er/Geo/Country"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/0dd93b66-ba71-3c59-a37d-fd0a3f5352b3"/><!--Slovenia--><c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/69f677e6-e4ea-331e-9317-0f4a3a485245"/><c:name>Slovenia</c:name><c:shortname>Slovenia</c:shortname><c:latitude>45.8002163989</c:latitude><c:longitude>15.9039366801</c:longitude></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/genericHasher-1/69f677e6-e4ea-331e-9317-0f4a3a485245"><rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Country"/><c:name>Slovenia</c:name></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/0dd93b66-ba71-3c59-a37d-fd0a3f5352b3/Instance/1"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/InstanceInfo"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/0dd93b66-ba71-3c59-a37d-fd0a3f5352b3"/><c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/69f677e6-e4ea-331e-9317-0f4a3a485245"/><!--Country: Slovenia; --><c:detection>[On January 1 2007, [[]Slovenia[]] officially joined the Eurozone and adopted the]</c:detection><c:prefix>On January 1 2007, [[</c:prefix><c:exact>Slovenia</c:exact><c:suffix>]] officially joined the Eurozone and adopted the</c:suffix><c:offset>21</c:offset><c:length>8</c:length></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/0dd93b66-ba71-3c59-a37d-fd0a3f5352b3/Relevance/1"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/0dd93b66-ba71-3c59-a37d-fd0a3f5352b3"/><c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/69f677e6-e4ea-331e-9317-0f4a3a485245"/><c:relevance>0.857</c:relevance></rdf:Description></rdf:RDF>
 

Here is the output from your Previw tool service for the same text

<!--Use of the Calais Web Service is governed by the Terms of Service located at http://www.opencalais.com. By using this service or the results of the service you agree to these terms of service.--><!--Relations: GenericRelations

Company: Bank of Slovenia
Country: Slovenia
Currency: EUR, SIT
IndustryTerm: online banking systems--><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:c="http://s.opencalais.com/1/pred/"><rdf:Description c:allowDistribution="true" c:allowSearch="true" c:calaisRequestID="017cb36d-6238-4a10-969d-2f731c6d59bf" c:externalID="calaisbridge" c:id="http://id.opencalais.com/*-1okh4Gd0WuplqM3932Sg" rdf:about="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/DocInfo"/><c:document><![CDATA[<Document><Date>2009-03-02</Date><Body>On January 1 2007, [[Slovenia]] officially joined the Eurozone and adopted the euro as its new official currency. At the same time, Slovenian euro
coins, which were available as a &amp;amp;quot;starter kit&amp;amp;quot; from December 15, became legal tender everywhere in the Eurozone.

A period of dual circulation, when both the former currency, the tolar and the euro will be accepted, will only last until January 14. All banks ar
e going to exchange tolars into euros at the official rate of 239.64 SIT per 1 EUR at no commission until March 1, 2007. After that date it will be
 possible to exchange tolar banknotes (unlimited) and coins (until 2016) only at the Bank of Slovenia.

Most ATMs already dispense euro banknotes with the rest to follow in the following days. Commercial banks automatically converted all tolar account
s into euros and online banking systems will be accessible to their users again on January 3. Even though January 1 and 2 are non-working days in S
lovenia, many banks will be opened from 10:00 to 14:00 on both days, available only for one service: exchanging tolars to euros and larger euro ban
knotes into smaller units.
</Body></Document>]]></c:document><c:docTitle/><c:docDate>2009-03-02 00:00:00</c:docDate><c:externalMetadata c:caller="calaisbridge"/><c:submitter>calaisbridge</c:submitter></rdf:Description><rdf:Description c:contentType="text/txt" c:emVer="UserVocabulariesIM" c:langIdVer="DefaultLangId" c:language="English" c:processingVer="CalaisJob01" c:submissionDate="2009-03-02 08:57:51.484" rdf:about="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3/meta"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/DocInfoMeta"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"/><c:submitterCode>416dcd8a-766f-0aa3-d94c-e5034b6ffc98</c:submitterCode><c:signature>digestalg-1|24N0J1FRWaMi5tNIrktZRhA0gVY=|BJlchV8H8/MhtWGq5tQkIfXDbVwnzd4YrcpSefvBUwFbwoEW4IdO5w==</c:signature></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3/lid/DefaultLangId"><rdf:type rdf:resource="http://s.opencalais.com/1/type/lid/DefaultLangId"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"/><c:lang rdf:resource="http://d.opencalais.com/lid/DefaultLangId/English"/></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3/cat/1"><rdf:type rdf:resource="http://s.opencalais.com/1/type/cat/DocCat"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"/><c:category rdf:resource="http://d.opencalais.com/cat/Calais/Other"/><c:classifierName>Calais</c:classifierName><c:categoryName>Other</c:categoryName></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/er/company/ralg-tr1r/99398f19-6213-3382-8b7d-4a719044f8d9"><rdf:type rdf:resource="http://s.opencalais.com/1/type/er/Company"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"/><!--Bank of Slovenia--><c:subject rdf:resource="http://d.opencalais.com/comphash-1/bd707e56-60ee-3bdc-a86e-d565b3e275cf"/><c:score>1.0</c:score><c:name>Bank of Slovenia</c:name></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/genericHasher-1/3a3f5882-d5b4-3e46-b7c6-dc9f2da7bb8c"><rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Currency"/><c:name>SIT</c:name></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3/Instance/1"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/InstanceInfo"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"/><c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/3a3f5882-d5b4-3e46-b7c6-dc9f2da7bb8c"/><!--Currency: SIT; --><c:detection>[tolars into euros at the official rate of ]239.64 SIT[ per 1 EUR at no commission until March 1, 2007.]</c:detection><c:prefix>tolars into euros at the official rate of </c:prefix><c:exact>239.64 SIT</c:exact><c:suffix> per 1 EUR at no commission until March 1, 2007.</c:suffix><c:offset>536</c:offset><c:length>10</c:length></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3/Relevance/1"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"/><c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/3a3f5882-d5b4-3e46-b7c6-dc9f2da7bb8c"/><c:relevance>0.357</c:relevance></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/er/geo/country/ralg-geo1/7f65809a-80ea-1477-2b90-e9ffb2053857"><rdf:type rdf:resource="http://s.opencalais.com/1/type/er/Geo/Country"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"/><!--Slovenia--><c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/69f677e6-e4ea-331e-9317-0f4a3a485245"/><c:name>Slovenia</c:name><c:shortname>Slovenia</c:shortname><c:latitude>45.8002163989</c:latitude><c:longitude>15.9039366801</c:longitude></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/genericHasher-1/2c65abec-cb94-3db6-be71-b3510a593de6"><rdf:type rdf:resource="http://s.opencalais.com/1/type/em/r/GenericRelations"/><c:verb>accessible</c:verb><!--online banking systems--><c:relationsubject rdf:resource="http://d.opencalais.com/genericHasher-1/77237844-3645-3a6a-b8e4-53040a1a7afe"/></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3/Instance/2"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/InstanceInfo"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"/><c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/2c65abec-cb94-3db6-be71-b3510a593de6"/><!--GenericRelations: verb: accessible; relationsubject: online banking systems; --><c:detection>[converted all tolar account
s into euros and ]online banking systems will be accessible to their users again on January 3[. Even though January 1 and 2 are non-working]</c:detection><c:prefix>converted all tolar account
s into euros and </c:prefix><c:exact>online banking systems will be accessible to their users again on January 3</c:exact><c:suffix>. Even though January 1 and 2 are non-working</c:suffix><c:offset>891</c:offset><c:length>75</c:length></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/genericHasher-1/77237844-3645-3a6a-b8e4-53040a1a7afe"><rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/IndustryTerm"/><c:name>online banking systems</c:name></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3/Instance/3"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/InstanceInfo"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"/><c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/77237844-3645-3a6a-b8e4-53040a1a7afe"/><!--IndustryTerm: online banking systems; --><c:detection>[converted all tolar account
s into euros and ]online banking systems[ will be accessible to their users again on]</c:detection><c:prefix>converted all tolar account
s into euros and </c:prefix><c:exact>online banking systems</c:exact><c:suffix> will be accessible to their users again on</c:suffix><c:offset>891</c:offset><c:length>22</c:length></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3/Relevance/2"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"/><c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/77237844-3645-3a6a-b8e4-53040a1a7afe"/><c:relevance>0.177</c:relevance></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/genericHasher-1/14d13f7a-3038-3271-84c0-913d58cf911e"><rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Currency"/><c:name>EUR</c:name></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3/Instance/4"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/InstanceInfo"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"/><c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/14d13f7a-3038-3271-84c0-913d58cf911e"/><!--Currency: EUR; --><c:detection>[euros at the official rate of 239.64 SIT per ]1 EUR[ at no commission until March 1, 2007. After that]</c:detection><c:prefix>euros at the official rate of 239.64 SIT per </c:prefix><c:exact>1 EUR</c:exact><c:suffix> at no commission until March 1, 2007. After that</c:suffix><c:offset>551</c:offset><c:length>5</c:length></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3/Relevance/3"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"/><c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/14d13f7a-3038-3271-84c0-913d58cf911e"/><c:relevance>0.357</c:relevance></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/genericHasher-1/69f677e6-e4ea-331e-9317-0f4a3a485245"><rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Country"/><c:name>Slovenia</c:name></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3/Instance/5"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/InstanceInfo"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"/><c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/69f677e6-e4ea-331e-9317-0f4a3a485245"/><!--Country: Slovenia; --><c:detection>[&lt;Date&gt;2009-03-02&lt;/Date&gt;&lt;Body&gt;On January 1 2007, [[]Slovenia[]] officially joined the Eurozone and adopted the]</c:detection><c:prefix>&lt;Date&gt;2009-03-02&lt;/Date&gt;&lt;Body&gt;On January 1 2007, [[</c:prefix><c:exact>Slovenia</c:exact><c:suffix>]] officially joined the Eurozone and adopted the</c:suffix><c:offset>60</c:offset><c:length>8</c:length></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3/Relevance/4"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"/><c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/69f677e6-e4ea-331e-9317-0f4a3a485245"/><c:relevance>0.403</c:relevance></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/comphash-1/bd707e56-60ee-3bdc-a86e-d565b3e275cf"><rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Company"/><c:name>Bank of Slovenia</c:name><c:nationality>Slovenian</c:nationality></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3/Instance/6"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/InstanceInfo"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"/><c:subject rdf:resource="http://d.opencalais.com/comphash-1/bd707e56-60ee-3bdc-a86e-d565b3e275cf"/><!--Company: Bank of Slovenia; --><c:detection>[(unlimited) and coins (until 2016) only at the ]Bank of Slovenia[.

Most ATMs already dispense euro banknotes with]</c:detection><c:prefix>(unlimited) and coins (until 2016) only at the </c:prefix><c:exact>Bank of Slovenia</c:exact><c:suffix>.

Most ATMs already dispense euro banknotes with</c:suffix><c:offset>707</c:offset><c:length>16</c:length></rdf:Description><rdf:Description rdf:about="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3/Relevance/5"><rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/><c:docId rdf:resource="http://d.opencalais.com/dochash-1/2b4490fb-c209-31e2-873d-b75ea86a55e3"/><c:subject rdf:resource="http://d.opencalais.com/comphash-1/bd707e56-60ee-3bdc-a86e-d565b3e275cf"/><c:relevance>0.260</c:relevance></rdf:Description></rdf:RDF>

 

User offline. Last seen 2 years 31 weeks ago. Offline
Joined: 07/28/2008

Should I be able to post the same text to the Calaisviewer Tool and to the beta.opencalais.com api and get close to the same results.  I am not getting anything even close to what the calaisviewer tools returns. I am posting the following. I also noticed that MySQL was not identified as a product.  When I post to the api I don't get back as much information.

 

Sun Microsystems Skip to Content Innovating@Sun Community Voices How to Buy Log In United States [Change] English Downloads &amp; Trials Products Services Solutions Support Training Sun For... Downloads Java Java software for games and apps. Download Watch Video Learn More Contribute Java for Developers NetBeans IDE for enterprise and web apps. Download Watch Video Learn More Contribute GlassFish Open source Java application server. Download Watch Video Learn More Contribute MySQL The popular open source database. Download Watch Video Learn More Contribute OpenSolaris The open source Solaris OS. Download Watch Video Learn More Contribute Get the Newsletter xVM VirtualBox Virtualization software for your desktop. Download Watch Video Learn More Contribute OpenOffice Open source office productivity suite. Download Watch Video Learn More Contribute JavaFX Create richer Internet applications. Download Watch Video Learn More Contribute Featured Student Startup Small to Medium Business Developer Partner Enterprise Free Trials and Hot Deals Impact your bottom line. Save with Free Trials and Hot Deals. Are budgets keeping you from adding innovation to your datacenter? See how to get it free to try for 60 days. Get It Now! Get a Sun Storage 7000 System for a FREE 60 Day Trial The biggest storage change in decades delivers up to 75% cost/performance savings. Get It Now! Try The Newest MySQL Enterprise Service You can get the service including the new MySQL Query Analyzer for 30 days free of charge! Try it Now! Get It Now! Sign up for a Free Online Datacenter Assessment Sun systems can reduce your datacenter costs with dramatically reduced power and space consumption. Get It Now! News News Sun and HP Announce Expanded Partnership Join the the conference call as Sun and Hewlett-Packard outline an expanded multi-year partnership agreement for HP to distribute and support Solaris. More Sun Ray Technology Delivers Key Medical Data Barwon Health hospital staff access and update patient data at each bedside. More Developing a Multitasking Virtual Machine Read the new interview with Sun Labs senior engineer Laurent Daynes. More InfoWorld Calls Sun's 7210 Storage System "Stellar" Unified system hailed as "just about everything you could want in a storage server." More New Support for NetBeans IDE Modeling, business intelligence, and mobile application tools provide more choice and features for developers. More Top Sites Rely on Sun Sun technology powers the next-generation companies that are changing the way people work, play, and learn. More News Center About Sun Contact Sun Terms of Use Privacy Site Map Powered by Sun Copyright 1994-2009 Sun Microsystems, Inc.

 

User offline. Last seen 1 year 3 weeks ago. Offline
Joined: 12/31/1969

Can you send the paramsXML you are using?

A piece of the code will help us understand the root cause of the difference.

CalaisViewerTechPreview uses the beta.opencalais.com. You should be able to get the same results.

Ofer

 

User offline. Last seen 2 years 31 weeks ago. Offline
Joined: 07/28/2008

I am using beta.opencalais.com

  <c:params xmlns:c="http://s.opencalais.com/1/pred/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  
        <c:processingDirectives c:contentType="text/raw" c:outputFormat="xml/rdf" >
        </c:processingDirectives>
  
        <c:userDirectives c:allowDistribution="true" c:allowSearch="true" c:externalID="17cabs901" c:submitter="digitalrinaldo">
        </c:userDirectives>
  
        <c:externalMetadata>
        </c:externalMetadata>
  
        <c:enableMetadataType>
            GenericRelations
        </c:enableMetadataType>
  
    </c:params>

The file that I get back when I post the previously mentioned text is much smaller than what I get when I use the viewer.

User offline. Last seen 1 year 3 weeks ago. Offline
Joined: 12/31/1969

Hi,

We are using part of  Thomson Reuters business data to enhance these company end points with valuable informaion. It is not coming out as part of the XML/RDF Open Calais api.opencalais.com output - it is only in the Linked Data end point.

The RDFS can be found here:

http://s.opencalais.com/1/type/er/Company.rdf.

Thanks,

Ofer

 

 

 

 

 

 

User offline. Last seen 2 years 31 weeks ago. Offline
Joined: 07/28/2008

Thanks - I am doing some advanced research and I was thinking of using OpenCalais. I have about 10,000 product urls I want to run thrught the system. Tge RDFS output is of tremendous value.   How can I use this with my own data?  I tried some pages with OpenCalias 4 and I am getting an upload size limit error. I keep running into these types of issues and am just wondering if I should go elsewhere.

 

 

 

User offline. Last seen 1 year 3 weeks ago. Offline
Joined: 12/31/1969

I want to understand the size limit issue.

Can you provide example of the content you send that causes problems.

You can post it here or via private msg to me.

Thanks,

Ofer