def bib_instance(instanceid): inst = model.get_resource('http://urn.fi/URN:NBN:fi:bib:me:I%s' % instanceid) if not inst.exists(): abort(404) work = inst.get_work() return redirect("%s#I%s" % (work.url(), instanceid))
def person_resource(personid): res = model.get_resource('http://urn.fi/URN:NBN:fi:au:pn:%s' % personid) return make_resource_response(res)
def bib_collection(collectionid): res = model.get_resource('http://urn.fi/URN:NBN:fi:bib:me:C%s' % collectionid) return make_resource_response(res)
def bib_resource_format(resourceid, fmt): res = model.get_resource('http://urn.fi/URN:NBN:fi:bib:me:%s' % resourceid) return make_format_response(res, fmt)
def concept_resource_format(conceptid, fmt): res = model.get_resource('http://www.yso.fi/onto/yso/%s' % conceptid) return make_format_response(res, fmt)
def yso_places_format(fmt): res = model.get_resource('http://www.yso.fi/onto/yso/places') return make_format_response(res, fmt)
def yso_places(): res = model.get_resource('http://www.yso.fi/onto/yso/places') return make_resource_response(res)
def organization_resource_format(organizationid, fmt): res = model.get_resource('http://urn.fi/URN:NBN:fi:au:cn:%s' % organizationid) return make_format_response(res, fmt)
def organization(): res = model.get_resource('http://urn.fi/URN:NBN:fi:au:cn:') return make_resource_response(res)