From 0252b3f35e6c6e8d6d933c70ab8c242b56365dd1 Mon Sep 17 00:00:00 2001 From: Naomi Dushay Date: Fri, 29 Oct 2021 16:57:29 -0700 Subject: [PATCH] Vocab.js: add missing terms --- src/components/vocabulary/Vocab.js | 78 ++++++++++++++++++++++++++++-- 1 file changed, 74 insertions(+), 4 deletions(-) diff --git a/src/components/vocabulary/Vocab.js b/src/components/vocabulary/Vocab.js index 2ee472319..c881e7791 100644 --- a/src/components/vocabulary/Vocab.js +++ b/src/components/vocabulary/Vocab.js @@ -10,6 +10,10 @@ const vocabulary = { description: "Contact information associated with the template", url: "http://sinopia.io/vocabulary/hasAuthor", }, + hasAuthority: { + description: "An authority associated with a lookup", + url: "http://sinopia.io/vocabulary/hasAuthority", + }, hasClass: { description: "The RDF class for a property", url: "http://sinopia.io/vocabulary/hasClass", @@ -18,6 +22,18 @@ const vocabulary = { description: "Date associated with the template", url: "http://sinopia.io/vocabulary/hasDate", }, + hasDefault: { + description: "Default value(s) specific to a property", + url: "http://sinopia.io/vocabulary/hasDefault", + }, + hasLiteralAttributes: { + description: "Attributes for a literal", + url: "http://sinopia.io/vocabulary/hasLiteralAttributes", + }, + hasLookupAttributes: { + description: "Attributes for a lookup", + url: "http://sinopia.io/vocabulary/hasLookupAttributes", + }, hasPropertyAttribute: { description: "Attributes specific to a property (e.g., repeatable)", url: "http://sinopia.io/vocabulary/hasPropertyAttribute", @@ -39,15 +55,36 @@ const vocabulary = { "Comment or guiding statement intended to be presented as supplementary information in user display", url: "https://sinopia.io/vocabulary/hasRemark", }, - hasResourceAttribute: { + hasRemarkUrl: { + description: "The property's remark as a URL", + url: "http://sinopia.io/vocabulary/hasRemarkUrl", + }, + hasResourceAttributes: { description: "Attributes specific to a resource (e.g., suppressible)", - url: "http://sinopia.io/vocabulary/hasResourceAttribute", + url: "http://sinopia.io/vocabulary/hasResourceAttributes", + }, + hasResourceId: { + description: "The resource's ID", + url: "http://sinopia.io/vocabulary/hasResourceId", }, hasResourceTemplate: { description: "The template used in creating, editing, or updating a resource", url: "http://sinopia.io/vocabulary/hasResourceTemplate", }, + hasResourceTemplateId: { + description: + "The resource's Template ID, e.g., ld4p:RT:bf2:Title:AbbrTitle", + url: "http://sinopia.io/vocabulary/hasResourceTemplateId", + }, + hasUri: { + description: "URI", + url: "http://sinopia.io/vocabulary/hasUri", + }, + hasUriAttributes: { + description: "Attributes for a URI", + url: "http://sinopia.io/vocabulary/hasUriAttributes", + }, hasValidationDataType: { description: "Data Type to validate the literal, e.g. integer or dateTime", url: "http://sinopia.io/vocabulary/hasValidationDataType", @@ -56,10 +93,30 @@ const vocabulary = { description: "Regular Expression to validate a literal", url: "http://sinopia.io/vocabulary/hasValidationRegex", }, + LookupPropertyTemplate: { + description: "Class for a lookup property template", + url: "http://sinopia.io/vocabulary/LookupPropertyTemplate", + }, PropertyTemplate: { - description: "", + description: "Class for a property template", url: "http://sinopia.io/vocabulary/PropertyTemplate", }, + "propertyAttribute/immutable": { + description: "Value cannot be changed once assigned (for IDs)", + url: "http://sinopia.io/vocabulary/propertyAttribute/immutable", + }, + "propertyAttribute/ordered": { + description: "Values are ordered", + url: "http://sinopia.io/vocabulary/propertyAttribute/ordered", + }, + "propertyAttribute/repeatable": { + description: "Multiple values are allowed for the property", + url: "http://sinopia.io/vocabulary/propertyAttribute/repeatable", + }, + "propertyAttribute/required": { + description: "Property value is required", + url: "http://sinopia.io/vocabulary/propertyAttribute/required", + }, "propertyType/literal": { description: "Literal property value", url: "http://sinopia.io/vocabulary/propertyType/literal", @@ -72,14 +129,27 @@ const vocabulary = { description: "URI property value", url: "http://sinopia.io/vocabulary/propertyType/uri", }, + "resourceAttribute/suppressible": { + description: + "whether resource is suppressible (must have only one property which is a lookup or URI)", + url: "http://sinopia.io/vocabulary/resourceAttribute/suppressible", + }, ResourcePropertyTemplate: { description: "Class for a resource property template", url: "http://sinopia.io/vocabulary/ResourcePropertyTemplate", }, ResourceTemplate: { - description: "Class for a resource template", + description: "Class for a resource template ('template' or 'resource')", url: "http://sinopia.io/vocabulary/ResourceTemplate", }, + Uri: { + description: "Class for a URI template", + url: "http://sinopia.io/vocabulary/Uri", + }, + UriPropertyTemplate: { + description: "Class for a URI property template", + url: "http://sinopia.io/vocabulary/UriPropertyTemplate", + }, } const displayProperty = (params) => {