Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Section
Column

Description

Excerpt
The method indexing-profile returns the profile of an item for a given item-ID, which was used for the indexing process. This method provides response data as application/json and application/xml. It is a read-only service and must be accessed with a HTTP-GET-request.
Code Block
languagetext
GET /items/<PathParameters>/indexing-profile?<QueryParameters> HTTP/1.1
Column
width30%
Noprint
Panel
titleContent of this page

Table of Contents
maxLevel2

Request Header

NameValue(s)RequiredRepeatableDefault valueDescription
Acceptapplication/json
application/xml
*/*
yesnoapplication/jsonSpecifies the format of the accepted data. Every request needs to be sent with a valid Accept Header defining the requested response format. Otherwise the response to the request will be a 406 - Not acceptable status code. If the request accepts every kind of data (Accept: */*) JSON will be returned.
AuthorizationOAuth oauth_consumer_key="<API key>"yesnoAn API key is mandatory for data access. You may enclose it by either sending it as Query Parameter or (as mentioned here) in the Request Header.
Hostapi.deutsche-digitale-bibliothek.deyesnoThe host is mandatory.
Noprint
Section

Back To Top

Parameters

Path

ParameterValue(s)RequiredRepeatableDefault valueDescription
identifier<item-ID>yesnoThe ID of the requested item.

 

Query

ParameterValue(s)RequiredRepeatableDefault valueDescription
oauth_consumer_key<API key>yesnoAn API key is mandatory for data access. You may enclose it by either sending it as Query Parameter or (as mentioned here) in the Request Header.
Noprint
Section

Back To Top

Authorization

This method needs an API key for authentication (Who are you?) and authorization (What you are authorized to do?). For more information please read the Authorization How-To.

This method is offered over HTTP and HTTP Secure.

Noprint
Section

Back To Top

Errors

CodeTextDescription
404Not FoundEither the item does not exist or has no data.
406Not AcceptableThe Request Header is not acceptable. Please see section Request Header.
500Server ErrorSomething went terribly wrong. An error message will provide a meaningful description.
Noprint
Section

Back To Top

Samples

Request 1

Code Block
languagetext
GET /items/OAXO2AGT7YH35YYHN3YKBXJMEI77W3FF/indexing-profile?oauth_consumer_key=abcdefgh12345678 HTTP/1.1
Host: api.deutsche-digitale-bibliothek.de
Accept: application/xml

Response

Noprint
Code Block
titleXML
linenumberstrue
languagexml
collapsetrue
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<indexing-profile xmlns="http://www.deutsche-digitale-bibliothek.de/cortex">
  <item-id>OAXO2AGT7YH35YYHN3YKBXJMEI77W3FF</item-id>
  <facet name="time_fct">
    <value>time_62000</value>
    <value>time_62050</value>
  </facet>
  <facet name="place_fct">
    <value>Paderborn</value>
  </facet>
  <facet name="affiliate_fct">
    <value>Scho?ningh</value>
    <value>Goethe, Johann Wolfgang ?von? (1749-1832)</value>
  </facet>
  <facet name="affiliate_fct_role">
    <value>Scho?ningh</value>
    <value>Goethe, Johann Wolfgang ?von? (1749-1832)</value>
    <value>Scho?ningh_1_affiliate_fct_involved</value>
    <value>Goethe, Johann Wolfgang ?von? (1749-1832)_1_affiliate_fct_involved</value>
  </facet>
  <facet name="affiliate_fct_normdata">
    <value>http://d-nb.info/gnd/118540238</value>
  </facet>
  <facet name="affiliate_fct_role_normdata">
    <value>http://d-nb.info/gnd/118540238</value>
    <value>http://d-nb.info/gnd/118540238_1_affiliate_fct_involved</value>
  </facet>
  <facet name="keywords_fct">
    <value>Monografie</value>
    <value>Deutsche Literatur</value>
    <value>Belletristik</value>
  </facet>
  <facet name="keywords_fct_normdata">
    <value>http://d-nb.info/ddc-sg/830</value>
    <value>http://d-nb.info/ddc-sg/B</value>
  </facet>
  <facet name="language_fct">
    <value>ger</value>
  </facet>
  <facet name="type_fct">
    <value>mediatype_003</value>
  </facet>
  <facet name="sector_fct">
    <value>sec_02</value>
  </facet>
  <facet name="provider_fct_normdata">
    <value>http://ld.zdb-services.de/data/organisations/DE-101</value>
  </facet>
  <facet name="provider_fct">
    <value>Deutsche Nationalbibliothek</value>
  </facet>
  <facet name="last_update">
    <value>14-03-13 18:42:51</value>
  </facet>
</indexing-profile>

 

Request 2

Code Block
languagetext
GET /items/OAXO2AGT7YH35YYHN3YKBXJMEI77W3FF/indexing-profile HTTP/1.1
Host: api.deutsche-digitale-bibliothek.de
Accept: */*
Authorization: OAuth oauth_consumer_key="abcdefgh12345678"

Response

Noprint
Code Block
titleJSON
linenumberstrue
languagejs
collapsetrue
{
   "item-id":"OAXO2AGT7YH35YYHN3YKBXJMEI77W3FF",
   "facet":[
      {
         "@name":"time_fct",
         "value":[
            "time_62000",
            "time_62050"
         ]
      },
      {
         "@name":"place_fct",
         "value":"Paderborn"
      },
      {
         "@name":"affiliate_fct",
         "value":[
            "Scho?ningh",
            "Goethe, Johann Wolfgang ?von? (1749-1832)"
         ]
      },
      {
         "@name":"affiliate_fct_role",
         "value":[
            "Scho?ningh",
            "Goethe, Johann Wolfgang ?von? (1749-1832)",
            "Scho?ningh_1_affiliate_fct_involved",
            "Goethe, Johann Wolfgang ?von? (1749-1832)_1_affiliate_fct_involved"
         ]
      },
      {
         "@name":"affiliate_fct_normdata",
         "value":"http://d-nb.info/gnd/118540238"
      },
      {
         "@name":"affiliate_fct_role_normdata",
         "value":[
            "http://d-nb.info/gnd/118540238",
            "http://d-nb.info/gnd/118540238_1_affiliate_fct_involved"
         ]
      },
      {
         "@name":"keywords_fct",
         "value":[
            "Monografie",
            "Deutsche Literatur",
            "Belletristik"
         ]
      },
      {
         "@name":"keywords_fct_normdata",
         "value":[
            "http://d-nb.info/ddc-sg/830",
            "http://d-nb.info/ddc-sg/B"
         ]
      },
      {
         "@name":"language_fct",
         "value":"ger"
      },
      {
         "@name":"type_fct",
         "value":"mediatype_003"
      },
      {
         "@name":"sector_fct",
         "value":"sec_02"
      },
      {
         "@name":"provider_fct_normdata",
         "value":"http://ld.zdb-services.de/data/organisations/DE-101"
      },
      {
         "@name":"provider_fct",
         "value":"Deutsche Nationalbibliothek"
      },
      {
         "@name":"last_update",
         "value":"14-03-13 18:42:51"
      }
   ]
}
Noprint
Section

Back To Top