aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-09-19 18:08:08 +0300
committerBonfaceKilz2024-09-23 12:32:51 +0300
commit1c1f2945fae39731b7094a090193de92fc3ebe43 (patch)
tree2f5c92e7d0ba468ff0d5d2fd56f6d5cec668d67a
parent5a540fb99fd5b2ed5cbf8d05fb0173bdda742d55 (diff)
downloadgenenetwork3-1c1f2945fae39731b7094a090193de92fc3ebe43.tar.gz
Update docstring for "update_wiki_comment".
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--gn3/db/rdf/wiki.py26
1 files changed, 1 insertions, 25 deletions
diff --git a/gn3/db/rdf/wiki.py b/gn3/db/rdf/wiki.py
index 948ceec..f81d695 100644
--- a/gn3/db/rdf/wiki.py
+++ b/gn3/db/rdf/wiki.py
@@ -193,31 +193,7 @@ def update_wiki_comment(
graph: str = "<http://genenetwork.org>",
) -> str:
"""Update a wiki comment by inserting a comment with the same
-identifier but an updated version id. The End form of this query
-looks like:
-
- INSERT {
- GRAPH <http://genenetwork.org> {
- [ rdfs:label '''XXXX'''@en] rdf:type gnc:GNWikiEntry ;
- gnt:symbol "XXXX" ;
- foaf:mbox <XXXX> ;
- gnt:initial "XXXX" ;
- gnt:belongsToSpecies ?speciesId ;
- gnt:reason "XXXX" ;
- foaf:homepage <XXXX> ;
- dct:references pmid:XXXX ;
- dct:references pmid:XXXX ;
- gnt:belongsToCategory "XXXX";
- gnt:belongsToCategory "XXXX";
- dct:hasVersion "123"^^xsd:integer ;
- dct:identifier "1"^^xsd:integer ;
- dct:created "2024-09-11 11:00"^^xsd:datetime .
-
- } USING <http://genenetwork.org> WHERE {
- ?speciesId gnt:shortName "{species}" .
-
- }
- }
+identifier but an updated version id.
"""
name = f"gn:wiki-{insert_dict['Id']}-{insert_dict['versionId']}"
comment_triple = Template("""$name rdf:label '''$comment'''@en ;