========== Purefaçade ========== .. sectnum:: .. contents:: `Table of contents` :depth: 2 Purpose +++++++ Purefaçade is a web service to make Pure data available for the Tilburg University website. Pure has an API (Pure Web Services) to access its data, but this API is very complicated. It returns data as huge and very complicated XML documents. None of the Pure Web Services resources returns data that can be used directly in a website. The website uses Pure data to show publications, organisations or persons on its pages. Features ++++++++ - Get lists of publications as XML with embedded HTML (with XSLT stylesheet) or as RSS feeds - Select one of multiple HTML templates to generate publication HTML (APA, APA with links, CentER) - Select publications by author or organisation or query - Get paged results of selected publications - Order publications by most recently added or edited, publication date or volume - Get simple vCard (or xCard, XML-representation of a vCard) for persons or organisations - Get person profile data as XML, that can be use to create profile pages for researchers in the website - Get cached results from Pure to protect Pure; the service keeps working for frequently fired requests when Pure is down Usage +++++ Usage: {base-url}/rest/{resource[/path]}[?requestparameters] {base-url}/rest/organisations/{organisation-id}/publications ------------------------------------------------------------ Returns last added or edited 20 publications of organisation with Organisation id {organisation-id} in 'APAwithlinks' rendering as an XML document with an XSL stylesheet reference. Optional request parameters: - publication-year - document-type - order-by - window.offset - window.size - rendering - encoded See 'XML output' section below. Example: `/rest/organisations/50000115/publications?order-by=published&window.size=5 `_ Shows last 5 published publications of Tilburg Law School or suborganisation in 'APAwithlinks' rendering in an HTML document {base-url}/rest/organisations/{organisation-id}/rss --------------------------------------------------- Returns last added or edited 20 publications of organisation with id {organisation-id} as an RSS 2.0 feed in 'APA' rendering. Shows publication title and publication year as the entry title. In most RSS/Atom readers this links to the publication in the Pure portal. Optional request parameters: - publication-year - document-type - order-by - window.offset - window.size - rendering - feed-type Example: `/rest/organisations/50000115/rss `_ Shows last last added or edited publications of Tilburg Law School in 'APA' rendering {base-url}/rest/organisations/{organisation-id}/series ------------------------------------------------------ Returns all publications in specific series for a year for organisation with id {organisation-id}. All publications ordered by descending volume number. Required request parameters: - publication-year - document-type - series Optional request parameters: - rendering (default = CentER) Examples: `/rest/organisations/50000088/series?publication-year=2014&document-type=discussionpaper&series=CentER%20Discussion%20Paper `_ CentER discussion Papers in 2014 `/rest/organisations/50000088/series?publication-year=2014&document-type=thesis%2fdoc&series=CentER%20Dissertation%20Series `_ CentER PhD theses in 2014 `/rest/organisations/50007292/series?publication-year=2014&document-type=thesis%2fdoc&series=TiCC%20Ph.D.%20Series `_ PhD theses from TiCC in 2014 (organisation-id = Tilburg School of Humanities) {base-url}/rest/persons/{person-id}/vcard ----------------------------------------- Returns very basic vCard for person with id {person-id}. {base-url}/rest/persons/{person-id}/x-vcard ------------------------------------------- Returns very basic vCard for person with id {person-id} as XML vCard. {base-url}/rest/persons/{person-id}/publications ------------------------------------------------ Returns last added or edited 20 publications person with id {person-id} in 'APAwithlinks' rendering as an XML document with an XSL stylesheet reference. Optional request parameters: - publication-year - order-by - window.offset - window.size - rendering - encoded See 'XML output' section below. Example: `/rest/persons/199788/publications `_ Shows last last added or edited 20 publications of Fons van de Vijver in 'APAwithlinks' rendering as an XML document with an XSL stylesheet reference. {base-url}/rest/persons/{person-id}/rss --------------------------------------- Returns last added or edited 20 publications of person with id {person-id} as an RSS 2.0 feed in 'APA' rendering. Shows publication title and publication year as the entry title. In most RSS/Atom readers this links to the publication in the Pure portal. Optional request parameters: - publication-year - order-by - window.offset - window.size - rendering - feed-type Example: `/rest/persons/199788/rss?feed-type=atom_1.0 `_ Shows last last added or edited publications of Fons van de Vijver in 'APA' rendering as an Atom 1.0 feed {base-url}/rest/persons/{person-id}/ee-data ------------------------------------------- .. Note:: Possibly not accessible Returns XML data for a person. Used as a data source by another system. Example: `/rest/persons/199788/ee-data `_ Shows XML data of Fons van de Vijver. {base-url}/rest/publications/search ----------------------------------- Returns last added or edited 20 publications matching query request parameter in 'APAwithlinks' rendering as an XML document with an XSL stylesheet reference. Required request parameter: - query Optional request parameters: - publication-year - order-by - window.offset - window.size - rendering - encoded Example: `/rest/publications/search?query=africa `_ Shows last last added or edited publications matching query string Africa in 'APA' rendering See 'XML output' section below. {base-url}/rest/publications/rss -------------------------------- Returns last added or edited 20 publications matching query parameter as an RSS 2.0 feed in 'APA' rendering. Shows publication title and publication year as the entry title. In most RSS/Atom readers this links to the publication in the Pure portal. Optional request parameters: - publication-year - order-by - window.offset - window.size - rendering - encoded - feed-type Matrix parameters +++++++++++++++++ For vcard and x-vcard requests for a person, it's possible to replace ``/persons/{person-id}/`` in the URL with ``/persons/person;id={person-id}/``. So, https://purefacade.uvt.nl/rest/persons/person;id=199788/x-vcard is equivalent to https://purefacade.uvt.nl/rest/persons/199788/x-vcard. All objects in Pure have a unique UUID. Persons too. Instead of using the ``person-id`` to reference a person in the vcard and x-vcard requests, you can also use matrix parameter ``uuid``. Example: `/rest/persons/person;uuid=b6bdc7f6-00f9-4941-b814-1b96c95005a3/x-vcard `_ Options +++++++ document-type ------------- Document type. The first substring match of the provided parameter in the following list is used to select the document type: - /dk/atira/pure/researchoutput/researchoutputtypes/bookanthology/anthology - /dk/atira/pure/researchoutput/researchoutputtypes/bookanthology/book - /dk/atira/pure/researchoutput/researchoutputtypes/bookanthology/commissioned - /dk/atira/pure/researchoutput/researchoutputtypes/bookanthology/inaugural - /dk/atira/pure/researchoutput/researchoutputtypes/bookanthology/other - /dk/atira/pure/researchoutput/researchoutputtypes/bookanthology/scholarly - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontobookanthology/chapter - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontobookanthology/conference - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontobookanthology/entry - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontobookanthology/foreword - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontobookanthology/other - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontobookanthology/peerreviewedchapter - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontoconference/abstract - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontoconference/other - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontoconference/paper - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontoconference/poster - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontojournal/abstract - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontojournal/article - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontojournal/book - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontojournal/comment - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontojournal/editorial - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontojournal/letter - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontojournal/scientific - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontojournal/special - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontomemorandum/contributiontoqahearing - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontomemorandum/contributiotoacademicmemorandum - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontoperiodical/article - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontoperiodical/book - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontoperiodical/editorial - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontoperiodical/featured - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontoperiodical/letter - /dk/atira/pure/researchoutput/researchoutputtypes/contributiontoperiodical/special - /dk/atira/pure/researchoutput/researchoutputtypes/memorandum/academicmemorandum - /dk/atira/pure/researchoutput/researchoutputtypes/memorandum/qahearing - /dk/atira/pure/researchoutput/researchoutputtypes/nontextual/artefact - /dk/atira/pure/researchoutput/researchoutputtypes/nontextual/composition - /dk/atira/pure/researchoutput/researchoutputtypes/nontextual/database - /dk/atira/pure/researchoutput/researchoutputtypes/nontextual/design - /dk/atira/pure/researchoutput/researchoutputtypes/nontextual/digitalorvisualproducts - /dk/atira/pure/researchoutput/researchoutputtypes/nontextual/exhibition - /dk/atira/pure/researchoutput/researchoutputtypes/nontextual/performance - /dk/atira/pure/researchoutput/researchoutputtypes/nontextual/software - /dk/atira/pure/researchoutput/researchoutputtypes/nontextual/web - /dk/atira/pure/researchoutput/researchoutputtypes/othercontribution/other- - /dk/atira/pure/researchoutput/researchoutputtypes/patent/patent - /dk/atira/pure/researchoutput/researchoutputtypes/thesis/doc - /dk/atira/pure/researchoutput/researchoutputtypes/thesis/master - /dk/atira/pure/researchoutput/researchoutputtypes/workingpaper/discussionpaper - /dk/atira/pure/researchoutput/researchoutputtypes/workingpaper/workingpaper So &document-type=book should select document type'/dk/atira/pure/researchoutput/researchoutputtypes/bookanthology/anthology' (first line that contains string 'book'). With &document-type=thesis/master one should select on master theses only ('/dk/atira/pure/researchoutput/researchoutputtypes/thesis/master'). encoded ------- Only for publications as XML. false Present rendered reference as XML or HTML ('