. . . "VirtTipsAndTricksGuideQuadStorageInternally" . . "2017-06-13T05:36:47.953557"^^ . "2017-06-13T05:36:47.953557"^^ . . . "2017-06-13T05:36:47Z" . . "21f4d615f871ee317ae5515f553d247d" . "VirtTipsAndTricksGuideQuadStorageInternally" . "2017-06-13T05:36:47Z" . . . . . . . "%META:TOPICPARENT{name=\"VirtTipsAndTricksGuide\"}%\n\n---++How can I see which quad storages exist and in which quad storage a graph resides?\n\n\nLet's take for example a [[http://virtuoso.openlinksw.com/whitepapers/relational%20rdf%20views%20mapping.html][created RDF view from relational data in Virtuoso]]. The RDF output therefor should have two graphs which reside in a quad storage named for ex.:\n\n\nhttp://localhost:8890/rdfv_demo/quad_storage/default\n\n\nAlso the RDF is accessible over the SPARQL endpoint with the following query:\n\n\ndefine input:storage \nSELECT * \nWHERE \n { \n ?s ?p ?o \n }\n\n\nNow one could ask is there a way to define internally (once) that the quad storage should be included in queries to the SPARQL endpoint? So that the user does not have to define the input:storage explicitly in each query, like this:\n\n\nhttp://localhost:8890/sparql?query=select * where { ?s ?p ?o }&default-graph-uri=NULL&named-graph-uri=NULL\n\n\n\nAll metadata about all RDF storages are kept in \"system\" graph <http://www.openlinksw.com/schemas/virtrdf#> ( namespace prefix\nvirtrdf: ). Subjects of type virtrdf:QuadStorage are RDF storages. There are three of them by default:\n\n\nSQL> SPARQL SELECT * FROM virtrdf: WHERE { ?s a virtrdf:QuadStorage };\ns\nVARCHAR\n_______________________________________________________________________________\n\nhttp://www.openlinksw.com/schemas/virtrdf#DefaultQuadStorage\nhttp://www.openlinksw.com/schemas/virtrdf#DefaultServiceStorage\nhttp://www.openlinksw.com/schemas/virtrdf#SyncToQuads\n\n3 Rows. -- 3 msec.\n\n\n 1 virtrdf:DefaultQuadStorage is what's in use if no input:storage specified.\n 1 virtrdf:DefaultServiceStorage will be used for SPARQL federation.\n 1 virtrdf:SyncToQuads is to keep the list of Linked Data Views that are translated into RDB2RDF triggers.\n\nThere are two ways of using the Linked Data View from above in SPARQL endpoint without define input:storage:\n 1. Create Linked Data View right in virtrdf:DefaultQuadStorage or add the view in other storage and then copy it from there to virtrdf:DefaultQuadStorage.\n * In any of these two variants, use:\n\nSPARQL ALTER QUAD STORAGE virtrdf:DefaultQuadStorage . . .\n\n 1. Use SYS_SPARQL_HOST table as described [[http://docs.openlinksw.com/virtuoso/rdfsparql.html#rdfdefaultgraph][here]] and set SH_DEFINES so it contains your favorite define input:storage\n\n\n\n\n---+++Related\n \n * [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]]\n * [[http://docs.openlinksw.com/virtuoso/rdfsparql.html][SPARQL]]" . . . . . . . . . "VirtTipsAndTricksGuideQuadStorageInternally" . .