"2017-06-13T05:46:17.320498"^^ . "2017-06-13T05:46:17Z" . . . "2017-06-13T05:46:17.320498"^^ . . . . . "%META:TOPICPARENT{name=\"VirtTipsAndTricksGuide\"}%\n\n---++How to rename a RDF Graph in the Virtuoso Quad Store\n\n\n---+++Rename RDF Graph\nA RDF Graph in the Virtuoso Quad Store can be renamed without copying each assertion from the old graph to the new graph using a SQL statement, this being what the Conductor \"rename\" option does, which is:\n\n\nUPDATE DB.DBA.RDF_QUAD TABLE OPTION (index RDF_QUAD_GS) \n SET g = iri_to_id ('new') \n WHERE g = iri_to_id ('old', 0); \n\n\nNote: this operation must be run in row-autocommit mode i.e. log_enable (3), and then restore back to the default logging mode of 1.\n\n\n---+++Rename RDF Graph Group\n\nFor Virtuoso Graph Groups two tables need to be updated:\n\n\nUPDATE DB.DBA.RDF_GRAPH_GROUP_MEMBER \n SET RGGM_GROUP_IID = iri_to_id ('new') \n WHERE RGGM_GROUP_IID = iri_to_id (old)\n\n\nand \n\n\nUPDATE DB.DBA.RDF_GRAPH_GROUP \n SET RGG_IID = iri_to_id ('new') , RGG_IRI = 'new' \n WHERE RGG_IRI = 'old' \n\n\n\n---+++Related\n \n * [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]]\n * [[http://docs.openlinksw.com/virtuoso/rdfperformancetuning.html][RDF Performance Tuning]]" . . . . . "VirtTipsAndTricksGuideRenameGraph" . . "VirtTipsAndTricksGuideRenameGraph" . . "2017-06-13T05:46:17Z" . "VirtTipsAndTricksGuideRenameGraph" . . "9305e673f0165a8591bb3c7abc30b401" . . .