From 1c1f2945fae39731b7094a090193de92fc3ebe43 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Thu, 19 Sep 2024 18:08:08 +0300 Subject: Update docstring for "update_wiki_comment". Signed-off-by: Munyoki Kilyungi --- gn3/db/rdf/wiki.py | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'gn3/db/rdf/wiki.py') 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 = "", ) -> 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 { - [ rdfs:label '''XXXX'''@en] rdf:type gnc:GNWikiEntry ; - gnt:symbol "XXXX" ; - foaf:mbox ; - gnt:initial "XXXX" ; - gnt:belongsToSpecies ?speciesId ; - gnt:reason "XXXX" ; - foaf:homepage ; - 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 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 ; -- cgit v1.2.3