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

Update Vocab.js #3282

Merged
merged 1 commit into from
Nov 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 74 additions & 4 deletions src/components/vocabulary/Vocab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems ... wrong ... to have a URI as a sinopia vocabulary ... isn't URI already defined?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dunno, but this vocab is primarily for internal use so not overwhelmingly concerned.

},
UriPropertyTemplate: {
description: "Class for a URI property template",
url: "http://sinopia.io/vocabulary/UriPropertyTemplate",
},
}

const displayProperty = (params) => {
Expand Down