$ curl -X GET \
http://127.0.0.1/JSONkeeper/
HTTP/1.0 200 OK
{
"message": "Storing 7 JSON documents. Serving an Activity Stream Collection with 3 CollectionPages at http://127.0.0.1/JSONkeeper/as/collection.json"
}
# server socket | |
bind = "localhost:8000" | |
# create pid file to avoid multiple instances | |
pidfile = "/tmp/gunicorn.pid" | |
# set script name to allow deployment in subdirectory | |
raw_env = "SCRIPT_NAME=/api/curation" | |
# paths to logging files |
{ | |
"query": "face", | |
"total": 50, | |
"start": 0, | |
"limit": 20, | |
"results": [ | |
{ | |
"manifestUrl": "https://manifests.britishart.yale.edu/manifest/474", | |
"manifestLabel": "Sir Peter Lely, 1618\u20131680, Dutch, active in Britain (from 1643), Sir Ralph Bankes, ca. 1660, Oil on canvas, Yale Center for British Art, B1978.22, Paintings and Sculpture", | |
"canvas": "https://images.britishart.yale.edu/iiif/c966f7e6-2e46-41bb-99a1-2ac585979e48/info.json", |
{ | |
"query": "face", | |
"total": 4, | |
"start": 0, | |
"limit": null, | |
"results": [ | |
{ | |
"manifestUrl": "https://data.getty.edu/museum/api/iiif/287186/manifest.json", | |
"manifestLabel": "Virgin and Child with Saint John the Baptist and Mary Magdalene (about 1535\u20131540), Parmigianino (Francesco Mazzola) (Italian, 1503 - 1540)", | |
"canvas": "https://data.getty.edu/museum/api/iiif/615796/info.json", |
{ | |
"query": "face", | |
"source": "curation", | |
"total": 2, | |
"start": 0, | |
"limit": null, | |
"results": [ | |
{ | |
"curationUrl": "http://localhost:5000/api/fbdb1160-b0b4-4e65-8bb7-891146c871f1", | |
"curationLabel": "Curating list", |
{ | |
"@context": [ | |
"http://iiif.io/api/presentation/2/context.json", | |
"http://codh.rois.ac.jp/iiif/curation/1/context.json" | |
], | |
"@type": "cr:Curation", | |
"@id": "http://localhost/JSONkeeper/api/5bda3e60-e062-4017-a012-7a8504ac50df", | |
"label": "Curating list", | |
"metadata": [ | |
{ |
import datetime | |
import dateutil.parser | |
import json | |
import re | |
import requests | |
import sys | |
from collections import OrderedDict | |
from sqlalchemy import (Column, Table, Integer, ForeignKey, UniqueConstraint, | |
String, UnicodeText, DateTime, create_engine, desc) | |
from sqlalchemy.orm import sessionmaker, relationship |
{ | |
"@context": "http://iiif.io/api/presentation/2/context.json", | |
"within": { | |
"@id": "https://manifests.britishart.yale.edu/manifest/669", | |
"@type": "sc:Manifest" | |
}, | |
"@id": "https://manifests.britishart.yale.edu/canvas/ba-obj-669-0001-pub#xywh=1316,1643,248,268", | |
"@type": "sc:Canvas", | |
"metadata": [ | |
{ |
{ | |
"facets": [ | |
{ | |
"label": "tag", | |
"value": [ | |
{ | |
"label": "Relief", | |
"value": 222, | |
"agent": "machine" | |
}, |
[shared] | |
db_uri = sqlite:////home/tarek/repos/canvasindexer/canvasindexer/index.db | |
[crawler] | |
as_sources = http://localhost/JSONkeeper/as/collection.json | |
[api] | |
facet_label_sort_top = テーマ,性別,向き,制作年,所蔵,原典,原典ID | |
facet_label_sort_bottom = tag | |
facet_value_sort_frequency = テーマ,性別,身分,向き,所蔵,原典 | |
facet_value_sort_alphanum = 制作年,原典ID | |
[facet_value_sort_custom_1] |