<docbook><section><title>VirtTipsAndTricksGuideConductorR2RMLGenR2RML</title><para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h2">R2RML generated script for Northwind DB collection</bridgehead>
<para>The following script is generated R2RML script using Conductor UI for the Northwind DB collection of the following objects: </para>
<itemizedlist mark="bullet" spacing="compact"><listitem>Categories; </listitem>
<listitem>Customers; </listitem>
<listitem>Employees; </listitem>
<listitem>Order_Details; </listitem>
<listitem>Orders; </listitem>
<listitem>Products.</listitem>
</itemizedlist><programlisting>@prefix rr: &lt;http://www.w3.org/ns/r2rml#&gt; .
@prefix Demo: &lt;http://demo.openlinksw.com/schemas/Demo/&gt; .
@prefix demo-stat: &lt;http://demo.openlinksw.com/Demo/stat#&gt; .
@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix void: &lt;http://rdfs.org/ns/void#&gt; .
@prefix scovo: &lt;http://purl.org/NET/scovo#&gt; .
@prefix aowl: &lt;http://bblfish.net/work/atom-owl/2006-06-06/&gt; .


&lt;#TriplesMapCategories&gt; a rr:TriplesMap; rr:logicalTable [ rr:tableSchema &quot;Demo&quot; ; rr:tableOwner &quot;demo&quot; ; rr:tableName &quot;Categories&quot; ]; 
rr:subjectMap [ rr:termtype &quot;IRI&quot;  ; rr:template &quot;http://demo.openlinksw.com/Demo/categories/{CategoryID}&quot;; rr:class Demo:Categories; ];
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:categoryid ] ; rr:objectMap [ rr:column &quot;CategoryID&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:categoryname ] ; rr:objectMap [ rr:column &quot;CategoryName&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:description ] ; rr:objectMap [ rr:column &quot;Description&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:picture ] ; rr:objectMap [ rr:column &quot;Picture&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:categories_of_products ] ; rr:objectMap [ rr:parentTriplesMap &lt;#TriplesMapProducts&gt;;  rr:joinCondition [ rr:child &quot;CategoryID&quot; ; rr:parent &quot;CategoryID&quot; ] ; ]; ] .

&lt;#TriplesMapCustomers&gt; a rr:TriplesMap; rr:logicalTable [ rr:tableSchema &quot;Demo&quot; ; rr:tableOwner &quot;demo&quot; ; rr:tableName &quot;Customers&quot; ]; 
rr:subjectMap [ rr:termtype &quot;IRI&quot;  ; rr:template &quot;http://demo.openlinksw.com/Demo/customers/{CustomerID}&quot;; rr:class Demo:Customers; ];
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:customerid ] ; rr:objectMap [ rr:column &quot;CustomerID&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:companyname ] ; rr:objectMap [ rr:column &quot;CompanyName&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:contactname ] ; rr:objectMap [ rr:column &quot;ContactName&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:contacttitle ] ; rr:objectMap [ rr:column &quot;ContactTitle&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:address ] ; rr:objectMap [ rr:column &quot;Address&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:city ] ; rr:objectMap [ rr:column &quot;City&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:region ] ; rr:objectMap [ rr:column &quot;Region&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:postalcode ] ; rr:objectMap [ rr:column &quot;PostalCode&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:country ] ; rr:objectMap [ rr:column &quot;Country&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:countrycode ] ; rr:objectMap [ rr:column &quot;CountryCode&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:phone ] ; rr:objectMap [ rr:column &quot;Phone&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:fax ] ; rr:objectMap [ rr:column &quot;Fax&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:customers_of_orders ] ; rr:objectMap [ rr:parentTriplesMap &lt;#TriplesMapOrders&gt;;  rr:joinCondition [ rr:child &quot;CustomerID&quot; ; rr:parent &quot;CustomerID&quot; ] ; ]; ] .

&lt;#TriplesMapEmployees&gt; a rr:TriplesMap; rr:logicalTable [ rr:tableSchema &quot;Demo&quot; ; rr:tableOwner &quot;demo&quot; ; rr:tableName &quot;Employees&quot; ]; 
rr:subjectMap [ rr:termtype &quot;IRI&quot;  ; rr:template &quot;http://demo.openlinksw.com/Demo/employees/{EmployeeID}&quot;; rr:class Demo:Employees; ];
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:employeeid ] ; rr:objectMap [ rr:column &quot;EmployeeID&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:lastname ] ; rr:objectMap [ rr:column &quot;LastName&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:firstname ] ; rr:objectMap [ rr:column &quot;FirstName&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:title ] ; rr:objectMap [ rr:column &quot;Title&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:titleofcourtesy ] ; rr:objectMap [ rr:column &quot;TitleOfCourtesy&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:birthdate ] ; rr:objectMap [ rr:column &quot;BirthDate&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:hiredate ] ; rr:objectMap [ rr:column &quot;HireDate&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:address ] ; rr:objectMap [ rr:column &quot;Address&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:city ] ; rr:objectMap [ rr:column &quot;City&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:region ] ; rr:objectMap [ rr:column &quot;Region&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:postalcode ] ; rr:objectMap [ rr:column &quot;PostalCode&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:country ] ; rr:objectMap [ rr:column &quot;Country&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:countrycode ] ; rr:objectMap [ rr:column &quot;CountryCode&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:homephone ] ; rr:objectMap [ rr:column &quot;HomePhone&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:extension ] ; rr:objectMap [ rr:column &quot;Extension&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:photo ] ; rr:objectMap [ rr:column &quot;Photo&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:notes ] ; rr:objectMap [ rr:column &quot;Notes&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:reportsto ] ; rr:objectMap [ rr:column &quot;ReportsTo&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:employees_of_orders ] ; rr:objectMap [ rr:parentTriplesMap &lt;#TriplesMapOrders&gt;;  rr:joinCondition [ rr:child &quot;EmployeeID&quot; ; rr:parent &quot;EmployeeID&quot; ] ; ]; ] .

&lt;#TriplesMapOrder_Details&gt; a rr:TriplesMap; rr:logicalTable [ rr:tableSchema &quot;Demo&quot; ; rr:tableOwner &quot;demo&quot; ; rr:tableName &quot;Order_Details&quot; ]; 
rr:subjectMap [ rr:termtype &quot;IRI&quot;  ; rr:template &quot;http://demo.openlinksw.com/Demo/order_details/{OrderID}/{ProductID}&quot;; rr:class Demo:Order_Details; ];
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:unitprice ] ; rr:objectMap [ rr:column &quot;UnitPrice&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:quantity ] ; rr:objectMap [ rr:column &quot;Quantity&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:discount ] ; rr:objectMap [ rr:column &quot;Discount&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:order_details_has_orders ] ; rr:objectMap [ rr:termtype &quot;IRI&quot; ; rr:template &quot;http://demo.openlinksw.com/Demo/orders/{OrderID}&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:order_details_has_products ] ; rr:objectMap [ rr:termtype &quot;IRI&quot; ; rr:template &quot;http://demo.openlinksw.com/Demo/products/{ProductID}&quot; ]; ] .

&lt;#TriplesMapOrders&gt; a rr:TriplesMap; rr:logicalTable [ rr:tableSchema &quot;Demo&quot; ; rr:tableOwner &quot;demo&quot; ; rr:tableName &quot;Orders&quot; ]; 
rr:subjectMap [ rr:termtype &quot;IRI&quot;  ; rr:template &quot;http://demo.openlinksw.com/Demo/orders/{OrderID}&quot;; rr:class Demo:Orders; ];
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:orderid ] ; rr:objectMap [ rr:column &quot;OrderID&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:orderdate ] ; rr:objectMap [ rr:column &quot;OrderDate&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:requireddate ] ; rr:objectMap [ rr:column &quot;RequiredDate&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:shippeddate ] ; rr:objectMap [ rr:column &quot;ShippedDate&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:freight ] ; rr:objectMap [ rr:column &quot;Freight&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:shipname ] ; rr:objectMap [ rr:column &quot;ShipName&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:shipaddress ] ; rr:objectMap [ rr:column &quot;ShipAddress&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:shipcity ] ; rr:objectMap [ rr:column &quot;ShipCity&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:shipregion ] ; rr:objectMap [ rr:column &quot;ShipRegion&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:shippostalcode ] ; rr:objectMap [ rr:column &quot;ShipPostalCode&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:shipcountry ] ; rr:objectMap [ rr:column &quot;ShipCountry&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:shipcountrycode ] ; rr:objectMap [ rr:column &quot;ShipCountryCode&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:rowguid ] ; rr:objectMap [ rr:column &quot;ROWGUID&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:orders_has_customers ] ; rr:objectMap [ rr:termtype &quot;IRI&quot; ; rr:template &quot;http://demo.openlinksw.com/Demo/customers/{CustomerID}&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:orders_has_employees ] ; rr:objectMap [ rr:termtype &quot;IRI&quot; ; rr:template &quot;http://demo.openlinksw.com/Demo/employees/{EmployeeID}&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:orders_has_shippers ] ; rr:objectMap [ rr:termtype &quot;IRI&quot; ; rr:template &quot;http://demo.openlinksw.com/Demo/shippers/{ShipVia}&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:orders_of_order_details ] ; rr:objectMap [ rr:parentTriplesMap &lt;#TriplesMapOrder_Details&gt;;  rr:joinCondition [ rr:child &quot;OrderID&quot; ; rr:parent &quot;OrderID&quot; ] ; ]; ] .

&lt;#TriplesMapProducts&gt; a rr:TriplesMap; rr:logicalTable [ rr:tableSchema &quot;Demo&quot; ; rr:tableOwner &quot;demo&quot; ; rr:tableName &quot;Products&quot; ]; 
rr:subjectMap [ rr:termtype &quot;IRI&quot;  ; rr:template &quot;http://demo.openlinksw.com/Demo/products/{ProductID}&quot;; rr:class Demo:Products; ];
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:productid ] ; rr:objectMap [ rr:column &quot;ProductID&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:productname ] ; rr:objectMap [ rr:column &quot;ProductName&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:quantityperunit ] ; rr:objectMap [ rr:column &quot;QuantityPerUnit&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:unitprice ] ; rr:objectMap [ rr:column &quot;UnitPrice&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:unitsinstock ] ; rr:objectMap [ rr:column &quot;UnitsInStock&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:unitsonorder ] ; rr:objectMap [ rr:column &quot;UnitsOnOrder&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:reorderlevel ] ; rr:objectMap [ rr:column &quot;ReorderLevel&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:discontinued ] ; rr:objectMap [ rr:column &quot;Discontinued&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:products_has_categories ] ; rr:objectMap [ rr:termtype &quot;IRI&quot; ; rr:template &quot;http://demo.openlinksw.com/Demo/categories/{CategoryID}&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:products_has_suppliers ] ; rr:objectMap [ rr:termtype &quot;IRI&quot; ; rr:template &quot;http://demo.openlinksw.com/Demo/suppliers/{SupplierID}&quot; ]; ] ;
rr:predicateObjectMap [ rr:predicateMap [ rr:constant Demo:products_of_order_details ] ; rr:objectMap [ rr:parentTriplesMap &lt;#TriplesMapOrder_Details&gt;;  rr:joinCondition [ rr:child &quot;ProductID&quot; ; rr:parent &quot;ProductID&quot; ] ; ]; ] .

</programlisting><bridgehead class="http://www.w3.org/1999/xhtml:h2">Related</bridgehead>
<itemizedlist mark="bullet" spacing="compact"><listitem><ulink url="VirtTipsAndTricksGuide">Virtuoso Tips and Tricks Collection</ulink> </listitem>
<listitem><ulink url="VirtTipsAndTricksGuideConductorR2RML">Generate Transient and/or Persistent Linked Data Views atop ODBC or JDBC accessible Relational Data Sources</ulink> </listitem>
</itemizedlist></section></docbook>