diff --git a/fields/context.json b/fields/context.json new file mode 100644 index 0000000..752dc87 --- /dev/null +++ b/fields/context.json @@ -0,0 +1,17 @@ +{ + "name": "JSON Schema for @context using schema.org as base", + "description": "schema.org is @base namespace", + "type": "object", + "additionalProperties": true, + "required": [ + "@vocab" + ], + "properties": { + "@vocab": { + "type": "string", + "format": "regex", + "pattern": "https://schema.org/", + "description": "required: schema.org is base ns" + } + } +} \ No newline at end of file diff --git a/schemas/karte_von_morgen-v1.0.0.json b/schemas/karte_von_morgen-v1.0.0.json index aa16b46..a6a57a4 100644 --- a/schemas/karte_von_morgen-v1.0.0.json +++ b/schemas/karte_von_morgen-v1.0.0.json @@ -5,6 +5,16 @@ "description": "Entries (Initiatives, Organisations, Companies) from Kartevonmorgen.org", "type": "object", "properties": { + "@context": { + "$ref": "../fields/context.json" + }, + "@type": { + "name": "The resource type", + "type": "string", + "description": "required: Organization", + "format": "regex", + "pattern": "Organization" + }, "linked_schemas": { "$ref": "../fields/linked_schemas.json" }, @@ -64,6 +74,8 @@ "schema": { "name": "karte_von_morgen-v1.0.0", "purpose": "Entries (Initiatives, Organisations, Companies) from Kartevonmorgen.org" - } + }, + "@type": "Organization", + "@context": "https://ns.murmurations.network/contexts/karte_von_morgen-v1.0.0.jsonld" } }