This HTML5 document contains 50 embedded RDF statements represented using HTML+Microdata notation.

The embedded RDF content will be recognized by any processor of HTML5 Microdata.

Namespace Prefixes

PrefixIRI
dctermshttp://purl.org/dc/terms/
atomhttp://atomowl.org/ontologies/atomrdf#
foafhttp://xmlns.com/foaf/0.1/
n14http://vos.openlinksw.com/dataspace/services/wiki/
n4http://vos.openlinksw.com/wiki/main/VOS/VirtGraphReplicationStar/
oplhttp://www.openlinksw.com/schema/attribution#
n2http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/
dchttp://purl.org/dc/elements/1.1/
n20http://vos.openlinksw.com/dataspace/dav#
rdfshttp://www.w3.org/2000/01/rdf-schema#
n13http://rdfs.org/sioc/services#
siocthttp://rdfs.org/sioc/types#
n11http://vos.openlinksw.com/dataspace/person/dav#
n22http://ods.openlinksw.com/wiki/ODS/
n15http://vos.openlinksw.com/dataspace/owiki/wiki/
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n6http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/VirtGraphReplicationStar/
n19http://vos.openlinksw.com/dataspace/owiki#
xsdhhttp://www.w3.org/2001/XMLSchema#
n17http://vos.openlinksw.com/dataspace/%28NULL%29/wiki/VOS/
n10http://vos.openlinksw.com/dataspace/person/owiki#
siochttp://rdfs.org/sioc/ns#
n7http://s3.amazonaws.com/opldownload/uda/vad-packages/6.1/virtuoso/

Statements

