Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
GET /binariesentities?query=*:*&oauth_consumer_key=abcdefgh12345678 HTTP/1.1
Host: api.deutsche-digitale-bibliothek.de
Accept: application/json

...

Noprint
Code Block
titleXML
linenumberstrue
languagexml
collapsetrue
 

 

{
   "numberOfResults":127746,
   "results":[
      {
         "name":"single",
         "docs":[
            {
               "id":"http://d-nb.info/gnd/116901128",
               "dateOfBirth":"5. März 1871",
               "dateOfDeath":"2. August 1943",
               "placeOfBirth":[
                  "Schornbach"
               ],
               "placeOfDeath":[
                  "Vaihingen an der Enz"
               ],
               "preferredName":"Karl Grunsky",
               "variantName":[
                  "Karl Wilhelm Siegfried Grunsky"
               ],
               "professionOrOccupation":[
                  "Musikschriftsteller"
               ],
               "count":14,
               "type":"person"
            },

            ...

         ],
         "numberOfDocs":1000
      }
   ],
   "facets":[
      {
         "facetValues":[

         ],
         "numberOfFacets":0,
         "field":"person_name_fct"
      },
      {
         "facetValues":[

         ],
         "numberOfFacets":0,
         "field":"person_place_fct"
      },
      {
         "facetValues":[

         ],
         "numberOfFacets":0,
         "field":"person_gender_fct"
      },
      {
         "facetValues":[

         ],
         "numberOfFacets":0,
         "field":"person_occupation_fct"
      }
   ],
   "correctedQuery":"",
   "highlightedTerms":[

   ],
   "randomSeed":""
}

Request 2

Search for all entities of type person.

...

Noprint
Code Block
titleJSON
linenumberstrue
languagejs
collapsetrue
 {
   "numberOfResults":127746,
   "results":[
      {
         "name":"single",
         "docs":[
            {
               "id":"http://d-nb.info/gnd/116901128",
               "dateOfBirth":"5. März 1871",
               "dateOfDeath":"2. August 1943",
               "placeOfBirth":[
                  "Schornbach"
               ],
               "placeOfDeath":[
                  "Vaihingen an der Enz"
               ],
               "preferredName":"Karl Grunsky",
               "variantName":[
                  "Karl Wilhelm Siegfried Grunsky"
               ],
               "professionOrOccupation":[
                  "Musikschriftsteller"
               ],
               "count":14,
               "type":"person"
            },

            ...

         ],
         "numberOfDocs":1000
      }
   ],
   "facets":[
      {
         "facetValues":[

         ],
         "numberOfFacets":0,
         "field":"person_name_fct"
      },
      {
         "facetValues":[

         ],
         "numberOfFacets":0,
         "field":"person_place_fct"
      },
      {
         "facetValues":[

         ],
         "numberOfFacets":0,
         "field":"person_gender_fct"
      },
      {
         "facetValues":[

         ],
         "numberOfFacets":0,
         "field":"person_occupation_fct"
      }
   ],
   "correctedQuery":"",
   "highlightedTerms":[

   ],
   "randomSeed":""
}

Request 3

Search for the entity with the identifier http://d-nb.info/gnd/118540238.

Code Block
languagetext
GET /entities?query=id:"http://d-nb.info/gnd/118540238" HTTP/1.1
Host: api.deutsche-digitale-bibliothek.de
Accept: application/json
Authorization: OAuth oauth_consumer_key="abcdefgh12345678"

Response

 

Noprint
Code Block
titleJSON
linenumberstrue
languagejs
collapsetrue

Request 4

Search for all entities which contain the term frank in any field and value Bauingenieur in the facet person_occupation_fct.

Code Block
languagetext
GET /entities?query=frank&facet=person_occupation_fct&person_occupation_fct=BauingenieurNaturwissenschaftler HTTP/1.1
Host: api.deutsche-digitale-bibliothek.de
Accept: application/json
Authorization: OAuth oauth_consumer_key="abcdefgh12345678"

...

Noprint
Code Block
titleJSON
linenumberstrue
languagejs
collapsetrue
 {
   "numberOfResults":2,
   "results":[
      {
         "name":"single",
         "docs":[
            {
               "id":"http://d-nb.info/gnd/1023901528",
               "dateOfBirth":"1969",
               "placeOfBirth":[
                  "Enkenbach-Alsenborn"
               ],
               "preferredName":"Frank Schmidt",
               "variantName":[

               ],
               "professionOrOccupation":[
                  "Naturwissenschaftler",
                  "Studienrat"
               ],
               "count":1,
               "type":"person"
            },
            {
               "id":"http://d-nb.info/gnd/104115300",
               "dateOfBirth":"1648",
               "dateOfDeath":"1728",
               "preferredName":"Johann Francke",
               "variantName":[
                  "Johannes Francke",
                  "Johannes Francus",
                  "Joannes Francus",
                  "Johann Franco",
                  "Johann Franke",
                  "Johann Frank"
               ],
               "professionOrOccupation":[
                  "Arzt",
                  "Naturwissenschaftler"
               ],
               "count":14,
               "type":"person"
            }
         ],
         "numberOfDocs":2
      }
   ],
   "facets":[
      {
         "facetValues":[

         ],
         "numberOfFacets":0,
         "field":"person_name_fct"
      },
      {
         "facetValues":[

         ],
         "numberOfFacets":0,
         "field":"person_place_fct"
      },
      {
         "facetValues":[

         ],
         "numberOfFacets":0,
         "field":"person_gender_fct"
      },
      {
         "facetValues":[
            {
               "count":2,
               "value":"Naturwissenschaftler"
            },
            {
               "count":1,
               "value":"Arzt"
            },
            {
               "count":1,
               "value":"Studienrat"
            }
         ],
         "numberOfFacets":3,
         "field":"person_occupation_fct"
      }
   ],
   "correctedQuery":"",
   "highlightedTerms":[

   ],
   "randomSeed":""
}

 

 

 

Noprint
Section

Back To Top