473
edits
(Update package: OSW Core) |
(Update package: OSW Core) |
||
jsonschema | |||
---|---|---|---|
Line 5: | Line 5: | ||
"subclass_of": { | "subclass_of": { | ||
"@id": "rdf:subclass_of", | "@id": "rdf:subclass_of", | ||
"@type": "@id" | |||
}, | |||
"metaclass": { | |||
"@id": "Property:HasMetaCategory", | |||
"@type": "@id" | |||
}, | |||
"type": { | |||
"@id": "Property:HasType", | |||
"@type": "@id" | "@type": "@id" | ||
}, | }, | ||
Line 23: | Line 31: | ||
], | ], | ||
"required": [ | "required": [ | ||
"subclass_of" | "subclass_of", | ||
"type" | |||
], | ], | ||
"properties": { | "properties": { | ||
"metaclass": { | |||
"title": "Metaclasses/-categories", | |||
"title*": { | |||
"de": "Metaklassen/-kategorien" | |||
}, | |||
"type": "array", | |||
"format": "table", | |||
"items": { | |||
"title": "Metaclass", | |||
"title*": { | |||
"de": "Metaklasse" | |||
}, | |||
"type": "string", | |||
"format": "autocomplete", | |||
"query": "[[IsA::Category:Category]] |?Display_title_of=label", | |||
"previewWikiTextTemplate": "[[:{{result.fulltext}}]]", | |||
"labelTemplate": "{{result.printouts.label.[0]}}" | |||
} | |||
}, | |||
"type": { | |||
"title": "Types/Categories", | |||
"title*": { | |||
"de": "Typen/Kategorien" | |||
}, | |||
"type": "array", | |||
"format": "table", | |||
"items": { | |||
"title": "Type", | |||
"title*": { | |||
"de": "Type" | |||
}, | |||
"type": "string", | |||
"format": "autocomplete", | |||
"query": "[[IsA::Category:Category]] |?Display_title_of=label", | |||
"previewWikiTextTemplate": "[[:{{result.fulltext}}]]", | |||
"labelTemplate": "{{result.printouts.label.[0]}}" | |||
}, | |||
"minLength": 1, | |||
"default": [ | |||
"Category:Category" | |||
], | |||
"options": { | |||
"hidden": true | |||
} | |||
}, | |||
"subclass_of": { | "subclass_of": { | ||
"title": "Supercategories", | "title": "Supercategories", | ||
schema_template | |||
Line 1: | Line 1: | ||
{ | |||
"@context": [ | |||
{{#each subclass_of}} | |||
"/wiki/{{{.}}}?action=raw\u0026slot=jsonschema"{{#unless @last}},{{/unless}} | |||
{{/each}} | |||
], | |||
"allOf": [ | |||
{ | |||
{{#each subclass_of}} | |||
"$ref": "/wiki/{{{.}}}?action=raw\u0026slot=jsonschema"{{#unless @last}},{{/unless}} | |||
{{/each}} | |||
} | |||
], | |||
"type": "object", | |||
"uuid": "{{{uuid}}}", | |||
"title": "{{{name}}}", | |||
"title*": { | |||
{{#each label}} | |||
"{{{lang}}}": "{{{text}}}"{{#unless @last}},{{/unless}} | |||
{{/each}} | |||
}, | |||
"description": "{{{description.[0].text}}}", | |||
"description*": { | |||
{{#each description}} | |||
"{{{lang}}}": "{{{text}}}"{{#unless @last}},{{/unless}} | |||
{{/each}} | |||
} | |||
} |
edits