-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add base iri attribution to skosConceptScheme
- Loading branch information
Showing
6 changed files
with
103 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import {defineField} from 'sanity' | ||
import {DescriptionDetail} from '../styles' | ||
|
||
export default [ | ||
defineField({ | ||
name: 'baseIri', | ||
title: 'Base URI', | ||
type: 'url', | ||
validation: (Rule) => | ||
Rule.required().error('Please supply a base URI in the format http://example.com/'), | ||
description: ( | ||
<details> | ||
<summary> | ||
The root URI (Uniform Resource Identifier) used to create unique concept identifiers. | ||
</summary> | ||
<DescriptionDetail> | ||
Unique identifiers allow for the clear an unambiguous identification of concepts across | ||
namespaces, for example between https://shipparts.com/vocab#Bow and | ||
https://wrappingsupplies.com/vocab#Bow. | ||
</DescriptionDetail> | ||
<DescriptionDetail> | ||
In most cases, it makes sense for your base URI to be the root or a subdirectory of your | ||
website. In all cases, the URI you choose should be in a domain that you control. | ||
</DescriptionDetail> | ||
<DescriptionDetail> | ||
For new Concepts and Concept Schemes, the Base URI field is pre-populated based on the | ||
most recently used Base URI value. | ||
</DescriptionDetail> | ||
</details> | ||
), | ||
options: { | ||
collapsible: true, | ||
}, | ||
}), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import styled from 'styled-components' | ||
|
||
export const DescriptionDetail = styled.p` | ||
margin-top: 0.5rem; | ||
margin-left: 0.75rem; | ||
` |