Package 'rdnb'

Title: R Interface to the 'Deutsche Nationalbibliothek (German National Library) API'
Description: A wrapper for the 'Deutsche Nationalbibliothek (German National Library) API', available at <https://www.dnb.de/EN/Home/home_node.html>. The German National Library is the German central archival library, collecting, archiving, bibliographically classifying all German and German-language publications, foreign publications about Germany, translations of German works, and the works of German-speaking emigrants published abroad between 1933 and 1945.
Authors: Christian Graul [aut, cre]
Maintainer: Christian Graul <[email protected]>
License: MIT + file LICENSE
Version: 0.1-6
Built: 2024-11-18 05:54:53 UTC
Source: https://github.com/chgrl/rdnb

Help Index


View changes notes.

Description

changes brings up the NEWS file of the package.

Usage

changes(pkg = "rdnb")

Arguments

pkg

Set to the default "rdnb". Other packages make no sense.

Examples

## Not run: 
changes()

## End(Not run)

Search the DNB catalogue - advanced search

Description

dnb_search exposes a search in the DNB catalogue, expressed in the DNB query language.

Usage

dnb_advanced(query, limit = 10, clean = TRUE, print = FALSE)

Arguments

query

the search query, expressed in the DNB query language; single string value.

limit

number and (optional) starting point of results returned; single integer value (number of results), vector of two integer values (number of results and first result, >=1) or "all" for a complete list of results.

clean

if TRUE (the default), the results are cleaned (see below for details).

print

if TRUE the search results are printed (default is FALSE).

Details

Cleaning of results

To harmonise the results, some clutter is deleted and abbreviations frequently used in the dnb catalogue are replaced by full words. Here is a list of all replacements:

Variable Searched Replaced by
complete dataset \u0098 [deleted]
complete dataset \u009c [deleted]
complete dataset ,, ,
complete dataset .. .
complete dataset ;; ;
year [string] [numeric]
pages S. [deleted]
pages Seiten [deleted]
pages [ [deleted]
pages ] [deleted]
publisher Verl. Verlag
publisher verl. verlag
publisher [ [deleted]
publisher ] [deleted]
edition Aufl. Auflage
edition aufl. auflage
edition Orig. Original
edition Ed. Edition
edition ed. edition
edition Ausg. Ausgabe
edition ausg. ausgabe
edition Nachdr. Nachdruck
edition Bibliogr. Bibliografie
edition [ [deleted]
edition ] [deleted]
edition [x]., [x].
price kart. Kartoniert
price Gb. Gebunden
price Spiralb. Spiralbindung
price Pb. Paperback

Value

A data.frame of results with metadata.

Examples

## Not run: 
# german books titled with 'cat' (male or female), 
# excluding titles containing dogs, since the year 2001
cats <- dnb_advanced("(tit=katze OR tit=kater NOT tit=hund) AND jhr>2000 AND mat=books AND spr=ger")

## End(Not run)

Number of records

Description

n_rec returns the number of items in a list of records returned by a DNB-search.

Usage

n_rec(dnb_obj)

Arguments

dnb_obj

the DNB-search object returned dnb_search or dnb_advanced.

Value

Number of records found.

Examples

## Not run: 
dnb.srch <- dnb_search(title="katze")
n_rec(dnb.srch)

## End(Not run)

R Interface to the Deutsche Nationalbibliothek (German National Library) API

Description

A wrapper for the Deutsche Nationalbibliothek (German National Library) API, available at https://www.dnb.de/EN/Home/home_node.html. The German National Library is the German central archival library, collecting, archiving, bibliographically classifying all German and German-language publications, foreign publications about Germany, translations of German works, and the works of German-speaking emigrants published abroad between 1933 and 1945.

Details

All bibliographic data of the German National Library are provided free of charge and can be freely re-used under "Creative Commons Zero" (CC0 1.0) terms. The metadata and online interfaces are provided with no guarantee of their being continuous, punctual, error-free or complete, or of their not infringing the rights of third parties (e.g. personal rights and copyright).

References

About the DNB: https://www.dnb.de/EN/Ueber-uns/ueberUns_node.html; about the interface: https://www.dnb.de/EN/Professionell/Metadatendienste/Datenbezug/SRU/sru_node.html