Skip to content

Commit 25f4e96

Browse files
committed
sample TOML: Adds LOTS of new docu, making the file self-explaining
1 parent 84482c1 commit 25f4e96

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

res/sample_data/okh-TEMPLATE.toml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,57 @@ function = "This thing can clean, fly to the moon, keep you warm when its freezi
3939
documentation-language = "en-GB"
4040
version = "1.0.0"
4141
#fork-of = "https://gitlab.com/forefather/his-less-awesome-project/"
42+
# The organization that maintains this project, if any (else: remove this line)
4243
organization = "xxx"
4344
release = "https://gitlab.com/YOU/your-awesome-project/-/releases/1.0.0"
45+
# File containing an intro to the project.
46+
# [repo-relative path or absolute URL, single entry or a list]
4447
readme = "README.md"
48+
# File containing info about how to contribute to the development of this project.
49+
# This usually contaisn a mixture of both technical and social guidelines.
50+
# [repo-relative path or absolute URL, single entry or a list]
4551
contribution-guide = "CONTRIBUTING.md"
52+
# How far in its development is this technology;
53+
# how trustworthy, stable and usable is it?
54+
# Choose the best fitting category out of the ones available in this file:
55+
# <https://github.com/iop-alliance/OpenKnowHow/blob/bdd266398ed74c0828aa8795c2add082b8518eae/src/spec/otrl.ttl#L110>
56+
# (read all the info for the categories, and then copy the value of `rdfs:label` in here)
4657
technology-readiness-level = "OTRL-3"
58+
# How far in its development is this technologies documentation;
59+
# how well tested, how many times reproduced, ...?
60+
# Choose the best fitting category out of the ones available in this file:
61+
# <https://github.com/iop-alliance/OpenKnowHow/blob/bdd266398ed74c0828aa8795c2add082b8518eae/src/spec/otrl.ttl#L164>
62+
# (read all the info for the categories, and then copy the value of `rdfs:label` in here)
4763
documentation-readiness-level = "ODRL-3"
64+
# File containing information about an attestation of a certification process for this project.
65+
# So if some (usually third party) organization found this project
66+
# to be adhering to a certain set of rules,
67+
# and there is a document that attests that,
68+
# you may link it here.
69+
# [repo-relative path or absolute URL, single entry or a list]
4870
attestation = "https://certification.oshwa.org/cl000001.html"
71+
# A publication (e.g. an academic paper) covering (or at elast related to) this project.
72+
# [repo-relative path or absolute URL, single entry or a list]
4973
publication = "https://doi.org/10.1371/journal.pone.0193087"
74+
# standard(s) this proejct complies with.
75+
# NOTE This is currently underspecified -> help needed!
76+
# See <https://github.com/iop-alliance/OpenKnowHow/issues/163>
77+
# [string, single entry or a list]
5078
standard-compliance = "DIN EN 1335"
5179
# A Cooperative Patent Classification-ID,
5280
# describing this projects hardware;
5381
# You may want to search for it here:
5482
# <https://worldwide.espacenet.com/classification>
5583
cpc-patent-class = "D03D 35/00"
5684
tsdc = "MEC"
85+
# Bill of Materials (BoM) file, prefferably in the CSV format
86+
# [repo-relative path or absolute URL, single entry or a list]
5787
bom = "BoM.csv"
88+
# File with manufacturing instructions
89+
# [repo-relative path or absolute URL, single entry or a list]
5890
manufacturing-instructions = "Documentation/Assembly_Guide/AssemblyGuide.md"
91+
# File containing a user manual
92+
# [repo-relative path or absolute URL, single entry or a list]
5993
user-manual = "Documentation/User_Guide/UserGuide.md"
6094
# The mass of the finnished thing/product
6195
# [g (grams)]
@@ -78,20 +112,54 @@ namespace = "http://w3id.org/YOUR-ORG/data/your-awesome-project#"
78112
# NOTE We need all three of these values.
79113
# If you don't have them, take a rough estimate,
80114
# or remove or comment out the whole `[outer-dimensions]` section.
115+
# [mm (millimeters)]
81116
width = 400
82117
depth = 350.8
83118
height = 150
84119

120+
# Uff, what is that?
121+
# -> TOMLs syntax for lists of things!
122+
# So this [[image]] means:
123+
# Hereafter follow the properties of *one* of the images for this project.
85124
[[image]]
125+
# The repo local path or absoilute URL to the image
86126
location = "res/media/img/logo.svg"
127+
# "depicts" contains a text that explains what can be seen on the image.
128+
# This might be shown in a tooltip or caption.
87129
depicts = "The logo of this OSH project"
130+
# Slots are sdimilar to tags.
131+
# You can annotate this image with multiple slots, chosen from a fixed, predifined set.
132+
# The special thing about slots is,
133+
# that each one *can be used at most once* per project.
134+
# For example, there will be only one primary/main photo
135+
# of the finished product -> slot: "photo-thing-main"
136+
#
137+
# Possible values for slots:
138+
# <https://github.com/iop-alliance/OpenKnowHow/blob/c4ba79b41f0c87993418a2862c9ad17b246224ee/src/schema/okh.schema.json#L248>
139+
# (The same info, though in less easily digestible form -
140+
# can be found in this file:
141+
# <https://github.com/iop-alliance/OpenKnowHow/blob/c4ba79b41f0c87993418a2862c9ad17b246224ee/src/spec/okh-img.ttl#L78>;
142+
# see the values for `schema:termCode`)
143+
144+
)
88145
slots = [
89146
"logo",
90147
]
148+
# ... tags on the other hand, can be used multiple times per project.
149+
# So while the "logo" *slot* annotates the *main* logo,
150+
# the "logo" *tag* annotates *a* logo of the project.
151+
#
152+
# Possible values for tags:
153+
# <https://github.com/iop-alliance/OpenKnowHow/blob/c4ba79b41f0c87993418a2862c9ad17b246224ee/src/schema/okh.schema.json#L282>
154+
# (The same info, though in less easily digestible form -
155+
# can be found in this file:
156+
# <https://github.com/iop-alliance/OpenKnowHow/blob/c4ba79b41f0c87993418a2862c9ad17b246224ee/src/spec/okh-img.ttl#L258>;
157+
# see the values for `schema:termCode`)
91158
tags = [
92159
"logo",
93160
]
94161

162+
# ...and here is where the second image begins
95163
[[image]]
96164
location = "res/assets/media/img/hw-photo.png"
97165
depicts = "A photo of the finished hardware, taken with a white background"

0 commit comments

Comments
 (0)