Skip to content

Commit

Permalink
Merge pull request #3 from digirati-co-uk/feature/typesense
Browse files Browse the repository at this point in the history
Typesense
  • Loading branch information
stephenwf authored Feb 15, 2024
2 parents c4893fe + 85bb17b commit 3218663
Show file tree
Hide file tree
Showing 20 changed files with 756 additions and 530 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ build/hss.js
build/client.d.ts
build/client.js
build
typesense-data
24 changes: 17 additions & 7 deletions .iiifrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,20 @@ run:
- manifest-sqlite
- metadata-analysis
- folder-collections
- typesense-manifests

generators:
sts-shuttles:
type: nasa-generator
config:
label: STS Shuttles
query: "sts orbit"
query: 'sts orbit'
maxResults: 50
curiosity:
type: nasa-generator
config:
label: Curiosity
query: "curiosity rover"
query: 'curiosity rover'
maxResults: 10

stores:
Expand All @@ -35,14 +36,14 @@ stores:
- content/objects/**/*
- content/manifests/*
- content/topics/**/*
pattern: "**/*.json"
pattern: '**/*.json'
destination: manifests
base: ./content

delft:
type: iiif-json
path: ./delft
pattern: "**/*.json"
pattern: '**/*.json'
run:
- delft-labels
- extract-thumbnail
Expand All @@ -52,7 +53,10 @@ stores:
extract-topics:
commaSeparated: ['material']
topicTypes:
material: [ 'Materiaal', 'Material' ]
material: ['Materiaal', 'Material']
date: ['Date', 'Datering']
Maker: ['Maker']
Publisher: ['Publisher']

bridges:
type: iiif-remote
Expand All @@ -73,7 +77,6 @@ stores:
- extract-thumbnail
- manifest-sqlite


hutton:
type: iiif-remote
url: https://view.nls.uk/collections/7446/74466682.json
Expand All @@ -96,6 +99,14 @@ stores:
technique: ['Type/technique']
subjects: ['Subjects']

wellcomeBookVolume:
type: iiif-remote
url: https://iiif.wellcomecollection.org/presentation/b18031511_0001
# url: https://iiif.wellcomecollection.org/presentation/b18031511
slugTemplates:
- wellcome-collection
- wellcome-manifest

config:
extract-label-string:
language: en
Expand Down Expand Up @@ -138,4 +149,3 @@ slugs:
addedPrefix: nls-
examples:
- https://view.nls.uk/collections/7446/74466699.json

File renamed without changes.
Binary file modified bun.lockb
Binary file not shown.
16 changes: 16 additions & 0 deletions docker-compose.typesense.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3.4'
services:
typesense:
image: typesense/typesense:0.25.2
restart: on-failure
ports:
- '8108:8108'
volumes:
- ./typesense-data:/data
command: '--data-dir /data --api-key=xyz --enable-cors'

typesense-dashboard:
image: ghcr.io/bfritscher/typesense-dashboard:latest
restart: on-failure
ports:
- '8109:80'
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,29 +58,31 @@
"@types/object-hash": "^3.0.4",
"bun-plugin-yaml": "^0.0.1",
"bun-types": "^1.0.1",
"keyword-extractor": "^0.0.28",
"commander": "^11.0.0",
"detect-python-interpreter": "^1.0.0",
"object-hash": "^3.0.0",
"prettier": "^3.0.3",
"prettier": "^3.2.5",
"threads": "^1.7.0",
"typescript": "^5.2.2",
"tslib": "^2.6.2",
"@atlas-viewer/iiif-image-api": "^2.1.1",
"@iiif/presentation-3": "^2.1.3",
"@iiif/helpers": "https://pkg.csb.dev/IIIF-Commons/iiif-helpers/commit/c7c01e5f/@iiif/helpers/_pkg.tgz",
"@iiif/helpers": "^1.0.6",
"@types/chalk": "^2.2.0",
"chalk": "^5.3.0",
"cosmiconfig": "^8.3.4",
"fs-extra": "^11.1.1",
"glob-watcher": "^6.0.0",
"iiif-builder": "^1.0.6",
"@iiif/builder": "^2.0.1",
"js-yaml": "^4.1.0",
"micromatch": "^4.0.5",
"mkdirp": "^3.0.1",
"node-fetch": "^3.3.2",
"path-to-regexp": "^6.2.1",
"pdiiif": "^0.1.9",
"translate": "^2.0.2"
"translate": "^2.0.2",
"typesense": "1.7.2"
},
"dependencies": {
"@inquirer/prompts": "^3.1.2",
Expand Down
Loading

0 comments on commit 3218663

Please sign in to comment.