Services

cerl module

librair.services.cerl.address(idn, schema, style)

get url of entity specified by idn in given schema and style

librair.services.cerl.request(idn, schema='rdfxml', style=None)

request data of entity specified by idn in given schema and (optional) style

SCHEMA STYLE RETURN TYPE
rdfxml None lxml.etree.Element
json None dict
json jsonld dict
txt ttl str
txt internal str
librair.services.cerl.store(idn, schema='json', style=None, path='.')
request data of entity specified by idn in given schema and (optional) style
afterwards save it to directory at path

dnb module

librair.services.dnb.address(idn, schema)

get url of entity specified by idn in given schema

librair.services.dnb.request(idn, schema='lds')

request data of entity specified by idn in given schema

SCHEMA RETURN TYPE
bibframe str
lds str
marcxml lxml.etree.Element

to do:

  • handle lds (RDF Turtle)
  • handle bibframe
librair.services.dnb.store(idn, schema='lds', path='.')
request data of entity specified by idn in given schema
afterwards save it to directory at path

entityfacts module

librair.services.entityfacts.address(idn)

get url of entity specified by idn

librair.services.entityfacts.request(idn)

request data of entity specified by idn

librair.services.entityfacts.store(idn, path='.')
request data of entity specified by idn
afterwards save it to directory at path

gnd module

librair.services.gnd.address(idn, schema)

get url of entity specified by idn in given schema

librair.services.gnd.request(idn, schema='lds')

request data of entity specified by idn in given schema

SCHEMA RETURN TYPE
lds str
marcxml lxml.etree.Element

to do:

  • handle lds (RDF Turtle)
librair.services.gnd.store(idn, schema='lds', path='.')
request data of entity specified by idn in given schema
afterwards save it to directory at path

kalliope module

librair.services.kalliope.address(idn)

get url of entity specified by idn

librair.services.kalliope.request(idn)

request data of entity specified by idn

librair.services.kalliope.store(idn, path='.')
request data of entity specified by idn
afterwards save it to file at path

lobid module

librair.services.lobid.gnd_address(idn)

get url of entity specified by idn

librair.services.lobid.gnd_request(idn)

request data of entity specified by idn

librair.services.lobid.gnd_store(idn, path='.')
request data of entity specified by idn
afterwards save it to directory at path

oclc module

librair.services.oclc.address(idn, schema)

get url of entity specified by idn in given schema

librair.services.oclc.request(idn, schema='jsonld')

request data of entity specified by idn in given schema

SCHEMA RETURN TYPE
nt str
rdf lxml.etree.Element
ttl str
jsonld dict
librair.services.oclc.store(idn, schema='rdf', path='.')
request data of entity specified by idn in given schema
afterwards save it to file at path

seealso module

librair.services.seealso.address(idn, schema)

get url of entity specified by idn in given schema

librair.services.seealso.request(idn, schema='seealso')

request data of entity specified by idn in given schema

SCHEMA RETURN TYPE
seealso json
sources str (html)
redirect str (html)
opensearchdescription lxml.etree.Element
librair.services.seealso.store(idn, schema='rdf', path='.')
request data of entity specified by idn in given schema
afterwards save it to directory at path

viaf module

librair.services.viaf.address(idn, schema)

get url of entity specified by idn in given schema

librair.services.viaf.request(idn, schema='rdf')

request data of entity specified by idn in given schema

SCHEMA RETURN TYPE
links dict
marc21 lxml.etree.Element
rdf lxml.etree.Element
viaf lxml.etree.Element
librair.services.viaf.store(idn, schema='rdf', path='.')
request data of entity specified by idn in given schema
afterwards save it to directory at path

zdb module

librair.services.zdb.address(idn, schema)

get url of entity specified by idn in given schema

librair.services.zdb.request(idn, schema='jsonld')

request data of entity specified by idn in given schema

SCHEMA RETURN TYPE
html str
rdf lxml.etree.Element
ttl str
jsonld dict
librair.services.zdb.store(idn, schema='jsonld', path='.')
request data of entity specified by idn in given schema
afterwards save it to directory at path