aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-02-13 18:01:53 +0300
committerBonfaceKilz2024-02-13 18:03:07 +0300
commite631f74319836d97bfc5da91dc3a7d3b5561154a (patch)
treedd0f5cd3c365a83674fcab82d4969ccacd77ed34
parent27e3f6573f012e911daafae73935b4f01a9152fa (diff)
downloadgenenetwork3-e631f74319836d97bfc5da91dc3a7d3b5561154a.tar.gz
Fetch extra metadata from text-files when fetching datasets.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--gn3/db/datasets.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gn3/db/datasets.py b/gn3/db/datasets.py
index 5501d92..6ec2126 100644
--- a/gn3/db/datasets.py
+++ b/gn3/db/datasets.py
@@ -346,6 +346,9 @@ def retrieve_dataset_metadata(name: str) -> dict:
"notes": "gnt:hasNotes",
"experiment-design": "gnt:hasExperimentDesignInfo",
"acknowledgment": "gnt:hasAcknowledgement",
+ "citation": "dct:isReferencedBy",
+ "experiment-type": "gnt:hasExperimentType",
+ "contributors": "dct:creator",
}
for __file in Path(name).glob("*rtf"):
with __file.open() as _f: