Virtuoso Open-Source Edition

  • Topic
  • Discussion
  • VOS.VirtTipsAndTricksDROPSilentGraph(Last) -- DAVWikiAdmin? , 2017-06-13 05:38:33 Edit WebDAV System Administrator 2017-06-13 05:38:33

    How can I drop a graph for which is not clear was it created explicitly or not?

    If you are not sure whether a given graph is created explicitly or not, in order to drop the graph use the DROP SILENT GRAPH statement:

    DROP SILENT GRAPH <http://example1.com>
    
    callret-0
    Drop silent graph <http://example1.com> -- done
    

    If a given graph is created explicitly however, i.e. using the CREATE GRAPH statement:

    CREATE GRAPH <http://example2.com>
    
    callret-0
    Create graph <http://example2.com> -- done
    

    then you can use DROP GRAPH in order to drop the graph:

    DROP GRAPH <http://example2.com>
    
    callret-0
    Drop graph <http://example2.com> -- done
    

    Related