Texts

Texts of web pages are prepared in various ways. This chapter describes what actually happens to those texts an how you can access this information.

/api/texts/search

Returns a subset of pages with extracted text.

Parameter Description

snapshot

The name of the snapshot

selection

Optional. The machine-name of the selection.

query

The Solr-Query which is used to search for the pages

textsInclude

Optional. If 'true' includes the extracted text. Please note, that texts are not extracted on all Snapshots.

textsAbbreviate

Optional. Used for debugging. Abbreviates exported texts.

page

Optional. The number of the requested page.

size

Optional. The number of objects of the requested page.

Example
$ curl 'http://localhost:8080/api/texts/search?snapshot=20121227_intermediaries&query=news&textsInclude=true&textsAbbreviate=true&size=2' -i -X GET
HTTP/1.1 200 OK
X-Rate-Limit-Remaining: 49
Content-Type: application/json
Content-Length: 1650

{
  "responseHeader" : {
    "httpStatus" : null,
    "msg" : "solrQuery: q=news&q.op=OR&fq=snapshot_id_i:+1&sort=domain_id_i+asc,reference_id_i+asc&start=0&rows=2",
    "query" : "http://localhost:8080/api/texts/search?snapshot=20121227_intermediaries&query=news&textsInclude=true&textsAbbreviate=true&size=2",
    "state" : "OK"
  },
  "content" : [ {
    "domain" : "www.dfg.de",
    "language" : "en",
    "path" : "/en/index.jsp",
    "snapshot" : "20121227_intermediaries",
    "textId" : 42,
    "textInfo" : {
      "contentType" : "text/plain",
      "description" : null,
      "language" : "en",
      "text" : "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nDFG, German Research Foundation\n\n\r\n\r\n\r\n    \r\n\r\n      ...",
      "title" : "DFG, German Research Foundation"
    }
  }, {
    "domain" : "www.dfg.de",
    "language" : "de",
    "path" : "/dfg_profil/geschaeftsstelle/dfg_praesenz_ausland/beijing/index.jsp",
    "snapshot" : "20121227_intermediaries",
    "textId" : 94,
    "textInfo" : {
      "contentType" : "text/plain",
      "description" : null,
      "language" : "de",
      "text" : "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nDFG - Deutsche Forschungsgemeinschaft - Chinesisch-...",
      "title" : "DFG - Deutsche Forschungsgemeinschaft - Chinesisch-Deutsches Zentrum für Wissenschaftsförderung Beijing"
    }
  } ],
  "page" : {
    "size" : 2,
    "number" : 0,
    "totalElements" : 79963,
    "totalPages" : 39982
  },
  "links" : {
    "next" : "http://localhost:8080/api/texts/search?snapshot=20121227_intermediaries&query=news&textsInclude=true&textsAbbreviate=true&page=1&size=2"
  }
}

/api/texts/get

Returns extracted text from a set of given text-ids.

Parameter Description

snapshot

The name of the snapshot

id

Id of the text. Can be specified multiple times.

Example
$ curl 'http://localhost:8080/api/texts/get?snapshot=20121227_intermediaries&id=9094&id=9095' -i -X GET
HTTP/1.1 200 OK
X-Rate-Limit-Remaining: 49
Content-Type: application/json
Content-Length: 6909

