From 8d1b92c1e05136b7a1e1ab06800953e3fd48bb39 Mon Sep 17 00:00:00 2001 From: Michelle Weidling Date: Mon, 11 Apr 2022 07:28:31 +0200 Subject: [PATCH 1/4] fix: links to examples --- content/page/specs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/page/specs.md b/content/page/specs.md index 19ea833..175a00c 100644 --- a/content/page/specs.md +++ b/content/page/specs.md @@ -285,9 +285,9 @@ An [JSON Schema](https://json-schema.org/) specification of the TextAPI can be f You can find examples in our git repository: -- [collection.json](schema(sample/collection.json) [git](https://gitlab.gwdg.de/subugoe/emo/text-api/-/tree/main/schema/sample/collection.json) -- [manifest.json](schema(sample/manifest.json) [git](https://gitlab.gwdg.de/subugoe/emo/text-api/-/tree/main/schema/sample/manifest.json) -- [item.json](schema(sample/item.json) [git](https://gitlab.gwdg.de/subugoe/emo/text-api/-/tree/main/schema/sample/item.json) +- [collection.json](https://gitlab.gwdg.de/subugoe/emo/text-api/-/tree/main/schema/sample/collection.json) +- [manifest.json](https://gitlab.gwdg.de/subugoe/emo/text-api/-/tree/main/schema/sample/manifest.json) +- [item.json](https://gitlab.gwdg.de/subugoe/emo/text-api/-/tree/main/schema/sample/item.json) ## Todos -- GitLab From 93f80deaef8aa0e708014c5b84933c01a1e88584 Mon Sep 17 00:00:00 2001 From: Michelle Weidling Date: Mon, 11 Apr 2022 10:08:41 +0200 Subject: [PATCH 2/4] feat: add context jsonlds --- jsonld/actor.jsonld | 7 +++++++ jsonld/collection.jsonld | 13 +++++++++++++ jsonld/content.jsonld | 7 +++++++ jsonld/idref.jsonld | 6 ++++++ jsonld/image.jsonld | 8 ++++++++ jsonld/item.jsonld | 15 +++++++++++++++ jsonld/manifest.jsonld | 16 ++++++++++++++++ jsonld/repository.jsonld | 7 +++++++ jsonld/sequence.jsonld | 6 ++++++ jsonld/support.jsonld | 7 +++++++ jsonld/title.jsonld | 6 ++++++ 11 files changed, 98 insertions(+) create mode 100644 jsonld/actor.jsonld create mode 100644 jsonld/collection.jsonld create mode 100644 jsonld/content.jsonld create mode 100644 jsonld/idref.jsonld create mode 100644 jsonld/image.jsonld create mode 100644 jsonld/item.jsonld create mode 100644 jsonld/manifest.jsonld create mode 100644 jsonld/repository.jsonld create mode 100644 jsonld/sequence.jsonld create mode 100644 jsonld/support.jsonld create mode 100644 jsonld/title.jsonld diff --git a/jsonld/actor.jsonld b/jsonld/actor.jsonld new file mode 100644 index 0000000..a4f656f --- /dev/null +++ b/jsonld/actor.jsonld @@ -0,0 +1,7 @@ +{ + "@context": + { + "role": "https://schema.org/roleName", + "name": "https://schema.org/name" + } +} \ No newline at end of file diff --git a/jsonld/collection.jsonld b/jsonld/collection.jsonld new file mode 100644 index 0000000..1ddb2f1 --- /dev/null +++ b/jsonld/collection.jsonld @@ -0,0 +1,13 @@ +{ + "@context": + { + "textapi": "https://schema.org/version", + "title": "http://purl.org/dc/terms/title", + "collector": "https://schema.org/Person", + "description": + { + "@id": "http://purl.org/dc/terms/description", + "@type": "xsd:string" + } + } +} \ No newline at end of file diff --git a/jsonld/content.jsonld b/jsonld/content.jsonld new file mode 100644 index 0000000..9c18f1f --- /dev/null +++ b/jsonld/content.jsonld @@ -0,0 +1,7 @@ +{ + "@context": + { + "url": "https://schema.org/url", + "type": "https://schema.org/fileFormat" + } +} \ No newline at end of file diff --git a/jsonld/idref.jsonld b/jsonld/idref.jsonld new file mode 100644 index 0000000..ff1a0bc --- /dev/null +++ b/jsonld/idref.jsonld @@ -0,0 +1,6 @@ +{ + "@context": + { + "type": "https://schema.org/name" + } +} \ No newline at end of file diff --git a/jsonld/image.jsonld b/jsonld/image.jsonld new file mode 100644 index 0000000..ed1da8f --- /dev/null +++ b/jsonld/image.jsonld @@ -0,0 +1,8 @@ +{ + "@context": + { + "id": "https:schema.org/url", + "manifest": "https:schema.org/url", + "license": "http://purl.org/dc/elements/1.1/rights" + } +} \ No newline at end of file diff --git a/jsonld/item.jsonld b/jsonld/item.jsonld new file mode 100644 index 0000000..77d2cf6 --- /dev/null +++ b/jsonld/item.jsonld @@ -0,0 +1,15 @@ +{ + "@context": + { + "textapi": "https://schema.org/version", + "title": "http://purl.org/dc/terms/title", + "lang": "https://schema.org/language", + "langAlt": "https://schema.org/language", + "description": + { + "@id": "http://purl.org/dc/terms/description", + "@type": "xsd:string" + }, + "image": "https://schema.org/ImageObject" + } +} \ No newline at end of file diff --git a/jsonld/manifest.jsonld b/jsonld/manifest.jsonld new file mode 100644 index 0000000..26d718c --- /dev/null +++ b/jsonld/manifest.jsonld @@ -0,0 +1,16 @@ +{ + "@context": + { + "textapi": "https://schema.org/version", + "id": "https://schema.org/url", + "label": "https://schema.org/name", + "actor": "https://schema.org/Person", + "image": "https://schema.org/ImageObject", + "license": "http://purl.org/dc/elements/1.1/rights", + "description": + { + "@id": "http://purl.org/dc/terms/description", + "@type": "xsd:string" + } + } +} \ No newline at end of file diff --git a/jsonld/repository.jsonld b/jsonld/repository.jsonld new file mode 100644 index 0000000..f0a690a --- /dev/null +++ b/jsonld/repository.jsonld @@ -0,0 +1,7 @@ +{ + "@context": + { + "label": "https://schema.org/name", + "url": "https://schema.org/url" + } +} \ No newline at end of file diff --git a/jsonld/sequence.jsonld b/jsonld/sequence.jsonld new file mode 100644 index 0000000..fd7e99a --- /dev/null +++ b/jsonld/sequence.jsonld @@ -0,0 +1,6 @@ +{ + "@context": + { + "id": "https://schema.org/url" + } +} \ No newline at end of file diff --git a/jsonld/support.jsonld b/jsonld/support.jsonld new file mode 100644 index 0000000..062558e --- /dev/null +++ b/jsonld/support.jsonld @@ -0,0 +1,7 @@ +{ + "@context": + { + "mime": "https://schema.org/fileFormat", + "url": "https://schema.org/url" + } +} \ No newline at end of file diff --git a/jsonld/title.jsonld b/jsonld/title.jsonld new file mode 100644 index 0000000..a838f2b --- /dev/null +++ b/jsonld/title.jsonld @@ -0,0 +1,6 @@ +{ + "@context": + { + "title": "https://schema.org/name" + } +} \ No newline at end of file -- GitLab From 0c5b2b4386460fb41695bd2bbab16f2918dd13f2 Mon Sep 17 00:00:00 2001 From: Michelle Weidling Date: Mon, 11 Apr 2022 10:10:50 +0200 Subject: [PATCH 3/4] Revert "feat: add context jsonlds" This reverts commit 93f80deaef8aa0e708014c5b84933c01a1e88584. --- jsonld/actor.jsonld | 7 ------- jsonld/collection.jsonld | 13 ------------- jsonld/content.jsonld | 7 ------- jsonld/idref.jsonld | 6 ------ jsonld/image.jsonld | 8 -------- jsonld/item.jsonld | 15 --------------- jsonld/manifest.jsonld | 16 ---------------- jsonld/repository.jsonld | 7 ------- jsonld/sequence.jsonld | 6 ------ jsonld/support.jsonld | 7 ------- jsonld/title.jsonld | 6 ------ 11 files changed, 98 deletions(-) delete mode 100644 jsonld/actor.jsonld delete mode 100644 jsonld/collection.jsonld delete mode 100644 jsonld/content.jsonld delete mode 100644 jsonld/idref.jsonld delete mode 100644 jsonld/image.jsonld delete mode 100644 jsonld/item.jsonld delete mode 100644 jsonld/manifest.jsonld delete mode 100644 jsonld/repository.jsonld delete mode 100644 jsonld/sequence.jsonld delete mode 100644 jsonld/support.jsonld delete mode 100644 jsonld/title.jsonld diff --git a/jsonld/actor.jsonld b/jsonld/actor.jsonld deleted file mode 100644 index a4f656f..0000000 --- a/jsonld/actor.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": - { - "role": "https://schema.org/roleName", - "name": "https://schema.org/name" - } -} \ No newline at end of file diff --git a/jsonld/collection.jsonld b/jsonld/collection.jsonld deleted file mode 100644 index 1ddb2f1..0000000 --- a/jsonld/collection.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": - { - "textapi": "https://schema.org/version", - "title": "http://purl.org/dc/terms/title", - "collector": "https://schema.org/Person", - "description": - { - "@id": "http://purl.org/dc/terms/description", - "@type": "xsd:string" - } - } -} \ No newline at end of file diff --git a/jsonld/content.jsonld b/jsonld/content.jsonld deleted file mode 100644 index 9c18f1f..0000000 --- a/jsonld/content.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": - { - "url": "https://schema.org/url", - "type": "https://schema.org/fileFormat" - } -} \ No newline at end of file diff --git a/jsonld/idref.jsonld b/jsonld/idref.jsonld deleted file mode 100644 index ff1a0bc..0000000 --- a/jsonld/idref.jsonld +++ /dev/null @@ -1,6 +0,0 @@ -{ - "@context": - { - "type": "https://schema.org/name" - } -} \ No newline at end of file diff --git a/jsonld/image.jsonld b/jsonld/image.jsonld deleted file mode 100644 index ed1da8f..0000000 --- a/jsonld/image.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -{ - "@context": - { - "id": "https:schema.org/url", - "manifest": "https:schema.org/url", - "license": "http://purl.org/dc/elements/1.1/rights" - } -} \ No newline at end of file diff --git a/jsonld/item.jsonld b/jsonld/item.jsonld deleted file mode 100644 index 77d2cf6..0000000 --- a/jsonld/item.jsonld +++ /dev/null @@ -1,15 +0,0 @@ -{ - "@context": - { - "textapi": "https://schema.org/version", - "title": "http://purl.org/dc/terms/title", - "lang": "https://schema.org/language", - "langAlt": "https://schema.org/language", - "description": - { - "@id": "http://purl.org/dc/terms/description", - "@type": "xsd:string" - }, - "image": "https://schema.org/ImageObject" - } -} \ No newline at end of file diff --git a/jsonld/manifest.jsonld b/jsonld/manifest.jsonld deleted file mode 100644 index 26d718c..0000000 --- a/jsonld/manifest.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context": - { - "textapi": "https://schema.org/version", - "id": "https://schema.org/url", - "label": "https://schema.org/name", - "actor": "https://schema.org/Person", - "image": "https://schema.org/ImageObject", - "license": "http://purl.org/dc/elements/1.1/rights", - "description": - { - "@id": "http://purl.org/dc/terms/description", - "@type": "xsd:string" - } - } -} \ No newline at end of file diff --git a/jsonld/repository.jsonld b/jsonld/repository.jsonld deleted file mode 100644 index f0a690a..0000000 --- a/jsonld/repository.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": - { - "label": "https://schema.org/name", - "url": "https://schema.org/url" - } -} \ No newline at end of file diff --git a/jsonld/sequence.jsonld b/jsonld/sequence.jsonld deleted file mode 100644 index fd7e99a..0000000 --- a/jsonld/sequence.jsonld +++ /dev/null @@ -1,6 +0,0 @@ -{ - "@context": - { - "id": "https://schema.org/url" - } -} \ No newline at end of file diff --git a/jsonld/support.jsonld b/jsonld/support.jsonld deleted file mode 100644 index 062558e..0000000 --- a/jsonld/support.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": - { - "mime": "https://schema.org/fileFormat", - "url": "https://schema.org/url" - } -} \ No newline at end of file diff --git a/jsonld/title.jsonld b/jsonld/title.jsonld deleted file mode 100644 index a838f2b..0000000 --- a/jsonld/title.jsonld +++ /dev/null @@ -1,6 +0,0 @@ -{ - "@context": - { - "title": "https://schema.org/name" - } -} \ No newline at end of file -- GitLab From 94cd20aef4c40e49a91093363a9812da16c530d0 Mon Sep 17 00:00:00 2001 From: Michelle Weidling Date: Tue, 12 Apr 2022 07:25:16 +0200 Subject: [PATCH 4/4] fix: refer to the viewed version's sample data --- .scripts/archive-version.sh | 1 + content/page/specs.md | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.scripts/archive-version.sh b/.scripts/archive-version.sh index a173537..dd436e9 100755 --- a/.scripts/archive-version.sh +++ b/.scripts/archive-version.sh @@ -45,6 +45,7 @@ for file in content/archive/$1/*.md; do -r "s/\.\.\/modules/..\/modules_$1/g" \ -r "s/\.\.\/em/..\/em_$1/g" \ -r "s/\.\.\/ep/..\/ep_$1/g" \ + -r "s -/tree/main/schema/ -/blob/v$1/schema/ g" \ $file done diff --git a/content/page/specs.md b/content/page/specs.md index 175a00c..b84fdcc 100644 --- a/content/page/specs.md +++ b/content/page/specs.md @@ -285,9 +285,9 @@ An [JSON Schema](https://json-schema.org/) specification of the TextAPI can be f You can find examples in our git repository: -- [collection.json](https://gitlab.gwdg.de/subugoe/emo/text-api/-/tree/main/schema/sample/collection.json) -- [manifest.json](https://gitlab.gwdg.de/subugoe/emo/text-api/-/tree/main/schema/sample/manifest.json) -- [item.json](https://gitlab.gwdg.de/subugoe/emo/text-api/-/tree/main/schema/sample/item.json) +- [this version's collection.json on git](https://gitlab.gwdg.de/subugoe/emo/text-api/-/tree/main/schema/sample/collection.json) +- [this version's manifest.json on git](https://gitlab.gwdg.de/subugoe/emo/text-api/-/tree/main/schema/sample/manifest.json) +- [this version's item.json on git](https://gitlab.gwdg.de/subugoe/emo/text-api/-/tree/main/schema/sample/item.json) ## Todos -- GitLab