Skip to content

Commit

Permalink
Merge pull request #127 from IIIF/fix_license
Browse files Browse the repository at this point in the history
Supporting Public Domain zero
  • Loading branch information
glenrobson committed Oct 22, 2021
2 parents a8ad6e4 + b4bd5d8 commit 90197c8
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
47 changes: 47 additions & 0 deletions fixtures/3/publicdomain.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "http://localhost:4000/recipe/0008-rights/manifest.json",
"type": "Manifest",
"label": {
"en": [
"Testing public domain"
]
},
"rights": "http://creativecommons.org/publicdomain/zero/1.0/",
"items": [
{
"id": "http://localhost:4000/recipe/0008-rights/canvas/p1",
"type": "Canvas",
"height": 3024,
"width": 4032,
"items": [
{
"id": "http://localhost:4000/recipe/0008-rights/page/p1/1",
"type": "AnnotationPage",
"items": [
{
"id": "http://localhost:4000/recipe/0008-rights/annotation/p0001-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/918ecd18c2592080851777620de9bcb5-gottingen/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"height": 3024,
"width": 4032,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/918ecd18c2592080851777620de9bcb5-gottingen",
"profile": "level1",
"type": "ImageService3"
}
]
},
"target": "http://localhost:4000/recipe/0008-rights/canvas/p1"
}
]
}
]
}
]
}
2 changes: 1 addition & 1 deletion schema/iiif_3_0.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
{
"type": "string",
"format": "uri",
"pattern": "http://creativecommons.org/publicdomain/mark/.*"
"pattern": "http://creativecommons.org/publicdomain/.*"
},
{
"type": "string",
Expand Down
3 changes: 2 additions & 1 deletion tests/test_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ def test07_check_manifest3(self):
'fixtures/3/old_cc_license.json',
'fixtures/3/rightsstatement_license.json',
'fixtures/3/extension_anno.json',
'fixtures/3/multi_bodies.json'
'fixtures/3/multi_bodies.json',
'fixtures/3/publicdomain.json'
]:
with open(good, 'r') as fh:
data = fh.read()
Expand Down

0 comments on commit 90197c8

Please sign in to comment.