{
  "responseHeader" : {
    "httpStatus" : null,
    "msg" : "",
    "query" : "http://localhost:8080/api/texts/get?snapshot=20121227_intermediaries&id=9094&id=9095",
    "state" : "OK"
  },
  "content" : [ {
    "language" : "en",
    "snapshot" : "20121227_intermediaries",
    "textId" : 9094,
    "textInfo" : {
      "contentType" : "text/plain",
      "description" : null,
      "language" : "en",
      "text" : "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nForward Looks : European Science Foundation\n\n\n\n\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tBookmark this pageFAQMember pagesRSSSitemapSubscribe\n\n\t\t\t\t\t\t\t\t\t\n\t\t\t     \n                            \n                            \n                            \n\t\t\n\n\t\t\n\t\t\t\n\t\t\n\n\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t\n\n\t\t\t\t\n\n\t\t\t\t\tHome\n\tAbout ESF\n\tActivities\n\tResearch Areas\n\tPublications\n\tMedia Centre\n\tJobs\n\tContact\n\n\n\n\n\t\t\t\tHome  > Activities  > Forward Looks\n\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tForward Looks\n\n\n\t\t\t\t\t\tThe flagship activity of ESF’s strategic arm, Forward Looks enable Europe’s scientific community, in interaction with policy makers, to develop medium to long-term views and analyses of future research developments with the aim of defining research agendas at national and European level.  Forward Looks are driven by ESF’s Member Organisations and, by extension, the European research community. Quality assurance mechanisms, based on peer review where appropriate, are applied at every stage of the development and delivery of a Forward Look to ensure its quality and impact. \n\nPlease see the left navigational bar for all current Forward Looks.\n\nFor enquiries about Forward Looks please contact:\n\n\tMs.LauraMarinE-Mail\n\tScience Officer MOs Relations & Partnerships\n\n\tMs.MadeliseBlumenroederE-Mail\n\tSenior Administrator\n\n\nPlease click here to see all our Forward Look reports \n\n\t\n\n\t\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t \n\n\t\t\t\t\t\t\tEuroBioFund\n\tEUROCORES\n\tExploratory Workshops\n\tForward Looks\tNews\n\tAll Current and Completed Forward Looks\n\tSpace Sciences (SSU)\n\tHumanities (SCH)\n\tLife, Earth and Environmental Sciences (LESC)\n\tMedical Sciences (EMRC)\n\tPhysical and Engineering Sciences (PESC)\n\tSocial Sciences (SCSS)\n\tWorkshop scheme\n\n\n\tCalls and Funding\n\tMO Fora\n\tResearch Networking Programmes\n\tESF Research Conferences\n\tScience Policy\n\tESF Meetings\n\tEuropean Latsis Prize 2012\n\tPeer Review\n\tESF Symposia\n\tESF at ESOF 2012 Dublin\n\n\n\n\n\n\t\t\t\t\t\n\n\t\t\t\t\n\n\t\t\t\tData protection | Disclaimer\n\n© 2012 European Science Foundation - page last updated: 26.12.2012\n\nESF provides the scientific, administrative and technical secretariat for COST (European Cooperation in Science and Technology).\n\n\n\n\n\t\t\t\n\n\t\t\n\n\t\t\n\t\t\n\t\n\n\n\n\n\n\n",
      "title" : "Forward Looks : European Science Foundation"
    }
  }, {
    "language" : "en",
    "snapshot" : "20121227_intermediaries",
    "textId" : 9095,
    "textInfo" : {
      "contentType" : "text/plain",
      "description" : null,
      "language" : "en",
      "text" : "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nScience Policy and the Standing Committees/Expert Boards : European Science Foundation\n\n\n\n\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tBookmark this pageFAQMember pagesRSSSitemapSubscribe\n\n\t\t\t\t\t\t\t\t\t\n\t\t\t     \n                            \n                            \n                            \n\t\t\n\n\t\t\n\t\t\t\n\t\t\n\n\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t\n\n\t\t\t\t\n\n\t\t\t\t\tHome\n\tAbout ESF\n\tActivities\n\tResearch Areas\n\tPublications\n\tMedia Centre\n\tJobs\n\tContact\n\n\n\n\n\t\t\t\tHome  > Activities  > Science Policy  > Science Policy and the Standing Committees/Expert Boards\n\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tScience Policy and the Standing Committees/Expert Boards\n\n\n\t\t\t\t\t\tESF Standing Committees and Expert Boards are key players in the development of science policy strategies in their scientific fields and research areas. They produce position papers and briefings to ensure the voice of European science is heard and plays a role in major European science policy issues.  \n\r\n\nExamples of recent science policy activities of the ESF Standing Committees and Expert Boards include: \n   - ESF Policy Briefing N°26 \"Rheumatic Diseases\" (EMRC)\n   - ESF Policy Briefing N°27 \"Structural Medicine: the importance of Glycomics for Health and Disease\" (EMRC)\r\n\n   - ESF Policy Briefing N°28 \"Medical Imaging for Improved Patient Care\" (EMRC)  \r\n\n   - ESF Policy Briefing N°31 \"Structural Medicine II : The importance of Lipidomics for Health and Disease\" (EMRC)  \r\n\n   - ESF Policy Briefing N°32 \"Population Surveys and Biobanking\" (EMRC)  \r\n\n   - Navigating the future III: Position Paper n°8 of Marine Board-ESF\r\n\nRelated activities:\n   - Forward Looks\n   - ESF Member Organisation Fora\r\n\n \n\n\n\t\n\n\t\n\n\t\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\tStanding Committee: \n\tEuropean Medical Research Council (EMRC) \n\tStanding Committee for the Life, Earth and Environmental Sciences (LESC) \n\tStanding Committee for the Physical and Engineering Sciences (PESC)\n\tStanding Committee for the Humanities (SCH) \n\tStanding Committee for the Social Sciences (SCSS) \n\nExpert Boards: \n\tEuropean Polar Board (EPB)\n\tMarine Board (ESF)\n\tCommittee on Radio Astronomy Frequencies (CRAF) \n\tEuropean Space Sciences Committee (ESSC) \n\tNuclear Physics European Collaboration Committee (NuPECC)   \n\n\n\n\n\n\n\t\t\t\t\t\t\tEuroBioFund\n\tEUROCORES\n\tExploratory Workshops\n\tForward Looks\n\tCalls and Funding\n\tMO Fora\n\tResearch Networking Programmes\n\tESF Research Conferences\n\tScience Policy\tCorporate Science Policy Initiatives\n\tResearch Infrastructures\n\tScience Policy and the Standing Committees/Expert Boards\n\n\n\tESF Meetings\n\tEuropean Latsis Prize 2012\n\tPeer Review\n\tESF Symposia\n\tESF at ESOF 2012 Dublin\n\n\n\n\n\n\t\t\t\t\t\n\n\t\t\t\t\n\n\t\t\t\tData protection | Disclaimer\n\n© 2012 European Science Foundation - page last updated: 24.08.2010\n\nESF provides the scientific, administrative and technical secretariat for COST (European Cooperation in Science and Technology).\n\n\n\n\n\t\t\t\n\n\t\t\n\n\t\t\n\t\t\n\t\n\n\n\n\n\n\n",
      "title" : "Science Policy and the Standing Committees/Expert Boards : European Science Foundation"
    }
  } ],
  "page" : {
    "size" : 2,
    "number" : 0,
    "totalElements" : 2,
    "totalPages" : 1
  },
  "links" : { }
}