Skip to content
Snippets Groups Projects
Commit bb36c4e2 authored by Thomas Zastrow's avatar Thomas Zastrow :construction_worker:
Browse files

Added persistent kv to mmdSimple

parent 4601b24b
No related branches found
No related tags found
No related merge requests found
...@@ -40,21 +40,22 @@ class MmdFormat: ...@@ -40,21 +40,22 @@ class MmdFormat:
class MmdSimple(MmdFormat): class MmdSimple(MmdFormat):
def __init__(self): def __init__(self):
self.mdFormat = "MMD Simple" self.mdFormat = "MMD Simple"
self.data.append(MmdEntry("Username", "Your name", os.environ.get("USER"), True, [])) self.data.append(MmdEntry("Username", "Your MPCDF user name", os.environ.get("USER"), True, []))
self.data.append(MmdEntry("Institute", "Your institute", "", True, ["MPCDF", "MPX", "MPY", "MPZ"])) self.data.append(MmdEntry("Institute", "Your institute", "", True, ["MPCDF", "MPX", "MPY", "MPZ"]))
self.data.append(MmdEntry("Department", "Your department", "", True, [])) self.data.append(MmdEntry("Department", "Your department", "", True, []))
self.data.append(MmdEntry("Group", "Your working group", "", True, [])) self.data.append(MmdEntry("Group", "Your working group", "", True, []))
self.data.append(MmdEntry("Project", "The project the data belongs to", "", True, [])) self.data.append(MmdEntry("Project", "The project the data belongs to", "", True, []))
self.data.append(MmdEntry("Contributors", "Contributors to the data", "", True, [])) self.data.append(MmdEntry("Contributors", "Further contributors to the data", "", True, []))
self.data.append(MmdEntry("Date", "Current date", str(date.today()), True, [])) self.data.append(MmdEntry("Date", "Current date", str(date.today()), True, []))
self.data.append(MmdEntry("Name", "The name of the dataset", "", True, [])) self.data.append(MmdEntry("Name", "The name of the dataset", "", True, []))
self.data.append(MmdEntry("Description", "Enter a short description", "", True, [])) self.data.append(MmdEntry("Description", "A short description", "", True, []))
self.data.append(MmdEntry("Homepage", "The internet home of the data respictive the project it belongs to", "", True, [])) self.data.append(MmdEntry("Homepage", "The internet home of the data respictive the project it belongs to", "", True, []))
self.data.append(MmdEntry("Target", "What is described with this metadata (a file, a folder etc.)", "", True, [])) self.data.append(MmdEntry("Target", "What is described with this metadata (a file, a folder etc.)", "", True, []))
self.data.append(MmdEntry("Storage", "Where the data is stored", "", True, ["HPSS", "GHIx", "Nexus Posix", "Nexus S3", "DataShare", "Gitlab"])) self.data.append(MmdEntry("Storage", "On which MPCDF storage system the data is stored", "", True, ["HPSS", "GHIx", "Nexus Posix", "Nexus S3", "DataShare", "Gitlab"]))
self.data.append(MmdEntry("Persistent", "Persistence status of the data (backup, yes/no etc.)","y", True, ["y", "n"]))
self.data.append(MmdEntry("Format", "Format of the data", "", True, [])) self.data.append(MmdEntry("Format", "Format of the data", "", True, []))
self.data.append(MmdEntry("Size", "Size of the data in bytes", "", True, [])) self.data.append(MmdEntry("Size", "Size of the data in bytes", "", True, []))
self.data.append(MmdEntry("Comment", "Something to know about the data", "", True, [])) self.data.append(MmdEntry("Comment", "Any further comments", "", True, []))
class DublinCore(MmdFormat): class DublinCore(MmdFormat):
def __init__(self): def __init__(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment