Skip to content

Commit

Permalink
feat: add conversion of project (ongoing) (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
subotic authored Sep 15, 2023
1 parent 4e7acfe commit bbd3424
Show file tree
Hide file tree
Showing 31 changed files with 1,874 additions and 1,365 deletions.
344 changes: 160 additions & 184 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ async-trait = "0.1.68"
clap = { version = "4.4.2", features = ["derive"] } # command-line parser
config = "0.13.1" # Layered configuration with strong support for 12-factor applications
dirs = "5.0.1" # provides platform-specific locations for storing user configuration
hcl-rs = "0.14.6" # HCL parser
hcl-rs = "0.16.4" # HCL converter
indicatif = "0.17.0" # prograss bars and spinners
log = "0.4.20" # logging facade
once_cell = "1.18.0"
Expand All @@ -19,6 +19,7 @@ serde_json = "1" # JSON serialization
tracing = "0.1"
tracing-subscriber = "0.3"
tracing-test = "0.2"
url = { version = "2", features = ["serde"] }
warp = "0.3"

[package]
Expand Down Expand Up @@ -47,6 +48,7 @@ serde_json.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
tracing-test.workspace = true
url.workspace = true

[[bin]]
name = "dsp_meta"
Expand Down
139 changes: 55 additions & 84 deletions data/dokubib.hcl
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
version = 1

project "0804" {
project {
created_at = 1630601300976368000
created_by = "dsp-metadata-gui"
shortcode = "0804"
name = "Bilddatenbank Bibliothek St. Moritz"

teaser_text = "Bibliothek St. Moritz Dokumentation is the local history archive of the community of St. Moritz, Switzerland."
how_to_cite = "Dokumentationsbibliothek St. Moritz"
start_date = "2021-01-01"
end_date = "2021-12-31"
datasets = ["dataset-001"]
funders = ["gemeinde_st_moritz", "snf"]

description = {
en = "Bibliothek St. Moritz Dokumentation is the local history archive of the community of St. Moritz, Switzerland. It’s collection contains publications, manuscripts and audiovisual documents of the touristic development of St. Moritz",
de = "Die Bibliothek St. Moritz Dokumentation ist das Lokalarchiv der Gemeinde St. Moritz. Ihre Sammlung umfasst Publikationen, Manuskripte und audiovisuelle Dokumente zur touristischen Entwicklung von St. Moritz."
description {
en = "Bibliothek St. Moritz Dokumentation is the local history archive of the community of St. Moritz, Switzerland. It’s collection contains publications, manuscripts and audiovisual documents of the touristic development of St. Moritz"
}

name "1" {
de = "Bilddatenbank Bibliothek St. Moritz"
}
name "2" {
de = "Bibliothek St. Moritz Dokumentation"
en = "Bibliothek St. Moritz Dokumentation"
url "https://data.dasch.swiss/dokubib/" {
text = "Project Website"
}

how_to_cite = "Dokumentationsbibliothek St. Moritz"
start_date = "2021-01-01"
end_date = "2021-12-31"

keyword {
en = "local history"
de = "Lokalgeschichte"
Expand All @@ -45,104 +41,79 @@ project "0804" {
de = "Schweiz"
}

discipline "1" {
skos "https://skos.um.es/unesco6/5501" {
text = "Local history"
}
}
discipline "2" {
skos "https://skos.um.es/unesco6/5502" {
text = "Regional history"
}
}
discipline "3" {
snf "10302" {
en = "Swiss history"
de = "Schweizer Geschichte"
url "1" "https://www.snf.ch/SiteCollectionDocuments/allg_disziplinenliste.pdf" {
text = "SNF Discipline List"
}
}
discipline skos {
ref_id = "https://skos.um.es/unesco6/5501"
description = "Local history"
url = "https://skos.um.es/unesco6/5501"
}

spatial_coverage {
geonames "https://www.geonames.org/2658822" {
text = "St. Moritz"
}
spatial_coverage geonames {
ref_id = "https://www.geonames.org/2658822"
description = "St. Moritz"
url = "https://www.geonames.org/2658822"
}
temporal_coverage {
chronontology "https://chronontology.dainst.org/period/INtagfT8h7Fs" {
text = "20th and 21st Centuries"
}
temporal_coverage chronontology {
ref_id = "https://chronontology.dainst.org/period/INtagfT8h7Fs"
description = "20th and 21st Centuries"
url = "https://chronontology.dainst.org/period/INtagfT8h7Fs"
}
temporal_coverage {
chronontology "https://chronontology.dainst.org/period/kqORhO4TGm4n" {
text = "20th Century (1900 - 1999)"
}
temporal_coverage chronontology {
ref_id = "https://chronontology.dainst.org/period/kqORhO4TGm4n"
description = "20th Century (1900 - 1999)"
url = "https://chronontology.dainst.org/period/kqORhO4TGm4n"
}

url "1" "https://data.dasch.swiss/dokubib/" {
text = "Project Website"
}
url "2" "https://www.stmoritz.ch/" {
text = "St. Moritz Tourism Website"
}

dmp {
available = true
url = "https://data.dasch.swiss/dokubib/dmp.pdf"
}

publication "1" {
publication {
text = "Bibliothek St. Moritz Dokumentation"
}
publication "2" {
text = "Doe, J. (2020): Some publication. In: Journal for sample publications. Vol. 100.1, p. 1-32."
url = "https://www.stmoritz.ch/"
}

contact_point "1" {
id = "gemeinde_st_moritz"
}
// reference to person or organization (0-1)
contact_point = "gemeinde_st_moritz"
}

dataset "0804:dataset-001" {
dataset {
created_at = "1630601300976368000"
created_by = "dsp-metadata-gui"
access_conditions = Restricted
how_to_cite = "Dokumentationsbibliothek St. Moritz"
status = Ongoing,
title = "Dokumentationsbibliothek St. Moritz Bilddatenbank",
type_of_data = [
Image,
Text
]
status = Ongoing
title = "Dokumentationsbibliothek St. Moritz Bilddatenbank"
type_of_data = [Image, Text]

abstract {
en = "Bilddatenbank makes accessible the collection of historic photographs and other graphical representation of St. Moritz Dokumentationsbibliothek"
}

language "1" {
language {
de = "Deutsch"
}
language "2" {
language {
en = "German"
}
language "3" {
language {
fr = "Allemand"
}

attribution "1" "biblio" {
attribution "biblio_stmoritz" {
roles = [
Creator,
Publisher
]
}
}

organization "0804:gemeinde_st_moritz" {
created_at = "1630601301506212000",
created_by = "dsp-metadata-gui",
dmp {
available = false
}

grant {
name = "Ordinary Budget"
funder = "gemeinde_st_moritz" // reference to person or organization
}

organization "gemeinde_st_moritz" {
created_at = "1630601301506212000"
created_by = "dsp-metadata-gui"
name = "Gemeinde St. Moritz"

address {
Expand All @@ -153,20 +124,20 @@ organization "0804:gemeinde_st_moritz" {
}
}

organization "0804:biblio" {
organization "biblio_stmoritz" {
created_at = "1630601301561696000"
created_by = "dsp-metadata-gui"
email = "[email protected]"
name = "Dokumentationsbibliothek St. Moritz"

url "1" "https://www.biblio-stmoritz.ch" {
url "https://www.biblio-stmoritz.ch" {
text = "www.biblio-stmoritz.ch"
}

address {
street = "Plazza da Scoula 14",
postal_code = "7500",
locality = "St. Moritz",
street = "Plazza da Scoula 14"
postal_code = "7500"
locality = "St. Moritz"
country = "Switzerland"
}
}
5 changes: 0 additions & 5 deletions data/global.hcl

This file was deleted.

Loading

0 comments on commit bbd3424

Please sign in to comment.