def page_rdf(request, lccn, date, edition, sequence): page = get_page(lccn, date, edition, sequence) graph = page_to_graph(page) response = HttpResponse(graph.serialize(base=_rdf_base(request), include_base=True), content_type='application/rdf+xml') return response
def title_rdf(request, lccn): title = get_object_or_404(models.Title, lccn=lccn) graph = title_to_graph(title) response = HttpResponse(graph.serialize(base=_rdf_base(request), include_base=True), content_type='application/rdf+xml') return response
def awardee_rdf(request, institution_code): awardee = get_object_or_404(models.Awardee, org_code=institution_code) graph = awardee_to_graph(awardee) response = HttpResponse(graph.serialize(base=_rdf_base(request), include_base=True), content_type='application/rdf+xml') return response
def issue_pages_rdf(request, lccn, date, edition): title, issue, page = _get_tip(lccn, date, edition) graph = issue_to_graph(issue) response = HttpResponse(graph.serialize(base=_rdf_base(request), include_base=True), content_type='application/rdf+xml') return response
def batch_rdf(request, batch_name): batch = get_object_or_404(models.Batch, name=batch_name) graph = batch_to_graph(batch) response = HttpResponse(graph.serialize(base=_rdf_base(request), include_base=True), content_type='application/rdf+xml') return response
def newspapers_rdf(request): titles = models.Title.objects.filter(has_issues=True) graph = titles_to_graph(titles) return HttpResponse(graph.serialize(base=_rdf_base(request), include_base=True), content_type='application/rdf+xml')