https://github.com/dasch-swiss/dsp-meta

DaSCH Service Platform Metadata Repository

https://github.com/dasch-swiss/dsp-meta

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.2%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

DaSCH Service Platform Metadata Repository

Basic Info
Statistics
  • Stars: 0
  • Watchers: 5
  • Forks: 0
  • Open Issues: 8
  • Releases: 36
Created almost 7 years ago · Last pushed 10 months ago
Metadata Files
Readme Changelog License Codeowners

README.md

DaSCH Service Platform Metadata Repository

How should I write my commits?

We are using Conventional Commit messages.

The most important prefixes you should have in mind are:

  • fix: which represents bug fixes, and correlates to a SemVer patch.
  • feat: which represents a new feature, and correlates to a SemVer minor.
  • feat!:, or fix!:, refactor!:, etc., which represent a breaking change (indicated by the !) and will result in a SemVer major.

Here is the complete list of prefixes used in this repository with corresponding sections in the changelog:

  • 'build' -> section: 'Maintenances'
  • 'chore' -> section: 'Maintenances'
  • 'data' -> section: 'Project Data'
  • 'docs' -> section: 'Documentation'
  • 'feat' -> section: 'Enhancements'
  • 'fix' -> section: 'Bug Fixes'
  • 'perf' -> section: 'Performance Improvements'
  • 'refactor' -> section: 'Maintenances'
  • 'test' -> section: 'Tests'
  • 'style' -> section: 'Styles'

1 Usage

`` Flags: --h, --help --v, --verbose`

Sub-commands: - dsp-meta verify [file] - [file]: provide the path to the .toml file - dsp-meta convert ```

HCL (HashiCorp Configuration Language) General Syntax

The Metadata Domain Specific Configuration syntax is based on the HCL (HashiCorp Configuration Language) syntax, with a number of predefined domain specific named blocks. The following is a short introduction to the general syntax.

Comments

Comments in HCL begin with the "#" symbol and can be placed on their own line or at the end of a line. They are used to provide explanations or add context to the configuration.

```hcl

This is a comment in HCL

key = "value" # This is another comment ```

Blocks

HCL organizes configuration into blocks. Each block starts with the block type followed by a set of braces ({}) that enclose the block's contents. Blocks can be nested to represent hierarchical structures.

hcl block_type { key = "value" nested_block_type { nested_key = "nested_value" } }

Multiple Blocks

HCL allows you to define multiple blocks of the same type within a configuration. Each block instance is separated by a newline.

```hcl block_type { key = "value" }

blocktype { key = "anothervalue" } ```

Block Labels

A block has a type (resource in this example). Each block type defines how many labels must follow the type keyword. The resource block type expects two labels, which are aws_instance and example in the example below. A particular block type may have any number of required labels, or it may require none as with the nested network_interface block type.

```hcl resource "aws_instance" "example" { ami = "abc123"

network_interface { # ... } } ```

Attributes

Inside a block, you define attributes using the key-value syntax. The key and value are separated by an equal sign (=). Attributes define the properties or settings associated with the block.

hcl block_type { key = "value" }

Strings

