forked from q02/pool.v0.trr379.de-ui
rather than linking directly to the how-to guide about generating access tokens (which has moved around a couple of times in recent restructuring efforts), this points to the more general knowledge pooling page to make it easier to maintain
300 lines
8.4 KiB
YAML
300 lines
8.4 KiB
YAML
# --------------------
|
|
# General app settings
|
|
# --------------------
|
|
app_name: TRR379 Knowledge Pooling Tool (v0)
|
|
documentation_url: https://docs.trr379.de/howtos/pool-tool/index.html
|
|
external_config_url: https://pool.v0.trr379.de/ui/config_ri_default.yaml
|
|
footer_links:
|
|
- url: https://www.fz-juelich.de/en/legal-notice
|
|
text: Legal notice
|
|
- url: https://dfg-cp-survey.trr379.de/#privacy-policy
|
|
text: Privacy policy
|
|
page_title: TRR379 Knowledge
|
|
source_code_url: https://hub.trr379.de/q02/pool.v0.trr379.de-ui
|
|
|
|
# -------
|
|
# Content
|
|
# -------
|
|
content:
|
|
depiction-upload-template:
|
|
url: templates/depiction-upload.ttl
|
|
doi-import-wizard-template:
|
|
url: templates/doi-import-wizard.nunjucks.ttl
|
|
doi-logo:
|
|
url: https://hub.psychoinformatics.de/datalink/assets/raw/branch/main/shacl-vue/DOI_logo_24.svg
|
|
doi-template:
|
|
url: templates/doi.ttl
|
|
file-upload-template:
|
|
url: templates/file-upload.ttl
|
|
FrontPageHTML:
|
|
url: frontpage.html
|
|
orcid-logo:
|
|
url: https://hub.psychoinformatics.de/datalink/assets/raw/branch/main/shacl-vue/orcid_logo_24.svg
|
|
person-depiction-upload-template:
|
|
url: templates/person-depiction-upload.nunjucks.ttl
|
|
|
|
|
|
# --------------
|
|
# Theme settings
|
|
# --------------
|
|
front_page_content: content:FrontPageHTML
|
|
app_theme:
|
|
link_color: '#ffa200'
|
|
hover_color: '#ffa200'
|
|
active_color: '#ffa201'
|
|
visited_color: '#ffa201'
|
|
panel_color: '#333333'
|
|
logo: logo.png
|
|
|
|
# --------------------------
|
|
# Application inputs sources
|
|
# --------------------------
|
|
# All from external_config_url
|
|
|
|
# -------------------
|
|
# Identifier settings
|
|
# -------------------
|
|
# All from external_config_url
|
|
|
|
# ------------
|
|
# UI behaviour
|
|
# ------------
|
|
component_config:
|
|
NodeShapeViewer:
|
|
recordNumberStepSize: 5
|
|
textTruncateWidth: '85%'
|
|
hideBackLinks:
|
|
- dlthings:AnnotationTag
|
|
- dlthings:Convention
|
|
- dlthings:Property
|
|
- dlthings:Rule
|
|
- trr379ri:TRR379AgentRole
|
|
- trr379ri:TRR379Activity
|
|
- trr379ri:TRR379ActivityRole
|
|
specialButtons:
|
|
ORCID:
|
|
slot: dcterms:identifier
|
|
match:
|
|
- key: rdf:type
|
|
val: trr379ri:ORCID
|
|
return: skos:notation
|
|
template: 'https://orcid.org/{return}'
|
|
icon: content:orcid-logo
|
|
tooltip: Visit ORCID page
|
|
DOI:
|
|
slot: dcterms:identifier
|
|
match:
|
|
- key: rdf:type
|
|
val: dlthings:DOI
|
|
return: skos:notation
|
|
template: 'https://doi.org/{return}'
|
|
icon: content:doi-logo
|
|
tooltip: Go to DOI
|
|
DownloadUrl:
|
|
slot: dlthings:characterized_by
|
|
match:
|
|
- key: rdf:type
|
|
val: dlthings:Statement
|
|
- key: rdf:predicate
|
|
val: dcat:downloadUrl
|
|
return: rdf:object
|
|
template: '{return}'
|
|
icon: mdi-download
|
|
tooltip: Download
|
|
Homepage:
|
|
slot: dlthings:attributes
|
|
match:
|
|
- key: rdf:type
|
|
val: dlthings:AttributeSpecification
|
|
- key: rdf:predicate
|
|
val: foaf:homepage
|
|
return: rdf:value
|
|
template: '{return}'
|
|
icon: mdi-home
|
|
tooltip: Homepage
|
|
Documentation:
|
|
slot: dlthings:attributes
|
|
match:
|
|
- key: rdf:type
|
|
val: dlthings:AttributeSpecification
|
|
- key: rdf:predicate
|
|
val: obo:NGBO_6000416
|
|
return: rdf:value
|
|
template: '{return}'
|
|
icon: mdi-text-box
|
|
tooltip: Documentation
|
|
SourceCodeRepo:
|
|
slot: dlthings:attributes
|
|
match:
|
|
- key: rdf:type
|
|
val: dlthings:AttributeSpecification
|
|
- key: rdf:predicate
|
|
val: obo:APOLLO_SV_00000488
|
|
return: rdf:value
|
|
template: '{return}'
|
|
icon: mdi-code-block-tags
|
|
tooltip: Source code
|
|
W3CISO8601DateTimeEditor:
|
|
yearStart: 1990
|
|
yearEnd: 2028
|
|
filter_records_by:
|
|
- dlthings:short_name
|
|
id_resolves_externally:
|
|
- trr379root
|
|
show_classes:
|
|
- dlthings:AnnotationTag
|
|
- dlthings:Convention
|
|
# must list the next to get all identifiers to show
|
|
- dlthings:Identifier
|
|
- dlthings:DOI
|
|
- dlthings:ISSN
|
|
- dlthings:ORCID
|
|
- dlthings:Rule
|
|
- dlthings:Property
|
|
priority_classes:
|
|
- class: dlthings:Thing
|
|
icon: mdi-view-list
|
|
title: All
|
|
include_subclasses: true
|
|
|
|
# -----------------------
|
|
# Service API integration
|
|
# -----------------------
|
|
service_base_url:
|
|
- url: https://pool.v0.trr379.de/api/protected/
|
|
type: write
|
|
- url: https://pool.v0.trr379.de/api/public/
|
|
type: read
|
|
token_info: Please refer to the documentation on how to obtain a new token
|
|
token_info_url: https://docs.trr379.de/references/services/knowledge-pooling/index.html
|
|
use_service: true
|
|
use_token: true
|
|
service_fetch_before:
|
|
get-records:
|
|
- dlthings:AnnotationTag
|
|
- dlthings:Convention
|
|
- dlthings:Property
|
|
- dlthings:Rule
|
|
- trr379ri:TRR379Activity
|
|
- trr379ri:TRR379AgentRole
|
|
- trr379ri:TRR379BibliographicType
|
|
- trr379ri:TRR379CompetitionType
|
|
- trr379ri:TRR379DepictionType
|
|
- trr379ri:TRR379InstrumentType
|
|
- trr379ri:TRR379Person
|
|
- trr379ri:TRR379Topic
|
|
|
|
# ----------------
|
|
# Special features
|
|
# ----------------
|
|
gitannex_p2phttp_config:
|
|
base_url: "https://hub.trr379.de/git-annex-p2phttp/git-annex"
|
|
annex_uuid: d10eeb70-bb68-4ae4-8c5a-713203d86733
|
|
client_uuid: trr379-pool-ui
|
|
use_gitannex_p2phttp: true
|
|
|
|
gitannex_p2phttp_config_wizard:
|
|
client_uuid: trr379-pool-ui
|
|
targets:
|
|
- name: TRR379 Hub
|
|
base_url: https://hub.trr379.de/git-annex-p2phttp/git-annex
|
|
repositories:
|
|
- name: Public uploads
|
|
annex_uuid: d10eeb70-bb68-4ae4-8c5a-713203d86733
|
|
|
|
# -------
|
|
# Wizards
|
|
# -------
|
|
wizard_editors:
|
|
DepictionUploadWizard:
|
|
name: Depiction Upload Wizard
|
|
tooltip: Upload a depiction
|
|
icon: mdi-account-box-outline
|
|
description: Upload an image of the person and hit *Save*
|
|
inputs:
|
|
- prop: file
|
|
name: File
|
|
type: upload
|
|
required: true
|
|
template: content:person-depiction-upload-template
|
|
DOIWizard:
|
|
name: DOI Wizard
|
|
tooltip: Add a Digital Object Identifier
|
|
icon: content:doi-logo
|
|
description: Enter the 'Notation' field and hit *Save* in order to create a DOI record
|
|
inputs:
|
|
- prop: notation
|
|
name: Notation
|
|
description: This is the unique DOI identifier text following the creator URI (typically 'http://doi.org/')
|
|
type: text
|
|
placeholder: 'example: 10.21105/joss.03262'
|
|
required: true
|
|
# pattern:
|
|
# default:
|
|
template: content:doi-template
|
|
DOIImportWizard:
|
|
name: DOI Import Wizard
|
|
tooltip: Import a publication via DOI
|
|
icon: mdi-import
|
|
description: >-
|
|
Enter the 'DOI' field and hit *Import* in order to import metadata.
|
|
This will prepopulate editable fields such as *Title* and *Authors*.
|
|
An attempt is made to match individual imported *Author*s with known
|
|
*Person* records via ORCID identifiers. These matches can be accepted
|
|
as is without editing. The dropdown next to each imported and unmatched
|
|
author can be used to manually identify the correct associated Person
|
|
record. Also, additional authors can be added to the list. If no Person
|
|
record is selected for any given author in the list, a new Person record
|
|
will be created with a random and unique identifier, associated with the
|
|
entered given and family name.
|
|
component: doi:DOIFetcher
|
|
inputs:
|
|
- prop: title
|
|
type: text
|
|
- prop: abstract
|
|
type: text-paragraph
|
|
- prop: authors
|
|
type: object
|
|
multi_valued: true
|
|
inputs:
|
|
- prop: pid
|
|
type: text
|
|
- prop: given_name
|
|
type: text
|
|
- prop: family_name
|
|
type: text
|
|
- prop: role
|
|
type: select
|
|
template: content:doi-import-wizard-template
|
|
FileUploadWizard:
|
|
name: File Upload Wizard
|
|
tooltip: Upload a file
|
|
icon: mdi-file-upload-outline
|
|
description: Upload a file and hit *Save*
|
|
inputs:
|
|
- prop: file
|
|
name: File
|
|
type: upload
|
|
required: true
|
|
template: content:file-upload-template
|
|
wizard_editor_selection:
|
|
trr379ri:TRR379Person:
|
|
_record:
|
|
- DepictionUploadWizard
|
|
trr379ri:TRR379Publication:
|
|
_class:
|
|
- DOIImportWizard
|
|
_record:
|
|
- DOIWizard
|
|
_slots:
|
|
dlthings:distributions:
|
|
_record:
|
|
- FileUploadWizard
|
|
|
|
# -------------
|
|
# Update shapes
|
|
#--------------
|
|
update_shapes_default:
|
|
_all_property_shapes:
|
|
dlthings:pid:
|
|
sh:minCount: 1
|