29. Northwind Demo Database: RDF View Definition Extract prefix northwind: <http://www.openlinksw.com/schemas/northwind#> … create iri class northwind:Customer <http://^{URIQADefaultHost}^/Northwind/Customer/%U#this> (in customer_id varchar not null) … alter quad storage virtrdf:DefaultQuadStorage … from Demo.demo.Customers as customers from Demo.demo.Orders as orders … { Demo.demo.Customers Northwind RDF View Definition create virtrdf:NorthwindDemo as graph iri (“http://^{URIQADefaultHost}^/Northwind”) { … northwind:Customer(customers.CustomerID) a foaf:Organization as virtrdf:Customer-CustomerID ; northwind:companyName customers.CompanyName as … ; … northwind:fax customers.Fax as virtrdf:Customer-fax . … } } northwind:Customer(orders.CustomerID) northwind:has_order northwind:Order(orders.OrderID) as virtrdf:Order-has_order . Country Phone Postal Code Address City Fax Contact Title Contact Name Company Name Customer ID
30. Northwind Demo Database: Customer Table to RDF Entity Mapping Orders Table Germany Country 030 - 0074321 Phone 12209 Postal Code Obere Str. 57 Address Berlin City 030 - 0076545 Sales Represe-ntative Maria Anders Alfreds Futterkiste ALFKI Fax Contact Title Contact Name Company Name Customer ID companyName contactName contactTitle address city PostalCode country phone fax Alfreds Futterkiste Maria Anders Sales Representative Obere Str. 57 Berlin 12209 Germany 030-0074321 030-0076545 … Order/10643#this has_order Order/10692#this … has_order Customer/ALFKI#this prefix <http://demo.openlinksw.com/Northwind/> has_customer has_customer … ALFKI 10643 … ALFKI 10692 … Customer ID Order ID