. . . . . . . . . . . . . . . "VirtSparqlCxmlPivotViewer" . "66fd926ba81b4071123bb24917a743a4" . . . . . . "2017-06-13T05:47:08Z" . "---+Pivot Collections (Part 4)\n\n---++Contents\n\nPart 1: [[VirtSparqlCxml][Introduction]]\n\nPart 2: [[VirtSparqlCxml][SparqlCxml]]\n\nPart 3: [[VirtSparqlCxmlDzcs][SparqlCxml Deep Zoom Collections]]\n\nPart 4: PivotViewer\n\n * [[#AncSparqlCxmlPivotViewer][PivotViewer]]\n * [[#AncPivotViewerUsage][Usage]]\n * [[#AncTableView][Table View]]\n * [[#AncMapView][Map View]]\n * [[#AncBingMaps][Bing Maps]]\n * [[#AncCrossDomainBrowsing][Cross-domain Collection Browsing]]\n\nPart 5: [[VirtSparqlCxmlImport][Importing CXML]]\n\nPart 6: [[VirtSparqlCxmlFacetPivotBridge][Facet Pivot Bridge]]\n\nPart 7: [[VirtSparqlCxmlDETs][DETs : Persisting SPARQL Query Results to DAV]]\n\nPart 8: [[VirtSparqlCxmlFAQs][Frequently Asked Questions (FAQs)]]\n\nPart 9: [[VirtSparqlCxmlGlossary][Glossary]]\n\n---\n#AncSparqlCxmlPivotViewer\n---++PivotViewer\n\nThe Silverlight PivotViewer control makes it easy to view and interact with massive amounts of data on the web. The Virtuoso PivotViewer provides a container for a customized (subclassed) version of the control offering map and grid views of the data in addition to the standard tile view. The viewer can display both Virtuoso-generated and third-party collections, hosted locally on the viewer host or remotely. Other enhancements include the facility to bookmark static or dynamic collection URIs on popular social networking sites, in-place editing of SPARQL queries used for dynamic collection generation and collection permalink creation with automatic URL shortening.\n\n#AncPivotViewerUsage\n---+++Usage\n\nAfter installing VAD pivot_dav.vad, PivotViewer is exposed as http://{cname}/PivotViewer/. Any browser with the Silverlight plugin installed can launch the Virtuoso PivotViewer application. Supported browsers currently include Internet Explorer, Firefox, Chrome, Opera and Safari on Windows and OS X.\n\nIf the viewer is launched without specifying a collection URI, you will be prompted to supply one in the \"Collection URL\" textbox. Alternatively, the viewer will immediately load any collection specified in a query string, for example:\n\nhttp://kingsley.idehen.net/PivotViewer/?url=http%3A%2F%2Fkingsley.idehen.net%2Fc%2FLLPCJ%23%2524facet0%2524%3DSort%2520Label%26%2524view%2524%3D1%26%24tab%24%3D0%26%24zoom%24%3D2\n\nIn this instance the url parameter is a link to a dynamic \"Solo Music Artist\" collection, created through PivotViewer's permalink option. The query to generate the collection is: \n\nDEFINE sql:describe-mode \"CBD\"\nDESCRIBE ?s FROM \nWHERE \n{ \n?s a mo:SoloMusicArtist;\n mo:image ?image;\n mo:musicbrainz ?musicbrainz;\n foaf:page ?href;\n foaf:name ?name;\n rdfs:comment ?comments.\n optional {?s mo:wikipedia ?wikipedia}.\n optional {?s mo:biography ?bio}.\n optional {?s mo:myspace ?myspace}.\n optional {?s mo:imdb ?imdb}.\n}\n\nLIMIT 100\n\nexecuted against SPARQL endpoint http://lod.openlinksw.com/sparql.\n\nYou can re-create this collection from scratch by pasting the query into Virtuoso's SPARQL query UI hosted at /sparql and setting \"Format Results As\" to \"CXML (Pivot Collection)\"\n
\n\n
\nAfter executing the query, the browser address bar contains the full URL-encoded SPARQL query\n\n\nPaste this into the URL text box displayed by /PivotViewer to view the collection:\n\n\nShould you want to modify the source query to create a variant of the collection, it can be edited via PivotViewer's \"Edit\" link:\n\n
\n\n
\n\nPivotViewer offers three view styles - the standard tile view above, table and, if geolocation data is available, map. \n\n#AncTableView\n---+++Table View\nThe table view of the Solo Music Artist collection is shown below:\n\n\n\nThe data in the table view can be manipulated by clicking on the cells in the table. Clicking on the name of an item in the Item column will select that item. The table will then only show rows that contain information about that particular item. The info pane for that item will also be displayed on the right hand side. Once a single item has been selected, clicking on any cell in the Item column will clear the selection and rows will be displayed for all items in the collection. Similarly, clicking on a facet in the Facet column will restrict the table to only showing that facet. Again, once a facet has been selected, clicking on any row in the Facet column will clear the selection. The values in the Value column can be used to set a collection filter in the same way that clicking on a value in the info pane sets a filter. Filters are cleared using the filter pane on the left hand side. In addition, clicking on values in the Value column that are URLs will open that URL. The table can be sorted on each column by clicking on the column headers.\n\n#AncMapView\n---+++Map View\n\nAn example map view, generated by a different query, is shown below:\n\n\n\nThe SPARQL-FED query providing the collection is:\n\n## Example using OpenEI (US Govt - Energy Dept) data\n\nPREFIX rdf: \nPREFIX rdfs: \nPREFIX swivt: \nPREFIX resource: \nPREFIX category: \nPREFIX property: \n\nSELECT * WHERE\n{ SERVICE \n\t{{\n SELECT * WHERE\n \t{\n \t?organization swivt:page ?page .\n ?organization property:Region resource:Bay_Area .\n ?organization rdfs:label ?name .\n OPTIONAL { ?organization foaf:depiction ?image . } \n OPTIONAL { ?organization property:Address ?address . } \n OPTIONAL { ?organization property:Zip ?zip . } \n OPTIONAL { ?organization property:Coordinates ?location . } \n OPTIONAL {\n ?organization property:Place ?place .\n ?place rdfs:label ?placename . } \n OPTIONAL {\n ?organization property:Sector ?sector .\n \t ?sector rdfs:label ?sectorname . \n\t\t\t\t } \n OPTIONAL {\n ?organization rdf:type ?category .\n ?category rdfs:label ?categoryname .\n\t\t\t\t }\n }\n\tLIMIT 100\n }}\n}\n\n\nNotice the use of the reserved query variable ?location to indicate to SparqlCxml which property provides the map's geo-data. For more information, see VirtSparqlCxml section \"Reserved Query Variable for Geodata\"\n\n#AncBingMaps\n---++++Bing Maps\n\nIf possible, PivotViewer will use Bing Maps to create the map view. In order for Bing Maps to work, you must first add a Bing maps key to the Virtuoso registry. To do so:\n * Get a key from http://www.bingmapsportal.com/\n * Register it in Virtuoso using the command:\n * registry_set ('_pivot_BingMapsKey','XXX'); where 'XXX' is replaced with your key.\n\nIf a valid Bing key is not found, PivotViewer defaults to using a static Google map.\n\n#AncCrossDomainBrowsing\n---+++Cross-domain Collection Browsing\n\nAs well as displaying collections from the same site as itself, PivotViewer can display remote collections, provided the collection publisher has granted the necessary access. The Silverlight security model only allows a Silverlight application to make HTTP web requests to the domain that originally served the application. Cross-domain access to collections on another server requires either a clientaccesspolicy.xml or crossdomain.xml file allowing access from the site serving the Silverlight application.\n\nTo view a collection served from a different site to that serving PivotViewer, one of these XML files must be present on the server hosting the collection. You may need to contact the system administrator for the server to ensure this is the case. If the collection is being generated by another Virtuoso server, the file must reside in the Virtuoso HTTP root directory identified by the ServerRoot entry in the HTTPServer section of the virtuoso.ini configuration file. Normally this is set to {virtuoso-root-directory}/vsp.\n\nExample clientaccesspolicy.xml and crossdomain.xml files are shown below. (The same content works for both.) The PivotViewer VAD includes an 'open' crossdomain.xml file which grants access from any domain. Your system administrator may prefer to restrict access through a more fine-grained policy. Either file can be used to grant cross-domain access. clientaccesspolicy.xml is specifically for Silverlight. crossdomain.xml serves the same purpose but for Flash. If a resource has been enabled for Flash, it then becomes available for Silverlight. If clientaccesspolicy.xml is not present, Silverlight will look for crossdomain.xml and use this instead.\n\n ---++++clientaccesspolicy.xml\n\n\n\n\n\n\n\n---++++crossdomain.xml\n\n\n\n\n\n\n\nFor more information on configuring access permissions in Silverlight, refer to MSDN article [[http://msdn.microsoft.com/en-us/library/cc645032%28VS.95%29.aspx][Network Security Access Restrictions in Silverlight]].\n---" . . "VirtSparqlCxmlPivotViewer" . . . . . . "VirtSparqlCxmlPivotViewer" . "2017-06-13T05:47:08Z" . . . "2017-06-13T05:47:08.841147"^^ . . . "2017-06-13T05:47:08.841147"^^ . . . .