Subject Item
n2:VirtGraphReplicationStar
rdf:type
sioct:Comment atom:Entry
dcterms:created
2017-06-13T05:47:00.912336
dcterms:modified
2017-06-13T05:47:00.912336
rdfs:label
VirtGraphReplicationStar
foaf:maker
n10:this n11:this
dc:title
VirtGraphReplicationStar
opl:isDescribedUsing
n6:sioc.rdf
sioc:has_creator
n19:this n20:this
sioc:attachment
n4:r2.png n4:r16.png n4:r18.png n4:r13a.png n4:r15.png n4:r12.png n4:r13.png n4:r6.png n4:r7.png n4:r4.png n4:r5.png n4:r24.png n4:r3.png n4:r22.png n4:r23.png n4:topo-star.png n4:r8.png n4:r9.png n4:r10.png n4:r11.png n4:r1.png n4:r19.png
sioc:content
%META:TOPICPARENT{name="VirtGraphReplication"}% ---+ Replication Example: Star Topology %TOC% ---++Introduction The following How-To walks you through setting up Virtuoso RDF Graph Replication in a Star Topology. %BR%%BR%<img src="%ATTACHURLPATH%/topo-star.png" />%BR%%BR% ---++Prerequisites ---+++Database INI Parameters Suppose there are 3 Virtuoso instances respectively with the following ini parameters values: 1. virtuoso1.ini: <verbatim> ... [Database] DatabaseFile = virtuoso1.db TransactionFile = virtuoso1.trx ErrorLogFile = virtuoso1.log ... [Parameters] ServerPort = 1111 SchedulerInterval = 1 ... [HTTPServer] ServerPort = 8891 ... [URIQA] DefaultHost = localhost:8891 ... [Replication] ServerName = db1 ... </verbatim> 1. virtuoso2.ini: <verbatim> ... [Database] DatabaseFile = virtuoso2.db TransactionFile = virtuoso2.trx ErrorLogFile = virtuoso2.log ... [Parameters] ServerPort = 1112 SchedulerInterval = 1 ... [HTTPServer] ServerPort = 8892 ... [URIQA] DefaultHost = localhost:8892 ... [Replication] ServerName = db2 ... </verbatim> 1. virtuoso3.ini: <verbatim> ... [Database] DatabaseFile = virtuoso3.db TransactionFile = virtuoso3.trx ErrorLogFile = virtuoso3.log ... [Parameters] ServerPort = 1113 SchedulerInterval = 1 ... [HTTPServer] ServerPort = 8893 ... [URIQA] DefaultHost = localhost:8893 ... [Replication] ServerName = db3 ... </verbatim> ---+++Database DSNs Use the ODBC Administrator on your Virtuoso host (e.g., on Windows, *Start* menu -> *Control Panel* -> *Administrative Tools* -> <b>Data Sources (ODBC)</b>; on Mac OS X, <code><nowiki>/Applications/Utilities/OpenLink ODBC Administrator.app</nowiki></code>) to create a System DSN for each of db1, db2, db3, with names db1, db2 and db3, respectively. ---+++Install Conductor package On each of the 3 Virtuoso instances install the [[http://s3.amazonaws.com/opldownload/uda/vad-packages/6.1/virtuoso/conductor_dav.vad][conductor_dav.vad]] package. ---++Create a Publication on the Host Virtuoso Instance -- db1 1 Go to *Conductor* -> *Replication* -> *Transactional* -> *Publications*: %BR%%BR%<img src="%ATTACHURLPATH%/r6.png" />%BR%%BR% 1 Click <b>Enable RDF Publishing</b>. 1 A publication with the name *RDF Publication* should be created: %BR%%BR%<img src="%ATTACHURLPATH%/r7.png" />%BR%%BR% 1 Click the link which is the publication name. 1 You will be shown the publication items page: %BR%%BR%<img src="%ATTACHURLPATH%/r8.png" />%BR%%BR% 1 Enter for <b>Graph IRI</b> <verbatim> http://example.org </verbatim> %BR%%BR%<img src="%ATTACHURLPATH%/r9.png" />%BR%%BR% 1 Click <b>Add New</b>. 1 The item will be created and shown in the list of items for the currently viewed publication. %BR%%BR%<img src="%ATTACHURLPATH%/r10.png" />%BR%%BR% ---++Insert Data into a Named Graph on the Host Virtuoso Instance There are several ways to insert data into a Virtuoso Named Graph. In this Guide, we will use the Virtuoso Conductor's <b>Import RDF</b> feature: 1. In the Virtuoso Conductor, go to *Linked Data* -> *Quad Store Upload*: %BR%%BR%<img src="%ATTACHURLPATH%/r1.png" />%BR%%BR% 1 In the presented form: * Tick the box for *Resource URL* and enter your resource URL, for e.g.: <verbatim> http://www.openlinksw.com/dataspace/person/kidehen@openlinksw.com#this </verbatim> * Enter for *Named Graph IRI*: <verbatim> http://example.org </verbatim> %BR%%BR%<img src="%ATTACHURLPATH%/r2.png" />%BR%%BR% 1 Click <b>Upload</b> 1 A successful upload will result in this message: %BR%%BR%<img src="%ATTACHURLPATH%/r3.png" />%BR%%BR% 1 Check the inserted triples by executing a query like the following against the SPARQL endpoint, <code><nowiki>http://cname:port/sparql</nowiki></code> -- <verbatim> SELECT * FROM <http://example.org> WHERE { ?s ?p ?o } </verbatim> %BR%%BR%<img src="%ATTACHURLPATH%/r4.png" />%BR%%BR% 1 See how many triples have been inserted in your graph: <verbatim> SELECT COUNT(*) FROM <http://example.org> WHERE { ?s ?p ?o } </verbatim> %BR%%BR%<img src="%ATTACHURLPATH%/r5.png" />%BR%%BR% ---++Subscribe to the Publication on the a Destination Virtuoso Instance -- db2, db3, etc. 1 Go to *Conductor* -> *Replication* -> *Transactional* -> *Subscriptions*: %BR%%BR%<img src="%ATTACHURLPATH%/r11.png" />%BR%%BR% 1 Click <b>New Subscription</b>: %BR%%BR%<img src="%ATTACHURLPATH%/r12.png" />%BR%%BR% 1 Specify a new Data Source Enter or selected target data source from the available connected Data Sources: %BR%%BR%<img src="%ATTACHURLPATH%/r13.png" />%BR%%BR% %BR%%BR%<img src="%ATTACHURLPATH%/r13a.png" />%BR%%BR% 1 Click <b>Publications list</b>: %BR%%BR%<img src="%ATTACHURLPATH%/r15.png" />%BR%%BR% 1 Select the <b>RDF Publication</b> and click <b>List Items</b>: %BR%%BR%<img src="%ATTACHURLPATH%/r16.png" />%BR%%BR% 1 Click <b>Subscribe</b>. 1 The subscription will be created: %BR%%BR%<img src="%ATTACHURLPATH%/r18.png" />%BR%%BR% 1 Click <b>Sync</b>. 1 Check the retrieved triples by executing the following query: <verbatim> SELECT * FROM <http://example.org> WHERE {?s ?p ?o} </verbatim> %BR%%BR%<img src="%ATTACHURLPATH%/r19.png" />%BR%%BR% 1 See how many triples have been inserted into your graph by executing the following query: <verbatim> SELECT COUNT(*) FROM <http://example.org> WHERE {?s ?p ?o} </verbatim> %BR%%BR%<img src="%ATTACHURLPATH%/r5.png" />%BR%%BR% These steps may be repeated for any number of Subscribers. ---++Insert Triples into the Host Virtuoso Instance Graph and check availability at Destination Virtuoso Instance Graph 1. To check the starting count, on the Destination Virtuoso Instance SPARQL Endpoint, execute: <verbatim> SELECT COUNT(*) FROM <http://example.org> WHERE { ?s ?p ?o } </verbatim> 1. On the Host Virtuoso Instance go to *Conductor* -> *Database* -> *Interactive SQL* and execute the following statement: <verbatim> SPARQL INSERT INTO GRAPH <http://example.org> { <http://www.openlinksw.com/dataspace/person/kidehen@openlinksw.com#this> <http://xmlns.com/foaf/0.1/interest> <http://dbpedia.org/resource/Web_Services> } ; SPARQL INSERT INTO GRAPH <http://example.org> { <http://www.openlinksw.com/dataspace/person/kidehen@openlinksw.com#this> <http://xmlns.com/foaf/0.1/interest> <http://dbpedia.org/resource/Web_Clients> } ; SPARQL INSERT INTO GRAPH <http://example.org> { <http://www.openlinksw.com/dataspace/person/kidehen@openlinksw.com#this> <http://xmlns.com/foaf/0.1/interest> <http://dbpedia.org/resource/SPARQL> } ; </verbatim> %BR%%BR%<img src="%ATTACHURLPATH%/r22.png" />%BR%%BR% %BR%%BR%<img src="%ATTACHURLPATH%/r23.png" />%BR%%BR% 1. To confirm that the triple count has increased by the number of inserted triples, execute the following on the Destination Virtuoso Instance SPARQL Endpoint: <verbatim> SELECT COUNT(*) FROM <http://example.org> WHERE { ?s ?p ?o } </verbatim> %BR%%BR%<img src="%ATTACHURLPATH%/r24.png" />%BR%%BR% ---++Related * [[VirtGraphReplicationChain][Replication Example: Chain Topology]] * [[VirtGraphReplicationBiDirectional][Replication Example: 2-node Bi-directional Topology]] * [[VirtGraphReplicationPSQL][Set up RDF Replication via procedure calls]] * [[http://ods.openlinksw.com/wiki/ODS/VirtPubSubHub][Example of Linked Data Usage of PubSubHubbub Implementation]] * [[VirtRdfReplScenarios][Exploit Virtuoso's Replication Functionality Web based Solutions]]
sioc:id
1395a8650cdff236bb86d7683aa288ef
sioc:link
n2:VirtGraphReplicationStar
sioc:has_container
n15:VOS
n13:has_services
n14:item
atom:title
VirtGraphReplicationStar
sioc:links_to
n7:conductor_dav.vad n2:VirtGraphReplicationPSQL n2:VirtGraphReplicationChain n17:VirtRdfReplScenarios n2:VirtGraphReplicationBiDirectional n22:VirtPubSubHub
atom:source
n15:VOS
atom:author
n11:this
atom:published
2017-06-13T05:47:00Z
atom:updated
2017-06-13T05:47:00Z
sioc:topic
n15:VOS