Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

API Call - /knowledge/doc/{docid}?returnFullText=[true|false|1|0]

Returns a document (TODO link to document object) matching the id number provided.

Authentication

Required, see Auth - Login

Arguments

docid (required)
id of the document of which to return the metadata

returnFullText (optional)
By default, the text of the document is not returned. Setting this parameter to "true" or "1" will return the first 50KB of the content, in the "fullText" JSON field (see below).

Example

http://infinite.ikanow.com/api/knowledge/doc/4cc0ebff97622e5914a70e83
http://infinite.ikanow.com/api/knowledge/doc/4cc0ebff97622e5914a70e83?returnFullText=1

Example Response

TODO handle new

{
    "response": {
        "action": "Doc Info",
        "success": true,
        "message": "Doc info returned successfully",
        "time": 0
    },
    "data": {
        "_id": "4cc0ebff97622e5914a70e83",
        "created": "Thu Oct 21 20:00:00 UTC 2010",
        "modified": "Thu Oct 21 20:00:00 UTC 2010",
        "title": "AmSurg Announces Third-Quarter Net Earnings from Continuing Operations of $0.43 Per Diluted Share",
        "description": "NASHVILLE, Tenn.--(BUSINESS WIRE)--Christopher A. Holden, President and Chief Executive Officer of AmSurg Corp. (NASDAQ: AMSG), today announced financial results for the third quarter ended September 30, 2010. Revenues increased 7% to $180,275,000 for the quarter from $167,873,000 for the third quarter of 2009. Net earnings from continuing operations attributable to AmSurg common shareholders for the third quarter of 2010 were $13,203,000, or $0.43 per diluted share, compared with $13,393,000, o\n\n  \n  \n  \n  \n  \n  \n  \n\n\n",
        "url": "http://feeds.businesswire.com/click.phdo?i\u003d9bb973ede2264e5d2dfe81afd1b53536",
        "publishedDate": "Thu Oct 21 20:00:00 UTC 2010",
        "source": "Business Wire: Conference Call News",
        "sourceKey": "http.origin.feeds.pheedo.com.bw.conference_calls-rss",
        "mediaType": "News",
        "communityId": "4c927585d591d31d7b37097a",
        "entities": [
            {
                "actual_name": "AmSurg",
                "type": "Company",
                "disambiguated_name": "Amsurg PLC",
                "index": "amsurg plc/company",
                "relevance": 0.742427,
                "frequency": 13,
                "totalfrequency": 131,
                "doccount": 17,
                "dimension": "Who"
            },
            {
                "actual_name": "Medicare",
                "type": "Organization",
                "disambiguated_name": "Medicare",
                "index": "medicare/organization",
                "relevance": 0.554665,
                "frequency": 1,
                "totalfrequency": 1,
                "doccount": 1,
                "dimension": "Who"
            },
            {
                "actual_name": "NASHVILLE",
                "type": "City",
                "disambiguated_name": "Nashville",
                "index": "nashville/city",
                "relevance": 0.339423,
                "frequency": 2,
                "totalfrequency": 100,
                "doccount": 32,
                "dimension": "Where"
                "ontology_type": "city"
            },
            {
                "actual_name": "United States",
                "type": "Country",
                "disambiguated_name": "United States",
                "index": "united states/country",
                "relevance": 0.305428,
                "frequency": 1,
                "totalfrequency": 12432,
                "doccount": 9931
                "dimension": "Where",
                "ontology_type": "country"
                "linkdata": [
                    "http://www4.wiwiss.fu-berlin.de/factbook/resource/United_States",
                    "http://dbpedia.org/resource/United_States",
                    "http://rdf.freebase.com/ns/guid.9202a8c04000641f8000000000959f60",
                    "http://sw.opencyc.org/concept/Mx4rvVikKpwpEbGdrcN5Y29ycA",
                    "http://mpii.de/yago/resource/United_States"
                ]
            }
        ]
    }
}
  • No labels