diff --git a/schemas/account.json b/schemas/account.json new file mode 100644 index 00000000..6324d44d --- /dev/null +++ b/schemas/account.json @@ -0,0 +1,8 @@ +{ + "$id": "account.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Account pages", + "description": "Accounts of the person", + "type": "string", + "format": "url" +} \ No newline at end of file diff --git a/schemas/affiliate.json b/schemas/affiliate.json new file mode 100644 index 00000000..6fba3288 --- /dev/null +++ b/schemas/affiliate.json @@ -0,0 +1,8 @@ +{ + "$id": "affiliate.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Affiliation", + "description": "Affiliated school or organisation e.g. as stutent or lecturer.", + "type": "string", + "format": "uri" +} \ No newline at end of file diff --git a/schemas/alumni.json b/schemas/alumni.json new file mode 100644 index 00000000..7a91cbd7 --- /dev/null +++ b/schemas/alumni.json @@ -0,0 +1,8 @@ +{ + "$id": "alumni.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Alumni-Organisations", + "description": "Organisation that the person is alumni of.", + "type": "string", + "format": "uri" +} \ No newline at end of file diff --git a/schemas/blog.json b/schemas/blog.json new file mode 100644 index 00000000..de3307eb --- /dev/null +++ b/schemas/blog.json @@ -0,0 +1,8 @@ +{ + "$id": "blog.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Blog", + "description": "The blog of the person", + "type": "string", + "format": "uri" +} \ No newline at end of file diff --git a/schemas/email.json b/schemas/email.json new file mode 100644 index 00000000..8d586dda --- /dev/null +++ b/schemas/email.json @@ -0,0 +1,11 @@ +{ + "$id": "email", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "E-Mail", + "description": "Email of the user", + "type": "string", + "format": "email", + "_display": { + "placeholder": "The Email of the Person" + } +} \ No newline at end of file diff --git a/schemas/id.json b/schemas/id.json new file mode 100644 index 00000000..652a5077 --- /dev/null +++ b/schemas/id.json @@ -0,0 +1,11 @@ +{ + "$id": "id.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "URL", + "description": "The URL/URI of the resource", + "type": "string", + "format": "uri", + "_display": { + "placeholder": "The URL of the resource" + } +} \ No newline at end of file diff --git a/schemas/image.json b/schemas/image.json new file mode 100644 index 00000000..1cded90d --- /dev/null +++ b/schemas/image.json @@ -0,0 +1,10 @@ +{ + "$id": "image.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Image", + "type": "string", + "format": "uri", + "_display": { + "placeholder": "A link to an image of the person" + } +} \ No newline at end of file diff --git a/schemas/name.json b/schemas/name.json new file mode 100644 index 00000000..3ac89425 --- /dev/null +++ b/schemas/name.json @@ -0,0 +1,7 @@ +{ + "$id": "name.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Name", + "description": "The name of the person", + "type": "string" +} \ No newline at end of file diff --git a/schemas/person.json b/schemas/person.json index 7333cc54..e93f730f 100644 --- a/schemas/person.json +++ b/schemas/person.json @@ -8,13 +8,14 @@ "$ref": "id.json" }, "type" : { - "$ref": "type.json" + "type": "string", + "const": "Person" }, "email" : { "$ref": "email.json" }, "alternateName" : { - "$ref": "alternateName.json" + "$ref": "name.json" }, "name" : { "$ref": "name.json" @@ -40,6 +41,9 @@ "colleague" : { "$ref": "colleague.json" }, + "affiliate" : { + "$ref": "affiliate.json" + }, "alumniOf": { "$ref": "alumniOf.json" }, diff --git a/schemas/sameAs.json b/schemas/sameAs.json new file mode 100644 index 00000000..10c0a792 --- /dev/null +++ b/schemas/sameAs.json @@ -0,0 +1,8 @@ +{ + "$id": "sameAs.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Other refrence pages", + "description": "Other refrence pages of the person", + "type": "string", + "format": "url" +} \ No newline at end of file diff --git a/schemas/telephone.json b/schemas/telephone.json new file mode 100644 index 00000000..c61ff2f7 --- /dev/null +++ b/schemas/telephone.json @@ -0,0 +1,7 @@ +{ + "$id": "telephone.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Telephone", + "description": "The telephone number of the person", + "type": "string" +} \ No newline at end of file diff --git a/schemas/worksFor.json b/schemas/worksFor.json new file mode 100644 index 00000000..e56a5c13 --- /dev/null +++ b/schemas/worksFor.json @@ -0,0 +1,8 @@ +{ + "$id": "worksFor.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Company", + "description": "The company that the person works for. Should use lobid organisation-URI.", + "type": "string", + "format": "uri" +} \ No newline at end of file