HCL supports string values, which are enclosed in double quotes ("). Strings can contain alphanumeric characters, symbols, and spaces. To include a double quote within a string, you can escape it with a backslash (\).

hcl message = "Hello, World!" path = "/path/to/file" escaped_string = "This string contains \"quotes\"."

Numbers

HCL supports both integers and floating-point numbers. Numeric values are written without quotes.

hcl count = 10 pi = 3.14159

Booleans

Boolean values are represented as either "true" or "false". They are not enclosed in quotes.

hcl enabled = true debug = false

Lists

HCL supports lists, which are represented by square brackets ([]). Elements in a list are separated by commas. Lists can contain values of different types.

hcl fruits = ["apple", "banana", "orange"] numbers = [1, 2, 3, 4, 5]

Heredoc Syntax

HCL supports heredoc syntax for multiline strings. It is enclosed in triple double quotes ("""). Heredocs preserve leading indentation and line breaks.

hcl multiline = """ This is a multiline string. It can span multiple lines. """

Metadata HCL: Domain Specific Configuration Language for DSP Metadata

Style Conventions

  • All block types are lowercase
  • Indent two spaces for each level of nesting
  • When multiple arguments with single-line values appear on consecutive lines, align their equals signs (=)
  • When both arguments and blocks appear together inside a block body, place all of the arguments together at the top and then place nested blocks below them. Use one blank line to separate the arguments from the blocks.

Project

The project block contains the project specific attributes and blocks.

Example:

```hcl project { createdat = 1637624150548721000 createdby = "dsp-metadata-gui" shortcode = "0803" name = "Project name"

alternative_name { en = "Alternative name" }

teaser_text = "Teaser text"

description { de = "Description in German." en = "Description in English." fr = "Description in French." }

url { href = "https://example.com" label = "Example label of the URL" }

howtocite = "How to cite the project" startdate = "2008-06-01" enddate = "2012-08-31"

keyword { de = "Basel" }

discipline snf { refid = "10404" description = "Visual arts and Art history" url = "https://www.snf.ch/SiteCollectionDocuments/allgdisziplinenliste.pdf" } discipline skos { ref_id = "https://skos.um.es/unesco6/5501" description = "Local history" url = "https://skos.um.es/unesco6/5501" }

spatialcoverage geonames { refid = "https://www.geonames.org/2661552" description = "Bern" url = "https://www.geonames.org/2661552" }

temporalcoverage periodo { refid = "https://n2t.net/ark:/99152/p06c6g3pvr5" description = "Under Mediation act, 1803-1814" url = "https://n2t.net/ark:/99152/p06c6g3pvr5" } temporalcoverage chronontology { refid = "https://chronontology.dainst.org/period/kqORhO4TGm4n" description = "20th Century (1900 - 1999)" url = "https://chronontology.dainst.org/period/kqORhO4TGm4n" } temporal_coverage text { de = "1766-1905" en = "1766-1905" fr = "1766-1905" }

publication { text = "Citation of the publication" } } ```

Dataset

hcl dataset { # Dataset specific attributes and blocks }

Person

hcl person { # Person specific attributes and blocks }

Organization

hcl organization { # Organization specific attributes and blocks }

Grant

hcl grant { # Grant specific attributes and blocks }

Owner

  • Name: DaSCH - Swiss National Data and Service Center for the Humanities
  • Login: dasch-swiss
  • Kind: organization
  • Email: info@dasch.swiss
  • Location: Switzerland

Development repositories of the DaSCH.

GitHub Events

Total
  • Release event: 11
  • Delete event: 81
  • Issue comment event: 56
  • Push event: 296
  • Pull request review comment event: 10
  • Pull request review event: 84
  • Pull request event: 167
  • Create event: 89
Last Year
  • Release event: 11
  • Delete event: 81
  • Issue comment event: 56
  • Push event: 296
  • Pull request review comment event: 10
  • Pull request review event: 84
  • Pull request event: 167
  • Create event: 89

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 3
  • Total pull requests: 241
  • Average time to close issues: about 7 hours
  • Average time to close pull requests: 9 days
  • Total issue authors: 2
  • Total pull request authors: 11
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.41
  • Merged pull requests: 149
  • Bot issues: 2
  • Bot pull requests: 119
Past Year
  • Issues: 1
  • Pull requests: 120
  • Average time to close issues: N/A
  • Average time to close pull requests: 2 days
  • Issue authors: 1
  • Pull request authors: 11
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.22
  • Merged pull requests: 75
  • Bot issues: 0
  • Bot pull requests: 60
Top Authors
Issue Authors
  • dependabot[bot] (2)
  • BalduinLandolt (1)
Pull Request Authors
  • dependabot[bot] (119)
  • seakayone (34)
  • daschbot (27)
  • BalduinLandolt (23)
  • mpro7 (18)
  • subotic (8)
  • editio (6)
  • danielasubotic (3)
  • LukasStoeckli (1)
  • flo7ian (1)
  • SamuelBoerlin (1)
Top Labels
Issue Labels
dependencies (2) rust (2)
Pull Request Labels
dependencies (119) rust (96) autorelease: pending (27) javascript (21) github_actions (2)

Dependencies

.github/workflows/main.yml actions
  • Swatinem/rust-cache v2 composite
  • actions/checkout v3 composite
Cargo.lock cargo
  • anstream 0.3.2
  • anstyle 1.0.1
  • anstyle-parse 0.2.1
  • anstyle-query 1.0.0
  • anstyle-wincon 1.0.1
  • anyhow 1.0.71
  • bitflags 2.3.3
  • cc 1.0.79
  • clap 4.3.10
  • clap_builder 4.3.10
  • clap_derive 4.3.2
  • clap_lex 0.5.0
  • colorchoice 1.0.0
  • equivalent 1.0.0
  • errno 0.3.1
  • errno-dragonfly 0.1.2
  • hashbrown 0.14.0
  • heck 0.4.1
  • hermit-abi 0.3.1
  • indexmap 2.0.0
  • is-terminal 0.4.8
  • itoa 1.0.6
  • libc 0.2.147
  • linux-raw-sys 0.4.3
  • memchr 2.5.0
  • once_cell 1.18.0
  • proc-macro2 1.0.63
  • quote 1.0.28
  • rustix 0.38.1
  • ryu 1.0.13
  • serde 1.0.164
  • serde_derive 1.0.164
  • serde_json 1.0.99
  • serde_spanned 0.6.3
  • strsim 0.10.0
  • syn 2.0.22
  • toml 0.7.5
  • toml_datetime 0.6.3
  • toml_edit 0.19.11
  • unicode-ident 1.0.9
  • utf8parse 0.2.1
  • windows-sys 0.48.0
  • windows-targets 0.48.1
  • windows_aarch64_gnullvm 0.48.0
  • windows_aarch64_msvc 0.48.0
  • windows_i686_gnu 0.48.0
  • windows_i686_msvc 0.48.0
  • windows_x86_64_gnu 0.48.0
  • windows_x86_64_gnullvm 0.48.0
  • windows_x86_64_msvc 0.48.0
  • winnow 0.4.7
Cargo.toml cargo
dsp-domain/Cargo.toml cargo
  • assert_cmd 2.0.12 development
  • thiserror 1.0.50
dsp-meta/Cargo.toml cargo
  • assert_cmd 2.0.12 development
  • dsp-domain 0.1.3
  • sophia 0.7.2
  • thiserror 1.0.50
dsp-meta-cmd/Cargo.toml cargo
  • assert_cmd 2.0.12 development
  • dsp-meta 0.1.3
Dockerfile docker
  • debian bookworm-slim build
  • node 21-bookworm-slim build
  • rust 1-slim-bookworm build
web-frontend/package.json npm
  • @rollup/plugin-commonjs ^17.0.0 development
  • @rollup/plugin-node-resolve ^11.0.0 development
  • @rollup/plugin-replace ^2.4.2 development
  • @rollup/plugin-typescript ^6.0.0 development
  • @tsconfig/svelte ^1.0.0 development
  • @types/compression ^1.7.0 development
  • @types/cors ^2.8.9 development
  • @types/express ^4.17.11 development
  • @types/node ^14.14.25 development
  • rollup ^2.3.4 development
  • rollup-plugin-css-only ^3.1.0 development
  • rollup-plugin-livereload ^2.0.0 development
  • rollup-plugin-svelte ^7.0.0 development
  • rollup-plugin-terser ^7.0.0 development
  • svelte ^3.0.0 development
  • svelte-check ^1.0.0 development
  • svelte-preprocess ^4.0.0 development
  • tslib ^2.0.0 development
  • typescript ^3.9.7 development
  • sirv-cli ^1.0.0
  • svelte-routing ^1.6.0
web-frontend/yarn.lock npm
  • 152 dependencies
serde-rdf/Cargo.toml cargo