Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update lists.json (DEV-851) #190

Merged
merged 6 commits into from May 3, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion MANIFEST.in
@@ -1,6 +1,5 @@
include README.md
include knora/dsplib/schemas/ontology.json
include knora/dsplib/schemas/lists.json
include knora/dsplib/schemas/lists-only.json
include knora/dsplib/schemas/resources-only.json
include knora/dsplib/schemas/properties-only.json
Expand Down
2 changes: 1 addition & 1 deletion knora/dsp_tools.py
Expand Up @@ -58,7 +58,7 @@ def program(user_args: list[str]) -> None:
parser_create.add_argument('-V', '--validate', action='store_true',
help='Do only validation of JSON, no upload of the '
'ontology')
parser_create.add_argument('-L', '--listfile', type=str, default='lists.json',
parser_create.add_argument('-L', '--listfile', type=str, default='lists-only.json',
help='Name of list node informationfile')
parser_create.add_argument('-l', '--lists', action='store_true', help='Upload only the list(s)')
parser_create.add_argument('-v', '--verbose', action='store_true', help=verbose_text)
Expand Down
9 changes: 6 additions & 3 deletions knora/dsplib/schemas/lists-only.json
@@ -1,10 +1,10 @@
{
"$schema": "https://json-schema.org/draft-07/schema",
"$id": "https://dasch.swiss/schema/list-only.json",
"$id": "https://dasch.swiss/schema/lists.json",
"title": "JSON schema for DSP lists",
"description": "JSON schema for the lists section used in DSP ontologies",
"definitions": {
"label": {
"langstring": {
"type": "object",
"patternProperties": {
"^(en|de|fr|it)": {
Expand All @@ -13,6 +13,9 @@
},
"additionalProperties": false
},
"label": {
"$ref": "#/definitions/langstring"
},
"comment": {
"type": "object",
"patternProperties": {
Expand Down Expand Up @@ -124,7 +127,7 @@
},
"required": [
"name",
"nodes"
"labels"
],
"additionalProperties": false
}
132 changes: 0 additions & 132 deletions knora/dsplib/schemas/lists.json

This file was deleted.