With the help of the Application Programming Interface (API), you can query this web service automatically via URL parameters (see below). The results can be used and distributed under the terms of the Creative Commons License CC-BY 4.0
The correspSearch API (TEI-XML output format) is available in the stable version 1.0.
Base URL: http://correspSearch.bbaw.de/api/v1/tei-xml.xql
The correspondence metadata are provided in TEI-XML format. The TEI encoding is generally compliant (apart from two differences) to the Correspondence Metadata Interchange (CMI) format, a highly reduced and restricted subset of the TEI Guidelines. See here for more information about the CMI format. The correspSearch API aggregates letter metadata from different sources which entails two necessary exceptions from the CMI format:
Base URL: http://correspSearch.bbaw.de/api/v1/tei-json.xql
The results are provided as TEI data which come in a JSON format. For that purpose the TEI-XML data (see preceding section) are serialized with the help of the "exist-db JSON serializer". For more information about this serialization see the respective Blog post in the eXist-db blog. Due to the fact that the CMI format contains hardly any "mixed content" elements (i.e. XML elements with text and elements as children), the TEI-JSON output is highly correspondent to the TEI-XML output.
Besides the TEI-API the web service correspSearch offers the possibility to create BEACON files (with the same parameters) for every Authority Controlled Files (e.g. VIAF). Thus it is possible to link to all letters from or to a specific person in correspSearch automatically. With every single link the end user will get to the corresponding search result in correspSearch.
|Authority File||Base URL|
Example query of all correspondents who have a GND identifier: http://correspSearch.bbaw.de/api/v1/gnd-beacon.xql?correspondent=all
To query the BEACON interface you can use all URL parameters as described below. This, for instance, enables queries to output only Authority Controlled IDs of those persons, who have sent or received letters, postcards etc. in a specific period.
Please note that the BEACON interface will only return the Authority File IDs of the correspondents as definded by the BEACON format. To retrieve the full correspondence metadata please use the TEI-XML or TEI-JSON interface as described above.
Base URL: http://correspSearch.bbaw.de/api/v1/csv.xql
The correspondence metadata are outputted in the CSV format. The CSV file uses semicolons (;) as dividers and quotes (") as text delimiters. At the end of the CSV file the data publishers are mentioned due to the CC-BY 4.0 license. The CSV interface is currently dedicated for the individual re-use of search results on your own computer. The interface uses (among others) a modified version of the XSLT "cmi2csv", developed by Klaus Rettinghaus (SAW Leipzig).
Please note that the table format isn't standardized yet and will subject to further developments. For machine-readable requests please use the TEI-XML or TEI-JSON interface as described above.
The data provided via the TEI-XML or the TEI-JSON API is available for subsequent use under the terms of the Creative Commons license CC-BY 4.0.
|correspondent||Searches the database for the given correspondent regardless of his or her role (i.e. as sender or recipient).||Unabridged persistent URL from one of the following sets of
It is possible to select more than one person by using the parameter several times.
If the search is not restricted to a specific person, the value is set to all.
|sender||Like correspondent but limited to the role as sender||Like correspondent||?sender=http://d-nb.info/gnd/118540238|
|addressee||Like correspondent but limited to the role as recipient||Like correspondent||?addressee=http://d-nb.info/gnd/118540238|
|startdate||Start date of the time period covered by the query||Dates in machine readable form. Possible formats are: YYYY-MM-DD, YYYY-MM, YYYY. Note, that for processing reasons the latter two formats will be mapped to a specific date (i.e. first day of a month/year). Dates may be provided in text form, as well. These dates are then automatically mapped to an ISO-date by means of the web service PDR-WS Dates. Up till now, the PDR-WS Dates web service processes German and Italian dates; a recognizer for English dates is currently under development.||?correspondent=all&startdate=1800-03-01|
|enddate||End date of the time period covered by the query||Like startdate, but, analogically, ambiguous dates will be mapped automatically to the last day of a month or year, respectively.||?correspondent=all&enddate=1800-03-01|
|place||Location where the letter was created or received.||Requires an ID number from geonames.org as unabridged URL.||?correspondent=all&place=http://www.geonames.org/2879139|
|placeSender||Location where the letter was created.||Like place||?correspondent=all&placeSender=http://www.geonames.org/2879139|
|placeAddressee||Location where the letter was received.||Like place||?correspondent=all&placeAddressee=http://www.geonames.org/2879139|
|available||Availability of the published letter: online or printed.||Possible parameters are online, print, [empty]. In case the parameter is empty or not set at all, letters published both in print or online will be selected.||?correspondent=all&available=online|
|strictDate||Strict date search: Only those letters are retrieved, which were created completely within the indicated date span. This search is opposed to the default search which also retrieves letters created only partially within the searched date span.||false (Standard), true||?correspondent=all&startdate=1800-03-01&enddate=1804-12-31&strictDate=true|