Attributes | Values |
---|
has container
| |
Date Created
| |
maker
| |
topic
| |
described by
| |
seeAlso
| |
Date Modified
| |
link
| |
id
| - 8542a5533d62e9549d3a3a21e4421cc2
|
content
| - %VOSWARNING%
%META:TOPICPARENT{name="VirtLinkRemoteTables"}%
---+ Linking <nop>PostgreSQL Database Objects into Virtuoso
---++ Steps
1. Start the Virtuoso Web User Interface.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtWebHome.png" style="wikiautogen"/>%BR%%BR%
2. Select the *Conductor* link in the left frame and login as the *dba* user.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtConductor.png" style="wikiautogen"/>%BR%%BR%
3. Select the *Databases* -> *External Data Source* -> *Data Sources* tab menu items.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtLinkPGR0.png" style="wikiautogen"/>%BR%%BR%
4. Select the *Connect* button for the *pg7ma* <nop>PostgreSQL DSN.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtLinkPGR1.png" style="wikiautogen"/>%BR%%BR%
5. On successful connection, select the *Link Objects* button to obtain a list of available tables.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtLinkPGR2.png" style="wikiautogen"/>%BR%%BR%
6. Select all the tables that you would like to link.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtLinkPGR3.png" style="wikiautogen"/>%BR%%BR%
7. Change the Catalog for each table to be *PGR* using the *Set All* button.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtLinkPGR4.png" style="wikiautogen"/>%BR%%BR%
8. All the catalog names are changed to *PGR*.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtLinkPGR5.png" style="wikiautogen"/>%BR%%BR%
9. Select the *Link* button to link the selected tables into Virtuoso.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtLinkPGR6.png" style="wikiautogen"/>%BR%%BR%
10. On completion of the Link process, the tables will be displayed in the *External Linked Objects* tab.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtLinkPGR7.png" style="wikiautogen"/>%BR%%BR%
11. The linked tables can be queried by clicking on the hyperlink in the *Local Name* column of the *External Linked Objects* tab above. This loads the Virtuoso *Interactive SQL* interface with the required SQL *Select* for retrieving the remote table data. We shall use the *PGR.PGR.Customers* table to demonstrate this.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtLinkPGR9.png" style="wikiautogen"/>%BR%%BR%
12. Click the *Execute* button to run the query and retrieve results from the remote table.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtLinkPGR10.png" style="wikiautogen"/>%BR%%BR%
13. The tables can also be viewed as part of the Virtuoso *SQL Schema Objects* under the *PGR* catalog name.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtLinkPGR8.png" style="wikiautogen"/>%BR%%BR%
The Link process is now complete enabling the tables to be queried as if part of the Virtuoso Schema.
---++ Related
* [[VOSSQL2RDF][Mapping SQL Data to Linked Data Views]]
* [[VirtPostgresEntityFrameworkUsage][Using Microsoft Entity Frameworks to Access PostgreSQL Schema Objects with Virtuoso]]
CategoryDocumentation CategoryVirtuoso CategoryDotNET CategoryEntityFrameworks CategoryWebSite
|
Title
| |
attachment
| |
has creator
| |
is described using
| |
atom:source
| |
atom:updated
| |
atom:title
| |
links to
| |
atom:author
| |
name
| |
topic
| |
atom:published
| |
type
| |
is topic
of | |
is made
of | |
is link
of | |
is creator of
of | |
is atom:contains
of | |
is atom:entry
of | |
is links to
of | |
is container of
of | |
is http://vocab.deri.ie/void#inDataset
of | |