<?xml version="1.0" encoding="UTF-8" ?>
<!--ATOM based XML document generated By OpenLink Virtuoso-->
<atom:feed xmlns:atom="http://www.w3.org/2005/Atom" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:vi="http://www.openlinksw.com/weblog/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/">
<atom:id>http://www.openlinksw.com/weblog/dav/dav-blog-1/</atom:id>
<atom:title>OpenLink Community Blog</atom:title>
<atom:link href="http://www.openlinksw.com/weblog/dav/dav-blog-1/" type="text/html" rel="alternate" />
<atom:link href="http://www.openlinksw.com/weblog/dav/dav-blog-1/gems/atom_tag_arch.xml?:tag=databases&amp;:bid=dav-blog-1" type="application/atom+xml" rel="self" />
<atom:subtitle>A Collection of blogs by OpenLink Staff</atom:subtitle>
 <atom:author>
  <atom:name>kidehen@openlinksw.com</atom:name>
  <atom:email>kidehen@openlinksw.com</atom:email>
  </atom:author>
<atom:updated>2009-11-23T13:01:34Z</atom:updated>
<atom:generator>Virtuoso Universal Server 05.12.3041</atom:generator>
<atom:logo>http://www.openlinksw.com/weblog/public/images/vbloglogo.gif</atom:logo>
 <atom:entry>
  <atom:title>RDF Geography With Virtuoso</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2009-11-11#1588</atom:id>
  <atom:published>2009-11-11T17:17:27Z</atom:published>
  <atom:updated>2009-11-11T16:47:12.000007-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We have just added a geometry &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x22a7df78&quot;&gt;data&lt;/a&gt; type and corresponding &lt;a href=&quot;http://dbpedia.org/resource/R-tree&quot; id=&quot;link-id0x132dfbe0&quot;&gt;R&lt;/a&gt;-tree index to &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1e41e1b0&quot;&gt;Virtuoso&lt;/a&gt;. This follows the general scheme of &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x14568960&quot;&gt;SQL&lt;/a&gt;/MM, as is implemented by &lt;a href=&quot;http://dbpedia.org/resource/PostGIS&quot; id=&quot;link-id0x141653b0&quot;&gt;PostGIS&lt;/a&gt; and many others. We have all the engine-side stuff, including optimizer support for geometry cardinality sampling and good execution plans for combinations of spatial and other joins. We have however not yet implemented all the different geometry types and library function support for them, like shortest distance between two arbitrary shapes.&lt;/p&gt; &lt;p&gt;The geometry support is for both SQL and &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x11563f40&quot;&gt;SPARQL&lt;/a&gt;. On the SQL side, it works with the ISO/IEC 13249 SQL/MM API; with &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x2209a3a8&quot;&gt;RDF&lt;/a&gt;, a geometry can occur as the object of a quad. If the object is a typed-literal of the &lt;code&gt;virtrdf:Geometry&lt;/code&gt; type, it gets indexed in a geometry index over all geometries in quads; no special declarations are needed. After this, SQL MM predicates and functions can be used with SPARQL, like this:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt; PREFIX geo: &amp;lt;&lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0x21051a00&quot;&gt;http&lt;/a&gt;://www.w3.org/2003/01/geo/wgs84_pos#&amp;gt; SELECT ?class COUNT (*) WHERE { ?m geo:geometry ?geo . ?m a ?class . FILTER ( &amp;lt;bif:st_intersects&amp;gt; ( ?geo, &amp;lt;bif:st_point&amp;gt; (0, 52), 100 ) ) } GROUP BY ?class ORDER BY DESC 2 &lt;/code&gt; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;This returns the counts of objects of each class occurring within 100 km of (0, 52), a point near London.&lt;/p&gt; &lt;p&gt;For any data set with &lt;a href=&quot;http://dbpedia.org/resource/World_Geodetic_System&quot; id=&quot;link-id0x20050048&quot;&gt;WGS 84&lt;/a&gt; &lt;code&gt;geo:long&lt;/code&gt; and &lt;code&gt;geo:lat&lt;/code&gt; values, a simple SQL function makes a point geometry for each such coordinate pair and adds it as the &lt;code&gt;geo:geometry&lt;/code&gt; property of the subject with the long/lat. This then enables fast spatial access to arbitrary location data in RDF.&lt;/p&gt; &lt;p&gt;Right now, we hardly see any geometries other than points in RDF data, even though there are some efforts for vocabularies for more complex entities. As these get adopted we will support them.&lt;/p&gt; &lt;p&gt;For scalability, we tried the implementation with &lt;a href=&quot;http://www.openstreetmap.org/&quot; id=&quot;link-id0x100e0188&quot;&gt;OpenStreetMap&lt;/a&gt;&amp;#39;s 350 million or so points. The geometry implementation partitions well over a cluster, similarly to a full text index, i.e., every server has its slice of the geometries, partitioned by the geometry object&amp;#39;s key, thus not by range of coordinates or such. Like this, the items are evenly spread even though the coordinate distribution is highly uneven.&lt;/p&gt; &lt;p&gt;We can do spatial joins like â&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt; SELECT ?s ( &amp;lt;sql:num_or_null&amp;gt; (?p) ) COUNT (*) WHERE { ?s &amp;lt;http://&lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0x25465c68&quot;&gt;dbpedia&lt;/a&gt;.org/ontology/populationTotal&amp;gt; ?p . FILTER ( &amp;lt;sql:num_or_null&amp;gt; (?p) &amp;gt; 1000000 ) . ?s geo:geometry ?geo . FILTER ( &amp;lt;bif:st_intersects&amp;gt; ( ?pt, ?geo, 5 ) ) . ?xx geo:geometry ?pt } GROUP BY ?s ( &amp;lt;sql:num_or_null&amp;gt; (?p) ) ORDER BY DESC 3 LIMIT 20 &lt;/code&gt; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;This takes the DBpedia subjects that have a population over 1 million and a geometry. We then count all the geometries within 5 km of the point location of the first geometry. With DBpedia (about 5 million points), &lt;a href=&quot;http://www.geonames.org/&quot; id=&quot;link-id0x230328d0&quot;&gt;GeoNames&lt;/a&gt; (7 million points), and OpenStreetMap (350 million points), we get the result:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt;http://dbpedia.org/resource/Munich 1356594 117280 http://dbpedia.org/resource/London 7355400 81486 http://dbpedia.org/resource/Davao_City 1363337 58640 http://dbpedia.org/resource/Belo_Horizonte 2412937 58640 http://dbpedia.org/resource/Chengde 3610000 58640 http://dbpedia.org/resource/Hamburg 1769117 51664 http://dbpedia.org/resource/San_Diego%2C_California 1266731 47685 http://dbpedia.org/resource/Bursa 1562828 47685 http://dbpedia.org/resource/Port-au-Prince 1082800 47685 http://dbpedia.org/resource/Oakland_County%2C_Michigan 1194156 45636 http://dbpedia.org/resource/Sana%27a 1747627 40923 http://dbpedia.org/resource/Milan 1303437 40923 http://dbpedia.org/resource/Campinas 1059420 40923 http://dbpedia.org/resource/Hohhot 2580000 40923 http://dbpedia.org/resource/Brussels 1031215 40923 http://dbpedia.org/resource/Bogra_District 2988567 40923 http://dbpedia.org/resource/Cort%C3%A9s_Department 1202510 40923 http://dbpedia.org/resource/Berlin 3416300 35668 http://dbpedia.org/resource/New_York_City 8274527 30810 http://dbpedia.org/resource/Los_Angeles%2C_California 3849378 25614&lt;br /&gt; 20 Rows. -- 1733 msec.&lt;br /&gt; Cluster 8 nodes, 1 s. 358 m/s 1596 KB/s 664% &lt;a href=&quot;http://dbpedia.org/resource/Central_processing_unit&quot; id=&quot;link-id0x139250c8&quot;&gt;cpu&lt;/a&gt; 2% read 16% clw threads 1r 0w 0i buffers 1124351 0 d 0 w 0 pfs &lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;This takes 1.7 seconds on a Virtuoso Cluster configured with 8 processes on a single dual-Xeon 5520 box, running at about 664% CPU with warm &lt;a href=&quot;http://dbpedia.org/resource/Cache&quot; id=&quot;link-id0x216d1070&quot;&gt;cache&lt;/a&gt;. Fair enough for a first crack, this can obviously be optimized further. Still, the geo part of the processing is already as good as instantaneous.&lt;/p&gt; &lt;p&gt;We will shortly have the geography features installed on DBpedia and the other data sets we host. As these come online we will show more demo queries.&lt;/p&gt; &lt;p&gt;For more about SQL/MM, you can look to a couple of PDFs:&lt;/p&gt; &lt;ul&gt; &lt;li&gt; &lt;a href=&quot;http://www.fer.hr/_download/repository/SQLMM_Spatial-_The_Standard_to_Manage_Spatial_Data_in_Relational_Database_Systems.pdf&quot; id=&quot;link-id133775f0&quot;&gt;SQL/MM Spatial: The Standard to Manage Spatial Data in Relational Database Systems&lt;/a&gt; by Knut Stolze&lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://www.sigmod.org/record/issues/0112/standards.pdf&quot; id=&quot;link-id1433c5e0&quot;&gt;SQL Multimedia and Application Packages (SQL/MM)&lt;/a&gt; by Jim Melton and Andrew Eisenberg&lt;/li&gt; &lt;/ul&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>RDF Geography With Virtuoso</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2009-11-11#1587</atom:id>
  <atom:published>2009-11-11T17:17:27Z</atom:published>
  <atom:updated>2009-11-11T17:07:03.000002-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We have just added a geometry &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1c4085f8&quot;&gt;data&lt;/a&gt; type and corresponding &lt;a href=&quot;http://dbpedia.org/resource/R-tree&quot; id=&quot;link-id0x1c2ea830&quot;&gt;R&lt;/a&gt;-tree index to &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x201556b0&quot;&gt;Virtuoso&lt;/a&gt;. This follows the general scheme of &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x20152fc0&quot;&gt;SQL&lt;/a&gt;/MM, as is implemented by &lt;a href=&quot;http://dbpedia.org/resource/PostGIS&quot; id=&quot;link-id0x1c1a7610&quot;&gt;PostGIS&lt;/a&gt; and many others. We have all the engine-side stuff, including optimizer support for geometry cardinality sampling and good execution plans for combinations of spatial and other joins. We have however not yet implemented all the different geometry types and library function support for them, like shortest distance between two arbitrary shapes.&lt;/p&gt; &lt;p&gt;The geometry support is for both SQL and &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1c0fe6f8&quot;&gt;SPARQL&lt;/a&gt;. On the SQL side, it works with the ISO/IEC 13249 SQL/MM API; with &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x20d637e8&quot;&gt;RDF&lt;/a&gt;, a geometry can occur as the object of a quad. If the object is a typed-literal of the &lt;code&gt;virtrdf:Geometry&lt;/code&gt; type, it gets indexed in a geometry index over all geometries in quads; no special declarations are needed. After this, SQL MM predicates and functions can be used with SPARQL, like this:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt; PREFIX geo: &amp;lt;&lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0x1c4f4b50&quot;&gt;http&lt;/a&gt;://www.w3.org/2003/01/geo/wgs84_pos#&amp;gt; SELECT ?class COUNT (*) WHERE { ?m geo:geometry ?geo . ?m a ?class . FILTER ( &amp;lt;bif:st_intersects&amp;gt; ( ?geo, &amp;lt;bif:st_point&amp;gt; (0, 52), 100 ) ) } GROUP BY ?class ORDER BY DESC 2 &lt;/code&gt; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;This returns the counts of objects of each class occurring within 100 km of (0, 52), a point near London.&lt;/p&gt; &lt;p&gt;For any data set with &lt;a href=&quot;http://dbpedia.org/resource/World_Geodetic_System&quot; id=&quot;link-id0x1fa3a1d0&quot;&gt;WGS 84&lt;/a&gt; &lt;code&gt;geo:long&lt;/code&gt; and &lt;code&gt;geo:lat&lt;/code&gt; values, a simple SQL function makes a point geometry for each such coordinate pair and adds it as the &lt;code&gt;geo:geometry&lt;/code&gt; property of the subject with the long/lat. This then enables fast spatial access to arbitrary location data in RDF.&lt;/p&gt; &lt;p&gt;Right now, we hardly see any geometries other than points in RDF data, even though there are some efforts for vocabularies for more complex entities. As these get adopted we will support them.&lt;/p&gt; &lt;p&gt;For scalability, we tried the implementation with &lt;a href=&quot;http://www.openstreetmap.org/&quot; id=&quot;link-id0x1c4207d0&quot;&gt;OpenStreetMap&lt;/a&gt;&amp;#39;s 350 million or so points. The geometry implementation partitions well over a cluster, similarly to a full text index, i.e., every server has its slice of the geometries, partitioned by the geometry object&amp;#39;s key, thus not by range of coordinates or such. Like this, the items are evenly spread even though the coordinate distribution is highly uneven.&lt;/p&gt; &lt;p&gt;We can do spatial joins like â&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt; SELECT ?s ( &amp;lt;sql:num_or_null&amp;gt; (?p) ) COUNT (*) WHERE { ?s &amp;lt;http://&lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0x10da9b08&quot;&gt;dbpedia&lt;/a&gt;.org/ontology/populationTotal&amp;gt; ?p . FILTER ( &amp;lt;sql:num_or_null&amp;gt; (?p) &amp;gt; 1000000 ) . ?s geo:geometry ?geo . FILTER ( &amp;lt;bif:st_intersects&amp;gt; ( ?pt, ?geo, 5 ) ) . ?xx geo:geometry ?pt } GROUP BY ?s ( &amp;lt;sql:num_or_null&amp;gt; (?p) ) ORDER BY DESC 3 LIMIT 20 &lt;/code&gt; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;This takes the DBpedia subjects that have a population over 1 million and a geometry. We then count all the geometries within 5 km of the point location of the first geometry. With DBpedia (about 5 million points), &lt;a href=&quot;http://www.geonames.org/&quot; id=&quot;link-id0x21af78d0&quot;&gt;GeoNames&lt;/a&gt; (7 million points), and OpenStreetMap (350 million points), we get the result:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt;http://dbpedia.org/resource/Munich 1356594 117280 http://dbpedia.org/resource/London 7355400 81486 http://dbpedia.org/resource/Davao_City 1363337 58640 http://dbpedia.org/resource/Belo_Horizonte 2412937 58640 http://dbpedia.org/resource/Chengde 3610000 58640 http://dbpedia.org/resource/Hamburg 1769117 51664 http://dbpedia.org/resource/San_Diego%2C_California 1266731 47685 http://dbpedia.org/resource/Bursa 1562828 47685 http://dbpedia.org/resource/Port-au-Prince 1082800 47685 http://dbpedia.org/resource/Oakland_County%2C_Michigan 1194156 45636 http://dbpedia.org/resource/Sana%27a 1747627 40923 http://dbpedia.org/resource/Milan 1303437 40923 http://dbpedia.org/resource/Campinas 1059420 40923 http://dbpedia.org/resource/Hohhot 2580000 40923 http://dbpedia.org/resource/Brussels 1031215 40923 http://dbpedia.org/resource/Bogra_District 2988567 40923 http://dbpedia.org/resource/Cort%C3%A9s_Department 1202510 40923 http://dbpedia.org/resource/Berlin 3416300 35668 http://dbpedia.org/resource/New_York_City 8274527 30810 http://dbpedia.org/resource/Los_Angeles%2C_California 3849378 25614&lt;br /&gt; 20 Rows. -- 1733 msec.&lt;br /&gt; Cluster 8 nodes, 1 s. 358 m/s 1596 KB/s 664% &lt;a href=&quot;http://dbpedia.org/resource/Central_processing_unit&quot; id=&quot;link-id0x1c4406a0&quot;&gt;cpu&lt;/a&gt; 2% read 16% clw threads 1r 0w 0i buffers 1124351 0 d 0 w 0 pfs &lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;This takes 1.7 seconds on a Virtuoso Cluster configured with 8 processes on a single dual-Xeon 5520 box, running at about 664% CPU with warm &lt;a href=&quot;http://dbpedia.org/resource/Cache&quot; id=&quot;link-id0x1c420158&quot;&gt;cache&lt;/a&gt;. Fair enough for a first crack, this can obviously be optimized further. Still, the geo part of the processing is already as good as instantaneous.&lt;/p&gt; &lt;p&gt;We will shortly have the geography features installed on DBpedia and the other data sets we host. As these come online we will show more demo queries.&lt;/p&gt; &lt;p&gt;For more about SQL/MM, you can look to a couple of PDFs:&lt;/p&gt; &lt;ul&gt; &lt;li&gt; &lt;a href=&quot;http://www.fer.hr/_download/repository/SQLMM_Spatial-_The_Standard_to_Manage_Spatial_Data_in_Relational_Database_Systems.pdf&quot; id=&quot;link-id133775f0&quot;&gt;SQL/MM Spatial: The Standard to Manage Spatial Data in Relational Database Systems&lt;/a&gt; by Knut Stolze&lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://www.sigmod.org/record/issues/0112/standards.pdf&quot; id=&quot;link-id1433c5e0&quot;&gt;SQL Multimedia and Application Packages (SQL/MM)&lt;/a&gt; by Jim Melton and Andrew Eisenberg&lt;/li&gt; &lt;/ul&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>European Commission and the Data Overflow</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2009-10-27#1586</atom:id>
  <atom:published>2009-10-27T18:29:51Z</atom:published>
  <atom:updated>2009-10-27T14:57:31-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;The European Commission recently circulated a questionnaire to selected experts on what could be done for the future of big &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x43bae00&quot;&gt;data&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Since the &lt;a href=&quot;http://cordis.europa.eu/fp7/ict/content-knowledge/consultation_en.html&quot; id=&quot;link-id1191c0f8&quot;&gt;questionnaire is public&lt;/a&gt;, I am publishing my answers below.&lt;/p&gt; &lt;ol type=&quot;1&quot; start=&quot;1&quot;&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Data and data types&lt;/b&gt; &lt;/p&gt; &lt;ol type=&quot;a&quot; start=&quot;1&quot;&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What volumes of data are we dealing with today? What is the growth rate? Where can we expect to be in 2015? &lt;/b&gt; &lt;/p&gt; &lt;p&gt;Private data warehouses of corporations have more than doubled yearly for the past years; hundreds of TB is not exceptional. This will continue. The real shift is in structured data being published in increasing quantities with a minimum level of integrate-ability through use of &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x5c7add0&quot;&gt;RDF&lt;/a&gt; and &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x5c7adb8&quot;&gt;linked data&lt;/a&gt; principles. There are rewards for use of standard vocabularies and identifiers through search engines recognizing such data. There is convergence around &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0x5c7ada0&quot;&gt;DBpedia&lt;/a&gt; identifiers for real-world entities, e.g., most things that would be in the news.&lt;/p&gt; &lt;p&gt;This also means that internal data processes and silos may be enriched with this content. There is consequent pressure for accommodating more diversity of data, with more flexible &lt;a href=&quot;http://dbpedia.org/resource/Database_schema&quot; id=&quot;link-id0x7d87a88&quot;&gt;schema&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Ultimately, all content presently stored in RDBs and presented in public accessible dynamic web pages will end up on the web of linked data. Examples are product catalogs, price lists, event schedules and the like.&lt;/p&gt; &lt;p&gt;The volume of the well known linked data sets is around 10 billion statements. With the above mentioned trends, growth by two or three orders of magnitude by 2015 seems reasonable, This is so especially if explicit semantics are extracted from the document web and if there is some further progress in the precision/recall of such extraction.&lt;/p&gt; &lt;p&gt;Relevant sections of this mass of data are a potential addition to any present or future analytics application.&lt;/p&gt; &lt;p&gt;Since arbitrary analytics over the database which is the web cannot be economically provided by a centralized search engine, a cloud model may be used for on-demand selection of relevant data and mixing it with private data. This will drive database innovation for the next years even more than the continued classical warehouse growth.&lt;/p&gt; &lt;p&gt;Science data is another driver of the data overflow. For example, faster gene sequencing, more accurate measurements in high energy physics, better imaging, and remote sensing will produce large volumes of data. This data has highly regular structure but labeling this data with source and lineage calls for a flexible, schema-last, self-describing model, such as RDF and linked data. Data and &lt;a href=&quot;http://dbpedia.org/resource/Metadata&quot; id=&quot;link-id0x7a3fb40&quot;&gt;metadata&lt;/a&gt; should travel together but may have different data models.&lt;/p&gt; &lt;p&gt;By and large, the metadata of science data will be another stream to the web of linked data, at least to the degree it is publicly accessible. Restricted circles can and likely will implement similar ideas.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What types of data can we deal with intelligently due to their inherent structure (geospatial, temporal, social or &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x5a48058&quot;&gt;knowledge&lt;/a&gt; graphs, 3D, sensor streams...)?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;All the above types should be supported inside one DBMS so as to allow efficient querying combining conditions on all these types of data, e.g., &lt;i&gt;photos of sunsets taken last summer in Ibiza, with over 20 megapixels, by people I know.&lt;/i&gt; &lt;/p&gt; &lt;p&gt;Note that the test for being a sunset is an operation on the image blob that should be taken to the data; the images cannot be economically transferred.&lt;/p&gt; &lt;p&gt;Interleaving of all database functions and types becomes increasingly important.&lt;/p&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Industries, communities&lt;/b&gt; &lt;/p&gt; &lt;ol type=&quot;a&quot; start=&quot;1&quot;&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Who is producing these data and why? Could they do it better? How?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;Right now, projects such as &lt;a href=&quot;http://www.bio2rdf.org/&quot; id=&quot;link-id0x2a29de8&quot;&gt;Bio2RDF&lt;/a&gt;, &lt;a href=&quot;http://neurocommons.org/page/Main_Page&quot; id=&quot;link-id0x7ddaed0&quot;&gt;Neurocommons&lt;/a&gt;, and DBPedia produce this data. The processes are in place and are reasonable. Incremental improvement is to be expected. These processes, along with the &lt;a href=&quot;http://www.w3.org/DesignIssues/LinkedData.html&quot; id=&quot;link-id0xbab4dfd0&quot;&gt;linked data meme&lt;/a&gt; generally taking off, drive demand for better &lt;a href=&quot;http://dbpedia.org/resource/Natural_language_processing&quot; id=&quot;link-id0x51f4e0&quot;&gt;NLP&lt;/a&gt; (&lt;a href=&quot;http://dbpedia.org/resource/Natural_language_processing&quot; id=&quot;link-id0x51a1b48&quot;&gt;Natural Language Processing&lt;/a&gt;), e.g., &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0x956680&quot;&gt;entity&lt;/a&gt; and relationship extraction, especially extraction that can produce instance data in given ontologies (e.g., events) using common identifiers (e.g., DBPedia URIs).&lt;/p&gt; &lt;p&gt;Mapping of RDBs to RDF is possible, and a W3C working group is developing standards for this. The required baseline level has been reached; the rest is a matter of automating deployment. Within the enterprise, there are advantages to be gained for &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x7da9e80&quot;&gt;information&lt;/a&gt; integration; e.g., all entities in the CRM space can be integrated with all email and support tickets through giving everything a &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id0x71673f8&quot;&gt;URI&lt;/a&gt;. Some of this information may even be published on an &lt;a href=&quot;http://dbpedia.org/resource/Extranet&quot; id=&quot;link-id0x9aa6e0&quot;&gt;extranet&lt;/a&gt; for self-service and web-service interfaces. This has been done at small scales and the rest is a matter of spreading adoption and lowering the entry barrier. Incremental progress will take place, eventually resulting in qualitatively better integration along the value chain when adoption is sufficiently widespread.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Who is consuming these data and why? Could they do it better? How?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;Consumers are various. The greatest need is for tools that summarize complex data and allow getting a bird&amp;#39;s eye view of what data is in the first instance available. Consuming the data is hindered by the user not even necessarily knowing what data there is. This is somewhat new, as traditionally the business analyst did know the schema of the warehouse and was proficient with &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x7f7b148&quot;&gt;SQL&lt;/a&gt; report generators and statistics packages.&lt;/p&gt; &lt;p&gt;Where Web 2.0 made the &lt;i&gt;citizen journalist&lt;/i&gt;, the web of linked data will make the &lt;i&gt;citizen analyst&lt;/i&gt;. For this to happen, with benefits for individuals, enterprises, and governments alike, more work in user interfaces, knowledge discovery, and query composition will be useful. We may envision a &amp;quot;meshup economy&amp;quot; where data is plentiful, but the unit of value and exchange is the smart report that crystallizes actionable value from this ocean.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What industrial sectors in Europe could become more competitive if they became much better at managing data?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;Any sector could benefit. Early adopters are seen in the biomedical field and to an extent in media. &lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Is the regulation landscape imposing constraints (privacy, compliance ...) that don&amp;#39;t have today good tool support?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;The regulation landscape drives database demand through data retention requirements and the like.&lt;/p&gt; &lt;p&gt;With data integration, especially with privacy-sensitive data (as in medicine), there are issues of whether one dares put otherwise-shareable information online. Regulation is needed to protect individuals, but integration should still be possible for science.&lt;/p&gt; &lt;p&gt;For this, we see a need for progress in applying policy-based approaches (e.g., row level security) to relatively schema-last data such as RDF. This is possible but needs some more work. Also, creating on-the-fly-anonymizing views on data might help.&lt;/p&gt; &lt;p&gt;More research is needed for reconciling the need for security with the advantages of broad-based &lt;i&gt;ad hoc&lt;/i&gt; integration. Ideally, data should be intelligent, aware of its origins and classification and cautious of whom it interacts with, all of this supported under the covers so that the user could ask anything but the data might refuse to answer or might restrict answers according to the user&amp;#39;s profile. This is a tall order and implementing something of the sort is an open question.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What are the main practical problem identified for individuals and organizations? Please give examples and tell us about the main obstacles and barriers.&lt;/b&gt; &lt;/p&gt; &lt;p&gt;We have come across the following:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Knowing that the data exists in the first place.&lt;/li&gt; &lt;li&gt;If the data is found, figuring out the provenance, units and precision of measurement, identifiers, and the like.&lt;/li&gt; &lt;li&gt;Compatible subject matter but incompatible representation: For example, one has numbers on a map with different maps for different points in time; another has time series of instrument data with geo-location for the instrument. It is only to be expected that the time interval between measurements is not the same. So there is need for a lot of one-off programming to align data.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Other problems have to do with sheer volume, i.e., transfer of data even in a local area network is too slow, let alone over a wide area network. Computation needs to go to the data, and databases need to support this.&lt;/p&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Services, software stacks, protocols, standards, benchmarks&lt;/b&gt; &lt;/p&gt; &lt;ol type=&quot;a&quot; start=&quot;1&quot;&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What combinations of components are needed to deal with these problems?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;Recent times have seen a proliferation of special purpose databases. Since the data needs of the future are about combining data with maximum agility and minimum performance hit, there is need to gather the currently-separate functionality into an integrated system with sufficient flexibility. We see some of this in integration of map-reduce and scale-out databases. The former antagonists have become partners. Vertica, &lt;a href=&quot;http://dbpedia.org/resource/Greenplum&quot; id=&quot;link-id0x7a94e70&quot;&gt;Greenplum&lt;/a&gt;, and OpenLink &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x2ab2868&quot;&gt;Virtuoso&lt;/a&gt; are example of DBMS featuring work in this direction.&lt;/p&gt; &lt;p&gt;Interoperability and at least &lt;i&gt;de facto&lt;/i&gt; standards in ways of doing this will emerge.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What data exchange and processing mechanisms will be needed to work across platforms and programming languages?&lt;/b&gt; &lt;/p&gt; &lt;p&gt; &lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0x78a0458&quot;&gt;HTTP&lt;/a&gt;, &lt;a href=&quot;http://dbpedia.org/resource/XML&quot; id=&quot;link-id0x7ff2360&quot;&gt;XML&lt;/a&gt;, and RDF are in fact very verbose, yet these are the formats and models that have uptake. Thus, these will continue to be used even though one might think binary formats to be more efficient.&lt;/p&gt; &lt;p&gt;There are of course science data set standards that are more compressed and these will continue, hopefully adding a practice of rich metadata in RDF.&lt;/p&gt; &lt;p&gt;For internals of systems, MPI and TCP/IP with proprietary optimized wire formats will continue. Inter-system communication will likely continue to be HTTP, XML, and RDF as appropriate.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What data environments are today so wastefully messy that they would benefit from the development of standards?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;RDF and &lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0x5643d70&quot;&gt;OWL&lt;/a&gt; are not messy but they could use some more performance; we are working on this. &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x152ab18&quot;&gt;SPARQL&lt;/a&gt; is finally acquiring the capabilities of a serious query language, so things are slowly coming together.&lt;/p&gt; &lt;p&gt;Community process for developing application domain specific vocabularies works quite well, even though one could argue it is &lt;i&gt;ad hoc&lt;/i&gt; and not up to what a modeling purist might wish.&lt;/p&gt; &lt;p&gt;Top-down imposition of standards has a mixed history, with long and expensive development and sometimes no or little uptake, consider some WS* standards for example.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What kind of performance is expected or required of these systems? Who will measure it reliably? How?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;Relational databases have a history of substantial investment in &lt;a href=&quot;http://dbpedia.org/resource/Program_optimization&quot; id=&quot;link-id0xecc100&quot;&gt;optimization&lt;/a&gt; and some of them are very good for what they do, e.g., the newer generation of analytics databases.&lt;/p&gt; &lt;p&gt;The very large schema-last, no-SQL, sometimes eventually consistent key-value stores have a somewhat shorter history but do fill a real need.&lt;/p&gt; &lt;p&gt;These trends will merge: Extreme scale, schema-last, complex queries, even more complex inference, custom code for in-database machine learning and other bulk processing.&lt;/p&gt; &lt;p&gt;We find RDF augmented with some binary types at this crossroads. This point of the design space will have to provide performance roughly on the level of today&amp;#39;s best relational solution for workloads that fit the relational model. The added cost of schema-last and inference must come down. We are working on this. Research work such as carried out with &lt;a href=&quot;http://dbpedia.org/resource/MonetDB&quot; id=&quot;link-id0x7ae2890&quot;&gt;MonetDB&lt;/a&gt; gives clues as to how these aims can be reached.&lt;/p&gt; &lt;p&gt;The separation of query language and inference is artificial. After the concepts are mature, these functions will merge and execute close to the data; there are clear evolutionary pressures in this direction.&lt;/p&gt; &lt;p&gt;Benchmarks are key. Some gain can be had even from repurposing standard relational benchmarks like &lt;a href=&quot;http://www.tpc.org/&quot; id=&quot;link-id0x71eb528&quot;&gt;TPC&lt;/a&gt;-&lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x5e16a40&quot;&gt;H&lt;/a&gt;. But the TPC-H rules do not allow official reporting of such.&lt;/p&gt; &lt;p&gt;Development of benchmarks for RDF, complex queries, and inference is needed. A bold challenge to the community, it should be rooted in real-life integration needs and involve high heterogeneity. A key-value store benchmark might also be conceived. A transaction benchmark like TPC-&lt;a href=&quot;http://dbpedia.org/resource/C%2B%2B&quot; id=&quot;link-id0x78562d0&quot;&gt;C&lt;/a&gt; might be the basis, maybe augmented with massive user-generated content like reviews and blogs.&lt;/p&gt; &lt;p&gt;If benchmarks exist and are not too easy nor inaccessibly difficult nor too expensive to run â think of the high end TPC-C results â then TPC-style rules and processes would be quite adequate. The threshold to publish should be lowered: Everybody runs the TPC workloads internally but few publish.&lt;/p&gt; &lt;p&gt;Some EC initiative for benchmarking could make sense, similar to the TREC initiative of the US government. Industry should be consulted for the specific content; possibly the answers to the present questionnaire can provide an approximate direction.&lt;/p&gt; &lt;p&gt;Benchmarks should be run by software vendors on their own systems, tuned by themselves. But there should be a process of disclosure and auditing; the TPC rules give an example. Compliance should not be too expensive or time consuming. Some community development for automating these things would be a worthwhile target for EC funding.&lt;/p&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Usability and training&lt;/b&gt; &lt;/p&gt; &lt;ol type=&quot;a&quot; start=&quot;1&quot;&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;How difficult will it be for a developer of average competence to deploy components whose core is based on rather deep computer science? Do we all need to understand Monads and Continuations? What can be done to make it ever easier?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;In the database world, huge advances in technology have taken place behind a relatively simple and stable interface: SQL. For the linked data &lt;a href=&quot;http://dbpedia.org/resource/Giant_Global_Graph&quot; id=&quot;link-id0x7761e50&quot;&gt;web&lt;/a&gt;, the same will take place behind SPARQL.&lt;/p&gt; &lt;p&gt;Beyond these, for example, programming with MPI with good utilization of a cluster platform for an arbitrary algorithm, is quite difficult. The casual amateur is hereby warned.&lt;/p&gt; &lt;p&gt;There is no single solution. For automatic parallelization, since explicit, programmatic parallelization of things with MPI for example is very unscalable in terms of required skill, we should favor declarative and/or functional approaches.&lt;/p&gt; &lt;p&gt;Developing a debugger and explanation engine for rule-based and description-logics-based inference would be an idea.&lt;/p&gt; &lt;p&gt;For procedural workloads, things like Erlang may be good in cases and are not overly difficult in principle, especially if there are good debugging facilities.&lt;/p&gt; &lt;p&gt;For shipping functions in a cluster or cloud, the &lt;a href=&quot;http://www.eecs.berkeley.edu/Research/Projects/Data/105733.html&quot; id=&quot;link-id0x5494b0&quot;&gt;BOOM&lt;/a&gt; (&lt;a href=&quot;http://www.eecs.berkeley.edu/Research/Projects/Data/105733.html&quot; id=&quot;link-id0x7f1f148&quot;&gt;Berkeley Orders Of Magnitude&lt;/a&gt;) approach or logic programming with explicit specification of compute location seem promising, surely more flexible than map-reduce. The question is whether a &lt;a href=&quot;http://dbpedia.org/resource/PHP&quot; id=&quot;link-id0x5c758c8&quot;&gt;PHP&lt;/a&gt; developer can be made to do logic programming.&lt;/p&gt; &lt;p&gt;This bridge will be crossed only with actual need and even then reluctantly. We may look at the Web 2.0 practice of sharding &lt;a href=&quot;http://dbpedia.org/resource/MySQL&quot; id=&quot;link-id0x432f868&quot;&gt;MySQL&lt;/a&gt;, inconvenient as this may be, for an example. There is inertia and thus re-architecting is a constant process that is generally in reaction to facts, &lt;i&gt;post hoc&lt;/i&gt;, often a point solution. One could argue that planning ahead would be smarter but by and large the world does not work so.&lt;/p&gt; &lt;p&gt;One part of the answer is an infinitely-scalable SQL database that expands and shrinks in the clouds, with the usual semantics, maybe optional eventual consistency and built-in map reduce. If such a thing is inexpensive enough and syntax-level-compatible with present installed base, many developers do not have to learn very much more.&lt;/p&gt; &lt;p&gt;This is maybe good for the bread-and-butter IT, but European competitiveness should not rest on this. Therefore we wish to go for bold new application types for which the client-server database application is not the model. Data-centric languages like BOOM, if they can be made very efficient and have good debugging support, are attractive there. These do require more intellectual investment but that is not a problem since the less-inquisitive part of the developer community is served by the first part of the answer.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;How is a developer of average skills going to learn about these new advanced tools? How can we plan for excellent documentation and training, community mentoring, exchange of good practices, etc... across all EU countries?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;For the most part, developers do not learn things for the sake of learning. When they have learned something and it is adequate, they stay with it for the most part and are even reluctant to engage in cross-camps interaction. The research world is often similarly insular. A new inflection in the application landscape is needed to drive learning. This inflection is provided by the &lt;a href=&quot;https://wiki.mozilla.org/Labs/Ubiquity&quot; id=&quot;link-id0x7f051c8&quot;&gt;ubiquity&lt;/a&gt; of mobile devices, sensor data, explicit semantics, NLP concept extraction, web of linked data, and such factors.&lt;/p&gt; &lt;p&gt;RDFa is a good example of a new technique piggybacking on something everybody uses, namely HTML. These new things should, within possibility, be deployed in the usual technology stack, &lt;a href=&quot;http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29&quot; id=&quot;link-id0x77151e0&quot;&gt;LAMP&lt;/a&gt; or Java. Of course these do not have to be LAMP or Java or HTML or HTTP themselves but they must manifest through these.&lt;/p&gt; &lt;p&gt;A lot of the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x7940cd0&quot;&gt;semantic web&lt;/a&gt; potential can be realized within the client-server database application model, thus no fundamental re-architecting, just some new data types and queries.&lt;/p&gt; &lt;p&gt;For data- or processing-intensive tasks, an on-demand hookup to cloud-based servers with Erlang and/or BOOM for programming model would be easy enough to learn and utilize.&lt;/p&gt; &lt;p&gt;The question is one of providing challenges. Addressing actual challenges with these techniques will lead to maturity, documentation, examples, and training. With virtual, Europe-wide distributed teams a reality in many places, Europe-wide dissemination is no longer insurmountable.&lt;/p&gt; &lt;p&gt;As the data overflow proceeds, its victims will multiply and create demand for solutions. The EC could here encourage research project use cases gaining an extended life past the end of research projects, possibly being maintained and multiplied and spun off.&lt;/p&gt; &lt;p&gt;If such things could be mutated into self-sustaining service businesses with pay-per-use revenue, say through a cloud SaaS business model, still primarily leveraging an open source technology stack, we could have self-propagating and self-supporting models for exploiting advanced IT. This would create interest, and interest would drive training and dissemination.&lt;/p&gt; &lt;p&gt;The problem is creating the pull.&lt;/p&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Challenges&lt;/b&gt; &lt;/p&gt; &lt;ol type=&quot;a&quot; start=&quot;1&quot;&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What should be, in this domain, the equivalent of the Netflix challenge, Ansari X Prize, &lt;a href=&quot;http://dbpedia.org/resource/Google&quot; id=&quot;link-id0x7e72f40&quot;&gt;Google&lt;/a&gt; Lunar X Prize, etc. ... ?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;The EC itself no doubt suffers from data overflow in one function or another. Unless security/secrecy prohibits, simply publishing a large data set and a description of what operations should be done on it would be a start. The more real the data, the better â reality is consistently more complex and surprising than imagination. Since many interesting problems touch on fraud detection and law enforcement, there may be some security obstacles for using these application domains as subject matters of open challenges.&lt;/p&gt; &lt;p&gt;Once there is a good benchmark, as discussed above, there can be some prize money allocated for the winners, specially if the race is tight.&lt;/p&gt; &lt;p&gt;The Semantic Web Challenge and the Billion Triples Challenge exist and are useful as such, but do not seem to have any huge impact.&lt;/p&gt; &lt;p&gt;The incentives should be sufficient and part of the expenses arising from running for such challenges could be funded. Otherwise investing in existing business development will be more interesting to industry. Some industry participation seems necessary; we would wish academia and industry to work closer. Also, having industry supply the baseline guarantees that academia actually does further the state of the art. This is not always certain.&lt;/p&gt; &lt;p&gt;If challenges are based on actual problems, whether of the EC, its member governments, or private entities, and winning the challenge may lead to a contract for supplying an actual solution, these will naturally become more interesting for consortia involving integrators, specialist software vendors, and academia. Such a model would build actual capacity to deploy leading edge technologies in production, which is sorely needed.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What should one do to set up such a challenge, administer, and monitor it?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;The EC should probably circulate a call for actual problem scenarios involving big data. If the matter of the overflow is as dire as represented, cases should be easy to find. A few should be selected and then anonymized if needed.&lt;/p&gt; &lt;p&gt;The party with the use case would benefit by having hopefully the best work on it. The contestants would benefit from having real world needs guide R&amp;amp;D. The EC would not have to do very much, except possibly use some money for funding the best proposals. The winner would possibly get a large account and related sales and service income. The contestants would have to be teams possibly involving many organizations; for example, development and first-line services and support could come from different companies along a systems integrator model such as is widely used in the US.&lt;/p&gt; &lt;p&gt;There may be a good benchmark at the time, possibly resulting from FP7 itself. In such a case, the EC could offer a prize for winners. Details would have to be worked out case by case. Such a challenge could be repeated a few times, as benchmark-driven progress in databases or TREC for example have taken some years to reach a point of slowdown in progress.&lt;/p&gt; &lt;p&gt;Administrating such an activity should not be prohibitive, as most of the expertise can be found with the stakeholders.&lt;/p&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/li&gt; &lt;/ol&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>European Commission and the Data Overflow</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2009-10-27#1585</atom:id>
  <atom:published>2009-10-27T18:29:51Z</atom:published>
  <atom:updated>2009-10-27T14:57:28.000002-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;The European Commission recently circulated a questionnaire to selected experts on what could be done for the future of big &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x79cfe58&quot;&gt;data&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Since the &lt;a href=&quot;http://cordis.europa.eu/fp7/ict/content-knowledge/consultation_en.html&quot; id=&quot;link-id1191c0f8&quot;&gt;questionnaire is public&lt;/a&gt;, I am publishing my answers below.&lt;/p&gt; &lt;ol type=&quot;1&quot; start=&quot;1&quot;&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Data and data types&lt;/b&gt; &lt;/p&gt; &lt;ol type=&quot;a&quot; start=&quot;1&quot;&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What volumes of data are we dealing with today? What is the growth rate? Where can we expect to be in 2015? &lt;/b&gt; &lt;/p&gt; &lt;p&gt;Private data warehouses of corporations have more than doubled yearly for the past years; hundreds of TB is not exceptional. This will continue. The real shift is in structured data being published in increasing quantities with a minimum level of integrate-ability through use of &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x7d7e7a0&quot;&gt;RDF&lt;/a&gt; and &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x7f2a788&quot;&gt;linked data&lt;/a&gt; principles. There are rewards for use of standard vocabularies and identifiers through search engines recognizing such data. There is convergence around &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0x7dfbca8&quot;&gt;DBpedia&lt;/a&gt; identifiers for real-world entities, e.g., most things that would be in the news.&lt;/p&gt; &lt;p&gt;This also means that internal data processes and silos may be enriched with this content. There is consequent pressure for accommodating more diversity of data, with more flexible &lt;a href=&quot;http://dbpedia.org/resource/Database_schema&quot; id=&quot;link-id0x7babaf8&quot;&gt;schema&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Ultimately, all content presently stored in RDBs and presented in public accessible dynamic web pages will end up on the web of linked data. Examples are product catalogs, price lists, event schedules and the like.&lt;/p&gt; &lt;p&gt;The volume of the well known linked data sets is around 10 billion statements. With the above mentioned trends, growth by two or three orders of magnitude by 2015 seems reasonable, This is so especially if explicit semantics are extracted from the document web and if there is some further progress in the precision/recall of such extraction.&lt;/p&gt; &lt;p&gt;Relevant sections of this mass of data are a potential addition to any present or future analytics application.&lt;/p&gt; &lt;p&gt;Since arbitrary analytics over the database which is the web cannot be economically provided by a centralized search engine, a cloud model may be used for on-demand selection of relevant data and mixing it with private data. This will drive database innovation for the next years even more than the continued classical warehouse growth.&lt;/p&gt; &lt;p&gt;Science data is another driver of the data overflow. For example, faster gene sequencing, more accurate measurements in high energy physics, better imaging, and remote sensing will produce large volumes of data. This data has highly regular structure but labeling this data with source and lineage calls for a flexible, schema-last, self-describing model, such as RDF and linked data. Data and &lt;a href=&quot;http://dbpedia.org/resource/Metadata&quot; id=&quot;link-id0x96ce60&quot;&gt;metadata&lt;/a&gt; should travel together but may have different data models.&lt;/p&gt; &lt;p&gt;By and large, the metadata of science data will be another stream to the web of linked data, at least to the degree it is publicly accessible. Restricted circles can and likely will implement similar ideas.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What types of data can we deal with intelligently due to their inherent structure (geospatial, temporal, social or &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x7e8e248&quot;&gt;knowledge&lt;/a&gt; graphs, 3D, sensor streams...)?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;All the above types should be supported inside one DBMS so as to allow efficient querying combining conditions on all these types of data, e.g., &lt;i&gt;photos of sunsets taken last summer in Ibiza, with over 20 megapixels, by people I know.&lt;/i&gt; &lt;/p&gt; &lt;p&gt;Note that the test for being a sunset is an operation on the image blob that should be taken to the data; the images cannot be economically transferred.&lt;/p&gt; &lt;p&gt;Interleaving of all database functions and types becomes increasingly important.&lt;/p&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Industries, communities&lt;/b&gt; &lt;/p&gt; &lt;ol type=&quot;a&quot; start=&quot;1&quot;&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Who is producing these data and why? Could they do it better? How?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;Right now, projects such as &lt;a href=&quot;http://www.bio2rdf.org/&quot; id=&quot;link-id0x43bd098&quot;&gt;Bio2RDF&lt;/a&gt;, &lt;a href=&quot;http://neurocommons.org/page/Main_Page&quot; id=&quot;link-id0x5c074b0&quot;&gt;Neurocommons&lt;/a&gt;, and DBPedia produce this data. The processes are in place and are reasonable. Incremental improvement is to be expected. These processes, along with the &lt;a href=&quot;http://www.w3.org/DesignIssues/LinkedData.html&quot; id=&quot;link-id0x72131d0&quot;&gt;linked data meme&lt;/a&gt; generally taking off, drive demand for better &lt;a href=&quot;http://dbpedia.org/resource/Natural_language_processing&quot; id=&quot;link-id0x71e7798&quot;&gt;NLP&lt;/a&gt; (&lt;a href=&quot;http://dbpedia.org/resource/Natural_language_processing&quot; id=&quot;link-id0x7e0e2f0&quot;&gt;Natural Language Processing&lt;/a&gt;), e.g., &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0x71ab500&quot;&gt;entity&lt;/a&gt; and relationship extraction, especially extraction that can produce instance data in given ontologies (e.g., events) using common identifiers (e.g., DBPedia URIs).&lt;/p&gt; &lt;p&gt;Mapping of RDBs to RDF is possible, and a W3C working group is developing standards for this. The required baseline level has been reached; the rest is a matter of automating deployment. Within the enterprise, there are advantages to be gained for &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x7a8e9a8&quot;&gt;information&lt;/a&gt; integration; e.g., all entities in the CRM space can be integrated with all email and support tickets through giving everything a &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id0x599f630&quot;&gt;URI&lt;/a&gt;. Some of this information may even be published on an &lt;a href=&quot;http://dbpedia.org/resource/Extranet&quot; id=&quot;link-id0x2a28f98&quot;&gt;extranet&lt;/a&gt; for self-service and web-service interfaces. This has been done at small scales and the rest is a matter of spreading adoption and lowering the entry barrier. Incremental progress will take place, eventually resulting in qualitatively better integration along the value chain when adoption is sufficiently widespread.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Who is consuming these data and why? Could they do it better? How?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;Consumers are various. The greatest need is for tools that summarize complex data and allow getting a bird&amp;#39;s eye view of what data is in the first instance available. Consuming the data is hindered by the user not even necessarily knowing what data there is. This is somewhat new, as traditionally the business analyst did know the schema of the warehouse and was proficient with &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x5999558&quot;&gt;SQL&lt;/a&gt; report generators and statistics packages.&lt;/p&gt; &lt;p&gt;Where Web 2.0 made the &lt;i&gt;citizen journalist&lt;/i&gt;, the web of linked data will make the &lt;i&gt;citizen analyst&lt;/i&gt;. For this to happen, with benefits for individuals, enterprises, and governments alike, more work in user interfaces, knowledge discovery, and query composition will be useful. We may envision a &amp;quot;meshup economy&amp;quot; where data is plentiful, but the unit of value and exchange is the smart report that crystallizes actionable value from this ocean.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What industrial sectors in Europe could become more competitive if they became much better at managing data?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;Any sector could benefit. Early adopters are seen in the biomedical field and to an extent in media. &lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Is the regulation landscape imposing constraints (privacy, compliance ...) that don&amp;#39;t have today good tool support?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;The regulation landscape drives database demand through data retention requirements and the like.&lt;/p&gt; &lt;p&gt;With data integration, especially with privacy-sensitive data (as in medicine), there are issues of whether one dares put otherwise-shareable information online. Regulation is needed to protect individuals, but integration should still be possible for science.&lt;/p&gt; &lt;p&gt;For this, we see a need for progress in applying policy-based approaches (e.g., row level security) to relatively schema-last data such as RDF. This is possible but needs some more work. Also, creating on-the-fly-anonymizing views on data might help.&lt;/p&gt; &lt;p&gt;More research is needed for reconciling the need for security with the advantages of broad-based &lt;i&gt;ad hoc&lt;/i&gt; integration. Ideally, data should be intelligent, aware of its origins and classification and cautious of whom it interacts with, all of this supported under the covers so that the user could ask anything but the data might refuse to answer or might restrict answers according to the user&amp;#39;s profile. This is a tall order and implementing something of the sort is an open question.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What are the main practical problem identified for individuals and organizations? Please give examples and tell us about the main obstacles and barriers.&lt;/b&gt; &lt;/p&gt; &lt;p&gt;We have come across the following:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Knowing that the data exists in the first place.&lt;/li&gt; &lt;li&gt;If the data is found, figuring out the provenance, units and precision of measurement, identifiers, and the like.&lt;/li&gt; &lt;li&gt;Compatible subject matter but incompatible representation: For example, one has numbers on a map with different maps for different points in time; another has time series of instrument data with geo-location for the instrument. It is only to be expected that the time interval between measurements is not the same. So there is need for a lot of one-off programming to align data.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Other problems have to do with sheer volume, i.e., transfer of data even in a local area network is too slow, let alone over a wide area network. Computation needs to go to the data, and databases need to support this.&lt;/p&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Services, software stacks, protocols, standards, benchmarks&lt;/b&gt; &lt;/p&gt; &lt;ol type=&quot;a&quot; start=&quot;1&quot;&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What combinations of components are needed to deal with these problems?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;Recent times have seen a proliferation of special purpose databases. Since the data needs of the future are about combining data with maximum agility and minimum performance hit, there is need to gather the currently-separate functionality into an integrated system with sufficient flexibility. We see some of this in integration of map-reduce and scale-out databases. The former antagonists have become partners. Vertica, &lt;a href=&quot;http://dbpedia.org/resource/Greenplum&quot; id=&quot;link-id0x45ecfa0&quot;&gt;Greenplum&lt;/a&gt;, and OpenLink &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x7f73fc8&quot;&gt;Virtuoso&lt;/a&gt; are example of DBMS featuring work in this direction.&lt;/p&gt; &lt;p&gt;Interoperability and at least &lt;i&gt;de facto&lt;/i&gt; standards in ways of doing this will emerge.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What data exchange and processing mechanisms will be needed to work across platforms and programming languages?&lt;/b&gt; &lt;/p&gt; &lt;p&gt; &lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0x776a1a0&quot;&gt;HTTP&lt;/a&gt;, &lt;a href=&quot;http://dbpedia.org/resource/XML&quot; id=&quot;link-id0x2a4e8d0&quot;&gt;XML&lt;/a&gt;, and RDF are in fact very verbose, yet these are the formats and models that have uptake. Thus, these will continue to be used even though one might think binary formats to be more efficient.&lt;/p&gt; &lt;p&gt;There are of course science data set standards that are more compressed and these will continue, hopefully adding a practice of rich metadata in RDF.&lt;/p&gt; &lt;p&gt;For internals of systems, MPI and TCP/IP with proprietary optimized wire formats will continue. Inter-system communication will likely continue to be HTTP, XML, and RDF as appropriate.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What data environments are today so wastefully messy that they would benefit from the development of standards?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;RDF and &lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0x2a35960&quot;&gt;OWL&lt;/a&gt; are not messy but they could use some more performance; we are working on this. &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x12362e8&quot;&gt;SPARQL&lt;/a&gt; is finally acquiring the capabilities of a serious query language, so things are slowly coming together.&lt;/p&gt; &lt;p&gt;Community process for developing application domain specific vocabularies works quite well, even though one could argue it is &lt;i&gt;ad hoc&lt;/i&gt; and not up to what a modeling purist might wish.&lt;/p&gt; &lt;p&gt;Top-down imposition of standards has a mixed history, with long and expensive development and sometimes no or little uptake, consider some WS* standards for example.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What kind of performance is expected or required of these systems? Who will measure it reliably? How?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;Relational databases have a history of substantial investment in &lt;a href=&quot;http://dbpedia.org/resource/Program_optimization&quot; id=&quot;link-id0x7b2d7c8&quot;&gt;optimization&lt;/a&gt; and some of them are very good for what they do, e.g., the newer generation of analytics databases.&lt;/p&gt; &lt;p&gt;The very large schema-last, no-SQL, sometimes eventually consistent key-value stores have a somewhat shorter history but do fill a real need.&lt;/p&gt; &lt;p&gt;These trends will merge: Extreme scale, schema-last, complex queries, even more complex inference, custom code for in-database machine learning and other bulk processing.&lt;/p&gt; &lt;p&gt;We find RDF augmented with some binary types at this crossroads. This point of the design space will have to provide performance roughly on the level of today&amp;#39;s best relational solution for workloads that fit the relational model. The added cost of schema-last and inference must come down. We are working on this. Research work such as carried out with &lt;a href=&quot;http://dbpedia.org/resource/MonetDB&quot; id=&quot;link-id0x794ee48&quot;&gt;MonetDB&lt;/a&gt; gives clues as to how these aims can be reached.&lt;/p&gt; &lt;p&gt;The separation of query language and inference is artificial. After the concepts are mature, these functions will merge and execute close to the data; there are clear evolutionary pressures in this direction.&lt;/p&gt; &lt;p&gt;Benchmarks are key. Some gain can be had even from repurposing standard relational benchmarks like &lt;a href=&quot;http://www.tpc.org/&quot; id=&quot;link-id0x7d45c58&quot;&gt;TPC&lt;/a&gt;-&lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x45b0198&quot;&gt;H&lt;/a&gt;. But the TPC-H rules do not allow official reporting of such.&lt;/p&gt; &lt;p&gt;Development of benchmarks for RDF, complex queries, and inference is needed. A bold challenge to the community, it should be rooted in real-life integration needs and involve high heterogeneity. A key-value store benchmark might also be conceived. A transaction benchmark like TPC-&lt;a href=&quot;http://dbpedia.org/resource/C%2B%2B&quot; id=&quot;link-id0x7e32178&quot;&gt;C&lt;/a&gt; might be the basis, maybe augmented with massive user-generated content like reviews and blogs.&lt;/p&gt; &lt;p&gt;If benchmarks exist and are not too easy nor inaccessibly difficult nor too expensive to run â think of the high end TPC-C results â then TPC-style rules and processes would be quite adequate. The threshold to publish should be lowered: Everybody runs the TPC workloads internally but few publish.&lt;/p&gt; &lt;p&gt;Some EC initiative for benchmarking could make sense, similar to the TREC initiative of the US government. Industry should be consulted for the specific content; possibly the answers to the present questionnaire can provide an approximate direction.&lt;/p&gt; &lt;p&gt;Benchmarks should be run by software vendors on their own systems, tuned by themselves. But there should be a process of disclosure and auditing; the TPC rules give an example. Compliance should not be too expensive or time consuming. Some community development for automating these things would be a worthwhile target for EC funding.&lt;/p&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Usability and training&lt;/b&gt; &lt;/p&gt; &lt;ol type=&quot;a&quot; start=&quot;1&quot;&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;How difficult will it be for a developer of average competence to deploy components whose core is based on rather deep computer science? Do we all need to understand Monads and Continuations? What can be done to make it ever easier?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;In the database world, huge advances in technology have taken place behind a relatively simple and stable interface: SQL. For the linked data &lt;a href=&quot;http://dbpedia.org/resource/Giant_Global_Graph&quot; id=&quot;link-id0x7e01618&quot;&gt;web&lt;/a&gt;, the same will take place behind SPARQL.&lt;/p&gt; &lt;p&gt;Beyond these, for example, programming with MPI with good utilization of a cluster platform for an arbitrary algorithm, is quite difficult. The casual amateur is hereby warned.&lt;/p&gt; &lt;p&gt;There is no single solution. For automatic parallelization, since explicit, programmatic parallelization of things with MPI for example is very unscalable in terms of required skill, we should favor declarative and/or functional approaches.&lt;/p&gt; &lt;p&gt;Developing a debugger and explanation engine for rule-based and description-logics-based inference would be an idea.&lt;/p&gt; &lt;p&gt;For procedural workloads, things like Erlang may be good in cases and are not overly difficult in principle, especially if there are good debugging facilities.&lt;/p&gt; &lt;p&gt;For shipping functions in a cluster or cloud, the &lt;a href=&quot;http://www.eecs.berkeley.edu/Research/Projects/Data/105733.html&quot; id=&quot;link-id0x43665a8&quot;&gt;BOOM&lt;/a&gt; (&lt;a href=&quot;http://www.eecs.berkeley.edu/Research/Projects/Data/105733.html&quot; id=&quot;link-id0x7718f00&quot;&gt;Berkeley Orders Of Magnitude&lt;/a&gt;) approach or logic programming with explicit specification of compute location seem promising, surely more flexible than map-reduce. The question is whether a &lt;a href=&quot;http://dbpedia.org/resource/PHP&quot; id=&quot;link-id0x7d64f68&quot;&gt;PHP&lt;/a&gt; developer can be made to do logic programming.&lt;/p&gt; &lt;p&gt;This bridge will be crossed only with actual need and even then reluctantly. We may look at the Web 2.0 practice of sharding &lt;a href=&quot;http://dbpedia.org/resource/MySQL&quot; id=&quot;link-id0xbab1ae98&quot;&gt;MySQL&lt;/a&gt;, inconvenient as this may be, for an example. There is inertia and thus re-architecting is a constant process that is generally in reaction to facts, &lt;i&gt;post hoc&lt;/i&gt;, often a point solution. One could argue that planning ahead would be smarter but by and large the world does not work so.&lt;/p&gt; &lt;p&gt;One part of the answer is an infinitely-scalable SQL database that expands and shrinks in the clouds, with the usual semantics, maybe optional eventual consistency and built-in map reduce. If such a thing is inexpensive enough and syntax-level-compatible with present installed base, many developers do not have to learn very much more.&lt;/p&gt; &lt;p&gt;This is maybe good for the bread-and-butter IT, but European competitiveness should not rest on this. Therefore we wish to go for bold new application types for which the client-server database application is not the model. Data-centric languages like BOOM, if they can be made very efficient and have good debugging support, are attractive there. These do require more intellectual investment but that is not a problem since the less-inquisitive part of the developer community is served by the first part of the answer.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;How is a developer of average skills going to learn about these new advanced tools? How can we plan for excellent documentation and training, community mentoring, exchange of good practices, etc... across all EU countries?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;For the most part, developers do not learn things for the sake of learning. When they have learned something and it is adequate, they stay with it for the most part and are even reluctant to engage in cross-camps interaction. The research world is often similarly insular. A new inflection in the application landscape is needed to drive learning. This inflection is provided by the &lt;a href=&quot;https://wiki.mozilla.org/Labs/Ubiquity&quot; id=&quot;link-id0x770df38&quot;&gt;ubiquity&lt;/a&gt; of mobile devices, sensor data, explicit semantics, NLP concept extraction, web of linked data, and such factors.&lt;/p&gt; &lt;p&gt;RDFa is a good example of a new technique piggybacking on something everybody uses, namely HTML. These new things should, within possibility, be deployed in the usual technology stack, &lt;a href=&quot;http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29&quot; id=&quot;link-id0x55596a8&quot;&gt;LAMP&lt;/a&gt; or Java. Of course these do not have to be LAMP or Java or HTML or HTTP themselves but they must manifest through these.&lt;/p&gt; &lt;p&gt;A lot of the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x3d5378&quot;&gt;semantic web&lt;/a&gt; potential can be realized within the client-server database application model, thus no fundamental re-architecting, just some new data types and queries.&lt;/p&gt; &lt;p&gt;For data- or processing-intensive tasks, an on-demand hookup to cloud-based servers with Erlang and/or BOOM for programming model would be easy enough to learn and utilize.&lt;/p&gt; &lt;p&gt;The question is one of providing challenges. Addressing actual challenges with these techniques will lead to maturity, documentation, examples, and training. With virtual, Europe-wide distributed teams a reality in many places, Europe-wide dissemination is no longer insurmountable.&lt;/p&gt; &lt;p&gt;As the data overflow proceeds, its victims will multiply and create demand for solutions. The EC could here encourage research project use cases gaining an extended life past the end of research projects, possibly being maintained and multiplied and spun off.&lt;/p&gt; &lt;p&gt;If such things could be mutated into self-sustaining service businesses with pay-per-use revenue, say through a cloud SaaS business model, still primarily leveraging an open source technology stack, we could have self-propagating and self-supporting models for exploiting advanced IT. This would create interest, and interest would drive training and dissemination.&lt;/p&gt; &lt;p&gt;The problem is creating the pull.&lt;/p&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Challenges&lt;/b&gt; &lt;/p&gt; &lt;ol type=&quot;a&quot; start=&quot;1&quot;&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What should be, in this domain, the equivalent of the Netflix challenge, Ansari X Prize, &lt;a href=&quot;http://dbpedia.org/resource/Google&quot; id=&quot;link-id0x6a6c2b0&quot;&gt;Google&lt;/a&gt; Lunar X Prize, etc. ... ?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;The EC itself no doubt suffers from data overflow in one function or another. Unless security/secrecy prohibits, simply publishing a large data set and a description of what operations should be done on it would be a start. The more real the data, the better â reality is consistently more complex and surprising than imagination. Since many interesting problems touch on fraud detection and law enforcement, there may be some security obstacles for using these application domains as subject matters of open challenges.&lt;/p&gt; &lt;p&gt;Once there is a good benchmark, as discussed above, there can be some prize money allocated for the winners, specially if the race is tight.&lt;/p&gt; &lt;p&gt;The Semantic Web Challenge and the Billion Triples Challenge exist and are useful as such, but do not seem to have any huge impact.&lt;/p&gt; &lt;p&gt;The incentives should be sufficient and part of the expenses arising from running for such challenges could be funded. Otherwise investing in existing business development will be more interesting to industry. Some industry participation seems necessary; we would wish academia and industry to work closer. Also, having industry supply the baseline guarantees that academia actually does further the state of the art. This is not always certain.&lt;/p&gt; &lt;p&gt;If challenges are based on actual problems, whether of the EC, its member governments, or private entities, and winning the challenge may lead to a contract for supplying an actual solution, these will naturally become more interesting for consortia involving integrators, specialist software vendors, and academia. Such a model would build actual capacity to deploy leading edge technologies in production, which is sorely needed.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;What should one do to set up such a challenge, administer, and monitor it?&lt;/b&gt; &lt;/p&gt; &lt;p&gt;The EC should probably circulate a call for actual problem scenarios involving big data. If the matter of the overflow is as dire as represented, cases should be easy to find. A few should be selected and then anonymized if needed.&lt;/p&gt; &lt;p&gt;The party with the use case would benefit by having hopefully the best work on it. The contestants would benefit from having real world needs guide R&amp;amp;D. The EC would not have to do very much, except possibly use some money for funding the best proposals. The winner would possibly get a large account and related sales and service income. The contestants would have to be teams possibly involving many organizations; for example, development and first-line services and support could come from different companies along a systems integrator model such as is widely used in the US.&lt;/p&gt; &lt;p&gt;There may be a good benchmark at the time, possibly resulting from FP7 itself. In such a case, the EC could offer a prize for winners. Details would have to be worked out case by case. Such a challenge could be repeated a few times, as benchmark-driven progress in databases or TREC for example have taken some years to reach a point of slowdown in progress.&lt;/p&gt; &lt;p&gt;Administrating such an activity should not be prohibitive, as most of the expertise can be found with the stakeholders.&lt;/p&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/li&gt; &lt;/ol&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Provenance and Reification in Virtuoso</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2009-09-01#1573</atom:id>
  <atom:published>2009-09-01T14:44:08Z</atom:published>
  <atom:updated>2009-09-01T11:20:46.000006-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;These days, &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x37019c8&quot;&gt;data&lt;/a&gt; provenance is a big topic across the board, ranging from the &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x53c3620&quot;&gt;linked data&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Giant_Global_Graph&quot; id=&quot;link-id0x4aa3848&quot;&gt;web&lt;/a&gt;, to &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x385aff0&quot;&gt;RDF&lt;/a&gt; in general, to any kind of data integration, with or without RDF. Especially with scientific data we encounter the need for metadata and provenance, repeatability of experiments, etc. Data without context is worthless, yet the producers of said data do not always have a model or budget for metadata. And if they do, the approach is often a proprietary relational schema with web services in front.&lt;/p&gt; &lt;p&gt;RDF and linked data principles could evidently be a great help. This is a large topic that goes into the culture of doing science and will deserve a more extensive treatment down the road.&lt;/p&gt; &lt;p&gt;For now, I will talk about possible ways of dealing with provenance annotations in &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x51c4da0&quot;&gt;Virtuoso&lt;/a&gt; at a fairly technical level.&lt;/p&gt; &lt;p&gt;If data comes many-triples-at-a-time from some source (e.g., library catalogue, user of a social network), then it is often easiest to put the data from each source/user into its own graph. Annotations can then be made on the graph. The graph IRI will simply occur as the subject of a triple in the same or some other graph. For example, all such annotations could go into a special annotations graph.&lt;/p&gt; &lt;p&gt;On the query side, having lots of distinct graphs does not have to be a problem if the index scheme is the right one, i.e., the 4 index scheme &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/rdfperformancetuning.html#rdfperfindexes&quot; id=&quot;link-id142a0798&quot;&gt;discussed in the Virtuoso documentation&lt;/a&gt;. If the query does not specify a graph, then triples in any graph will be considered when evaluating the query.&lt;/p&gt; &lt;p&gt;One could write queries like â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;&lt;pre&gt;SELECT ?pub WHERE { GRAPH ?g { ?person foaf:knows ?contact } ?contact foaf:name &amp;quot;Alice&amp;quot; . ?g xx:has_publisher ?pub }&lt;/pre&gt; &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;This would return the publishers of graphs that assert that somebody knows Alice.&lt;/p&gt; &lt;p&gt;Of course, the &lt;a href=&quot;http://www.w3.org/TR/2004/REC-rdf-primer-20040210/#reification&quot; id=&quot;link-id14fa9488&quot;&gt;RDF reification vocabulary&lt;/a&gt; can be used as-is to say things about single triples. It is however very inefficient and is not supported by any specific optimization. Further, reification does not seem to get used very much; thus there is no great pressure to specially optimize it.&lt;/p&gt; &lt;p&gt;If we have to say things about specific triples and this occurs frequently (i.e., for more than 10% or so of the triples), then modifying the quad table becomes an option. For all its inefficiency, the RDF reification vocabulary is applicable if reification is a rarity.&lt;/p&gt; &lt;p&gt;Virtuoso&amp;#39;s &lt;code&gt;RDF_QUAD&lt;/code&gt; table can be altered to have more columns. The problem with this is that space usage is increased and the RDF loading and query functions will not know about the columns. A &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x4784bf0&quot;&gt;SQL&lt;/a&gt; update statement can be used to set values for these additional columns if one knows the &lt;code&gt;G,S,P,O&lt;/code&gt;. &lt;/p&gt; &lt;p&gt;Suppose we annotated each quad with the user who inserted it and a timestamp. These would be columns in the &lt;code&gt;RDF_QUAD&lt;/code&gt; table. The next choice would be whether these were primary key parts or dependent parts. If primary key parts, these would be non-&lt;code&gt;NULL&lt;/code&gt; and would occur on every index. The same quad would exist for each distinct user and time this quad had been inserted. For loading functions to work, these columns would need a default. In practice, we think that having such metadata as a dependent part is more likely, so that &lt;code&gt;G,S,P,O&lt;/code&gt; are the unique identifier of the quad. Whether one would then include these columns on indices other than the primary key would depend on how frequently they were accessed.&lt;/p&gt; &lt;p&gt;In &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x4a8a7c0&quot;&gt;SPARQL&lt;/a&gt;, one could use an extension syntax like â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;&lt;pre&gt;SELECT * WHERE { ?person foaf:knows ?connection OPTION ( time ?ts ) . ?connection foaf:name &amp;quot;Alice&amp;quot; . FILTER ( ?ts &amp;gt; &amp;quot;2009-08-08&amp;quot;^^xsd:datetime ) }&lt;/pre&gt; &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;This would return everybody who knows Alice since a date more recent than 2009-08-08. This presupposes that the quad table has been extended with a datetime column.&lt;/p&gt; &lt;p&gt;The &lt;code&gt;OPTION (time ?ts)&lt;/code&gt; syntax is not presently supported but we can easily add something of the sort if there is user demand for it. In practice, this would be an extension mechanism enabling one to access extension columns of &lt;code&gt;RDF_QUAD&lt;/code&gt; via a column &lt;code&gt;?variable&lt;/code&gt; syntax in the &lt;code&gt;OPTION&lt;/code&gt; clause.&lt;/p&gt; &lt;p&gt;If quad metadata were not for every quad but still relatively frequent, another possibility would be making a separate table with a key of &lt;code&gt;GSPO&lt;/code&gt; and a dependent part of &lt;code&gt;R&lt;/code&gt;, where &lt;code&gt;R&lt;/code&gt; would be the reification &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id0x49e6108&quot;&gt;URI&lt;/a&gt; of the quad. Reification statements would then be made with &lt;code&gt;R&lt;/code&gt; as a subject. This would be more compact than the reification vocabulary and would not modify the &lt;code&gt;RDF_QUAD&lt;/code&gt; table. The syntax for referring to this could be something like â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;&lt;pre&gt;SELECT * WHERE { ?person foaf:knows ?contact OPTION ( reify ?r ) . ?r xx:assertion_time ?ts . ?contact foaf:name &amp;quot;Alice&amp;quot; . FILTER ( ?ts &amp;gt; &amp;quot;2008-8-8&amp;quot;^^xsd:datetime ) }&lt;/pre&gt; &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;We could even recognize the reification vocabulary and convert it into the reify option if this were really necessary. But since it is so unwieldy I don&amp;#39;t think there would be huge demand. Who knows? You tell us.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Provenance and Reification in Virtuoso</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2009-09-01#1572</atom:id>
  <atom:published>2009-09-01T14:44:08Z</atom:published>
  <atom:updated>2009-09-01T11:20:44-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;These days, &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x4a44870&quot;&gt;data&lt;/a&gt; provenance is a big topic across the board, ranging from the &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x4e10e60&quot;&gt;linked data&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Giant_Global_Graph&quot; id=&quot;link-id0x4738350&quot;&gt;web&lt;/a&gt;, to &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1fe33310&quot;&gt;RDF&lt;/a&gt; in general, to any kind of data integration, with or without RDF. Especially with scientific data we encounter the need for metadata and provenance, repeatability of experiments, etc. Data without context is worthless, yet the producers of said data do not always have a model or budget for metadata. And if they do, the approach is often a proprietary relational schema with web services in front.&lt;/p&gt; &lt;p&gt;RDF and linked data principles could evidently be a great help. This is a large topic that goes into the culture of doing science and will deserve a more extensive treatment down the road.&lt;/p&gt; &lt;p&gt;For now, I will talk about possible ways of dealing with provenance annotations in &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x36581e8&quot;&gt;Virtuoso&lt;/a&gt; at a fairly technical level.&lt;/p&gt; &lt;p&gt;If data comes many-triples-at-a-time from some source (e.g., library catalogue, user of a social network), then it is often easiest to put the data from each source/user into its own graph. Annotations can then be made on the graph. The graph IRI will simply occur as the subject of a triple in the same or some other graph. For example, all such annotations could go into a special annotations graph.&lt;/p&gt; &lt;p&gt;On the query side, having lots of distinct graphs does not have to be a problem if the index scheme is the right one, i.e., the 4 index scheme &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/rdfperformancetuning.html#rdfperfindexes&quot; id=&quot;link-id142a0798&quot;&gt;discussed in the Virtuoso documentation&lt;/a&gt;. If the query does not specify a graph, then triples in any graph will be considered when evaluating the query.&lt;/p&gt; &lt;p&gt;One could write queries like â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;&lt;pre&gt;SELECT ?pub WHERE { GRAPH ?g { ?person foaf:knows ?contact } ?contact foaf:name &amp;quot;Alice&amp;quot; . ?g xx:has_publisher ?pub }&lt;/pre&gt; &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;This would return the publishers of graphs that assert that somebody knows Alice.&lt;/p&gt; &lt;p&gt;Of course, the &lt;a href=&quot;http://www.w3.org/TR/2004/REC-rdf-primer-20040210/#reification&quot; id=&quot;link-id14fa9488&quot;&gt;RDF reification vocabulary&lt;/a&gt; can be used as-is to say things about single triples. It is however very inefficient and is not supported by any specific optimization. Further, reification does not seem to get used very much; thus there is no great pressure to specially optimize it.&lt;/p&gt; &lt;p&gt;If we have to say things about specific triples and this occurs frequently (i.e., for more than 10% or so of the triples), then modifying the quad table becomes an option. For all its inefficiency, the RDF reification vocabulary is applicable if reification is a rarity.&lt;/p&gt; &lt;p&gt;Virtuoso&amp;#39;s &lt;code&gt;RDF_QUAD&lt;/code&gt; table can be altered to have more columns. The problem with this is that space usage is increased and the RDF loading and query functions will not know about the columns. A &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x4b1d938&quot;&gt;SQL&lt;/a&gt; update statement can be used to set values for these additional columns if one knows the &lt;code&gt;G,S,P,O&lt;/code&gt;. &lt;/p&gt; &lt;p&gt;Suppose we annotated each quad with the user who inserted it and a timestamp. These would be columns in the &lt;code&gt;RDF_QUAD&lt;/code&gt; table. The next choice would be whether these were primary key parts or dependent parts. If primary key parts, these would be non-&lt;code&gt;NULL&lt;/code&gt; and would occur on every index. The same quad would exist for each distinct user and time this quad had been inserted. For loading functions to work, these columns would need a default. In practice, we think that having such metadata as a dependent part is more likely, so that &lt;code&gt;G,S,P,O&lt;/code&gt; are the unique identifier of the quad. Whether one would then include these columns on indices other than the primary key would depend on how frequently they were accessed.&lt;/p&gt; &lt;p&gt;In &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x472afb0&quot;&gt;SPARQL&lt;/a&gt;, one could use an extension syntax like â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;&lt;pre&gt;SELECT * WHERE { ?person foaf:knows ?connection OPTION ( time ?ts ) . ?connection foaf:name &amp;quot;Alice&amp;quot; . FILTER ( ?ts &amp;gt; &amp;quot;2009-08-08&amp;quot;^^xsd:datetime ) }&lt;/pre&gt; &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;This would return everybody who knows Alice since a date more recent than 2009-08-08. This presupposes that the quad table has been extended with a datetime column.&lt;/p&gt; &lt;p&gt;The &lt;code&gt;OPTION (time ?ts)&lt;/code&gt; syntax is not presently supported but we can easily add something of the sort if there is user demand for it. In practice, this would be an extension mechanism enabling one to access extension columns of &lt;code&gt;RDF_QUAD&lt;/code&gt; via a column &lt;code&gt;?variable&lt;/code&gt; syntax in the &lt;code&gt;OPTION&lt;/code&gt; clause.&lt;/p&gt; &lt;p&gt;If quad metadata were not for every quad but still relatively frequent, another possibility would be making a separate table with a key of &lt;code&gt;GSPO&lt;/code&gt; and a dependent part of &lt;code&gt;R&lt;/code&gt;, where &lt;code&gt;R&lt;/code&gt; would be the reification &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id0x365b190&quot;&gt;URI&lt;/a&gt; of the quad. Reification statements would then be made with &lt;code&gt;R&lt;/code&gt; as a subject. This would be more compact than the reification vocabulary and would not modify the &lt;code&gt;RDF_QUAD&lt;/code&gt; table. The syntax for referring to this could be something like â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;&lt;pre&gt;SELECT * WHERE { ?person foaf:knows ?contact OPTION ( reify ?r ) . ?r xx:assertion_time ?ts . ?contact foaf:name &amp;quot;Alice&amp;quot; . FILTER ( ?ts &amp;gt; &amp;quot;2008-8-8&amp;quot;^^xsd:datetime ) }&lt;/pre&gt; &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;We could even recognize the reification vocabulary and convert it into the reify option if this were really necessary. But since it is so unwieldy I don&amp;#39;t think there would be huge demand. Who knows? You tell us.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>More On Parallel RDF/Text Query Evaluation</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2009-08-19#1571</atom:id>
  <atom:published>2009-08-19T17:28:50Z</atom:published>
  <atom:updated>2009-08-19T14:00:32.000006-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We have received some more questions about &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x15ca9a30&quot;&gt;Virtuoso&lt;/a&gt;&amp;#39;s parallel query evaluation model.&lt;/p&gt; &lt;p&gt;In answer, we will here explain how we do search engine style processing by writing &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1574c560&quot;&gt;SPARQL&lt;/a&gt;. There is no need for custom procedural code because the query optimizer does all the partitioning and the equivalent of map reduce.&lt;/p&gt; &lt;p&gt;The point is that what used to require programming can often be done in a generic query language. The technical detail is that the implementation must be smart enough with respect to parallelizing queries for this to be of practical benefit. But by combining these two things, we are a step closer to the web being the database.&lt;/p&gt; &lt;p&gt;I will here show how we do some joins combining full text, &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x15949970&quot;&gt;RDF&lt;/a&gt; conditions, and aggregates and &lt;code&gt;ORDER BY&lt;/code&gt;. The sample task is finding the top 20 entities with New York in some attribute value. Then we specify the search further by only taking actors associated with New York. The results are returned in the order of a composite of &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0x213bf310&quot;&gt;entity&lt;/a&gt; rank and text match score.&lt;/p&gt; &lt;p&gt;The basic query is:&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;&lt;pre&gt; SELECT ( &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x23632230&quot;&gt;sql&lt;/a&gt;:s_sum_page ( &amp;lt;sql:vector_agg&amp;gt; ( &amp;lt;bif:vector&amp;gt; ( ?c1 , ?sm ) ), bif:vector ( &amp;#39;new&amp;#39;, &amp;#39;york&amp;#39; ) ) ) AS ?res WHERE { { SELECT ( &amp;lt;SHORT_OR_LONG::&amp;gt;(?s1) ) AS ?c1 ( &amp;lt;sql:S_SUM&amp;gt; ( &amp;lt;SHORT_OR_LONG::IRI_RANK&amp;gt; ( ?s1 ) , &amp;lt;SHORT_OR_LONG::&amp;gt; ( ?s1textp ) , &amp;lt;SHORT_OR_LONG::&amp;gt; ( ?o1 ) , ?sc ) ) AS ?sm WHERE { ?s1 ?s1textp ?o1 . ?o1 bif:contains &amp;quot;new AND york&amp;quot; OPTION ( SCORE ?sc ) } ORDER BY DESC ( &amp;lt;sql:sum_rank&amp;gt; (( &amp;lt;sql:S_SUM&amp;gt; ( &amp;lt;SHORT_OR_LONG::IRI_RANK&amp;gt; ( ?s1 ) , &amp;lt;SHORT_OR_LONG::&amp;gt; ( ?s1textp ) , &amp;lt;SHORT_OR_LONG::&amp;gt; ( ?o1 ) , ?sc ) )) ) LIMIT 20 } } &lt;/pre&gt; &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;This takes some explaining. The basic part is&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;&lt;pre&gt;{ ?s1 ?s1textp ?o1 . ?o1 bif:contains &amp;quot;new AND york&amp;quot; OPTION ( SCORE ?sc ) }&lt;/pre&gt; &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;This just makes tuples where &lt;code&gt;?s1&lt;/code&gt; is the object, &lt;code&gt;?s1textp&lt;/code&gt; the property, and &lt;code&gt;?o1&lt;/code&gt; the literal which contains &amp;quot;New York&amp;quot;. For a single &lt;code&gt;?s1&lt;/code&gt;, there can of course be many properties which all contain &amp;quot;New York&amp;quot;.&lt;/p&gt; &lt;p&gt;The rest of the query gathers all the &amp;quot;New York&amp;quot; containing properties of an entity into a single aggregate, and then gets the entity ranks of all such entities.&lt;/p&gt; &lt;p&gt;After this, the aggregates are sorted by a sum of the entity rank and a combined text score calculated based on the individual text match scores between &amp;quot;New York&amp;quot; and the strings containing &amp;quot;New York&amp;quot;. The text hit score is higher if the words repeat often and in close proximity.&lt;/p&gt; &lt;p&gt;The &lt;code&gt;s_sum&lt;/code&gt; function is a user-defined aggregate which takes 4 arguments: The rank of the subject of the triple; the predicate of the triple containing the text; the object of the triple containing the text; and the text match score.&lt;/p&gt; &lt;p&gt;These are grouped by the subject of the triple. After this, these are sorted by &lt;code&gt;sum_score&lt;/code&gt; of the aggregate constructed with &lt;code&gt;s_sum&lt;/code&gt;. The &lt;code&gt;sum_score&lt;/code&gt; is a SQL function combining the entity rank with the text scores of the different literals.&lt;/p&gt; &lt;p&gt;This executes as one would expect: All partitions make a text index lookup, retrieving the object of the triple. The text index entries of an object are stored in the same partition as the object. But the entity rank is a property of the subject and is partitioned by the subject. Also the &lt;code&gt;GROUP BY&lt;/code&gt; is by the subject. Thus the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x15da01b8&quot;&gt;data&lt;/a&gt; is produced from all partitions, then streamed into the receiving partitions, determined by the subject. This partition can then get the score and group the matches by the subject. Since all these partial aggregates are partitioned by the subject, there is no need to merge them; thus, the top &lt;code&gt;k&lt;/code&gt; sort can be done for each partition separately. Finally, the top 20 of each partition are merged into the global top 20. This is then passed to a final function &lt;code&gt;s_sum_page&lt;/code&gt; that turns this all into an &lt;a href=&quot;http://dbpedia.org/resource/XML&quot; id=&quot;link-id0x15d59fc8&quot;&gt;XML&lt;/a&gt; fragment that can be processed with XSLT for inclusion on a web page.&lt;/p&gt; &lt;p&gt;This differs from the text search engine in that the query pipeline can contain arbitrary cross-partition joins. Also, the string &amp;quot;New York&amp;quot; is a common label that occurs in many distinct entities. Thus one text match, to one document, in the case the containing only the string &amp;quot;New York&amp;quot; will get many entities, likely all from different partitions.&lt;/p&gt; &lt;p&gt;So, if we only want actors with a mention of &amp;quot;New York&amp;quot;, we need to get the inner part of the query as:&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;&lt;pre&gt;{ ?s1 ?s1textp ?o1 . ?o1 bif:contains &amp;quot;new AND york&amp;quot; OPTION ( SCORE ?sc ) . ?s1 a &amp;lt;&lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0x15befb10&quot;&gt;http&lt;/a&gt;://&lt;a href=&quot;http://umbel.org/about/&quot; id=&quot;link-id0x15c92330&quot;&gt;umbel&lt;/a&gt;.org/umbel/sc/Actor&amp;gt; }&lt;/pre&gt; &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;Whether an entity is an actor can be checked in the same partition as the rank of the entity. Thus the query plan gets this check right before getting the rank. This is natural since there is no point in getting the rank of something that is not an actor.&lt;/p&gt; &lt;p&gt;The &lt;code&gt;&amp;lt;short_or_long::sql:func&amp;gt;&lt;/code&gt; notation means that we call &lt;code&gt;func&lt;/code&gt;, which is a SQL stored procedure with the arguments in their internal form. Thus, if a variable bound to an IRI is passed, the &lt;code&gt;short_or_long&lt;/code&gt; specifies that it is passed as its internal ID and is not converted into its text form. This is essential, since there is no point getting the text of half a million IRIs when only 20 at most will be shown in the end.&lt;/p&gt; &lt;p&gt;Now, when we run this on a collection of 4.5 billion triples of &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x153772e8&quot;&gt;linked data&lt;/a&gt;, once we have the working set, we can get the top 20 &amp;quot;New York&amp;quot; occurrences, with text summaries and all, in just 1.1s, with 12 of 16 cores busy. (The hardware is two boxes with two quad-core Xeon 5345 each.)&lt;/p&gt; &lt;p&gt;If we run this query in two parallel sessions, we get both results in 1.9s, with 14 of 16 cores busy. This gets about 200K &amp;quot;New York&amp;quot; strings, which becomes about 400K entities with New York somewhere, for which a rank then has to be retrieved. After this, all the possibly-many occurrences of New York in the title, text, and other properties of the entity are aggregated together, resolving into some 220K groups. These are then sorted. This is internally over 1.5 million random lookups and some 40MB of traffic between processes. Restricting the type of the entity to actor drops the execution time of one query to 0.8s because there are then fewer ranks to retrieve and less data to aggregate and sort.&lt;/p&gt; &lt;p&gt;By adding partitions and cores, we scale horizontally, as evaluating the query involves almost no central control, even though data are swapped between partitions. There is some flow control to avoid constructing overly-large intermediate results but generally partitions run independently and asynchronously. In the above case, there is just one fence at the point where all aggregates are complete, so that they can be sorted; otherwise, all is asynchronous.&lt;/p&gt; &lt;p&gt;Doing &lt;code&gt;JOINs&lt;/code&gt; between partitions and partitioned &lt;code&gt;GROUP BY&lt;/code&gt;/&lt;code&gt;ORDER BY&lt;/code&gt; is pretty regular database stuff. Applying this to RDF is a most natural thing.&lt;/p&gt; &lt;p&gt;If we do not parallelize the user-defined aggregate for grouping all the &amp;quot;New York&amp;quot; occurrences, the query takes 8s instead of 1.1s. If we could not put SQL procedures as user-defined aggregates to be parallelized with the query, we&amp;#39;d have to either bring all the data to a central point before the top k, which would destroy performance, or we would have to do procedures with explicit parallel procedure calls which is hard to write, surely too hard for &lt;i&gt;ad hoc&lt;/i&gt; queries.&lt;/p&gt; &lt;a href=&quot;http://bit.ly/4jAVHC&quot; id=&quot;link-id114d58f0&quot;&gt;Results of live execution&lt;/a&gt; may not be complete on initial load, as this link includes a &amp;quot;Virtuoso Anytime&amp;quot; timeout of 10 seconds. Running against a cold cache, these results may take much longer to return; a warm cache will deliver response times along the lines of those discussed above. &lt;p&gt;Engineering matters. If we wish to commoditize queries on a lot of data, such intelligence in the DBMS is necessary; it is very unscalable to require people to do procedural code or give query parallelization hints. If you need to optimize a workload of 10 different transactions, this is of course possible and even desirable, but for the infinity of all search or analysis, this will not happen.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>More On Parallel RDF/Text Query Evaluation</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2009-08-19#1570</atom:id>
  <atom:published>2009-08-19T17:28:50Z</atom:published>
  <atom:updated>2009-08-19T14:00:29.000002-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We have received some more questions about &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x266cd288&quot;&gt;Virtuoso&lt;/a&gt;&amp;#39;s parallel query evaluation model.&lt;/p&gt; &lt;p&gt;In answer, we will here explain how we do search engine style processing by writing &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x23c628b8&quot;&gt;SPARQL&lt;/a&gt;. There is no need for custom procedural code because the query optimizer does all the partitioning and the equivalent of map reduce.&lt;/p&gt; &lt;p&gt;The point is that what used to require programming can often be done in a generic query language. The technical detail is that the implementation must be smart enough with respect to parallelizing queries for this to be of practical benefit. But by combining these two things, we are a step closer to the web being the database.&lt;/p&gt; &lt;p&gt;I will here show how we do some joins combining full text, &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x22ff08b0&quot;&gt;RDF&lt;/a&gt; conditions, and aggregates and &lt;code&gt;ORDER BY&lt;/code&gt;. The sample task is finding the top 20 entities with New York in some attribute value. Then we specify the search further by only taking actors associated with New York. The results are returned in the order of a composite of &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0x22da5258&quot;&gt;entity&lt;/a&gt; rank and text match score.&lt;/p&gt; &lt;p&gt;The basic query is:&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;&lt;pre&gt; SELECT ( &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x237a6530&quot;&gt;sql&lt;/a&gt;:s_sum_page ( &amp;lt;sql:vector_agg&amp;gt; ( &amp;lt;bif:vector&amp;gt; ( ?c1 , ?sm ) ), bif:vector ( &amp;#39;new&amp;#39;, &amp;#39;york&amp;#39; ) ) ) AS ?res WHERE { { SELECT ( &amp;lt;SHORT_OR_LONG::&amp;gt;(?s1) ) AS ?c1 ( &amp;lt;sql:S_SUM&amp;gt; ( &amp;lt;SHORT_OR_LONG::IRI_RANK&amp;gt; ( ?s1 ) , &amp;lt;SHORT_OR_LONG::&amp;gt; ( ?s1textp ) , &amp;lt;SHORT_OR_LONG::&amp;gt; ( ?o1 ) , ?sc ) ) AS ?sm WHERE { ?s1 ?s1textp ?o1 . ?o1 bif:contains &amp;quot;new AND york&amp;quot; OPTION ( SCORE ?sc ) } ORDER BY DESC ( &amp;lt;sql:sum_rank&amp;gt; (( &amp;lt;sql:S_SUM&amp;gt; ( &amp;lt;SHORT_OR_LONG::IRI_RANK&amp;gt; ( ?s1 ) , &amp;lt;SHORT_OR_LONG::&amp;gt; ( ?s1textp ) , &amp;lt;SHORT_OR_LONG::&amp;gt; ( ?o1 ) , ?sc ) )) ) LIMIT 20 } } &lt;/pre&gt; &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;This takes some explaining. The basic part is&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;&lt;pre&gt;{ ?s1 ?s1textp ?o1 . ?o1 bif:contains &amp;quot;new AND york&amp;quot; OPTION ( SCORE ?sc ) }&lt;/pre&gt; &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;This just makes tuples where &lt;code&gt;?s1&lt;/code&gt; is the object, &lt;code&gt;?s1textp&lt;/code&gt; the property, and &lt;code&gt;?o1&lt;/code&gt; the literal which contains &amp;quot;New York&amp;quot;. For a single &lt;code&gt;?s1&lt;/code&gt;, there can of course be many properties which all contain &amp;quot;New York&amp;quot;.&lt;/p&gt; &lt;p&gt;The rest of the query gathers all the &amp;quot;New York&amp;quot; containing properties of an entity into a single aggregate, and then gets the entity ranks of all such entities.&lt;/p&gt; &lt;p&gt;After this, the aggregates are sorted by a sum of the entity rank and a combined text score calculated based on the individual text match scores between &amp;quot;New York&amp;quot; and the strings containing &amp;quot;New York&amp;quot;. The text hit score is higher if the words repeat often and in close proximity.&lt;/p&gt; &lt;p&gt;The &lt;code&gt;s_sum&lt;/code&gt; function is a user-defined aggregate which takes 4 arguments: The rank of the subject of the triple; the predicate of the triple containing the text; the object of the triple containing the text; and the text match score.&lt;/p&gt; &lt;p&gt;These are grouped by the subject of the triple. After this, these are sorted by &lt;code&gt;sum_score&lt;/code&gt; of the aggregate constructed with &lt;code&gt;s_sum&lt;/code&gt;. The &lt;code&gt;sum_score&lt;/code&gt; is a SQL function combining the entity rank with the text scores of the different literals.&lt;/p&gt; &lt;p&gt;This executes as one would expect: All partitions make a text index lookup, retrieving the object of the triple. The text index entries of an object are stored in the same partition as the object. But the entity rank is a property of the subject and is partitioned by the subject. Also the &lt;code&gt;GROUP BY&lt;/code&gt; is by the subject. Thus the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x24381030&quot;&gt;data&lt;/a&gt; is produced from all partitions, then streamed into the receiving partitions, determined by the subject. This partition can then get the score and group the matches by the subject. Since all these partial aggregates are partitioned by the subject, there is no need to merge them; thus, the top &lt;code&gt;k&lt;/code&gt; sort can be done for each partition separately. Finally, the top 20 of each partition are merged into the global top 20. This is then passed to a final function &lt;code&gt;s_sum_page&lt;/code&gt; that turns this all into an &lt;a href=&quot;http://dbpedia.org/resource/XML&quot; id=&quot;link-id0x2363d6c0&quot;&gt;XML&lt;/a&gt; fragment that can be processed with XSLT for inclusion on a web page.&lt;/p&gt; &lt;p&gt;This differs from the text search engine in that the query pipeline can contain arbitrary cross-partition joins. Also, the string &amp;quot;New York&amp;quot; is a common label that occurs in many distinct entities. Thus one text match, to one document, in the case the containing only the string &amp;quot;New York&amp;quot; will get many entities, likely all from different partitions.&lt;/p&gt; &lt;p&gt;So, if we only want actors with a mention of &amp;quot;New York&amp;quot;, we need to get the inner part of the query as:&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;&lt;pre&gt;{ ?s1 ?s1textp ?o1 . ?o1 bif:contains &amp;quot;new AND york&amp;quot; OPTION ( SCORE ?sc ) . ?s1 a &amp;lt;&lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0x237110b8&quot;&gt;http&lt;/a&gt;://&lt;a href=&quot;http://umbel.org/about/&quot; id=&quot;link-id0x2318e198&quot;&gt;umbel&lt;/a&gt;.org/umbel/sc/Actor&amp;gt; }&lt;/pre&gt; &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;Whether an entity is an actor can be checked in the same partition as the rank of the entity. Thus the query plan gets this check right before getting the rank. This is natural since there is no point in getting the rank of something that is not an actor.&lt;/p&gt; &lt;p&gt;The &lt;code&gt;&amp;lt;short_or_long::sql:func&amp;gt;&lt;/code&gt; notation means that we call &lt;code&gt;func&lt;/code&gt;, which is a SQL stored procedure with the arguments in their internal form. Thus, if a variable bound to an IRI is passed, the &lt;code&gt;short_or_long&lt;/code&gt; specifies that it is passed as its internal ID and is not converted into its text form. This is essential, since there is no point getting the text of half a million IRIs when only 20 at most will be shown in the end.&lt;/p&gt; &lt;p&gt;Now, when we run this on a collection of 4.5 billion triples of &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x24381160&quot;&gt;linked data&lt;/a&gt;, once we have the working set, we can get the top 20 &amp;quot;New York&amp;quot; occurrences, with text summaries and all, in just 1.1s, with 12 of 16 cores busy. (The hardware is two boxes with two quad-core Xeon 5345 each.)&lt;/p&gt; &lt;p&gt;If we run this query in two parallel sessions, we get both results in 1.9s, with 14 of 16 cores busy. This gets about 200K &amp;quot;New York&amp;quot; strings, which becomes about 400K entities with New York somewhere, for which a rank then has to be retrieved. After this, all the possibly-many occurrences of New York in the title, text, and other properties of the entity are aggregated together, resolving into some 220K groups. These are then sorted. This is internally over 1.5 million random lookups and some 40MB of traffic between processes. Restricting the type of the entity to actor drops the execution time of one query to 0.8s because there are then fewer ranks to retrieve and less data to aggregate and sort.&lt;/p&gt; &lt;p&gt;By adding partitions and cores, we scale horizontally, as evaluating the query involves almost no central control, even though data are swapped between partitions. There is some flow control to avoid constructing overly-large intermediate results but generally partitions run independently and asynchronously. In the above case, there is just one fence at the point where all aggregates are complete, so that they can be sorted; otherwise, all is asynchronous.&lt;/p&gt; &lt;p&gt;Doing &lt;code&gt;JOINs&lt;/code&gt; between partitions and partitioned &lt;code&gt;GROUP BY&lt;/code&gt;/&lt;code&gt;ORDER BY&lt;/code&gt; is pretty regular database stuff. Applying this to RDF is a most natural thing.&lt;/p&gt; &lt;p&gt;If we do not parallelize the user-defined aggregate for grouping all the &amp;quot;New York&amp;quot; occurrences, the query takes 8s instead of 1.1s. If we could not put SQL procedures as user-defined aggregates to be parallelized with the query, we&amp;#39;d have to either bring all the data to a central point before the top k, which would destroy performance, or we would have to do procedures with explicit parallel procedure calls which is hard to write, surely too hard for &lt;i&gt;ad hoc&lt;/i&gt; queries.&lt;/p&gt; &lt;a href=&quot;http://bit.ly/4jAVHC&quot; id=&quot;link-id114d58f0&quot;&gt;Results of live execution&lt;/a&gt; may not be complete on initial load, as this link includes a &amp;quot;Virtuoso Anytime&amp;quot; timeout of 10 seconds. Running against a cold cache, these results may take much longer to return; a warm cache will deliver response times along the lines of those discussed above. &lt;p&gt;Engineering matters. If we wish to commoditize queries on a lot of data, such intelligence in the DBMS is necessary; it is very unscalable to require people to do procedural code or give query parallelization hints. If you need to optimize a workload of 10 different transactions, this is of course possible and even desirable, but for the infinity of all search or analysis, this will not happen.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Updated hardware improves LUBM 8000 load rate in Virtuoso 6</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2009-08-14#1569</atom:id>
  <atom:published>2009-08-14T19:01:30Z</atom:published>
  <atom:updated>2009-08-15T15:27:29-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We repeated the &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1562&quot; id=&quot;link-id173d3068&quot;&gt;earlier LUBM 8000 experiment&lt;/a&gt; on a newer machine, with 2 x Xeon 5520 and 72G 1333MHz memory, and once again with the 2 machines as a networked cluster. Otherwise the settings were the same.&lt;/p&gt; &lt;p&gt;The load rate is now 160,739 triples-per-second.&lt;/p&gt; &lt;table&gt; &lt;tr&gt; &lt;th&gt;&lt;/th&gt; &lt;td&gt;   &lt;/td&gt; &lt;th align=&quot;center&quot;&gt;&lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x240daf38&quot;&gt;Virtuoso&lt;/a&gt; 6 &lt;br /&gt; (previous run)&lt;/th&gt; &lt;td&gt;   &lt;/td&gt; &lt;th align=&quot;center&quot;&gt;Virtuoso 6 &lt;br /&gt; (new run)&lt;/th&gt; &lt;td&gt;   &lt;/td&gt; &lt;th align=&quot;center&quot;&gt;Virtuoso 6 &lt;br /&gt; (newest run)&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;left&quot;&gt;blades&lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1 &lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1 &lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;2&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;left&quot;&gt;processors&lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;2 x Xeon 5410&lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;2 x Xeon 5520&lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt; 2 x Xeon 5520 &lt;br /&gt;+ &lt;br /&gt;2 x Xeon 5410 &lt;br /&gt;with 1x1GigE &lt;br /&gt;interconnect &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;left&quot;&gt;memory&lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt; 16G 667 MHz&lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;72G 1333 MHz&lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;72G 1333 MHz &lt;br /&gt;+ &lt;br /&gt; 16G 667 MHz &lt;br /&gt; respectively&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;left&quot;&gt;reported load rate&lt;br /&gt;triples-per-second&lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt; 110,532 &lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt; 160,739 &lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt; 214,188 &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;p&gt;Again, if others talk about loading LUBM, so must we. Otherwise, this metric is rather uninteresting.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Updated hardware improves LUBM 8000 load rate in Virtuoso 6</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2009-08-14#1568</atom:id>
  <atom:published>2009-08-14T19:01:30Z</atom:published>
  <atom:updated>2009-08-15T15:27:25-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We repeated the &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1562&quot; id=&quot;link-id173d3068&quot;&gt;earlier LUBM 8000 experiment&lt;/a&gt; on a newer machine, with 2 x Xeon 5520 and 72G 1333MHz memory, and once again with the 2 machines as a networked cluster. Otherwise the settings were the same.&lt;/p&gt; &lt;p&gt;The load rate is now 160,739 triples-per-second.&lt;/p&gt; &lt;table&gt; &lt;tr&gt; &lt;th&gt;&lt;/th&gt; &lt;td&gt;   &lt;/td&gt; &lt;th align=&quot;center&quot;&gt;&lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x199b9740&quot;&gt;Virtuoso&lt;/a&gt; 6 &lt;br /&gt; (previous run)&lt;/th&gt; &lt;td&gt;   &lt;/td&gt; &lt;th align=&quot;center&quot;&gt;Virtuoso 6 &lt;br /&gt; (new run)&lt;/th&gt; &lt;td&gt;   &lt;/td&gt; &lt;th align=&quot;center&quot;&gt;Virtuoso 6 &lt;br /&gt; (newest run)&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;left&quot;&gt;blades&lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1 &lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1 &lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;2&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;left&quot;&gt;processors&lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;2 x Xeon 5410&lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;2 x Xeon 5520&lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt; 2 x Xeon 5520 &lt;br /&gt;+ &lt;br /&gt;2 x Xeon 5410 &lt;br /&gt;with 1x1GigE &lt;br /&gt;interconnect &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;left&quot;&gt;memory&lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt; 16G 667 MHz&lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;72G 1333 MHz&lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;72G 1333 MHz &lt;br /&gt;+ &lt;br /&gt; 16G 667 MHz &lt;br /&gt; respectively&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;left&quot;&gt;reported load rate&lt;br /&gt;triples-per-second&lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt; 110,532 &lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt; 160,739 &lt;/td&gt; &lt;td&gt;   &lt;/td&gt; &lt;td align=&quot;center&quot;&gt; 214,188 &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;p&gt;Again, if others talk about loading LUBM, so must we. Otherwise, this metric is rather uninteresting.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Single Virtuoso host loads 110,500 triples-per-second on LUBM 8000</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2009-06-29#1563</atom:id>
  <atom:published>2009-06-29T16:12:34Z</atom:published>
  <atom:updated>2009-08-15T16:06:45.000001-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;LUBM load speed still seems to be a metric that is quoted in comparisons of &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id142df6e8&quot;&gt;RDF&lt;/a&gt; stores. Consequently, we too measured the load time of LUBM 8000, 1,068-million triples, on the newest &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id1389dfa0&quot;&gt;Virtuoso&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The real time for the load was 161m 3s. The rate was 110,532 triples-per-second. The hardware was one machine with 2 x Xeon 5410 (quad core, 2.33 GHz) and 16G 667 MHz RAM. The software was Virtuoso 6 Cluster, configured into 8 partitions (processes) — one partition per CPU core. Each partition had its database striped over 6 disks total; the 6 disks on the system were shared between the 8 database processes.&lt;/p&gt; &lt;p&gt;The load was done on 8 streams, one per server process. At the beginning of the load, the CPU usage was 740% with no disk; at the end, it was around 700% with 25% disk wait. 100% counts here for one CPU core or one disk being constantly busy.&lt;/p&gt; &lt;p&gt;The RDF store was configured with the default two indices over quads, these being GSPO and OGPS. Text indexing of literals was not enabled. No materialization of entailed triples was made.&lt;/p&gt; &lt;p&gt;We think that LUBM loading is not a realistic benchmark for the world but since other people publish such numbers, so do we.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Single Virtuoso host loads 110,500 triples-per-second on LUBM 8000</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2009-06-29#1562</atom:id>
  <atom:published>2009-06-29T16:12:34Z</atom:published>
  <atom:updated>2009-08-15T16:06:42.000001-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;LUBM load speed still seems to be a metric that is quoted in comparisons of &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id142df6e8&quot;&gt;RDF&lt;/a&gt; stores. Consequently, we too measured the load time of LUBM 8000, 1,068-million triples, on the newest &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id1389dfa0&quot;&gt;Virtuoso&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The real time for the load was 161m 3s. The rate was 110,532 triples-per-second. The hardware was one machine with 2 x Xeon 5410 (quad core, 2.33 GHz) and 16G 667 MHz RAM. The software was Virtuoso 6 Cluster, configured into 8 partitions (processes) — one partition per CPU core. Each partition had its database striped over 6 disks total; the 6 disks on the system were shared between the 8 database processes.&lt;/p&gt; &lt;p&gt;The load was done on 8 streams, one per server process. At the beginning of the load, the CPU usage was 740% with no disk; at the end, it was around 700% with 25% disk wait. 100% counts here for one CPU core or one disk being constantly busy.&lt;/p&gt; &lt;p&gt;The RDF store was configured with the default two indices over quads, these being GSPO and OGPS. Text indexing of literals was not enabled. No materialization of entailed triples was made.&lt;/p&gt; &lt;p&gt;We think that LUBM loading is not a realistic benchmark for the world but since other people publish such numbers, so do we.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Comparing Virtuoso Performance on Different Processors</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2009-05-28#1558</atom:id>
  <atom:published>2009-05-28T14:54:59Z</atom:published>
  <atom:updated>2009-05-28T11:15:41.000006-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;Over the years we have run &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x16735e20&quot;&gt;Virtuoso&lt;/a&gt; on different hardware. We will here give a few figures that help identify the best price point for machines running Virtuoso.&lt;/p&gt; &lt;p&gt;Our test is very simple: &lt;i&gt;Load 20 warehouses of &lt;a href=&quot;http://dbpedia.org/resource/TPC-C&quot; id=&quot;link-id0x16e0dba8&quot;&gt;TPC-C&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x14ff4f80&quot;&gt;data&lt;/a&gt;, and then run one client per warehouse for 10,000 new orders&lt;/i&gt;. The way this is set up, disk I/O does not play a role and lock contention between the clients is minimal.&lt;/p&gt; &lt;p&gt;The test essentially has 20 server and 20 client threads running the same workload in parallel. The load time gives the single thread number; the 20 clients run gives the multi-threaded number. The test uses about 2-3 GB of data, so all is in RAM but is large enough not to be all in processor cache.&lt;/p&gt; &lt;p&gt;All times reported are real times, starting from the start of the first client and ending with the completion of the last client.&lt;/p&gt; &lt;p&gt;Do not confuse these results with official TPC-C. The measurement protocols are entirely incomparable.&lt;/p&gt; &lt;style type=&quot;text/css&quot;&gt; TABLE { background: none; border: none } TH { text-align: center; font-weight: bold } TR.top { background: } TD { text-align: center; border: none } &lt;/style&gt; &lt;table align=&quot;center&quot; cellspacing=&quot;10&quot;&gt; &lt;tr&gt; &lt;th&gt;Test&lt;/th&gt; &lt;th&gt;Platform&lt;/th&gt; &lt;th&gt;Load&lt;br /&gt;(seconds)&lt;/th&gt; &lt;th&gt;Run&lt;br /&gt;(seconds)&lt;/th&gt; &lt;th&gt;GHz / cores / threads&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;Amazon &lt;a href=&quot;http://aws.amazon.com/ec2/&quot; id=&quot;link-id0x15d68e20&quot;&gt;EC2&lt;/a&gt; Extra Large&lt;br /&gt;(4 virtual cores)&lt;/td&gt; &lt;td&gt;340&lt;/td&gt; &lt;td&gt;42&lt;/td&gt; &lt;td&gt;1.2 GHz? / 4 / 1&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;Amazon EC2 Extra Large&lt;br /&gt;(4 virtual cores)&lt;/td&gt; &lt;td&gt;305&lt;/td&gt; &lt;td&gt;43.3&lt;/td&gt; &lt;td&gt;1.2 GHz? / 4 / 1&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;1 x dual-core AMD 5900&lt;/td&gt; &lt;td&gt;263&lt;/td&gt; &lt;td&gt;58.2&lt;/td&gt; &lt;td&gt;2.9 GHz / 2 / 1&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;2 x dual-core Xeon 5130 (&amp;quot;Woodcrest&amp;quot;)&lt;/td&gt; &lt;td&gt;245&lt;/td&gt; &lt;td&gt;35.7&lt;/td&gt; &lt;td&gt;2.0 GHz / 4 / 1&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;2 x quad-core Xeon 5410 (&amp;quot;Harpertown&amp;quot;)&lt;/td&gt; &lt;td&gt;237&lt;/td&gt; &lt;td&gt;18.0&lt;/td&gt; &lt;td&gt;2.33 GHz / 8 / 1&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;5&lt;/td&gt; &lt;td&gt;2 x quad-core Xeon 5520 (&amp;quot;Nehalem&amp;quot;)&lt;/td&gt; &lt;td&gt;162&lt;/td&gt; &lt;td&gt;18.3&lt;/td&gt; &lt;td&gt;2.26 GHz / 8 / 2&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;p&gt;We tried two different EC2 instances to see if there would be variation. The variation was quite small. The tested EC2 instances costs 20 US cents per hour. The AMD dual-core costs 550 US dollars with 8G. The 3 Xeon configurations are Supermicro boards with 667MHz memory for the Xeon 5130 (&amp;quot;Woodcrest&amp;quot;) and Xeon 5410 (&amp;quot;Harpertown&amp;quot;), and 800MHz memory for the Nehalem. The Xeon systems cost between 4000 and 7000 US dollars, with 5000 for a configuration with 2 x Xeon 5520 (&amp;quot;Nehalem&amp;quot;), 72 GB RAM, and 8 x 500 GB SATA disks.&lt;/p&gt; &lt;p&gt; &lt;i&gt;Caveat: Due to slow memory (we could not get faster within available time), the results for the Nehalem do not take full advantage of its principal edge over the previous generation, i.e., memory subsystem. We&amp;#39;ll see another time with faster memories.&lt;/i&gt; &lt;/p&gt; &lt;p&gt;The operating systems were various 64 bit Linux distributions.&lt;/p&gt; &lt;p&gt;We did some further measurements comparing Harpertown and Nehalem processors. The Nehalem chip was a bit faster for a slightly lower clock but we did not see any of the twofold and greater differences advertised by Intel.&lt;/p&gt; &lt;p&gt;We tried some &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1460b688&quot;&gt;RDF&lt;/a&gt; operations on the two last systems:&lt;/p&gt; &lt;table align=&quot;center&quot; cellspacing=&quot;10&quot;&gt; &lt;tr&gt; &lt;th&gt;operation&lt;/th&gt; &lt;th&gt; Harpertown&lt;/th&gt; &lt;th&gt;Nehalem&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;Build text index for &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0x16a94590&quot;&gt;DBpedia&lt;/a&gt;&lt;/th&gt; &lt;td&gt;1080s&lt;/td&gt; &lt;td&gt;770s&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;&lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0xc37f380&quot;&gt;Entity&lt;/a&gt; Rank iteration&lt;/th&gt; &lt;td&gt;263s&lt;/td&gt; &lt;td&gt;251s&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;p&gt;Then we tried to see if the core multithreading of Nehalem could be seen anywhere. To this effect, we ran the Fibonacci function in &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x15842a20&quot;&gt;SQL&lt;/a&gt; to serve as an example of an all in-cache integer operation. 16 concurrent operations took exactly twice as long as 8 concurrent ones, as expected.&lt;/p&gt; &lt;p&gt;For something that used memory, we took a count of RDF quads on two different indices, getting the same count. The database was a cluster setup with one process per core, so a count involved one thread per core. The counts in series took 5.02s and in parallel they took 4.27s.&lt;/p&gt; &lt;p&gt;Then we took a more memory intensive piece that read the RDF quads table in the order of one index and for each row checked that there is the equal row on another, differently-partitioned index. This is a cross-partition join. One of the indices is read sequentially and the other at random. The throughput can be reported as random-lookups-per-second. The data was English DBpedia, about 140M triples. One such query takes a couple of minutes with a 650% CPU utilization. Running multiple such queries should show effects of core multithreading since we expect frequent cache misses.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;On the host OS of the Nehalem system â &lt;table align=&quot;center&quot; cellspacing=&quot;10&quot;&gt; &lt;tr&gt; &lt;th&gt;n&lt;/th&gt; &lt;th&gt;cpu%&lt;/th&gt; &lt;th&gt;rows per second&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;1 query&lt;/th&gt; &lt;td&gt;503&lt;/td&gt; &lt;td&gt;906,413&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;2 queries&lt;/th&gt; &lt;td&gt;1263&lt;/td&gt; &lt;td&gt;1,578,585&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;3 queries&lt;/th&gt; &lt;td&gt;1204&lt;/td&gt; &lt;td&gt;1,566,849&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/li&gt; &lt;li&gt;In a VM under Xen, on the Nehalem system â &lt;table align=&quot;center&quot; cellspacing=&quot;10&quot;&gt; &lt;tr&gt; &lt;th&gt;n&lt;/th&gt; &lt;th&gt;cpu%&lt;/th&gt; &lt;th&gt;rows per second&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;1 query&lt;/th&gt; &lt;td&gt;652&lt;/td&gt; &lt;td&gt;799,293&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;2 queries&lt;/th&gt; &lt;td&gt;1266&lt;/td&gt; &lt;td&gt;1,486,710&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;3 queries&lt;/th&gt; &lt;td&gt;1222&lt;/td&gt; &lt;td&gt;1,484,093&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/li&gt; &lt;li&gt; On the host OS of the Harpertown system â &lt;table align=&quot;center&quot; cellspacing=&quot;10&quot;&gt; &lt;tr&gt; &lt;th&gt;n&lt;/th&gt; &lt;th&gt;cpu%&lt;/th&gt; &lt;th&gt;rows per second&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;1 query&lt;/th&gt; &lt;td&gt; 648 &lt;/td&gt; &lt;td&gt; 1,041,448 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;2 queries&lt;/th&gt; &lt;td&gt; 708 &lt;/td&gt; &lt;td&gt; 1,124,866 &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/li&gt; &lt;/ol&gt; &lt;p&gt;The CPU percentages are as reported by the OS: user + system CPU divided by real time.&lt;/p&gt; &lt;p&gt;So, Nehalem is in general somewhat faster, around 20-30%, than Harpertown. The effect of core multithreading can be noticed but is not huge, another 20% or so for situations with more threads than cores. The join where Harpertown did better could be attributed to its larger cache â 12 MB vs 8 MB.&lt;/p&gt; &lt;p&gt;We see that Xen has a measurable but not prohibitive overhead; count a little under 10% for everything, also tasks with no I/O. The VM was set up to have all CPU for the test and the queries did not do disk I/O.&lt;/p&gt; &lt;p&gt;The executables were compiled with &lt;code&gt;gcc&lt;/code&gt; with default settings. Specifying &lt;code&gt;-march=nocona&lt;/code&gt; (Core 2 target) dropped the cross-partition join time mentioned above from 128s to 122s on Harpertown. We did not try this on Nehalem but presume the effect would be the same, since the out-of-order unit is not much different. We did not do anything about process-to-memory affinity on Nehalem, which is a non-uniform architecture. We would expect this to increase performance since we have many equal size processes with even load.&lt;/p&gt; &lt;p&gt;The mainstay of the Nehalem value proposition is a better memory subsystem. Since the unit we got was at 800 MHz memory, we did not see any great improvement. So if you buy Nehalem, you should make sure it is with 1333 MHz memory, else the best case will not be over 50% over a 667 MHz Core 2-based Xeon.&lt;/p&gt; &lt;p&gt;Nehalem remains a better deal for us because of more memory per board. One Nehalem box with 72 GB costs less than two Harpertown boxes with 32 GB and offers almost the same performance. Having a lot of memory in a small space is key. With faster memory, it might even outperform two Harpertown boxes, but this remains to be seen.&lt;/p&gt; &lt;p&gt;If space were not a constraint, we could make a cluster of 12 small workstations for the price of our largest system and get still more memory and more processor power per unit of memory. The Nehalem box was almost 4x faster than the AMD box but then it has 9x the memory, so the CPU to memory ratio might be better with the smaller boxes.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Comparing Virtuoso Performance on Different Processors</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2009-05-28#1557</atom:id>
  <atom:published>2009-05-28T14:54:59Z</atom:published>
  <atom:updated>2009-05-28T11:15:39-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;Over the years we have run &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xd420b90&quot;&gt;Virtuoso&lt;/a&gt; on different hardware. We will here give a few figures that help identify the best price point for machines running Virtuoso.&lt;/p&gt; &lt;p&gt;Our test is very simple: &lt;i&gt;Load 20 warehouses of &lt;a href=&quot;http://dbpedia.org/resource/TPC-C&quot; id=&quot;link-id0xdaaec90&quot;&gt;TPC-C&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xca1b7e0&quot;&gt;data&lt;/a&gt;, and then run one client per warehouse for 10,000 new orders&lt;/i&gt;. The way this is set up, disk I/O does not play a role and lock contention between the clients is minimal.&lt;/p&gt; &lt;p&gt;The test essentially has 20 server and 20 client threads running the same workload in parallel. The load time gives the single thread number; the 20 clients run gives the multi-threaded number. The test uses about 2-3 GB of data, so all is in RAM but is large enough not to be all in processor cache.&lt;/p&gt; &lt;p&gt;All times reported are real times, starting from the start of the first client and ending with the completion of the last client.&lt;/p&gt; &lt;p&gt;Do not confuse these results with official TPC-C. The measurement protocols are entirely incomparable.&lt;/p&gt; &lt;style type=&quot;text/css&quot;&gt; TABLE { background: none; border: none } TH { text-align: center; font-weight: bold } TR.top { background: } TD { text-align: center; border: none } &lt;/style&gt; &lt;table align=&quot;center&quot; cellspacing=&quot;10&quot;&gt; &lt;tr&gt; &lt;th&gt;Test&lt;/th&gt; &lt;th&gt;Platform&lt;/th&gt; &lt;th&gt;Load&lt;br /&gt;(seconds)&lt;/th&gt; &lt;th&gt;Run&lt;br /&gt;(seconds)&lt;/th&gt; &lt;th&gt;GHz / cores / threads&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;Amazon &lt;a href=&quot;http://aws.amazon.com/ec2/&quot; id=&quot;link-id0xdaab030&quot;&gt;EC2&lt;/a&gt; Extra Large&lt;br /&gt;(4 virtual cores)&lt;/td&gt; &lt;td&gt;340&lt;/td&gt; &lt;td&gt;42&lt;/td&gt; &lt;td&gt;1.2 GHz? / 4 / 1&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;Amazon EC2 Extra Large&lt;br /&gt;(4 virtual cores)&lt;/td&gt; &lt;td&gt;305&lt;/td&gt; &lt;td&gt;43.3&lt;/td&gt; &lt;td&gt;1.2 GHz? / 4 / 1&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;1 x dual-core AMD 5900&lt;/td&gt; &lt;td&gt;263&lt;/td&gt; &lt;td&gt;58.2&lt;/td&gt; &lt;td&gt;2.9 GHz / 2 / 1&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;2 x dual-core Xeon 5130 (&amp;quot;Woodcrest&amp;quot;)&lt;/td&gt; &lt;td&gt;245&lt;/td&gt; &lt;td&gt;35.7&lt;/td&gt; &lt;td&gt;2.0 GHz / 4 / 1&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;2 x quad-core Xeon 5410 (&amp;quot;Harpertown&amp;quot;)&lt;/td&gt; &lt;td&gt;237&lt;/td&gt; &lt;td&gt;18.0&lt;/td&gt; &lt;td&gt;2.33 GHz / 8 / 1&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;5&lt;/td&gt; &lt;td&gt;2 x quad-core Xeon 5520 (&amp;quot;Nehalem&amp;quot;)&lt;/td&gt; &lt;td&gt;162&lt;/td&gt; &lt;td&gt;18.3&lt;/td&gt; &lt;td&gt;2.26 GHz / 8 / 2&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;p&gt;We tried two different EC2 instances to see if there would be variation. The variation was quite small. The tested EC2 instances costs 20 US cents per hour. The AMD dual-core costs 550 US dollars with 8G. The 3 Xeon configurations are Supermicro boards with 667MHz memory for the Xeon 5130 (&amp;quot;Woodcrest&amp;quot;) and Xeon 5410 (&amp;quot;Harpertown&amp;quot;), and 800MHz memory for the Nehalem. The Xeon systems cost between 4000 and 7000 US dollars, with 5000 for a configuration with 2 x Xeon 5520 (&amp;quot;Nehalem&amp;quot;), 72 GB RAM, and 8 x 500 GB SATA disks.&lt;/p&gt; &lt;p&gt; &lt;i&gt;Caveat: Due to slow memory (we could not get faster within available time), the results for the Nehalem do not take full advantage of its principal edge over the previous generation, i.e., memory subsystem. We&amp;#39;ll see another time with faster memories.&lt;/i&gt; &lt;/p&gt; &lt;p&gt;The operating systems were various 64 bit Linux distributions.&lt;/p&gt; &lt;p&gt;We did some further measurements comparing Harpertown and Nehalem processors. The Nehalem chip was a bit faster for a slightly lower clock but we did not see any of the twofold and greater differences advertised by Intel.&lt;/p&gt; &lt;p&gt;We tried some &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xce85438&quot;&gt;RDF&lt;/a&gt; operations on the two last systems:&lt;/p&gt; &lt;table align=&quot;center&quot; cellspacing=&quot;10&quot;&gt; &lt;tr&gt; &lt;th&gt;operation&lt;/th&gt; &lt;th&gt; Harpertown&lt;/th&gt; &lt;th&gt;Nehalem&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;Build text index for &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0xab826a8&quot;&gt;DBpedia&lt;/a&gt;&lt;/th&gt; &lt;td&gt;1080s&lt;/td&gt; &lt;td&gt;770s&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;&lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0xcbb9938&quot;&gt;Entity&lt;/a&gt; Rank iteration&lt;/th&gt; &lt;td&gt;263s&lt;/td&gt; &lt;td&gt;251s&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;p&gt;Then we tried to see if the core multithreading of Nehalem could be seen anywhere. To this effect, we ran the Fibonacci function in &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0xcd62218&quot;&gt;SQL&lt;/a&gt; to serve as an example of an all in-cache integer operation. 16 concurrent operations took exactly twice as long as 8 concurrent ones, as expected.&lt;/p&gt; &lt;p&gt;For something that used memory, we took a count of RDF quads on two different indices, getting the same count. The database was a cluster setup with one process per core, so a count involved one thread per core. The counts in series took 5.02s and in parallel they took 4.27s.&lt;/p&gt; &lt;p&gt;Then we took a more memory intensive piece that read the RDF quads table in the order of one index and for each row checked that there is the equal row on another, differently-partitioned index. This is a cross-partition join. One of the indices is read sequentially and the other at random. The throughput can be reported as random-lookups-per-second. The data was English DBpedia, about 140M triples. One such query takes a couple of minutes with a 650% CPU utilization. Running multiple such queries should show effects of core multithreading since we expect frequent cache misses.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;On the host OS of the Nehalem system â &lt;table align=&quot;center&quot; cellspacing=&quot;10&quot;&gt; &lt;tr&gt; &lt;th&gt;n&lt;/th&gt; &lt;th&gt;cpu%&lt;/th&gt; &lt;th&gt;rows per second&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;1 query&lt;/th&gt; &lt;td&gt;503&lt;/td&gt; &lt;td&gt;906,413&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;2 queries&lt;/th&gt; &lt;td&gt;1263&lt;/td&gt; &lt;td&gt;1,578,585&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;3 queries&lt;/th&gt; &lt;td&gt;1204&lt;/td&gt; &lt;td&gt;1,566,849&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/li&gt; &lt;li&gt;In a VM under Xen, on the Nehalem system â &lt;table align=&quot;center&quot; cellspacing=&quot;10&quot;&gt; &lt;tr&gt; &lt;th&gt;n&lt;/th&gt; &lt;th&gt;cpu%&lt;/th&gt; &lt;th&gt;rows per second&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;1 query&lt;/th&gt; &lt;td&gt;652&lt;/td&gt; &lt;td&gt;799,293&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;2 queries&lt;/th&gt; &lt;td&gt;1266&lt;/td&gt; &lt;td&gt;1,486,710&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;3 queries&lt;/th&gt; &lt;td&gt;1222&lt;/td&gt; &lt;td&gt;1,484,093&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/li&gt; &lt;li&gt; On the host OS of the Harpertown system â &lt;table align=&quot;center&quot; cellspacing=&quot;10&quot;&gt; &lt;tr&gt; &lt;th&gt;n&lt;/th&gt; &lt;th&gt;cpu%&lt;/th&gt; &lt;th&gt;rows per second&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;1 query&lt;/th&gt; &lt;td&gt; 648 &lt;/td&gt; &lt;td&gt; 1,041,448 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;2 queries&lt;/th&gt; &lt;td&gt; 708 &lt;/td&gt; &lt;td&gt; 1,124,866 &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/li&gt; &lt;/ol&gt; &lt;p&gt;The CPU percentages are as reported by the OS: user + system CPU divided by real time.&lt;/p&gt; &lt;p&gt;So, Nehalem is in general somewhat faster, around 20-30%, than Harpertown. The effect of core multithreading can be noticed but is not huge, another 20% or so for situations with more threads than cores. The join where Harpertown did better could be attributed to its larger cache â 12 MB vs 8 MB.&lt;/p&gt; &lt;p&gt;We see that Xen has a measurable but not prohibitive overhead; count a little under 10% for everything, also tasks with no I/O. The VM was set up to have all CPU for the test and the queries did not do disk I/O.&lt;/p&gt; &lt;p&gt;The executables were compiled with &lt;code&gt;gcc&lt;/code&gt; with default settings. Specifying &lt;code&gt;-march=nocona&lt;/code&gt; (Core 2 target) dropped the cross-partition join time mentioned above from 128s to 122s on Harpertown. We did not try this on Nehalem but presume the effect would be the same, since the out-of-order unit is not much different. We did not do anything about process-to-memory affinity on Nehalem, which is a non-uniform architecture. We would expect this to increase performance since we have many equal size processes with even load.&lt;/p&gt; &lt;p&gt;The mainstay of the Nehalem value proposition is a better memory subsystem. Since the unit we got was at 800 MHz memory, we did not see any great improvement. So if you buy Nehalem, you should make sure it is with 1333 MHz memory, else the best case will not be over 50% over a 667 MHz Core 2-based Xeon.&lt;/p&gt; &lt;p&gt;Nehalem remains a better deal for us because of more memory per board. One Nehalem box with 72 GB costs less than two Harpertown boxes with 32 GB and offers almost the same performance. Having a lot of memory in a small space is key. With faster memory, it might even outperform two Harpertown boxes, but this remains to be seen.&lt;/p&gt; &lt;p&gt;If space were not a constraint, we could make a cluster of 12 small workstations for the price of our largest system and get still more memory and more processor power per unit of memory. The Nehalem box was almost 4x faster than the AMD box but then it has 9x the memory, so the CPU to memory ratio might be better with the smaller boxes.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Short Recap of Virtuoso Basics (#3 of 5)</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2009-04-30#1552</atom:id>
  <atom:published>2009-04-30T15:49:53Z</atom:published>
  <atom:updated>2009-04-30T12:11:45-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;(Third of five posts related to the &lt;a href=&quot;http://www2009.org/&quot; id=&quot;link-id0x14b582b8&quot;&gt;WWW 2009&lt;/a&gt; conference, held the week of April 20, 2009.) &lt;/p&gt; &lt;p&gt;There are some points that came up in conversation at WWW 2009 that I will reiterate here. We find there is still some lack of clarity in the product image, so I will here condense it.&lt;/p&gt; &lt;p&gt; &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x14bf48b8&quot;&gt;Virtuoso&lt;/a&gt; is a DBMS. We pitch it primarily to the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x16bc4490&quot;&gt;data&lt;/a&gt; web space because this is where we see the emerging frontier. Virtuoso does both &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1223dc30&quot;&gt;SQL&lt;/a&gt; and &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x170eec88&quot;&gt;SPARQL&lt;/a&gt; and can do both at large scale and high performance. The popular perception of &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x15a05fc0&quot;&gt;RDF&lt;/a&gt; and Relational models as mutually exclusive and antagonistic poles is based on the poor scalability of early RDF implementations. What we do is to have all the RDF specifics, like IRIs and typed literals as native SQL types, and to have a cost based optimizer that knows about this all.&lt;/p&gt; &lt;p&gt;If you want application-specific data structures as opposed to a schema-agnostic quad-store model (triple + graph-name), then Virtuoso can give you this too. &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/rdfsparqlintegrationmiddleware.html#rdfviews&quot; id=&quot;link-id14ddc7c8&quot;&gt;Rendering application specific data structures as RDF&lt;/a&gt; applies equally to relational data in non-Virtuoso databases because Virtuoso SQL can &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/qsvdbsrv.html&quot; id=&quot;link-id14aaea70&quot;&gt;federate tables from heterogenous DBMS&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;On top of this, there is a &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/qswebserver.html&quot; id=&quot;link-id16fcde60&quot;&gt;web server built in&lt;/a&gt;, so that no extra server is needed for web services, web pages, and the like.&lt;/p&gt; &lt;p&gt;Installation is simple, just one exe and one config file. There is a huge amount of code in &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/installation.html&quot; id=&quot;link-id16767b40&quot;&gt;installers&lt;/a&gt; â application code and test suites and such â but none of this is needed when you deploy. Scale goes from a 25MB memory footprint on the desktop to hundreds of gigabytes of RAM and endless terabytes of disk on shared-nothing clusters.&lt;/p&gt; &lt;p&gt;Clusters (coming in Release 6) and SQL federation are &lt;a href=&quot;http://download.openlinksw.com/download/product_matrix.vsp?p=l_os&amp;amp;c=39&amp;amp;df=16&quot; id=&quot;link-id16722550&quot;&gt;commercial only&lt;/a&gt;; the rest can be had &lt;a href=&quot;http://sourceforge.net/project/showfiles.php?group_id=161622&quot; id=&quot;link-id131080a8&quot;&gt;under GPL&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;To condense further:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Scalable Delivery of &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x1060ad98&quot;&gt;Linked Data&lt;/a&gt; &lt;/li&gt; &lt;li&gt;SPARQL and SQL &lt;ul&gt; &lt;li&gt;Arbitrary RDF Data + Relational&lt;/li&gt; &lt;li&gt;Also From 3rd Party &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x16bbce60&quot;&gt;RDBMS&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;Easy Deployment &lt;/li&gt; &lt;li&gt;Standard Interfaces &lt;ul&gt; &lt;li&gt; &lt;a href=&quot;http://dbpedia.org/resource/Open_Database_Connectivity&quot; id=&quot;link-id0x12e284d8&quot;&gt;ODBC&lt;/a&gt;, &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id0xb5e1400&quot;&gt;JDBC&lt;/a&gt;, OLE DB, &lt;a href=&quot;http://dbpedia.org/resource/ADO.NET&quot; id=&quot;link-id0x15a55db8&quot;&gt;ADO&lt;/a&gt;.&lt;a href=&quot;http://dbpedia.org/resource/.NET_Framework&quot; id=&quot;link-id0x16beb070&quot;&gt;NET&lt;/a&gt;, XMLA&lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://jena.sourceforge.net/&quot; id=&quot;link-id0x122b5008&quot;&gt;Jena&lt;/a&gt;, &lt;a href=&quot;http://sourceforge.net/projects/sesame/&quot; id=&quot;link-id0x148d4078&quot;&gt;Sesame&lt;/a&gt;, etc.&lt;/li&gt; &lt;li&gt;All Web Protocols &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Short Recap of Virtuoso Basics (#3 of 5)</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2009-04-30#1550</atom:id>
  <atom:published>2009-04-30T15:49:53Z</atom:published>
  <atom:updated>2009-04-30T12:11:43.000001-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;(Third of five posts related to the &lt;a href=&quot;http://www2009.org/&quot; id=&quot;link-id0x1081fe40&quot;&gt;WWW 2009&lt;/a&gt; conference, held the week of April 20, 2009.) &lt;/p&gt; &lt;p&gt;There are some points that came up in conversation at WWW 2009 that I will reiterate here. We find there is still some lack of clarity in the product image, so I will here condense it.&lt;/p&gt; &lt;p&gt; &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xd0e85f0&quot;&gt;Virtuoso&lt;/a&gt; is a DBMS. We pitch it primarily to the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x14a294d8&quot;&gt;data&lt;/a&gt; web space because this is where we see the emerging frontier. Virtuoso does both &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x108042f8&quot;&gt;SQL&lt;/a&gt; and &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x10889878&quot;&gt;SPARQL&lt;/a&gt; and can do both at large scale and high performance. The popular perception of &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x107d3b40&quot;&gt;RDF&lt;/a&gt; and Relational models as mutually exclusive and antagonistic poles is based on the poor scalability of early RDF implementations. What we do is to have all the RDF specifics, like IRIs and typed literals as native SQL types, and to have a cost based optimizer that knows about this all.&lt;/p&gt; &lt;p&gt;If you want application-specific data structures as opposed to a schema-agnostic quad-store model (triple + graph-name), then Virtuoso can give you this too. &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/rdfsparqlintegrationmiddleware.html#rdfviews&quot; id=&quot;link-id14ddc7c8&quot;&gt;Rendering application specific data structures as RDF&lt;/a&gt; applies equally to relational data in non-Virtuoso databases because Virtuoso SQL can &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/qsvdbsrv.html&quot; id=&quot;link-id14aaea70&quot;&gt;federate tables from heterogenous DBMS&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;On top of this, there is a &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/qswebserver.html&quot; id=&quot;link-id16fcde60&quot;&gt;web server built in&lt;/a&gt;, so that no extra server is needed for web services, web pages, and the like.&lt;/p&gt; &lt;p&gt;Installation is simple, just one exe and one config file. There is a huge amount of code in &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/installation.html&quot; id=&quot;link-id16767b40&quot;&gt;installers&lt;/a&gt; â application code and test suites and such â but none of this is needed when you deploy. Scale goes from a 25MB memory footprint on the desktop to hundreds of gigabytes of RAM and endless terabytes of disk on shared-nothing clusters.&lt;/p&gt; &lt;p&gt;Clusters (coming in Release 6) and SQL federation are &lt;a href=&quot;http://download.openlinksw.com/download/product_matrix.vsp?p=l_os&amp;amp;c=39&amp;amp;df=16&quot; id=&quot;link-id16722550&quot;&gt;commercial only&lt;/a&gt;; the rest can be had &lt;a href=&quot;http://sourceforge.net/project/showfiles.php?group_id=161622&quot; id=&quot;link-id131080a8&quot;&gt;under GPL&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;To condense further:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Scalable Delivery of &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x12211da8&quot;&gt;Linked Data&lt;/a&gt; &lt;/li&gt; &lt;li&gt;SPARQL and SQL &lt;ul&gt; &lt;li&gt;Arbitrary RDF Data + Relational&lt;/li&gt; &lt;li&gt;Also From 3rd Party &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x168db0e0&quot;&gt;RDBMS&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;Easy Deployment &lt;/li&gt; &lt;li&gt;Standard Interfaces &lt;ul&gt; &lt;li&gt; &lt;a href=&quot;http://dbpedia.org/resource/Open_Database_Connectivity&quot; id=&quot;link-id0x10473bf0&quot;&gt;ODBC&lt;/a&gt;, &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id0x12187f58&quot;&gt;JDBC&lt;/a&gt;, OLE DB, &lt;a href=&quot;http://dbpedia.org/resource/ADO.NET&quot; id=&quot;link-id0x10354e48&quot;&gt;ADO&lt;/a&gt;.&lt;a href=&quot;http://dbpedia.org/resource/.NET_Framework&quot; id=&quot;link-id0x16eeadd0&quot;&gt;NET&lt;/a&gt;, XMLA&lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://jena.sourceforge.net/&quot; id=&quot;link-id0x12e3fe08&quot;&gt;Jena&lt;/a&gt;, &lt;a href=&quot;http://sourceforge.net/projects/sesame/&quot; id=&quot;link-id0x15e62470&quot;&gt;Sesame&lt;/a&gt;, etc.&lt;/li&gt; &lt;li&gt;All Web Protocols &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Linked Data at WWW 2009 (#1 of 5)</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2009-04-27#1545</atom:id>
  <atom:published>2009-04-27T21:28:11Z</atom:published>
  <atom:updated>2009-04-28T11:27:57-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;(First of five posts related to the &lt;a href=&quot;http://www2009.org/&quot; id=&quot;link-id0x12d8ed90&quot;&gt;WWW 2009&lt;/a&gt; conference, held the week of April 20, 2009.)&lt;/p&gt; &lt;p&gt;We gave a talk at the &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x152bf430&quot;&gt;Linked Open Data&lt;/a&gt; workshop, &lt;a href=&quot;http://events.linkeddata.org/ldow2009/&quot; id=&quot;link-id0x191721c8&quot;&gt;LDOW 2009&lt;/a&gt;, at WWW 2009. I did not go very far into the technical points in the talk, as there was almost no time and the points are rather complex. Instead, I emphasized what new things had become possible with recent developments.&lt;/p&gt; &lt;p&gt;The problem we do not cease hearing about is scale. We have solved most of it. There is scale in the schema: Put together, ontologies go over a million classes/properties. Which ones are relevant depends, and the user should have the choice. The instance &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x17c8f998&quot;&gt;data&lt;/a&gt; is in the tens of billions of triples, much derived from Web 2.0 sources but also much published as &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xd562090&quot;&gt;RDF&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;To make sense of this all, we need quick summaries and search. Without navigation via joins, the value will be limited. Fast joining, counting, grouping, and ranking are key.&lt;/p&gt; &lt;p&gt;People will use different terms for the same thing. The issue of identity is philosophical. In order to do reasoning one needs strong identity; a statement like &lt;i&gt;x is a bit like y&lt;/i&gt; is not very useful in a database context. Whether any x and y can be considered the same depends on the context. So leave this for query time. The conditions under which two people are considered the same will depend on whether you are doing marketing analysis or law enforcement. A general purpose data store cannot anticipate all the possibilities, so smush on demand, as you go, as has been said many times.&lt;/p&gt; &lt;p&gt;Against this backdrop, we offer a solution with which anybody who so chooses can play with big data, whether a search or analytics player.&lt;/p&gt; &lt;p&gt;We are going in the direction of more and more ad hoc processing at larger and larger scale. With good query parallelization, we can do big joins without complex programming. No explicit Map Reduce jobs or the like. What was done with special code with special parallel programming models, can now be done in &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x60bd0c48&quot;&gt;SQL&lt;/a&gt; and &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x13db1ff0&quot;&gt;SPARQL&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;To showcase this, we do &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x10a5dde8&quot;&gt;linked data&lt;/a&gt; search, browsing, and so on, but are essentially a platform provider.&lt;/p&gt; &lt;p&gt;Entry costs into relatively high end databases have dropped significantly. A cluster with 1 TB of RAM sells for $75K or so at today&amp;#39;s retail prices and fits under a desk. For intermittent use, the rent for 1TB RAM is $1228 per day on &lt;a href=&quot;http://aws.amazon.com/ec2/&quot; id=&quot;link-id0xa59039d8&quot;&gt;EC2&lt;/a&gt;. With this on one side and &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x19f86c10&quot;&gt;Virtuoso&lt;/a&gt; on the other, a lot that was impractical in the past is now within reach. Like &lt;a href=&quot;http://g1o.net/foaf.rdf#me&quot; id=&quot;link-id0xa1853af8&quot;&gt;Giovanni Tummarello&lt;/a&gt; put it for airplanes, the physics are as they were for &lt;a href=&quot;http://dbpedia.org/resource/Leonardo_da_Vinci&quot; id=&quot;link-id0x12df02e0&quot;&gt;da Vinci&lt;/a&gt; but materials and engines had to develop a bit before there was commercial potential. So it is also with analytics for everyone.&lt;/p&gt; &lt;p&gt;A remark from the audience was that all the stuff being shown, not limited to Virtuoso, was non-standard, having to do with text search, with ranking, with extensions, and was in fact not SPARQL and pure linked data principles. Further, by throwing this all together, one got something overcomplicated, too heavy.&lt;/p&gt; &lt;p&gt;I answered as follows, which apparently cannot be repeated too much:&lt;/p&gt; &lt;p&gt;First, everybody expects a text search box, and is conditioned to having one. No text search and no ranking is a non-starter. &lt;i&gt;Ceterum censeo&lt;/i&gt;, for database, the next generation cannot be less expressive than the previous. All of SQL and then some is where SPARQL must be. The barest minimum is being able to say anything one can say in SQL, and then justify SPARQL by saying that it is better for heterogenous data, schema last, and so on. On top of this, transitivity and rules will not hurt. For now, the current SPARQL working group will at least reach basic SQL parity; the edge will still remain implementation dependent.&lt;/p&gt; &lt;p&gt;Another remark was that joining is slow. Depends. Anything involving more complex disk access than linear reading of a blob is generally not good for interactive use. But with adequate memory, and with all hot spots in memory, we do some 3.2 million random-accesses-per-second on 12 cores, with easily 80% platform utilization for a single large query. The high utilization means that times drop as processing gets divided over more partitions.&lt;/p&gt; &lt;p&gt;There was a talk about &lt;a href=&quot;http://semanticweb.org/wiki/MashQL&quot; id=&quot;link-id0x1642a780&quot;&gt;MashQL&lt;/a&gt; by &lt;a href=&quot;http://data.semanticweb.org/person/mustafa-jarrar&quot; id=&quot;link-id0x116e5af8&quot;&gt;Mustafa Jarrar&lt;/a&gt;, concerning an abstraction on top of SPARQL for easy composition of tree-structured queries. The idea was that such queries can be evaluated &amp;quot;on the fly&amp;quot; as they are being composed. As it happens, we already have an &lt;a href=&quot;http://dbpedia.org/resource/XML&quot; id=&quot;link-id0x11442520&quot;&gt;XML&lt;/a&gt;-based query abstraction layer incorporated into Virtuoso 6.0&amp;#39;s built-in &lt;a href=&quot;http://lod.openlinksw.com/fct/facet.vsp&quot; id=&quot;link-id0x6a9ebfe0&quot;&gt;Faceted Data Browser Service&lt;/a&gt;, and the effects are probably quite similar. The most important point here is that by using XML, both of these approaches are interoperable against a Virtuoso back-end. Along similar lines, we did not get to talk to the G Facets people but our message to them is the same: &lt;i&gt;Use the &lt;a href=&quot;http://lod.openlinksw.com/fct/facet.vsp&quot; id=&quot;link-id0x1676e158&quot;&gt;faceted browser service&lt;/a&gt; to get vastly higher performance when querying against Linked Data, be it &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0x12653418&quot;&gt;DBpedia&lt;/a&gt; or the &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0x10a61e78&quot;&gt;entity&lt;/a&gt; &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x164150d8&quot;&gt;LOD&lt;/a&gt; &lt;a href=&quot;http://lod.openlinksw.com/&quot; id=&quot;link-id0xc5ec918&quot;&gt;Cloud&lt;/a&gt;. Virtuoso 6.0 (Open Source Edition) &amp;quot;&lt;a href=&quot;http://sourceforge.net/project/showfiles.php?group_id=161622&amp;amp;package_id=319652&amp;amp;release_id=677866&quot; id=&quot;link-id12159728&quot;&gt;TP1&lt;/a&gt;&amp;quot; is now publicly available as a Technology Preview (beta).&lt;/i&gt; &lt;/p&gt; &lt;p&gt;We heard that there is an effort for porting Freebase&amp;#39;s Parallax to SPARQL. The same thing applies to this. With a number of different data viewers on top of SPARQL, we come closer to broad-audience linked-data applications. These viewers are still too generic for the end user, though. We fully believe that for both search and transactions, application-domain-specific workflows will stay relevant. But these can be made to a fair degree by specializing generic linked-data-bound controls and gluing them together with some scripting.&lt;/p&gt; &lt;p&gt;As said before, the application will interface the user to the vocabulary. The vocabulary development takes the modeling burden from the application and makes for interchangeable experience on the same data. The data in turn is &amp;quot;virtualized&amp;quot; into the database cloud or the local secure server, as the use case may require. &lt;/p&gt; &lt;p&gt;For ease of adoption, open competition, and safety from lock-in, the community needs a SPARQL whose usability is not totally dependent on vendor extensions. But we might &lt;i&gt;de facto&lt;/i&gt; have that in just a bit, whenever there is a working draft from the SPARQL WG.&lt;/p&gt; &lt;p&gt;Another topic that we encounter often is the question of integration (or lack thereof) between communities. For example, database conferences reject &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x12563ea0&quot;&gt;semantic web&lt;/a&gt; papers and vice versa. Such politics would seem to emerge naturally but are nonetheless detrimental. We really should partner with people who write papers as their principal occupation. We ourselves do software products and use very little time for papers, so some of the bad reviews we have received do make a legitimate point. By rights, we should go for database venues but we cannot have this take too much time. So we are open to partnering for splitting the opportunity cost of multiple submissions.&lt;/p&gt; &lt;p&gt;For future work, there is nothing radically new. We continue testing and productization of cluster databases. Just deliver what is in the pipeline. The essential nature of this is adding more and more cases of better and better parallelization in different query situations. The present usage patterns work well for finding bugs and performance bottlenecks. For presentation, our goal is to have third party viewers operate with our platform. We cannot completely leave data browsing and UI to third parties since we must from time to time introduce various unique functionality. Most interaction should however go via third party applications.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Linked Data at WWW 2009 (#1 of 5)</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2009-04-27#1544</atom:id>
  <atom:published>2009-04-27T21:28:11Z</atom:published>
  <atom:updated>2009-04-28T11:27:50-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;(First of five posts related to the &lt;a href=&quot;http://www2009.org/&quot; id=&quot;link-id0x114c2450&quot;&gt;WWW 2009&lt;/a&gt; conference, held the week of April 20, 2009.)&lt;/p&gt; &lt;p&gt;We gave a talk at the &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x166e10f0&quot;&gt;Linked Open Data&lt;/a&gt; workshop, &lt;a href=&quot;http://events.linkeddata.org/ldow2009/&quot; id=&quot;link-id0x19c2b1f0&quot;&gt;LDOW 2009&lt;/a&gt;, at WWW 2009. I did not go very far into the technical points in the talk, as there was almost no time and the points are rather complex. Instead, I emphasized what new things had become possible with recent developments.&lt;/p&gt; &lt;p&gt;The problem we do not cease hearing about is scale. We have solved most of it. There is scale in the schema: Put together, ontologies go over a million classes/properties. Which ones are relevant depends, and the user should have the choice. The instance &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x12c65250&quot;&gt;data&lt;/a&gt; is in the tens of billions of triples, much derived from Web 2.0 sources but also much published as &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x441128e0&quot;&gt;RDF&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;To make sense of this all, we need quick summaries and search. Without navigation via joins, the value will be limited. Fast joining, counting, grouping, and ranking are key.&lt;/p&gt; &lt;p&gt;People will use different terms for the same thing. The issue of identity is philosophical. In order to do reasoning one needs strong identity; a statement like &lt;i&gt;x is a bit like y&lt;/i&gt; is not very useful in a database context. Whether any x and y can be considered the same depends on the context. So leave this for query time. The conditions under which two people are considered the same will depend on whether you are doing marketing analysis or law enforcement. A general purpose data store cannot anticipate all the possibilities, so smush on demand, as you go, as has been said many times.&lt;/p&gt; &lt;p&gt;Against this backdrop, we offer a solution with which anybody who so chooses can play with big data, whether a search or analytics player.&lt;/p&gt; &lt;p&gt;We are going in the direction of more and more ad hoc processing at larger and larger scale. With good query parallelization, we can do big joins without complex programming. No explicit Map Reduce jobs or the like. What was done with special code with special parallel programming models, can now be done in &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x16766eb0&quot;&gt;SQL&lt;/a&gt; and &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1645ddc8&quot;&gt;SPARQL&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;To showcase this, we do &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0xa167e698&quot;&gt;linked data&lt;/a&gt; search, browsing, and so on, but are essentially a platform provider.&lt;/p&gt; &lt;p&gt;Entry costs into relatively high end databases have dropped significantly. A cluster with 1 TB of RAM sells for $75K or so at today&amp;#39;s retail prices and fits under a desk. For intermittent use, the rent for 1TB RAM is $1228 per day on &lt;a href=&quot;http://aws.amazon.com/ec2/&quot; id=&quot;link-id0xa1a67b70&quot;&gt;EC2&lt;/a&gt;. With this on one side and &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1622d4e0&quot;&gt;Virtuoso&lt;/a&gt; on the other, a lot that was impractical in the past is now within reach. Like &lt;a href=&quot;http://g1o.net/foaf.rdf#me&quot; id=&quot;link-id0x3d5c8b50&quot;&gt;Giovanni Tummarello&lt;/a&gt; put it for airplanes, the physics are as they were for &lt;a href=&quot;http://dbpedia.org/resource/Leonardo_da_Vinci&quot; id=&quot;link-id0x198e7cc0&quot;&gt;da Vinci&lt;/a&gt; but materials and engines had to develop a bit before there was commercial potential. So it is also with analytics for everyone.&lt;/p&gt; &lt;p&gt;A remark from the audience was that all the stuff being shown, not limited to Virtuoso, was non-standard, having to do with text search, with ranking, with extensions, and was in fact not SPARQL and pure linked data principles. Further, by throwing this all together, one got something overcomplicated, too heavy.&lt;/p&gt; &lt;p&gt;I answered as follows, which apparently cannot be repeated too much:&lt;/p&gt; &lt;p&gt;First, everybody expects a text search box, and is conditioned to having one. No text search and no ranking is a non-starter. &lt;i&gt;Ceterum censeo&lt;/i&gt;, for database, the next generation cannot be less expressive than the previous. All of SQL and then some is where SPARQL must be. The barest minimum is being able to say anything one can say in SQL, and then justify SPARQL by saying that it is better for heterogenous data, schema last, and so on. On top of this, transitivity and rules will not hurt. For now, the current SPARQL working group will at least reach basic SQL parity; the edge will still remain implementation dependent.&lt;/p&gt; &lt;p&gt;Another remark was that joining is slow. Depends. Anything involving more complex disk access than linear reading of a blob is generally not good for interactive use. But with adequate memory, and with all hot spots in memory, we do some 3.2 million random-accesses-per-second on 12 cores, with easily 80% platform utilization for a single large query. The high utilization means that times drop as processing gets divided over more partitions.&lt;/p&gt; &lt;p&gt;There was a talk about &lt;a href=&quot;http://semanticweb.org/wiki/MashQL&quot; id=&quot;link-id0x60bd57b0&quot;&gt;MashQL&lt;/a&gt; by &lt;a href=&quot;http://data.semanticweb.org/person/mustafa-jarrar&quot; id=&quot;link-id0xa1fb98d8&quot;&gt;Mustafa Jarrar&lt;/a&gt;, concerning an abstraction on top of SPARQL for easy composition of tree-structured queries. The idea was that such queries can be evaluated &amp;quot;on the fly&amp;quot; as they are being composed. As it happens, we already have an &lt;a href=&quot;http://dbpedia.org/resource/XML&quot; id=&quot;link-id0x1923a380&quot;&gt;XML&lt;/a&gt;-based query abstraction layer incorporated into Virtuoso 6.0&amp;#39;s built-in &lt;a href=&quot;http://lod.openlinksw.com/fct/facet.vsp&quot; id=&quot;link-id0x67712740&quot;&gt;Faceted Data Browser Service&lt;/a&gt;, and the effects are probably quite similar. The most important point here is that by using XML, both of these approaches are interoperable against a Virtuoso back-end. Along similar lines, we did not get to talk to the G Facets people but our message to them is the same: &lt;i&gt;Use the &lt;a href=&quot;http://lod.openlinksw.com/fct/facet.vsp&quot; id=&quot;link-id0x70df2798&quot;&gt;faceted browser service&lt;/a&gt; to get vastly higher performance when querying against Linked Data, be it &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0x1b3fd608&quot;&gt;DBpedia&lt;/a&gt; or the &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0x13ecd708&quot;&gt;entity&lt;/a&gt; &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x17f16970&quot;&gt;LOD&lt;/a&gt; &lt;a href=&quot;http://lod.openlinksw.com/&quot; id=&quot;link-id0x54334250&quot;&gt;Cloud&lt;/a&gt;. Virtuoso 6.0 (Open Source Edition) &amp;quot;&lt;a href=&quot;http://sourceforge.net/project/showfiles.php?group_id=161622&amp;amp;package_id=319652&amp;amp;release_id=677866&quot; id=&quot;link-id12159728&quot;&gt;TP1&lt;/a&gt;&amp;quot; is now publicly available as a Technology Preview (beta).&lt;/i&gt; &lt;/p&gt; &lt;p&gt;We heard that there is an effort for porting Freebase&amp;#39;s Parallax to SPARQL. The same thing applies to this. With a number of different data viewers on top of SPARQL, we come closer to broad-audience linked-data applications. These viewers are still too generic for the end user, though. We fully believe that for both search and transactions, application-domain-specific workflows will stay relevant. But these can be made to a fair degree by specializing generic linked-data-bound controls and gluing them together with some scripting.&lt;/p&gt; &lt;p&gt;As said before, the application will interface the user to the vocabulary. The vocabulary development takes the modeling burden from the application and makes for interchangeable experience on the same data. The data in turn is &amp;quot;virtualized&amp;quot; into the database cloud or the local secure server, as the use case may require. &lt;/p&gt; &lt;p&gt;For ease of adoption, open competition, and safety from lock-in, the community needs a SPARQL whose usability is not totally dependent on vendor extensions. But we might &lt;i&gt;de facto&lt;/i&gt; have that in just a bit, whenever there is a working draft from the SPARQL WG.&lt;/p&gt; &lt;p&gt;Another topic that we encounter often is the question of integration (or lack thereof) between communities. For example, database conferences reject &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x185d6bf8&quot;&gt;semantic web&lt;/a&gt; papers and vice versa. Such politics would seem to emerge naturally but are nonetheless detrimental. We really should partner with people who write papers as their principal occupation. We ourselves do software products and use very little time for papers, so some of the bad reviews we have received do make a legitimate point. By rights, we should go for database venues but we cannot have this take too much time. So we are open to partnering for splitting the opportunity cost of multiple submissions.&lt;/p&gt; &lt;p&gt;For future work, there is nothing radically new. We continue testing and productization of cluster databases. Just deliver what is in the pipeline. The essential nature of this is adding more and more cases of better and better parallelization in different query situations. The present usage patterns work well for finding bugs and performance bottlenecks. For presentation, our goal is to have third party viewers operate with our platform. We cannot completely leave data browsing and UI to third parties since we must from time to time introduce various unique functionality. Most interaction should however go via third party applications.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Web Scale and Fault Tolerance</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2009-04-01#1541</atom:id>
  <atom:published>2009-04-01T15:18:06Z</atom:published>
  <atom:updated>2009-04-01T11:18:54.000012-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;One concern about &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x719d2f8&quot;&gt;Virtuoso&lt;/a&gt; Cluster is fault tolerance. This post talks about the basics of fault tolerance and what we can do with this, from improving resilience and optimizing performance to accommodating bulk loads without impacting interactive response. We will see that this is yet another step towards a 24/7 web-scale &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0xa9a1d8d8&quot;&gt;Linked Data&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Giant_Global_Graph&quot; id=&quot;link-id0x25201030&quot;&gt;Web&lt;/a&gt;. We will see how large scale, continuous operation, and redundancy are related.&lt;/p&gt; &lt;p&gt;It has been said many times â when things are large enough, failures become frequent. In view of this, basic storage of partitions in multiple copies is built into the Virtuoso cluster from the start. Until now, this feature has not been tested or used very extensively, aside from the trivial case of keeping all schema &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x4548898&quot;&gt;information&lt;/a&gt; in synchronous replicas on all servers.&lt;/p&gt; &lt;h2&gt;Approaches to Fault Tolerance&lt;/h2&gt; &lt;p&gt;Fault tolerance has many aspects but it starts with keeping &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x18757400&quot;&gt;data&lt;/a&gt; in at least two copies. There are shared-disk cluster databases like &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0x711c900&quot;&gt;Oracle&lt;/a&gt; RAC that do not depend on partitioning. With these, as long as the disk image is intact, servers can come and go. The fault tolerance of the disk in turn comes from mirroring done by the disk controller. Raids other than mirrored disk are not really good for databases because of write speed.&lt;/p&gt; &lt;p&gt;With shared-nothing setups like Virtuoso, fault tolerance is based on multiple servers keeping the same logical data. The copies are synchronized transaction-by-transaction but are not bit-for-bit identical nor write-by-write synchronous as is the case with mirrored disks.&lt;/p&gt; &lt;p&gt;There are asynchronous replication schemes generally based on log shipping, where the replica replays the transaction log of the master copy. The master copy gets the updates, the replica replays them. Both can take queries. These do not guarantee an entirely ACID fail-over but for many applications they come close enough.&lt;/p&gt; &lt;p&gt;In a tightly coupled cluster, it is possible to do synchronous, transactional updates on multiple copies without great added cost. Sending the message to two places instead of one does not make much difference since it is the latency that counts. But once we go to wide area networks, this becomes as good as unworkable for any sort of update volume. Thus, wide area replication must in practice be asynchronous.&lt;/p&gt; &lt;p&gt;This is a subject for another discussion. For now, the short answer is that wide area log shipping must be adapted to the application&amp;#39;s requirements for synchronicity and consistency. Also, exactly what content is shipped and to where depends on the application. Some application-specific logic will likely be involved; more than this one cannot say without a specific context.&lt;/p&gt; &lt;h2&gt;Basics of Partition Fail-Over&lt;/h2&gt; &lt;p&gt;For now, we will be concerned with redundancy protecting against broken hardware, software slowdown, or crashes inside a single site.&lt;/p&gt; &lt;p&gt;The basic idea is simple: Writes go to all copies; reads that must be repeatable or serializable (i.e., locking) go to the first copy; reads that refer to committed state without guarantee of repeatability can be balanced among all copies. When a copy goes offline, nobody needs to know, as long as there is at least one copy online for each partition. The exception in practice is when there are open cursors or such stateful things as aggregations pending on a copy that goes down. Then the query or transaction will abort and the application can retry. This looks like a deadlock to the application.&lt;/p&gt; &lt;p&gt;Coming back online is more complicated. This requires establishing that the recovering copy is actually in sync. In practice this requires a short window during which no transactions have uncommitted updates. Sometimes, forcing this can require aborting some transactions, which again looks like a deadlock to the application.&lt;/p&gt; &lt;p&gt;When an error is seen, such as a process no longer accepting connections and dropping existing cluster connections, we in practice go via two stages. First, the operations that directly depended on this process are aborted, as well as any computation being done on behalf of the disconnected server. At this stage, attempting to read data from the partition of the failed server will go to another copy but writes will still try to update all copies and will fail if the failed copy continues to be offline. After it is established that the failed copy will stay off for some time, writes may be re-enabled â but now having the failed copy rejoin the cluster will be more complicated, requiring an atomic window to ensure sync, as mentioned earlier.&lt;/p&gt; &lt;p&gt;For the DBA, there can be intermittent software crashes where a failed server automatically restarts itself, and there can be prolonged failures where this does not happen. Both are alerts but the first kind can wait. Since a system must essentially run itself, it will wait for some time for the failed server to restart itself. During this window, all reads of the failed partition go to the spare copy and writes give an error. If the spare does not come back up in time, the system will automatically re-enable writes on the spare but now the failed server may no longer rejoin the cluster without a complex sync cycle. This all can happen in well under a minute, faster than a human operator can react. The diagnostics can be done later.&lt;/p&gt; &lt;p&gt;If the situation was a hardware failure, recovery consists of taking a spare server and copying the database from the surviving online copy. This done, the spare server can come on line. Copying the database can be done while online and accepting updates but this may take some time, maybe an hour for every 200G of data copied over a network. In principle this could be automated by scripting, but we would normally expect a human DBA to be involved.&lt;/p&gt; &lt;p&gt;As a general rule, reacting to the failure goes automatically without disruption of service but bringing the failed copy online will usually require some operator action.&lt;/p&gt; &lt;h2&gt;Levels of Tolerance and Performance&lt;/h2&gt; &lt;p&gt;The only way to make failures totally invisible is to have all in duplicate and provisioned so that the system never runs at more than half the total capacity. This is often not economical or necessary. This is why we can do better, using the spare capacity for more than standby.&lt;/p&gt; &lt;p&gt;Imagine keeping a repository of linked data. Most of the content will come in through periodic bulk replacement of data sets. Some data will come in through pings from applications publishing FOAF and similar. Some data will come through on-demand RDFization of resources.&lt;/p&gt; &lt;p&gt;The performance of such a repository essentially depends on having enough memory. Having this memory in duplicate is just added cost. What we can do instead is have all copies store the whole partition but when routing queries, apply range partitioning on top of the basic hash partitioning. If one partition stores IDs 64K - 128K, the next partition 128K - 192K, and so forth, and all partitions are stored in two full copies, we can route reads to the first 32K IDs to the first copy and reads to the second 32K IDs to the second copy. In this way, the copies will keep different working sets. The RAM is used to full advantage.&lt;/p&gt; &lt;p&gt;Of course, if there is a failure, then the working set will degrade, but if this is not often and not for long, this can be quite tolerable. The alternate expense is buying twice as much RAM, likely meaning twice as many servers. This workload is memory intensive, thus servers should have the maximum memory they can have without going to parts that are so expensive one gets a new server for the price of doubling memory.&lt;/p&gt; &lt;h2&gt;Background Bulk Processing&lt;/h2&gt; &lt;p&gt;When loading data, the system is online in principle, but query response can be quite bad. A large &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x19fd9c18&quot;&gt;RDF&lt;/a&gt; load will involve most memory and queries will miss the cache. The load will further keep most disks busy, so response is not good. This is the case as soon as a server&amp;#39;s partition of the database is four times the size of RAM or greater. Whether the work is bulk-load or bulk-delete makes little difference.&lt;/p&gt; &lt;p&gt;But if partitions are replicated, we can temporarily split the database so that the first copies serve queries and the second copies do the load. If the copies serving on line activities do some updates also, these updates will be committed on both copies. But the load will be committed on the second copy only. This is fully appropriate as long as the data are different. When the bulk load is done, the second copy of each partition will have the full up to date state, including changes that came in during the bulk load. The online activity can be now redirected to the second copies and the first copies can be overwritten in the background by the second copies, so as to again have all data in duplicate.&lt;/p&gt; &lt;p&gt;Failures during such operations are not dangerous. If the copies doing the bulk load fail, the bulk load will have to be restarted. If the front end copies fail, the front end load goes to the copies doing the bulk load. Response times will be bad until the bulk load is stopped, but no data is lost.&lt;/p&gt; &lt;p&gt;This technique applies to all data intensive background tasks â calculation of &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0x20b7a568&quot;&gt;entity&lt;/a&gt; search ranks, data cleansing, consistency checking, and so on. If two copies are needed to keep up with the online load, then data can be kept just as well in three copies instead of two. This method applies to any data-warehouse-style workload which must coexist with online access and occasional low volume updating.&lt;/p&gt; &lt;h2&gt;Configurations of Redundancy&lt;/h2&gt; &lt;p&gt;Right now, we can declare that two or more server processes in a cluster form a group. All data managed by one member of the group is stored by all others. The members of the group are interchangeable. Thus, if there is four-servers-worth of data, then there will be a minimum of eight servers. Each of these servers will have one server process per core. The first hardware failure will not affect operations. For the second failure, there is a 1/7 chance that it stops the whole system, if it falls on the server whose pair is down. If groups consist of three servers, for a total of 12, the two first failures are guaranteed not to interrupt operations; for the third, there is a 1/10 chance that it will.&lt;/p&gt; &lt;p&gt;We note that for big databases, as said before, the RAM cache capacity is the sum of all the servers&amp;#39; RAM when in normal operation.&lt;/p&gt; &lt;p&gt;There are other, more dynamic ways of splitting data among servers, so that partitions migrate between servers and spawn extra copies of themselves if not enough copies are online. The Google File System (GFS) does something of this sort at the file system level; Amazon&amp;#39;s Dynamo does something similar at the database level. The analogies are not exact, though.&lt;/p&gt; &lt;p&gt;If data is partitioned in this manner, for example into 1K slices, each in duplicate, with the rule that the two duplicates will not be on the same physical server, the first failure will not break operations but the second probably will. Without extra logic, there is a probability that the partitions formerly hosted by the failed server have their second copies randomly spread over the remaining servers. This scheme equalizes load better but is less resilient.&lt;/p&gt; &lt;h2&gt;Maintenance and Continuity&lt;/h2&gt; &lt;p&gt;Databases may benefit from defragmentation, rebalancing of indices, and so on. While these are possible online, by definition they affect the working set and make response times quite bad as soon as the database is significantly larger than RAM. With duplicate copies, the problem is largely solved. Also, software version changes need not involve downtime.&lt;/p&gt; &lt;h2&gt;Present Status&lt;/h2&gt; &lt;p&gt;The basics of replicated partitions are operational. The items to finalize are about system administration procedures and automatic synchronization of recovering copies. This must be automatic because if it is not, the operator will find a way to forget something or do some steps in the wrong order. This also requires a management view that shows what the different processes are doing and whether something is hung or failing repeatedly. All this is for the recovery part; taking failed partitions offline is easy.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Web Scale and Fault Tolerance</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2009-04-01#1540</atom:id>
  <atom:published>2009-04-01T15:18:06Z</atom:published>
  <atom:updated>2009-04-01T11:18:51.000014-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;One concern about &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x3b82c38&quot;&gt;Virtuoso&lt;/a&gt; Cluster is fault tolerance. This post talks about the basics of fault tolerance and what we can do with this, from improving resilience and optimizing performance to accommodating bulk loads without impacting interactive response. We will see that this is yet another step towards a 24/7 web-scale &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x22c42e10&quot;&gt;Linked Data&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Giant_Global_Graph&quot; id=&quot;link-id0x1e4f0b58&quot;&gt;Web&lt;/a&gt;. We will see how large scale, continuous operation, and redundancy are related.&lt;/p&gt; &lt;p&gt;It has been said many times â when things are large enough, failures become frequent. In view of this, basic storage of partitions in multiple copies is built into the Virtuoso cluster from the start. Until now, this feature has not been tested or used very extensively, aside from the trivial case of keeping all schema &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x224401c0&quot;&gt;information&lt;/a&gt; in synchronous replicas on all servers.&lt;/p&gt; &lt;h2&gt;Approaches to Fault Tolerance&lt;/h2&gt; &lt;p&gt;Fault tolerance has many aspects but it starts with keeping &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x230b7500&quot;&gt;data&lt;/a&gt; in at least two copies. There are shared-disk cluster databases like &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0xa9a1d8d8&quot;&gt;Oracle&lt;/a&gt; RAC that do not depend on partitioning. With these, as long as the disk image is intact, servers can come and go. The fault tolerance of the disk in turn comes from mirroring done by the disk controller. Raids other than mirrored disk are not really good for databases because of write speed.&lt;/p&gt; &lt;p&gt;With shared-nothing setups like Virtuoso, fault tolerance is based on multiple servers keeping the same logical data. The copies are synchronized transaction-by-transaction but are not bit-for-bit identical nor write-by-write synchronous as is the case with mirrored disks.&lt;/p&gt; &lt;p&gt;There are asynchronous replication schemes generally based on log shipping, where the replica replays the transaction log of the master copy. The master copy gets the updates, the replica replays them. Both can take queries. These do not guarantee an entirely ACID fail-over but for many applications they come close enough.&lt;/p&gt; &lt;p&gt;In a tightly coupled cluster, it is possible to do synchronous, transactional updates on multiple copies without great added cost. Sending the message to two places instead of one does not make much difference since it is the latency that counts. But once we go to wide area networks, this becomes as good as unworkable for any sort of update volume. Thus, wide area replication must in practice be asynchronous.&lt;/p&gt; &lt;p&gt;This is a subject for another discussion. For now, the short answer is that wide area log shipping must be adapted to the application&amp;#39;s requirements for synchronicity and consistency. Also, exactly what content is shipped and to where depends on the application. Some application-specific logic will likely be involved; more than this one cannot say without a specific context.&lt;/p&gt; &lt;h2&gt;Basics of Partition Fail-Over&lt;/h2&gt; &lt;p&gt;For now, we will be concerned with redundancy protecting against broken hardware, software slowdown, or crashes inside a single site.&lt;/p&gt; &lt;p&gt;The basic idea is simple: Writes go to all copies; reads that must be repeatable or serializable (i.e., locking) go to the first copy; reads that refer to committed state without guarantee of repeatability can be balanced among all copies. When a copy goes offline, nobody needs to know, as long as there is at least one copy online for each partition. The exception in practice is when there are open cursors or such stateful things as aggregations pending on a copy that goes down. Then the query or transaction will abort and the application can retry. This looks like a deadlock to the application.&lt;/p&gt; &lt;p&gt;Coming back online is more complicated. This requires establishing that the recovering copy is actually in sync. In practice this requires a short window during which no transactions have uncommitted updates. Sometimes, forcing this can require aborting some transactions, which again looks like a deadlock to the application.&lt;/p&gt; &lt;p&gt;When an error is seen, such as a process no longer accepting connections and dropping existing cluster connections, we in practice go via two stages. First, the operations that directly depended on this process are aborted, as well as any computation being done on behalf of the disconnected server. At this stage, attempting to read data from the partition of the failed server will go to another copy but writes will still try to update all copies and will fail if the failed copy continues to be offline. After it is established that the failed copy will stay off for some time, writes may be re-enabled â but now having the failed copy rejoin the cluster will be more complicated, requiring an atomic window to ensure sync, as mentioned earlier.&lt;/p&gt; &lt;p&gt;For the DBA, there can be intermittent software crashes where a failed server automatically restarts itself, and there can be prolonged failures where this does not happen. Both are alerts but the first kind can wait. Since a system must essentially run itself, it will wait for some time for the failed server to restart itself. During this window, all reads of the failed partition go to the spare copy and writes give an error. If the spare does not come back up in time, the system will automatically re-enable writes on the spare but now the failed server may no longer rejoin the cluster without a complex sync cycle. This all can happen in well under a minute, faster than a human operator can react. The diagnostics can be done later.&lt;/p&gt; &lt;p&gt;If the situation was a hardware failure, recovery consists of taking a spare server and copying the database from the surviving online copy. This done, the spare server can come on line. Copying the database can be done while online and accepting updates but this may take some time, maybe an hour for every 200G of data copied over a network. In principle this could be automated by scripting, but we would normally expect a human DBA to be involved.&lt;/p&gt; &lt;p&gt;As a general rule, reacting to the failure goes automatically without disruption of service but bringing the failed copy online will usually require some operator action.&lt;/p&gt; &lt;h2&gt;Levels of Tolerance and Performance&lt;/h2&gt; &lt;p&gt;The only way to make failures totally invisible is to have all in duplicate and provisioned so that the system never runs at more than half the total capacity. This is often not economical or necessary. This is why we can do better, using the spare capacity for more than standby.&lt;/p&gt; &lt;p&gt;Imagine keeping a repository of linked data. Most of the content will come in through periodic bulk replacement of data sets. Some data will come in through pings from applications publishing FOAF and similar. Some data will come through on-demand RDFization of resources.&lt;/p&gt; &lt;p&gt;The performance of such a repository essentially depends on having enough memory. Having this memory in duplicate is just added cost. What we can do instead is have all copies store the whole partition but when routing queries, apply range partitioning on top of the basic hash partitioning. If one partition stores IDs 64K - 128K, the next partition 128K - 192K, and so forth, and all partitions are stored in two full copies, we can route reads to the first 32K IDs to the first copy and reads to the second 32K IDs to the second copy. In this way, the copies will keep different working sets. The RAM is used to full advantage.&lt;/p&gt; &lt;p&gt;Of course, if there is a failure, then the working set will degrade, but if this is not often and not for long, this can be quite tolerable. The alternate expense is buying twice as much RAM, likely meaning twice as many servers. This workload is memory intensive, thus servers should have the maximum memory they can have without going to parts that are so expensive one gets a new server for the price of doubling memory.&lt;/p&gt; &lt;h2&gt;Background Bulk Processing&lt;/h2&gt; &lt;p&gt;When loading data, the system is online in principle, but query response can be quite bad. A large &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x3c0cfb8&quot;&gt;RDF&lt;/a&gt; load will involve most memory and queries will miss the cache. The load will further keep most disks busy, so response is not good. This is the case as soon as a server&amp;#39;s partition of the database is four times the size of RAM or greater. Whether the work is bulk-load or bulk-delete makes little difference.&lt;/p&gt; &lt;p&gt;But if partitions are replicated, we can temporarily split the database so that the first copies serve queries and the second copies do the load. If the copies serving on line activities do some updates also, these updates will be committed on both copies. But the load will be committed on the second copy only. This is fully appropriate as long as the data are different. When the bulk load is done, the second copy of each partition will have the full up to date state, including changes that came in during the bulk load. The online activity can be now redirected to the second copies and the first copies can be overwritten in the background by the second copies, so as to again have all data in duplicate.&lt;/p&gt; &lt;p&gt;Failures during such operations are not dangerous. If the copies doing the bulk load fail, the bulk load will have to be restarted. If the front end copies fail, the front end load goes to the copies doing the bulk load. Response times will be bad until the bulk load is stopped, but no data is lost.&lt;/p&gt; &lt;p&gt;This technique applies to all data intensive background tasks â calculation of &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0x3b38ac0&quot;&gt;entity&lt;/a&gt; search ranks, data cleansing, consistency checking, and so on. If two copies are needed to keep up with the online load, then data can be kept just as well in three copies instead of two. This method applies to any data-warehouse-style workload which must coexist with online access and occasional low volume updating.&lt;/p&gt; &lt;h2&gt;Configurations of Redundancy&lt;/h2&gt; &lt;p&gt;Right now, we can declare that two or more server processes in a cluster form a group. All data managed by one member of the group is stored by all others. The members of the group are interchangeable. Thus, if there is four-servers-worth of data, then there will be a minimum of eight servers. Each of these servers will have one server process per core. The first hardware failure will not affect operations. For the second failure, there is a 1/7 chance that it stops the whole system, if it falls on the server whose pair is down. If groups consist of three servers, for a total of 12, the two first failures are guaranteed not to interrupt operations; for the third, there is a 1/10 chance that it will.&lt;/p&gt; &lt;p&gt;We note that for big databases, as said before, the RAM cache capacity is the sum of all the servers&amp;#39; RAM when in normal operation.&lt;/p&gt; &lt;p&gt;There are other, more dynamic ways of splitting data among servers, so that partitions migrate between servers and spawn extra copies of themselves if not enough copies are online. The Google File System (GFS) does something of this sort at the file system level; Amazon&amp;#39;s Dynamo does something similar at the database level. The analogies are not exact, though.&lt;/p&gt; &lt;p&gt;If data is partitioned in this manner, for example into 1K slices, each in duplicate, with the rule that the two duplicates will not be on the same physical server, the first failure will not break operations but the second probably will. Without extra logic, there is a probability that the partitions formerly hosted by the failed server have their second copies randomly spread over the remaining servers. This scheme equalizes load better but is less resilient.&lt;/p&gt; &lt;h2&gt;Maintenance and Continuity&lt;/h2&gt; &lt;p&gt;Databases may benefit from defragmentation, rebalancing of indices, and so on. While these are possible online, by definition they affect the working set and make response times quite bad as soon as the database is significantly larger than RAM. With duplicate copies, the problem is largely solved. Also, software version changes need not involve downtime.&lt;/p&gt; &lt;h2&gt;Present Status&lt;/h2&gt; &lt;p&gt;The basics of replicated partitions are operational. The items to finalize are about system administration procedures and automatic synchronization of recovering copies. This must be automatic because if it is not, the operator will find a way to forget something or do some steps in the wrong order. This also requires a management view that shows what the different processes are doing and whether something is hung or failing repeatedly. All this is for the recovery part; taking failed partitions offline is easy.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>An Update on Virtuoso Development</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2009-03-05#1529</atom:id>
  <atom:published>2009-03-05T10:23:49Z</atom:published>
  <atom:updated>2009-03-05T09:58:16-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;It is time for an update on &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x151e89e8&quot;&gt;Virtuoso&lt;/a&gt; developments.&lt;/p&gt; &lt;p&gt;We continue enhancing our hosting of the &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x1464e168&quot;&gt;Linked Open Data&lt;/a&gt; (&lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x151e7f38&quot;&gt;LOD&lt;/a&gt;) cloud at &lt;a href=&quot;http://lod.openlinksw.com&quot; id=&quot;link-id11ac2448&quot;&gt;http://lod.openlinksw.com&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;We have now added result ranking for both text and URIs. Text hit scores are based on word frequency and proximity; &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id0x14f9fae0&quot;&gt;URI&lt;/a&gt; scores are based on link density.&lt;/p&gt; &lt;p&gt;We calculate each URI&amp;#39;s rank by adding up references and weighing these by the score of the referrer. This is like in web search. Each iteration of the ranking will join every referred to each of its referrers. We do about 1.2 million such joins per second, across partitions, over 2.2 billion triples and 400M distinct subjects without any great optimization, just using &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0xaa36a458&quot;&gt;SQL&lt;/a&gt; stored procedures and partitioned function calls. This is a sort of SQL map-reduce. We would do over twice as fast if it were all in &lt;a href=&quot;http://dbpedia.org/resource/C%2B%2B&quot; id=&quot;link-id0x1571e270&quot;&gt;C&lt;/a&gt; but this is adequate for now. The more interesting bit will be tuning the scoring based on what type of link we have. This is what the web search engines cannot do as well, since document links are untyped.&lt;/p&gt; &lt;p&gt;We are moving toward a decent user interface for the LOD hosting, including offering ready-made domain-specific queries, e.g., biomedical.&lt;/p&gt; &lt;p&gt;Things like &amp;quot;URI finding with autocomplete&amp;quot; are done and just have to be put online.&lt;/p&gt; &lt;p&gt;With &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x14325e08&quot;&gt;linked data&lt;/a&gt;, there is the whole question of identifier choice. We will have a special page just for this. There we show reference statistics, synonyms declared by &lt;code&gt;&lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0x638b3900&quot;&gt;owl&lt;/a&gt;:sameAs&lt;/code&gt;, synonyms determined by shared property values, etc. In this way we become a terminology lookup service.&lt;/p&gt; &lt;p&gt;Copies of the LOD cluster system are available for evaluators, on a case by case basis. We will make this publicly available on EC2 also in not too long.&lt;/p&gt; &lt;p&gt;Otherwise, we continue working on productization, primarily things like reliability and recovery. One exercise is running &lt;a href=&quot;http://dbpedia.org/resource/TPC-C&quot; id=&quot;link-id0x144d00f0&quot;&gt;TPC-C&lt;/a&gt; with intentionally stupid partitioning, so that almost all joins and deadlocks are distributed. Then we simulate a cluster interconnect that drops messages now and then, sometimes kill server processes, and still keep full ACID properties. Cloud capable, also in bad weather.&lt;/p&gt; &lt;p&gt;The open source release of Virtuoso 6 (no cluster) is basically ready to go, mostly this is a question of logistics.&lt;/p&gt; &lt;p&gt;I will talk about these things in greater individual detail next week.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>An Update on Virtuoso Development</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2009-03-05#1528</atom:id>
  <atom:published>2009-03-05T10:23:49Z</atom:published>
  <atom:updated>2009-03-05T09:58:07-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;It is time for an update on &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x14b05090&quot;&gt;Virtuoso&lt;/a&gt; developments.&lt;/p&gt; &lt;p&gt;We continue enhancing our hosting of the &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x14395f00&quot;&gt;Linked Open Data&lt;/a&gt; (&lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x13e0cf98&quot;&gt;LOD&lt;/a&gt;) cloud at &lt;a href=&quot;http://lod.openlinksw.com&quot; id=&quot;link-id11ac2448&quot;&gt;http://lod.openlinksw.com&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;We have now added result ranking for both text and URIs. Text hit scores are based on word frequency and proximity; &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id0xa9f5ff20&quot;&gt;URI&lt;/a&gt; scores are based on link density.&lt;/p&gt; &lt;p&gt;We calculate each URI&amp;#39;s rank by adding up references and weighing these by the score of the referrer. This is like in web search. Each iteration of the ranking will join every referred to each of its referrers. We do about 1.2 million such joins per second, across partitions, over 2.2 billion triples and 400M distinct subjects without any great optimization, just using &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x79e77aa0&quot;&gt;SQL&lt;/a&gt; stored procedures and partitioned function calls. This is a sort of SQL map-reduce. We would do over twice as fast if it were all in &lt;a href=&quot;http://dbpedia.org/resource/C%2B%2B&quot; id=&quot;link-id0x11a3f3e8&quot;&gt;C&lt;/a&gt; but this is adequate for now. The more interesting bit will be tuning the scoring based on what type of link we have. This is what the web search engines cannot do as well, since document links are untyped.&lt;/p&gt; &lt;p&gt;We are moving toward a decent user interface for the LOD hosting, including offering ready-made domain-specific queries, e.g., biomedical.&lt;/p&gt; &lt;p&gt;Things like &amp;quot;URI finding with autocomplete&amp;quot; are done and just have to be put online.&lt;/p&gt; &lt;p&gt;With &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x14334a48&quot;&gt;linked data&lt;/a&gt;, there is the whole question of identifier choice. We will have a special page just for this. There we show reference statistics, synonyms declared by &lt;code&gt;&lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0x59a757b0&quot;&gt;owl&lt;/a&gt;:sameAs&lt;/code&gt;, synonyms determined by shared property values, etc. In this way we become a terminology lookup service.&lt;/p&gt; &lt;p&gt;Copies of the LOD cluster system are available for evaluators, on a case by case basis. We will make this publicly available on EC2 also in not too long.&lt;/p&gt; &lt;p&gt;Otherwise, we continue working on productization, primarily things like reliability and recovery. One exercise is running &lt;a href=&quot;http://dbpedia.org/resource/TPC-C&quot; id=&quot;link-id0x1f6797c0&quot;&gt;TPC-C&lt;/a&gt; with intentionally stupid partitioning, so that almost all joins and deadlocks are distributed. Then we simulate a cluster interconnect that drops messages now and then, sometimes kill server processes, and still keep full ACID properties. Cloud capable, also in bad weather.&lt;/p&gt; &lt;p&gt;The open source release of Virtuoso 6 (no cluster) is basically ready to go, mostly this is a question of logistics.&lt;/p&gt; &lt;p&gt;I will talk about these things in greater individual detail next week.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Facets and Large Ontologies of the LOD Cloud</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2009-02-16#1527</atom:id>
  <atom:published>2009-02-16T11:21:05Z</atom:published>
  <atom:updated>2009-02-17T16:24:34.000004-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We have just submitted &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/lodw.pdf&quot; id=&quot;link-id13d9bc68&quot;&gt;this paper&lt;/a&gt; to the WWW09 &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x51c2fd00&quot;&gt;Linked Open Data&lt;/a&gt; Workshop.&lt;/p&gt; &lt;p&gt;The thing is intermittently live with both &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0xa16f87a0&quot;&gt;Dbpedia&lt;/a&gt; on one instance and a &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x1a8212d8&quot;&gt;LOD&lt;/a&gt; Cloud &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xc1097a8&quot;&gt;data&lt;/a&gt; collection of about 2 billion triples on another. We will give out the links once we have tested a bit more.&lt;/p&gt; &lt;p&gt;The present activity is all about testing &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x17d64f90&quot;&gt;Virtuoso&lt;/a&gt; 6 for release, cluster and otherwise.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Facets and Large Ontologies of the LOD Cloud</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2009-02-16#1526</atom:id>
  <atom:published>2009-02-16T11:21:05Z</atom:published>
  <atom:updated>2009-02-17T16:24:27.000009-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We have just submitted &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/lodw.pdf&quot; id=&quot;link-id13d9bc68&quot;&gt;this paper&lt;/a&gt; to the WWW09 &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x1a2b37a0&quot;&gt;Linked Open Data&lt;/a&gt; Workshop.&lt;/p&gt; &lt;p&gt;The thing is intermittently live with both &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0xc0dd578&quot;&gt;Dbpedia&lt;/a&gt; on one instance and a &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x1d721b60&quot;&gt;LOD&lt;/a&gt; Cloud &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xa141b238&quot;&gt;data&lt;/a&gt; collection of about 2 billion triples on another. We will give out the links once we have tested a bit more.&lt;/p&gt; &lt;p&gt;The present activity is all about testing &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xd69ff70&quot;&gt;Virtuoso&lt;/a&gt; 6 for release, cluster and otherwise.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Faceted Search: Unlimited Data in Interactive Time</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2009-01-09#1516</atom:id>
  <atom:published>2009-01-09T22:03:11Z</atom:published>
  <atom:updated>2009-01-09T17:15:39-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;Why not see the whole world of &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xc3f6b38&quot;&gt;data&lt;/a&gt; as facets? Well, we&amp;#39;d like to, but there is the feeling that this is not practical.&lt;/p&gt; &lt;p&gt;The old problem has been that it is not really practical to pre-compute counts of everything for all possible combinations of search conditions and counting/grouping/sorting. The actual matches take time.&lt;/p&gt; &lt;p&gt;Well, neither is in fact necessary. When there are large numbers of items matching the conditions, counting them can take time but then this is the beginning of the search, and the user is not even likely to look very closely at the counts. It is enough to see that there are many of one and few of another. If the user already knows the precise predicate or class to look for, then the top-level faceted view is not even needed. The faceted view for guiding search and precise analytics are two different problems.&lt;/p&gt; &lt;p&gt;There are client-side faceted views like Exhibit or our own &lt;a href=&quot;http://ode.openlinksw.com/&quot; id=&quot;link-id0x1bc1cfe0&quot;&gt;ODE&lt;/a&gt;. The problem with these is that there are a few orders of magnitude difference between the actual database size and what fits on the user agent. This is compounded by the fact that one does not know what to cache on the user agent because of the open nature of the data web. If this were about a fixed workflow, then a good guess would be possible â but we are talking about the data web, the very soul of serendipity and unexpected discovery.&lt;/p&gt; &lt;p&gt;So we made a web service that will do faceted search on arbitrary &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xbb62170&quot;&gt;RDF&lt;/a&gt;. If it does not get complete results within a timeout, it will return what it has counted so far, using &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xb122b00&quot;&gt;Virtuoso&lt;/a&gt;&amp;#39;s &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1494&quot; id=&quot;link-id117b0df0&quot;&gt;&lt;b&gt;Anytime&lt;/b&gt;&lt;/a&gt; feature. Looking for subjects with some specific combination of properties is however a bit limited, so this will also do &lt;code&gt;JOINs&lt;/code&gt;. Many features are one or two &lt;code&gt;JOINs&lt;/code&gt; away; take geographical locations or social networks, for example.&lt;/p&gt; &lt;p&gt;Yet a faceted search should be point-and-click, and should not involve a full query construction. We put the compromise at starting with full text or property or class, then navigating down properties or classes, to arbitrary depth, tree-wise. At each step, one can see the matching instances or their classes or properties, all with counts, faceted-style.&lt;/p&gt; &lt;p&gt;This is good enough for queries like &amp;#39;what do Harry Potter fans also like&amp;#39; or &amp;#39;who are the authors of articles tagged &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0xbee32d8&quot;&gt;semantic web&lt;/a&gt; and machine learning and published in 2008&amp;#39;. For complex grouping, sub-queries, arithmetic or such, one must write the actual query.&lt;/p&gt; &lt;p&gt;But one can begin with facets, and then continue refining the query by hand since the service also returns &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xbcc9f38&quot;&gt;SPARQL&lt;/a&gt; text. We made a small web interface on top of the service with all logic server side. This proves that the web service is usable and that an interface with no AJAX, and no problems with browser interoperability or such, is possible and easy. Also, the problem of syncing between a user-agent-based store and a database is entirely gone.&lt;/p&gt; &lt;p&gt;If we are working with a known data structure, the user interface should choose the display by the data type and offer links to related reports. This is all easy to build as web pages or AJAX. We show how the generic interface is done in Virtuoso PL, and you can adapt that or rewrite it in &lt;a href=&quot;http://dbpedia.org/resource/PHP&quot; id=&quot;link-id0xcdbe268&quot;&gt;PHP&lt;/a&gt;, Java, JavaScript, or anything else, to accommodate use-case specific navigation needs such as data format.&lt;/p&gt; &lt;p&gt;The web service takes an &lt;a href=&quot;http://dbpedia.org/resource/XML&quot; id=&quot;link-id0xc019c08&quot;&gt;XML&lt;/a&gt; representation of the search, which is more restricted and easier to process by machine than the SPARQL syntax. The web service returns the results, the SPARQL query it generated, whether the results are complete or not, and some resource use statistics.&lt;/p&gt; &lt;p&gt;The source of the PL functions, Web Service and Virtuoso Server Page (HTML UI) will be available as part of Virtuoso 6.0 and higher. A Programmer&amp;#39;s Guide will be available as part of the standard Virtuoso Documentation collection, including the Virtuoso Open Source Edition Website.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Faceted Search: Unlimited Data in Interactive Time</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2009-01-09#1515</atom:id>
  <atom:published>2009-01-09T22:03:11Z</atom:published>
  <atom:updated>2009-01-09T17:15:36-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;Why not see the whole world of &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1a0319c0&quot;&gt;data&lt;/a&gt; as facets? Well, we&amp;#39;d like to, but there is the feeling that this is not practical.&lt;/p&gt; &lt;p&gt;The old problem has been that it is not really practical to pre-compute counts of everything for all possible combinations of search conditions and counting/grouping/sorting. The actual matches take time.&lt;/p&gt; &lt;p&gt;Well, neither is in fact necessary. When there are large numbers of items matching the conditions, counting them can take time but then this is the beginning of the search, and the user is not even likely to look very closely at the counts. It is enough to see that there are many of one and few of another. If the user already knows the precise predicate or class to look for, then the top-level faceted view is not even needed. The faceted view for guiding search and precise analytics are two different problems.&lt;/p&gt; &lt;p&gt;There are client-side faceted views like Exhibit or our own &lt;a href=&quot;http://ode.openlinksw.com/&quot; id=&quot;link-id0xc3db130&quot;&gt;ODE&lt;/a&gt;. The problem with these is that there are a few orders of magnitude difference between the actual database size and what fits on the user agent. This is compounded by the fact that one does not know what to cache on the user agent because of the open nature of the data web. If this were about a fixed workflow, then a good guess would be possible â but we are talking about the data web, the very soul of serendipity and unexpected discovery.&lt;/p&gt; &lt;p&gt;So we made a web service that will do faceted search on arbitrary &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xbdbf198&quot;&gt;RDF&lt;/a&gt;. If it does not get complete results within a timeout, it will return what it has counted so far, using &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x17691878&quot;&gt;Virtuoso&lt;/a&gt;&amp;#39;s &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1494&quot; id=&quot;link-id117b0df0&quot;&gt;&lt;b&gt;Anytime&lt;/b&gt;&lt;/a&gt; feature. Looking for subjects with some specific combination of properties is however a bit limited, so this will also do &lt;code&gt;JOINs&lt;/code&gt;. Many features are one or two &lt;code&gt;JOINs&lt;/code&gt; away; take geographical locations or social networks, for example.&lt;/p&gt; &lt;p&gt;Yet a faceted search should be point-and-click, and should not involve a full query construction. We put the compromise at starting with full text or property or class, then navigating down properties or classes, to arbitrary depth, tree-wise. At each step, one can see the matching instances or their classes or properties, all with counts, faceted-style.&lt;/p&gt; &lt;p&gt;This is good enough for queries like &amp;#39;what do Harry Potter fans also like&amp;#39; or &amp;#39;who are the authors of articles tagged &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x160eb950&quot;&gt;semantic web&lt;/a&gt; and machine learning and published in 2008&amp;#39;. For complex grouping, sub-queries, arithmetic or such, one must write the actual query.&lt;/p&gt; &lt;p&gt;But one can begin with facets, and then continue refining the query by hand since the service also returns &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x17e82228&quot;&gt;SPARQL&lt;/a&gt; text. We made a small web interface on top of the service with all logic server side. This proves that the web service is usable and that an interface with no AJAX, and no problems with browser interoperability or such, is possible and easy. Also, the problem of syncing between a user-agent-based store and a database is entirely gone.&lt;/p&gt; &lt;p&gt;If we are working with a known data structure, the user interface should choose the display by the data type and offer links to related reports. This is all easy to build as web pages or AJAX. We show how the generic interface is done in Virtuoso PL, and you can adapt that or rewrite it in &lt;a href=&quot;http://dbpedia.org/resource/PHP&quot; id=&quot;link-id0xbe41d60&quot;&gt;PHP&lt;/a&gt;, Java, JavaScript, or anything else, to accommodate use-case specific navigation needs such as data format.&lt;/p&gt; &lt;p&gt;The web service takes an &lt;a href=&quot;http://dbpedia.org/resource/XML&quot; id=&quot;link-id0xc2fc358&quot;&gt;XML&lt;/a&gt; representation of the search, which is more restricted and easier to process by machine than the SPARQL syntax. The web service returns the results, the SPARQL query it generated, whether the results are complete or not, and some resource use statistics.&lt;/p&gt; &lt;p&gt;The source of the PL functions, Web Service and Virtuoso Server Page (HTML UI) will be available as part of Virtuoso 6.0 and higher. A Programmer&amp;#39;s Guide will be available as part of the standard Virtuoso Documentation collection, including the Virtuoso Open Source Edition Website.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Linked Data &amp; The Year 2009 (updated)</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2009-01-02#1511</atom:id>
  <atom:published>2009-01-02T16:17:06Z</atom:published>
  <atom:updated>2009-01-02T13:26:42.000003-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;As is fitting for the season, I will editorialize a bit about what has gone before and what is to come.&lt;/p&gt; &lt;p&gt; &lt;a href=&quot;http://www.w3.org/People/Berners-Lee/card#i&quot; id=&quot;link-id1119f250&quot;&gt;Sir Tim&lt;/a&gt; said it at WWW08 in &lt;a href=&quot;http://www2008.org/&quot; id=&quot;link-id0x1dcb93a0&quot;&gt;Beijing&lt;/a&gt; â &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x13a3efb8&quot;&gt;linked data&lt;/a&gt; and the linked data &lt;a href=&quot;http://dbpedia.org/resource/Giant_Global_Graph&quot; id=&quot;link-id0x13a44cd0&quot;&gt;web&lt;/a&gt; is the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x10d25788&quot;&gt;semantic web&lt;/a&gt; and the Web done right.&lt;/p&gt; &lt;p&gt;The grail of &lt;i&gt;ad hoc&lt;/i&gt; analytics on infinite &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xa201d518&quot;&gt;data&lt;/a&gt; has lost none of its appeal. We have seen fresh evidence of this in the realm of data warehousing products, as well as storage in general.&lt;/p&gt; &lt;p&gt;The benefits of a data model more abstract than the relational are being increasingly appreciated also outside the data web circles. Microsoft&amp;#39;s &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0x12fa4e40&quot;&gt;Entity&lt;/a&gt; Frameworks technology is an example. Agility has been a buzzword for a long time. Everything should be offered in a service based business model and should interoperate and integrate with everything else â business needs first; schema last.&lt;/p&gt; &lt;p&gt;Not to forget that when money is tight, reuse of existing assets and paying on a usage basis are naturally emphasized. &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x175b32e8&quot;&gt;Information&lt;/a&gt;, as the asset it is, is none the less important, on the contrary. But even with information, value should be realized economically, which, among other things, entails not reinventing the wheel.&lt;/p&gt; &lt;p&gt;It is against this backdrop that this year will play out.&lt;/p&gt; &lt;p&gt;As concerns research, I will &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1374&quot; id=&quot;link-id1151b128&quot;&gt;again quote&lt;/a&gt; &lt;a href=&quot;http://www.ibiblio.org/hhalpin/#&quot; id=&quot;link-id141cb740&quot;&gt;Harry Halpin&lt;/a&gt; at &lt;a href=&quot;http://www.eswc2008.org/&quot; id=&quot;link-id0x18a8a858&quot;&gt;ESWC 2008&lt;/a&gt;: &amp;quot;Men will fight in a war, and even lose a war, for what they believe just. And it may come to pass that later, even though the war were lost, the things then fought for will emerge under another name and establish themselves as the prevailing reality&amp;quot; [or words to this effect].&lt;/p&gt; &lt;p&gt;Something like the data web, and even the semantic web, will happen. Harry&amp;#39;s question was whether this would be the descendant of what is today called semantic web research.&lt;/p&gt; &lt;p&gt;I heard in conversation about a project for making a very large metadata store. I also heard that the makers did not particularly insist on this being &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x3c39ed80&quot;&gt;RDF&lt;/a&gt;-based, though.&lt;/p&gt; &lt;p&gt;Why should such a thing be RDF-based? If it is already accepted that there will be &lt;i&gt;ad hoc&lt;/i&gt; schema and that queries ought to be able to view the data from all angles, not be limited by having indices one way and not another way, then why not RDF?&lt;/p&gt; &lt;p&gt;The justification of RDF is in reusing and linking-to data and terminology out there. Another justification is that by using an RDF store, one is spared a lot of work and tons of compromises which attend making an &lt;a href=&quot;http://dbpedia.org/resource/Entity-attribute-value_model&quot; id=&quot;link-id0x14a77880&quot;&gt;entity&lt;/a&gt;-attribute-value (&lt;a href=&quot;http://dbpedia.org/resource/Entity-attribute-value_model&quot; id=&quot;link-id0x5f978e88&quot;&gt;EAV&lt;/a&gt;, i.e., triple) store on a generic &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x391bdcd8&quot;&gt;RDBMS&lt;/a&gt;. The sem-web world has been there, trust me. We came out well because we put all inside the RDBMS, lowest level, which you can&amp;#39;t do unless you own the RDBMS. Source access is not enough; you also need the &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x138a3a00&quot;&gt;knowledge&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Technicalities aside, the question is one of proprietary vs. standards-based. This is not only so with software components, where standards have consistently demonstrated benefits, but now also with the data. &lt;a href=&quot;http://www.zemanta.com/&quot; id=&quot;link-id0x5f92cb38&quot;&gt;Zemanta&lt;/a&gt; and &lt;a href=&quot;http://www.opencalais.com/&quot; id=&quot;link-id0x139c3200&quot;&gt;OpenCalais&lt;/a&gt; serving &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0x1731dc78&quot;&gt;DBpedia&lt;/a&gt; URIs are examples. Even in entirely closed applications, there is benefit in reusing open vocabularies and identifiers: One does not need to create a secret language for writing a secret memo.&lt;/p&gt; &lt;p&gt;Where data is a carrier of value, its value is enhanced by it being easy to repurpose (i.e., standard vocabularies) and to discover (i.e., data set metadata). As on the web, so on the enterprise &lt;a href=&quot;http://dbpedia.org/resource/Intranet&quot; id=&quot;link-id0x1324ada8&quot;&gt;intranet&lt;/a&gt;. In this lies the strength of RDF as opposed to proprietary flexible database schemes. This is a qualitative distinction.&lt;/p&gt; &lt;p align=&quot;center&quot;&gt; &lt;a href=&quot;http://esw.w3.org/topic/SweoIG/TaskForces/CommunityProjects/LinkingOpenData&quot; id=&quot;link-id117178a8&quot;&gt;&lt;img src=&quot;http://www.openlinksw.com/images/logos/LoDLogo.gif&quot; alt=&quot;Linking Open Data project logo&quot; /&gt; &lt;/a&gt; &lt;br /&gt; &lt;a href=&quot;http://dbpedia.org/resource/In_hoc_signo_vinces&quot; id=&quot;link-id115f47e8&quot;&gt;&lt;i&gt;In hoc signo vinces.&lt;/i&gt; &lt;/a&gt; &lt;/p&gt; &lt;p&gt;In this light, we welcome the &lt;a href=&quot;http://semanticweb.org/wiki/VoiD&quot; id=&quot;link-id0x67cf560&quot;&gt;voiD&lt;/a&gt; (&lt;a href=&quot;http://semanticweb.org/wiki/VoiD&quot; id=&quot;link-id0x1898c908&quot;&gt;VOcabulary of Interlinked Data&lt;/a&gt;), which is the first promise of making federatable data discoverable. Now that there is a point of focus for these efforts, the needed expressivity will no doubt accrete around the voiD core.&lt;/p&gt; &lt;p&gt;For data as a service, we clearly see the value of open terminologies as prerequisites for service interchangeability, i.e., creating a marketplace. &lt;a href=&quot;http://dbpedia.org/resource/XML&quot; id=&quot;link-id0x1588d6a8&quot;&gt;XML&lt;/a&gt; is for the transaction; RDF is for the discovery, query, and analytics. As with databases in general, first there was the transaction; then there was the query. Same here. For monetizing the query, there are models ranging from renting data sets and server capacity in the clouds to hosted services where one pays for processing past a certain quota. For the hosted case, we just removed a major barrier to offering unlimited query against unlimited data when we completed the &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1374&quot; id=&quot;link-id110b8668&quot;&gt;Virtuoso Anytime&lt;/a&gt; feature. With this, the user gets what is found within a set time, which is already something, and in case of needing more, one can pay for the usage. Of course, we do not forget advertising. When data has explicit semantics, contextuality is better than with keywords.&lt;/p&gt; &lt;p&gt;For these visions to materialize on top of the linked data platform, linked data must join the world of data. This means messaging that is geared towards the database public. They know the problem, but the RDF proposition is still not well enough understood for it to connect.&lt;/p&gt; &lt;p&gt;For the relational IT world, we offer passage to the data web and its promise of integration through RDF mapping. We are also bringing out new Microsoft Entity &lt;a href=&quot;http://dbpedia.org/resource/ADO.NET_Entity_Framework&quot; id=&quot;link-id0x13a50fd8&quot;&gt;Framework&lt;/a&gt; components. This goes in the direction of defining a unified database frontier with RDF and non-RDF entity models side by side.&lt;/p&gt; &lt;p&gt;For &lt;a href=&quot;http://www.openlinksw.com/dataspace/organization/openlink#this&quot; id=&quot;link-id0x1d2ea7f0&quot;&gt;OpenLink Software&lt;/a&gt;, 2008 was about developing technology for scale, RDF as well as generic relational. We did show a tiny preview with the &lt;a href=&quot;http://challenge.semanticweb.org/&quot; id=&quot;link-id0x658fbc8&quot;&gt;Billion Triples Challenge&lt;/a&gt; demo. Now we are set to come out with the real thing, featuring, among other things, faceted search at the billion triple scale. We &lt;a href=&quot;http://www.openlinksw.com/blog/kidehen@openlinksw.com/blog/?id=1489&quot; id=&quot;link-id150c6090&quot;&gt;started offering ready-to-go Virtuoso-hosted linked open data sets&lt;/a&gt; on Amazon EC2 in December. Now we continue doing this based on our next-generation server, as well as make Virtuoso 6 Cluster commercially available. Technical specifics are amply discussed on this &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0x1424ec20&quot;&gt;blog&lt;/a&gt;. There are still some new technology things to be developed this year; first among these are strong &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x14b8ca88&quot;&gt;SPARQL&lt;/a&gt; federation, and on-the-fly resizing of server clusters. On the research partnerships side, we have an EU grant for working with the OntoWiki project from the University of Leipzig, and we are partners in DERI&amp;#39;s &lt;a href=&quot;https://lion.deri.ie/&quot; id=&quot;link-id115c02f8&quot;&gt;LÃ­on project&lt;/a&gt;. These will provide platforms for further demonstrating the &amp;quot;web&amp;quot; in data web, as in web-scale smart databasing.&lt;/p&gt; &lt;p&gt;2009 will see change through scale. The things that exist will start interconnecting and there will be emergent value. Deployments will be larger and scale will be readily available through a services model or by installation at one&amp;#39;s own facilities. We may see the start of Search becoming Find, like &lt;a href=&quot;http://myopenlink.net/dataspace/person/kidehen#this&quot; id=&quot;link-id14e43050&quot;&gt;Kingsley&lt;/a&gt; says, meaning semantics of data guiding search. Entity extraction will multiply data volumes and bring parts of the data web to real time.&lt;/p&gt; &lt;p&gt;Exciting 2009 to all.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Linked Data &amp; The Year 2009 (updated)</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2009-01-02#1510</atom:id>
  <atom:published>2009-01-02T16:17:06Z</atom:published>
  <atom:updated>2009-01-02T13:26:35-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;As is fitting for the season, I will editorialize a bit about what has gone before and what is to come.&lt;/p&gt; &lt;p&gt; &lt;a href=&quot;http://www.w3.org/People/Berners-Lee/card#i&quot; id=&quot;link-id1119f250&quot;&gt;Sir Tim&lt;/a&gt; said it at WWW08 in &lt;a href=&quot;http://www2008.org/&quot; id=&quot;link-id0x14ab66b0&quot;&gt;Beijing&lt;/a&gt; â &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x115a4588&quot;&gt;linked data&lt;/a&gt; and the linked data &lt;a href=&quot;http://dbpedia.org/resource/Giant_Global_Graph&quot; id=&quot;link-id0xa5c678&quot;&gt;web&lt;/a&gt; is the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x7cbe5540&quot;&gt;semantic web&lt;/a&gt; and the Web done right.&lt;/p&gt; &lt;p&gt;The grail of &lt;i&gt;ad hoc&lt;/i&gt; analytics on infinite &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xa4b25428&quot;&gt;data&lt;/a&gt; has lost none of its appeal. We have seen fresh evidence of this in the realm of data warehousing products, as well as storage in general.&lt;/p&gt; &lt;p&gt;The benefits of a data model more abstract than the relational are being increasingly appreciated also outside the data web circles. Microsoft&amp;#39;s &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0x1c3c72b0&quot;&gt;Entity&lt;/a&gt; Frameworks technology is an example. Agility has been a buzzword for a long time. Everything should be offered in a service based business model and should interoperate and integrate with everything else â business needs first; schema last.&lt;/p&gt; &lt;p&gt;Not to forget that when money is tight, reuse of existing assets and paying on a usage basis are naturally emphasized. &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0xa0743bd8&quot;&gt;Information&lt;/a&gt;, as the asset it is, is none the less important, on the contrary. But even with information, value should be realized economically, which, among other things, entails not reinventing the wheel.&lt;/p&gt; &lt;p&gt;It is against this backdrop that this year will play out.&lt;/p&gt; &lt;p&gt;As concerns research, I will &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1374&quot; id=&quot;link-id1151b128&quot;&gt;again quote&lt;/a&gt; &lt;a href=&quot;http://www.ibiblio.org/hhalpin/#&quot; id=&quot;link-id141cb740&quot;&gt;Harry Halpin&lt;/a&gt; at &lt;a href=&quot;http://www.eswc2008.org/&quot; id=&quot;link-id0x28f68040&quot;&gt;ESWC 2008&lt;/a&gt;: &amp;quot;Men will fight in a war, and even lose a war, for what they believe just. And it may come to pass that later, even though the war were lost, the things then fought for will emerge under another name and establish themselves as the prevailing reality&amp;quot; [or words to this effect].&lt;/p&gt; &lt;p&gt;Something like the data web, and even the semantic web, will happen. Harry&amp;#39;s question was whether this would be the descendant of what is today called semantic web research.&lt;/p&gt; &lt;p&gt;I heard in conversation about a project for making a very large metadata store. I also heard that the makers did not particularly insist on this being &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x13c8af68&quot;&gt;RDF&lt;/a&gt;-based, though.&lt;/p&gt; &lt;p&gt;Why should such a thing be RDF-based? If it is already accepted that there will be &lt;i&gt;ad hoc&lt;/i&gt; schema and that queries ought to be able to view the data from all angles, not be limited by having indices one way and not another way, then why not RDF?&lt;/p&gt; &lt;p&gt;The justification of RDF is in reusing and linking-to data and terminology out there. Another justification is that by using an RDF store, one is spared a lot of work and tons of compromises which attend making an &lt;a href=&quot;http://dbpedia.org/resource/Entity-attribute-value_model&quot; id=&quot;link-id0x1ca17b20&quot;&gt;entity&lt;/a&gt;-attribute-value (&lt;a href=&quot;http://dbpedia.org/resource/Entity-attribute-value_model&quot; id=&quot;link-id0x1c9d6050&quot;&gt;EAV&lt;/a&gt;, i.e., triple) store on a generic &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x557dff0&quot;&gt;RDBMS&lt;/a&gt;. The sem-web world has been there, trust me. We came out well because we put all inside the RDBMS, lowest level, which you can&amp;#39;t do unless you own the RDBMS. Source access is not enough; you also need the &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x1470c748&quot;&gt;knowledge&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Technicalities aside, the question is one of proprietary vs. standards-based. This is not only so with software components, where standards have consistently demonstrated benefits, but now also with the data. &lt;a href=&quot;http://www.zemanta.com/&quot; id=&quot;link-id0x524bea0&quot;&gt;Zemanta&lt;/a&gt; and &lt;a href=&quot;http://www.opencalais.com/&quot; id=&quot;link-id0x46132d38&quot;&gt;OpenCalais&lt;/a&gt; serving &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0x13624fb8&quot;&gt;DBpedia&lt;/a&gt; URIs are examples. Even in entirely closed applications, there is benefit in reusing open vocabularies and identifiers: One does not need to create a secret language for writing a secret memo.&lt;/p&gt; &lt;p&gt;Where data is a carrier of value, its value is enhanced by it being easy to repurpose (i.e., standard vocabularies) and to discover (i.e., data set metadata). As on the web, so on the enterprise &lt;a href=&quot;http://dbpedia.org/resource/Intranet&quot; id=&quot;link-id0xa1392eb8&quot;&gt;intranet&lt;/a&gt;. In this lies the strength of RDF as opposed to proprietary flexible database schemes. This is a qualitative distinction.&lt;/p&gt; &lt;p align=&quot;center&quot;&gt; &lt;a href=&quot;http://esw.w3.org/topic/SweoIG/TaskForces/CommunityProjects/LinkingOpenData&quot; id=&quot;link-id117178a8&quot;&gt;&lt;img src=&quot;http://www.openlinksw.com/images/logos/LoDLogo.gif&quot; alt=&quot;Linking Open Data project logo&quot; /&gt; &lt;/a&gt; &lt;br /&gt; &lt;a href=&quot;http://dbpedia.org/resource/In_hoc_signo_vinces&quot; id=&quot;link-id115f47e8&quot;&gt;&lt;i&gt;In hoc signo vinces.&lt;/i&gt; &lt;/a&gt; &lt;/p&gt; &lt;p&gt;In this light, we welcome the &lt;a href=&quot;http://semanticweb.org/wiki/VoiD&quot; id=&quot;link-id0x12352cc0&quot;&gt;voiD&lt;/a&gt; (&lt;a href=&quot;http://semanticweb.org/wiki/VoiD&quot; id=&quot;link-id0x722c18&quot;&gt;VOcabulary of Interlinked Data&lt;/a&gt;), which is the first promise of making federatable data discoverable. Now that there is a point of focus for these efforts, the needed expressivity will no doubt accrete around the voiD core.&lt;/p&gt; &lt;p&gt;For data as a service, we clearly see the value of open terminologies as prerequisites for service interchangeability, i.e., creating a marketplace. &lt;a href=&quot;http://dbpedia.org/resource/XML&quot; id=&quot;link-id0x2c21c00&quot;&gt;XML&lt;/a&gt; is for the transaction; RDF is for the discovery, query, and analytics. As with databases in general, first there was the transaction; then there was the query. Same here. For monetizing the query, there are models ranging from renting data sets and server capacity in the clouds to hosted services where one pays for processing past a certain quota. For the hosted case, we just removed a major barrier to offering unlimited query against unlimited data when we completed the &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1374&quot; id=&quot;link-id110b8668&quot;&gt;Virtuoso Anytime&lt;/a&gt; feature. With this, the user gets what is found within a set time, which is already something, and in case of needing more, one can pay for the usage. Of course, we do not forget advertising. When data has explicit semantics, contextuality is better than with keywords.&lt;/p&gt; &lt;p&gt;For these visions to materialize on top of the linked data platform, linked data must join the world of data. This means messaging that is geared towards the database public. They know the problem, but the RDF proposition is still not well enough understood for it to connect.&lt;/p&gt; &lt;p&gt;For the relational IT world, we offer passage to the data web and its promise of integration through RDF mapping. We are also bringing out new Microsoft Entity &lt;a href=&quot;http://dbpedia.org/resource/ADO.NET_Entity_Framework&quot; id=&quot;link-id0x723080&quot;&gt;Framework&lt;/a&gt; components. This goes in the direction of defining a unified database frontier with RDF and non-RDF entity models side by side.&lt;/p&gt; &lt;p&gt;For &lt;a href=&quot;http://www.openlinksw.com/dataspace/organization/openlink#this&quot; id=&quot;link-id0x11e1dfc0&quot;&gt;OpenLink Software&lt;/a&gt;, 2008 was about developing technology for scale, RDF as well as generic relational. We did show a tiny preview with the &lt;a href=&quot;http://challenge.semanticweb.org/&quot; id=&quot;link-id0x722d08&quot;&gt;Billion Triples Challenge&lt;/a&gt; demo. Now we are set to come out with the real thing, featuring, among other things, faceted search at the billion triple scale. We &lt;a href=&quot;http://www.openlinksw.com/blog/kidehen@openlinksw.com/blog/?id=1489&quot; id=&quot;link-id150c6090&quot;&gt;started offering ready-to-go Virtuoso-hosted linked open data sets&lt;/a&gt; on Amazon EC2 in December. Now we continue doing this based on our next-generation server, as well as make Virtuoso 6 Cluster commercially available. Technical specifics are amply discussed on this &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0x10fc1930&quot;&gt;blog&lt;/a&gt;. There are still some new technology things to be developed this year; first among these are strong &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x7fd25590&quot;&gt;SPARQL&lt;/a&gt; federation, and on-the-fly resizing of server clusters. On the research partnerships side, we have an EU grant for working with the OntoWiki project from the University of Leipzig, and we are partners in DERI&amp;#39;s &lt;a href=&quot;https://lion.deri.ie/&quot; id=&quot;link-id115c02f8&quot;&gt;LÃ­on project&lt;/a&gt;. These will provide platforms for further demonstrating the &amp;quot;web&amp;quot; in data web, as in web-scale smart databasing.&lt;/p&gt; &lt;p&gt;2009 will see change through scale. The things that exist will start interconnecting and there will be emergent value. Deployments will be larger and scale will be readily available through a services model or by installation at one&amp;#39;s own facilities. We may see the start of Search becoming Find, like &lt;a href=&quot;http://myopenlink.net/dataspace/person/kidehen#this&quot; id=&quot;link-id14e43050&quot;&gt;Kingsley&lt;/a&gt; says, meaning semantics of data guiding search. Entity extraction will multiply data volumes and bring parts of the data web to real time.&lt;/p&gt; &lt;p&gt;Exciting 2009 to all.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso 6 FAQ directory</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-12-18#1507</atom:id>
  <atom:published>2008-12-18T15:46:18Z</atom:published>
  <atom:updated>2008-12-22T14:30:07.000004-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We have received various inquiries on high-end metadata stores. I will here go through some salient questions. The requested features include:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Scaling to trillions of triples&lt;/li&gt; &lt;li&gt;Running on clusters of commodity servers&lt;/li&gt; &lt;li&gt;Running in federated environments, possibly over wide area networks&lt;/li&gt; &lt;li&gt;Built-in inference&lt;/li&gt; &lt;li&gt;Transactions&lt;/li&gt; &lt;li&gt;Security&lt;/li&gt; &lt;li&gt;Support for extra triple level metadata, such as security attributes&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Q: What is the storage cost per triple? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#StorageCostPerTriple&quot; id=&quot;link-id147f61e8&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What is the cost to insert a triple? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#TripleInsertionCost&quot; id=&quot;link-id112e2488&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What is the cost to delete a triple? (For the insertion itself, as well as for updating any indices) &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#TripleDeletionCost&quot; id=&quot;link-id11728528&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What is the cost to search on a given property? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#PropertySearchCost&quot; id=&quot;link-id1586e360&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id14688e38&quot;&gt;data&lt;/a&gt; types are supported? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#SupportedDataTypes&quot; id=&quot;link-id1593dbf0&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What inferencing is supported? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#SupportedInferencing&quot; id=&quot;link-id112f3248&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Is the inferencing dynamic or is an extra step required before inferencing can be used? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#InferencingDynamism&quot; id=&quot;link-id1477e2e0&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Do you support &lt;a href=&quot;http://dbpedia.org/resource/Full_text_search&quot; id=&quot;link-id1177b198&quot;&gt;full text search&lt;/a&gt;? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#FullTextSearchSupport&quot; id=&quot;link-id1543b170&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What programming interfaces are supported? Do you support standard &lt;a href=&quot;http://www.w3.org/TR/rdf-sparql-protocol/&quot; id=&quot;link-id14bb69c0&quot;&gt;SPARQL protocol&lt;/a&gt;? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#SupportedProgrammingInterfaces&quot; id=&quot;link-id14d4eb18&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: How can data be partitioned across multiple servers? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#MultipleServerDataPartitioning&quot; id=&quot;link-id13722e00&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: How many triples can a single server handle? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#SingleServerTripleLimits&quot; id=&quot;link-id14046e58&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What is the performance impact of going from the billion to the trillion triples? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#PerformanceImpactBillionToTrillion&quot; id=&quot;link-id113cfc10&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Do you support additional metadata for triples, such as timestamps, security tags etc? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#TripleMetadataSupport&quot; id=&quot;link-id14c75fa8&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Should we use &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id11342010&quot;&gt;RDF&lt;/a&gt; for our large metadata store? What are the alternatives? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#LargeMetadataStoreFormat&quot; id=&quot;link-id1478db38&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: How multithreaded is &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id1651d028&quot;&gt;Virtuoso&lt;/a&gt;? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#VirtuosoMultiThreading&quot; id=&quot;link-id152ad310&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Can multiple servers run off a single shared disk database? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#MultipleServersOneDiskDatabase&quot; id=&quot;link-id14d9d528&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Can Virtuoso run on a SAN? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#VirtuosoOnSAN&quot; id=&quot;link-id111b55d0&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: How does Virtuoso join across partitions? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#CrossPartitionJoins&quot; id=&quot;link-id11094db8&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Does Virtuoso support federated triple stores? If there are multiple &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id19156b48&quot;&gt;SPARQL&lt;/a&gt; end points, can Virtuoso be used to do queries joining between these? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#FederatedTripleStoresAndQueries&quot; id=&quot;link-id15447ef8&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: How many servers can a cluster contain? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#ClusterServerLimit&quot; id=&quot;link-id125fe0d0&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: How do I reconfigure a cluster, adding and removing machines, etc? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#ClusterReconfiguration&quot; id=&quot;link-id1150c448&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: How will Virtuoso handle regional clusters? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#RegionalClustering&quot; id=&quot;link-id1596ca48&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Is there a mechanism for terminating long running queries? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#TerminatingLongRunningQueries&quot; id=&quot;link-id116bbd60&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Can the user be asynchronously notified when a long running query terminates? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#AsynchNotificationOfQueryTermination&quot; id=&quot;link-id15a59a50&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: How many concurrent queries can Virtuoso handle? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#ConcurrentQueryLimits&quot; id=&quot;link-id110a8c00&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What is the relative performance of SPARQL queries vs. native relational queries &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#RelativePerformanceSparqlVsSql&quot; id=&quot;link-id110914f8&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Does Virtuoso support property tables? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#PropertyTableSupport&quot; id=&quot;link-id1581f8c8&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What performance metrics does Virtuoso offer? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#PerformanceMetricSupport&quot; id=&quot;link-id14e92300&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What support do you provide for concurrency/multithreading operation? Is your interface thread-safe? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#ConcurrencyAndThreadSafety&quot; id=&quot;link-id15964b80&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What level of ACID properties are supported? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#AcidComplianceLevel&quot; id=&quot;link-id11035ac0&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Do you provide the ability to atomically add a set of triples, where either all are added or none are added? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#AtomicTripleInsertion&quot; id=&quot;link-id15290e68&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Do you provide the ability to add a set of triples, respecting the isolation property (so concurrent accessors either see none of the triple values, or all of them)? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#IsolationDuringInsertion&quot; id=&quot;link-id15855df0&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What is the time to start a database, create/open a graph? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#StartupTimes&quot; id=&quot;link-id14227f40&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What sort of security features are built into Virtuoso? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#BuiltInSecurity&quot; id=&quot;link-id11927810&quot;&gt;answer&lt;/a&gt; &lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso 6 FAQ directory</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-12-18#1506</atom:id>
  <atom:published>2008-12-18T15:46:18Z</atom:published>
  <atom:updated>2008-12-22T14:30:00-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We have received various inquiries on high-end metadata stores. I will here go through some salient questions. The requested features include:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Scaling to trillions of triples&lt;/li&gt; &lt;li&gt;Running on clusters of commodity servers&lt;/li&gt; &lt;li&gt;Running in federated environments, possibly over wide area networks&lt;/li&gt; &lt;li&gt;Built-in inference&lt;/li&gt; &lt;li&gt;Transactions&lt;/li&gt; &lt;li&gt;Security&lt;/li&gt; &lt;li&gt;Support for extra triple level metadata, such as security attributes&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Q: What is the storage cost per triple? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#StorageCostPerTriple&quot; id=&quot;link-id147f61e8&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What is the cost to insert a triple? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#TripleInsertionCost&quot; id=&quot;link-id112e2488&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What is the cost to delete a triple? (For the insertion itself, as well as for updating any indices) &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#TripleDeletionCost&quot; id=&quot;link-id11728528&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What is the cost to search on a given property? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#PropertySearchCost&quot; id=&quot;link-id1586e360&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id14688e38&quot;&gt;data&lt;/a&gt; types are supported? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#SupportedDataTypes&quot; id=&quot;link-id1593dbf0&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What inferencing is supported? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#SupportedInferencing&quot; id=&quot;link-id112f3248&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Is the inferencing dynamic or is an extra step required before inferencing can be used? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#InferencingDynamism&quot; id=&quot;link-id1477e2e0&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Do you support &lt;a href=&quot;http://dbpedia.org/resource/Full_text_search&quot; id=&quot;link-id1177b198&quot;&gt;full text search&lt;/a&gt;? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#FullTextSearchSupport&quot; id=&quot;link-id1543b170&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What programming interfaces are supported? Do you support standard &lt;a href=&quot;http://www.w3.org/TR/rdf-sparql-protocol/&quot; id=&quot;link-id14bb69c0&quot;&gt;SPARQL protocol&lt;/a&gt;? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#SupportedProgrammingInterfaces&quot; id=&quot;link-id14d4eb18&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: How can data be partitioned across multiple servers? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#MultipleServerDataPartitioning&quot; id=&quot;link-id13722e00&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: How many triples can a single server handle? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#SingleServerTripleLimits&quot; id=&quot;link-id14046e58&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What is the performance impact of going from the billion to the trillion triples? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#PerformanceImpactBillionToTrillion&quot; id=&quot;link-id113cfc10&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Do you support additional metadata for triples, such as timestamps, security tags etc? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#TripleMetadataSupport&quot; id=&quot;link-id14c75fa8&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Should we use &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id11342010&quot;&gt;RDF&lt;/a&gt; for our large metadata store? What are the alternatives? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#LargeMetadataStoreFormat&quot; id=&quot;link-id1478db38&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: How multithreaded is &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id1651d028&quot;&gt;Virtuoso&lt;/a&gt;? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#VirtuosoMultiThreading&quot; id=&quot;link-id152ad310&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Can multiple servers run off a single shared disk database? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#MultipleServersOneDiskDatabase&quot; id=&quot;link-id14d9d528&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Can Virtuoso run on a SAN? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#VirtuosoOnSAN&quot; id=&quot;link-id111b55d0&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: How does Virtuoso join across partitions? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#CrossPartitionJoins&quot; id=&quot;link-id11094db8&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Does Virtuoso support federated triple stores? If there are multiple &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id19156b48&quot;&gt;SPARQL&lt;/a&gt; end points, can Virtuoso be used to do queries joining between these? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#FederatedTripleStoresAndQueries&quot; id=&quot;link-id15447ef8&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: How many servers can a cluster contain? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#ClusterServerLimit&quot; id=&quot;link-id125fe0d0&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: How do I reconfigure a cluster, adding and removing machines, etc? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#ClusterReconfiguration&quot; id=&quot;link-id1150c448&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: How will Virtuoso handle regional clusters? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#RegionalClustering&quot; id=&quot;link-id1596ca48&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Is there a mechanism for terminating long running queries? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#TerminatingLongRunningQueries&quot; id=&quot;link-id116bbd60&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Can the user be asynchronously notified when a long running query terminates? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#AsynchNotificationOfQueryTermination&quot; id=&quot;link-id15a59a50&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: How many concurrent queries can Virtuoso handle? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#ConcurrentQueryLimits&quot; id=&quot;link-id110a8c00&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What is the relative performance of SPARQL queries vs. native relational queries &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#RelativePerformanceSparqlVsSql&quot; id=&quot;link-id110914f8&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Does Virtuoso support property tables? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#PropertyTableSupport&quot; id=&quot;link-id1581f8c8&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What performance metrics does Virtuoso offer? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#PerformanceMetricSupport&quot; id=&quot;link-id14e92300&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What support do you provide for concurrency/multithreading operation? Is your interface thread-safe? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#ConcurrencyAndThreadSafety&quot; id=&quot;link-id15964b80&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What level of ACID properties are supported? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#AcidComplianceLevel&quot; id=&quot;link-id11035ac0&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Do you provide the ability to atomically add a set of triples, where either all are added or none are added? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#AtomicTripleInsertion&quot; id=&quot;link-id15290e68&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: Do you provide the ability to add a set of triples, respecting the isolation property (so concurrent accessors either see none of the triple values, or all of them)? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#IsolationDuringInsertion&quot; id=&quot;link-id15855df0&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What is the time to start a database, create/open a graph? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#StartupTimes&quot; id=&quot;link-id14227f40&quot;&gt;answer&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Q: What sort of security features are built into Virtuoso? &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/Virt6FAQ.html#BuiltInSecurity&quot; id=&quot;link-id11927810&quot;&gt;answer&lt;/a&gt; &lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso RDF: A Getting Started Guide for the Developer</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-12-17#1505</atom:id>
  <atom:published>2008-12-17T12:31:34Z</atom:published>
  <atom:updated>2008-12-17T12:41:27.000006-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;It is a long standing promise of mine to dispel the false impression that using &lt;a href=&quot;http://virtuoso.openlinksw.com/&quot; id=&quot;link-id113506d0&quot;&gt;Virtuoso&lt;/a&gt; to work with &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id115d9528&quot;&gt;RDF&lt;/a&gt; is complicated.&lt;/p&gt; &lt;p&gt;The purpose of this presentation is to show a programmer how to put RDF into Virtuoso and how to query it. This is done programmatically, with no confusing user interfaces.&lt;/p&gt; &lt;p&gt;You should have a Virtuoso Open Source tree built and installed. We will look at the LUBM benchmark demo that comes with the package. All you need is a Unix shell. Running the shell under emacs (&lt;code&gt;m-x shell&lt;/code&gt;) is the best. But the open source &lt;code&gt;isql&lt;/code&gt; utility should have command line editing also. The emacs shell is however convenient for cutting and pasting things between shell and files.&lt;/p&gt; &lt;p&gt;To get started, cd into &lt;code&gt;binsrc/tests/lubm&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;To verify that this works, you can do &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;./test_server.sh virtuoso-t&lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;This will test the server with the LUBM queries. This should report 45 tests passed. After this we will do the tests step-by-step.&lt;/p&gt; &lt;h2&gt;Loading the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id10f7bd90&quot;&gt;Data&lt;/a&gt; &lt;/h2&gt; &lt;p&gt;The file &lt;code&gt;lubm-load.sql&lt;/code&gt; contains the commands for loading the LUBM single university qualification database.&lt;/p&gt; &lt;p&gt;The data files themselves are in &lt;code&gt;lubm_8000&lt;/code&gt;, 15 files in RDFXML.&lt;/p&gt; &lt;p&gt;There is also a little ontology called &lt;code&gt;inf.nt&lt;/code&gt;. This declares the subclass and subproperty relations used in the benchmark.&lt;/p&gt; &lt;p&gt;So now let&amp;#39;s go through this procedure.&lt;/p&gt; &lt;p&gt;Start the server:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;$ virtuoso-t -f &amp;amp; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;This starts the server in foreground mode, and puts it in the background of the shell.&lt;/p&gt; &lt;p&gt;Now we connect to it with the isql utility.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;$ isql 1111 dba dba &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;This gives a &lt;code&gt;SQL&amp;gt;&lt;/code&gt; prompt. The default username and password are both &lt;code&gt;dba&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;When a command is &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id1176ce70&quot;&gt;SQL&lt;/a&gt;, it is entered directly. If it is &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id156df468&quot;&gt;SPARQL&lt;/a&gt;, it is prefixed with the keyword &lt;code&gt;sparql&lt;/code&gt;. This is how all the SQL clients work. Any SQL client, such as any &lt;a href=&quot;http://dbpedia.org/resource/Open_Database_Connectivity&quot; id=&quot;link-id152d0a00&quot;&gt;ODBC&lt;/a&gt; or &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id157ad6a0&quot;&gt;JDBC&lt;/a&gt; application, can use SPARQL if the SQL string starts with this keyword.&lt;/p&gt; &lt;p&gt;The &lt;code&gt;lubm-load.sql&lt;/code&gt; file is quite self-explanatory. It begins with defining an SQL procedure that calls the RDF/XML load function, &lt;code&gt;DB..RDF_LOAD_RDFXML&lt;/code&gt;, for each file in a directory.&lt;/p&gt; &lt;p&gt;Next it calls this function for the &lt;code&gt;lubm_8000&lt;/code&gt; directory under the server&amp;#39;s working directory.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;sparql CLEAR GRAPH &amp;lt;lubm&amp;gt;; sparql CLEAR GRAPH &amp;lt;inf&amp;gt;; load_lubm ( server_root() || &amp;#39;/lubm_8000/&amp;#39; ); &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Then it verifies that the right number of triples is found in the &amp;lt;lubm&amp;gt; graph.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;sparql SELECT COUNT(*) FROM &amp;lt;lubm&amp;gt; WHERE { ?x ?y ?z } ; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;The echo commands below this are interpreted by the isql utility, and produce output to show whether the test was passed. They can be ignored for now.&lt;/p&gt; &lt;p&gt;Then it adds some implied &lt;code&gt;subOrganizationOf&lt;/code&gt; triples. This is part of setting up the LUBM test database.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;sparql PREFIX ub: &amp;lt;http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#&amp;gt; INSERT INTO GRAPH &amp;lt;lubm&amp;gt; { ?x ub:subOrganizationOf ?z } FROM &amp;lt;lubm&amp;gt; WHERE { ?x ub:subOrganizationOf ?y . ?y ub:subOrganizationOf ?z . }; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Then it loads the ontology file, &lt;code&gt;inf.nt&lt;/code&gt;, using the Turtle load function, &lt;code&gt;DB.DBA.TTLP&lt;/code&gt;. The arguments of the function are the text to load, the default namespace prefix, and the &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id15835550&quot;&gt;URI&lt;/a&gt; of the target graph.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;DB.DBA.TTLP ( file_to_string ( &amp;#39;inf.nt&amp;#39; ), &amp;#39;http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl&amp;#39;, &amp;#39;inf&amp;#39; ) ; sparql SELECT COUNT(*) FROM &amp;lt;inf&amp;gt; WHERE { ?x ?y ?z } ; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Then we declare that the triples in the &lt;code&gt;&amp;lt;inf&amp;gt;&lt;/code&gt; graph can be used for inference at run time. To enable this, a SPARQL query will declare that it uses the &lt;code&gt;&amp;#39;inft&amp;#39;&lt;/code&gt; rule set. Otherwise this has no effect.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;rdfs_rule_set (&amp;#39;inft&amp;#39;, &amp;#39;inf&amp;#39;); &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;This is just a log checkpoint to finalize the work and truncate the transaction log. The server would also eventually do this in its own time.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;checkpoint; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Now we are ready for querying.&lt;/p&gt; &lt;h2&gt;Querying the Data&lt;/h2&gt; &lt;p&gt;The queries are given in 3 different versions: The first file, &lt;code&gt;lubm.sql&lt;/code&gt;, has the queries with most inference open coded as &lt;code&gt;UNIONs&lt;/code&gt;. The second file, &lt;code&gt;lubm-inf.sql&lt;/code&gt;, has the inference performed at run time using the ontology &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id1109faf0&quot;&gt;information&lt;/a&gt; in the &lt;code&gt;&amp;lt;inf&amp;gt;&lt;/code&gt; graph we just loaded. The last, &lt;code&gt;lubm-phys.sql&lt;/code&gt;, relies on having the entailed triples physically present in the &lt;code&gt;&amp;lt;lubm&amp;gt;&lt;/code&gt; graph. These entailed triples are inserted by the SPARUL commands in the &lt;code&gt;lubm-cp.sql&lt;/code&gt; file.&lt;/p&gt; &lt;p&gt;If you wish to run all the commands in a SQL file, you can type &lt;code&gt;load &amp;lt;filename&amp;gt;;&lt;/code&gt; (e.g., &lt;code&gt;load lubm-cp.sql;&lt;/code&gt;) at the &lt;code&gt;SQL&amp;gt;&lt;/code&gt; prompt. If you wish to try individual statements, you can paste them to the command line.&lt;/p&gt; &lt;p&gt;For example: &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;SQL&amp;gt; sparql PREFIX ub: &amp;lt;http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#&amp;gt; SELECT * FROM &amp;lt;lubm&amp;gt; WHERE { ?x a ub:Publication . ?x ub:publicationAuthor &amp;lt;http://www.Department0.University0.edu/AssistantProfessor0&amp;gt; }; VARCHAR _______________________________________________________________________ http://www.Department0.University0.edu/AssistantProfessor0/Publication0 http://www.Department0.University0.edu/AssistantProfessor0/Publication1 http://www.Department0.University0.edu/AssistantProfessor0/Publication2 http://www.Department0.University0.edu/AssistantProfessor0/Publication3 http://www.Department0.University0.edu/AssistantProfessor0/Publication4 http://www.Department0.University0.edu/AssistantProfessor0/Publication5 6 Rows. -- 4 msec. &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;To stop the server, simply type &lt;code&gt;shutdown;&lt;/code&gt; at the &lt;code&gt;SQL&amp;gt;&lt;/code&gt; prompt.&lt;/p&gt; &lt;p&gt;If you wish to use a &lt;a href=&quot;http://www.w3.org/TR/rdf-sparql-protocol/&quot; id=&quot;link-id11384668&quot;&gt;SPARQL protocol&lt;/a&gt; end point, just enable the HTTP listener. This is done by adding a stanza like â&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;[HTTPServer] ServerPort = 8421 ServerRoot = . ServerThreads = 2 &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;â to the end of the &lt;code&gt;virtuoso.ini&lt;/code&gt; file in the &lt;code&gt;lubm&lt;/code&gt; directory. Then shutdown and restart (type &lt;code&gt;shutdown;&lt;/code&gt; at the &lt;code&gt;SQL&amp;gt;&lt;/code&gt; prompt and then &lt;code&gt;virtuoso-t -f &amp;amp;&lt;/code&gt; at the shell prompt).&lt;/p&gt; &lt;p&gt;Now you can connect to the end point with a web browser. The &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Locator&quot; id=&quot;link-id113d02d8&quot;&gt;URL&lt;/a&gt; is &lt;code&gt;http://localhost:8421/sparql&lt;/code&gt;. Without parameters, this will show a human readable form. With parameters, this will execute SPARQL.&lt;/p&gt; &lt;p&gt;We have shown how to load and query RDF with Virtuoso using the most basic SQL tools. Next you can access RDF from, for example, &lt;a href=&quot;http://dbpedia.org/resource/PHP&quot; id=&quot;link-id142d0ba0&quot;&gt;PHP&lt;/a&gt;, using the PHP ODBC interface.&lt;/p&gt; &lt;p&gt;To see how to use &lt;a href=&quot;http://jena.sourceforge.net/&quot; id=&quot;link-id117074f0&quot;&gt;Jena&lt;/a&gt; or &lt;a href=&quot;http://sourceforge.net/projects/sesame/&quot; id=&quot;link-id1103c9b0&quot;&gt;Sesame&lt;/a&gt; with Virtuoso, look at &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/rdfnativestorageproviders.html&quot; id=&quot;link-id15488ce8&quot;&gt;Native RDF Storage Providers&lt;/a&gt;. To see how RDF data types are supported, see &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/VirtuosoDriverJDBC.html#jdbcrdf&quot; id=&quot;link-id15784a40&quot;&gt;Extension datatype for RDF&lt;/a&gt; &lt;/p&gt; &lt;p&gt;To work with large volumes of data, you must add memory to the configuration file and use the row-autocommit mode, i.e., do &lt;code&gt;log_enableÂ (2);&lt;/code&gt; before the load command. Otherwise Virtuoso will do the entire load as a single transaction, and will run out of rollback space. See &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/&quot; id=&quot;link-id111410f0&quot;&gt;documentation&lt;/a&gt; for more.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso RDF: A Getting Started Guide for the Developer</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-12-17#1504</atom:id>
  <atom:published>2008-12-17T12:31:34Z</atom:published>
  <atom:updated>2008-12-17T12:41:21.000001-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;It is a long standing promise of mine to dispel the false impression that using &lt;a href=&quot;http://virtuoso.openlinksw.com/&quot; id=&quot;link-id113506d0&quot;&gt;Virtuoso&lt;/a&gt; to work with &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id115d9528&quot;&gt;RDF&lt;/a&gt; is complicated.&lt;/p&gt; &lt;p&gt;The purpose of this presentation is to show a programmer how to put RDF into Virtuoso and how to query it. This is done programmatically, with no confusing user interfaces.&lt;/p&gt; &lt;p&gt;You should have a Virtuoso Open Source tree built and installed. We will look at the LUBM benchmark demo that comes with the package. All you need is a Unix shell. Running the shell under emacs (&lt;code&gt;m-x shell&lt;/code&gt;) is the best. But the open source &lt;code&gt;isql&lt;/code&gt; utility should have command line editing also. The emacs shell is however convenient for cutting and pasting things between shell and files.&lt;/p&gt; &lt;p&gt;To get started, cd into &lt;code&gt;binsrc/tests/lubm&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;To verify that this works, you can do &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;./test_server.sh virtuoso-t&lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;This will test the server with the LUBM queries. This should report 45 tests passed. After this we will do the tests step-by-step.&lt;/p&gt; &lt;h2&gt;Loading the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id10f7bd90&quot;&gt;Data&lt;/a&gt; &lt;/h2&gt; &lt;p&gt;The file &lt;code&gt;lubm-load.sql&lt;/code&gt; contains the commands for loading the LUBM single university qualification database.&lt;/p&gt; &lt;p&gt;The data files themselves are in &lt;code&gt;lubm_8000&lt;/code&gt;, 15 files in RDFXML.&lt;/p&gt; &lt;p&gt;There is also a little ontology called &lt;code&gt;inf.nt&lt;/code&gt;. This declares the subclass and subproperty relations used in the benchmark.&lt;/p&gt; &lt;p&gt;So now let&amp;#39;s go through this procedure.&lt;/p&gt; &lt;p&gt;Start the server:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;$ virtuoso-t -f &amp;amp; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;This starts the server in foreground mode, and puts it in the background of the shell.&lt;/p&gt; &lt;p&gt;Now we connect to it with the isql utility.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;$ isql 1111 dba dba &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;This gives a &lt;code&gt;SQL&amp;gt;&lt;/code&gt; prompt. The default username and password are both &lt;code&gt;dba&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;When a command is &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id1176ce70&quot;&gt;SQL&lt;/a&gt;, it is entered directly. If it is &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id156df468&quot;&gt;SPARQL&lt;/a&gt;, it is prefixed with the keyword &lt;code&gt;sparql&lt;/code&gt;. This is how all the SQL clients work. Any SQL client, such as any &lt;a href=&quot;http://dbpedia.org/resource/Open_Database_Connectivity&quot; id=&quot;link-id152d0a00&quot;&gt;ODBC&lt;/a&gt; or &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id157ad6a0&quot;&gt;JDBC&lt;/a&gt; application, can use SPARQL if the SQL string starts with this keyword.&lt;/p&gt; &lt;p&gt;The &lt;code&gt;lubm-load.sql&lt;/code&gt; file is quite self-explanatory. It begins with defining an SQL procedure that calls the RDF/XML load function, &lt;code&gt;DB..RDF_LOAD_RDFXML&lt;/code&gt;, for each file in a directory.&lt;/p&gt; &lt;p&gt;Next it calls this function for the &lt;code&gt;lubm_8000&lt;/code&gt; directory under the server&amp;#39;s working directory.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;sparql CLEAR GRAPH &amp;lt;lubm&amp;gt;; sparql CLEAR GRAPH &amp;lt;inf&amp;gt;; load_lubm ( server_root() || &amp;#39;/lubm_8000/&amp;#39; ); &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Then it verifies that the right number of triples is found in the &amp;lt;lubm&amp;gt; graph.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;sparql SELECT COUNT(*) FROM &amp;lt;lubm&amp;gt; WHERE { ?x ?y ?z } ; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;The echo commands below this are interpreted by the isql utility, and produce output to show whether the test was passed. They can be ignored for now.&lt;/p&gt; &lt;p&gt;Then it adds some implied &lt;code&gt;subOrganizationOf&lt;/code&gt; triples. This is part of setting up the LUBM test database.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;sparql PREFIX ub: &amp;lt;http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#&amp;gt; INSERT INTO GRAPH &amp;lt;lubm&amp;gt; { ?x ub:subOrganizationOf ?z } FROM &amp;lt;lubm&amp;gt; WHERE { ?x ub:subOrganizationOf ?y . ?y ub:subOrganizationOf ?z . }; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Then it loads the ontology file, &lt;code&gt;inf.nt&lt;/code&gt;, using the Turtle load function, &lt;code&gt;DB.DBA.TTLP&lt;/code&gt;. The arguments of the function are the text to load, the default namespace prefix, and the &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id15835550&quot;&gt;URI&lt;/a&gt; of the target graph.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;DB.DBA.TTLP ( file_to_string ( &amp;#39;inf.nt&amp;#39; ), &amp;#39;http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl&amp;#39;, &amp;#39;inf&amp;#39; ) ; sparql SELECT COUNT(*) FROM &amp;lt;inf&amp;gt; WHERE { ?x ?y ?z } ; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Then we declare that the triples in the &lt;code&gt;&amp;lt;inf&amp;gt;&lt;/code&gt; graph can be used for inference at run time. To enable this, a SPARQL query will declare that it uses the &lt;code&gt;&amp;#39;inft&amp;#39;&lt;/code&gt; rule set. Otherwise this has no effect.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;rdfs_rule_set (&amp;#39;inft&amp;#39;, &amp;#39;inf&amp;#39;); &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;This is just a log checkpoint to finalize the work and truncate the transaction log. The server would also eventually do this in its own time.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;checkpoint; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Now we are ready for querying.&lt;/p&gt; &lt;h2&gt;Querying the Data&lt;/h2&gt; &lt;p&gt;The queries are given in 3 different versions: The first file, &lt;code&gt;lubm.sql&lt;/code&gt;, has the queries with most inference open coded as &lt;code&gt;UNIONs&lt;/code&gt;. The second file, &lt;code&gt;lubm-inf.sql&lt;/code&gt;, has the inference performed at run time using the ontology &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id1109faf0&quot;&gt;information&lt;/a&gt; in the &lt;code&gt;&amp;lt;inf&amp;gt;&lt;/code&gt; graph we just loaded. The last, &lt;code&gt;lubm-phys.sql&lt;/code&gt;, relies on having the entailed triples physically present in the &lt;code&gt;&amp;lt;lubm&amp;gt;&lt;/code&gt; graph. These entailed triples are inserted by the SPARUL commands in the &lt;code&gt;lubm-cp.sql&lt;/code&gt; file.&lt;/p&gt; &lt;p&gt;If you wish to run all the commands in a SQL file, you can type &lt;code&gt;load &amp;lt;filename&amp;gt;;&lt;/code&gt; (e.g., &lt;code&gt;load lubm-cp.sql;&lt;/code&gt;) at the &lt;code&gt;SQL&amp;gt;&lt;/code&gt; prompt. If you wish to try individual statements, you can paste them to the command line.&lt;/p&gt; &lt;p&gt;For example: &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;SQL&amp;gt; sparql PREFIX ub: &amp;lt;http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#&amp;gt; SELECT * FROM &amp;lt;lubm&amp;gt; WHERE { ?x a ub:Publication . ?x ub:publicationAuthor &amp;lt;http://www.Department0.University0.edu/AssistantProfessor0&amp;gt; }; VARCHAR _______________________________________________________________________ http://www.Department0.University0.edu/AssistantProfessor0/Publication0 http://www.Department0.University0.edu/AssistantProfessor0/Publication1 http://www.Department0.University0.edu/AssistantProfessor0/Publication2 http://www.Department0.University0.edu/AssistantProfessor0/Publication3 http://www.Department0.University0.edu/AssistantProfessor0/Publication4 http://www.Department0.University0.edu/AssistantProfessor0/Publication5 6 Rows. -- 4 msec. &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;To stop the server, simply type &lt;code&gt;shutdown;&lt;/code&gt; at the &lt;code&gt;SQL&amp;gt;&lt;/code&gt; prompt.&lt;/p&gt; &lt;p&gt;If you wish to use a &lt;a href=&quot;http://www.w3.org/TR/rdf-sparql-protocol/&quot; id=&quot;link-id11384668&quot;&gt;SPARQL protocol&lt;/a&gt; end point, just enable the HTTP listener. This is done by adding a stanza like â&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;[HTTPServer] ServerPort = 8421 ServerRoot = . ServerThreads = 2 &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;â to the end of the &lt;code&gt;virtuoso.ini&lt;/code&gt; file in the &lt;code&gt;lubm&lt;/code&gt; directory. Then shutdown and restart (type &lt;code&gt;shutdown;&lt;/code&gt; at the &lt;code&gt;SQL&amp;gt;&lt;/code&gt; prompt and then &lt;code&gt;virtuoso-t -f &amp;amp;&lt;/code&gt; at the shell prompt).&lt;/p&gt; &lt;p&gt;Now you can connect to the end point with a web browser. The &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Locator&quot; id=&quot;link-id113d02d8&quot;&gt;URL&lt;/a&gt; is &lt;code&gt;http://localhost:8421/sparql&lt;/code&gt;. Without parameters, this will show a human readable form. With parameters, this will execute SPARQL.&lt;/p&gt; &lt;p&gt;We have shown how to load and query RDF with Virtuoso using the most basic SQL tools. Next you can access RDF from, for example, &lt;a href=&quot;http://dbpedia.org/resource/PHP&quot; id=&quot;link-id142d0ba0&quot;&gt;PHP&lt;/a&gt;, using the PHP ODBC interface.&lt;/p&gt; &lt;p&gt;To see how to use &lt;a href=&quot;http://jena.sourceforge.net/&quot; id=&quot;link-id117074f0&quot;&gt;Jena&lt;/a&gt; or &lt;a href=&quot;http://sourceforge.net/projects/sesame/&quot; id=&quot;link-id1103c9b0&quot;&gt;Sesame&lt;/a&gt; with Virtuoso, look at &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/rdfnativestorageproviders.html&quot; id=&quot;link-id15488ce8&quot;&gt;Native RDF Storage Providers&lt;/a&gt;. To see how RDF data types are supported, see &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/VirtuosoDriverJDBC.html#jdbcrdf&quot; id=&quot;link-id15784a40&quot;&gt;Extension datatype for RDF&lt;/a&gt; &lt;/p&gt; &lt;p&gt;To work with large volumes of data, you must add memory to the configuration file and use the row-autocommit mode, i.e., do &lt;code&gt;log_enableÂ (2);&lt;/code&gt; before the load command. Otherwise Virtuoso will do the entire load as a single transaction, and will run out of rollback space. See &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/&quot; id=&quot;link-id111410f0&quot;&gt;documentation&lt;/a&gt; for more.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>See the Lite: Embeddable/Background Virtuoso starts at 25MB</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-12-17#1503</atom:id>
  <atom:published>2008-12-17T09:34:12Z</atom:published>
  <atom:updated>2008-12-17T12:03:49-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We have received many requests for an embeddable-scale &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1cd69650&quot;&gt;Virtuoso&lt;/a&gt;. In response to this, we have added a Lite mode, where the initial size of a server process is a tiny fraction of what the initial size would be with default settings. With 2MB of disk cache buffers (ini file setting, &lt;code&gt;NumberOfBuffers = 256&lt;/code&gt;), the process size stays under 30MB on 32-bit Linux.&lt;/p&gt; &lt;p&gt;The value of this is that one can now have &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1ce89340&quot;&gt;RDF&lt;/a&gt; and full text indexing on the desktop without running a Java VM or any other memory-intensive software. And of course, all of &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1cfc9288&quot;&gt;SQL&lt;/a&gt; (transactions, stored procedures, etc.) is in the same embeddably-sized container.&lt;/p&gt; &lt;p&gt;The Lite executable is a full Virtuoso executable; the Lite mode is controlled by a switch in the configuration file. The executable size is about 10MB for 32-bit Linux. A database created in the Lite mode will be converted into a fully-featured database (tables and indexes are added, among other things) if the server is started with the Lite setting &amp;quot;off&amp;quot;; functionality can be reverted to Lite mode, though it will now consume somewhat more memory, etc.&lt;/p&gt; &lt;p&gt;Lite mode offers full SQL and &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1c511da8&quot;&gt;SPARQL&lt;/a&gt;/SPARUL (via SPASQL), but disables all &lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0x1dac1950&quot;&gt;HTTP&lt;/a&gt;-based services (WebDAV, application hosting, etc.). Clients can still use all typical database access mechanisms (i.e., &lt;a href=&quot;http://dbpedia.org/resource/Open_Database_Connectivity&quot; id=&quot;link-id0xb19a488&quot;&gt;ODBC&lt;/a&gt;, &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id0x1d93ee40&quot;&gt;JDBC&lt;/a&gt;, OLE-DB, &lt;a href=&quot;http://dbpedia.org/resource/ADO.NET&quot; id=&quot;link-id0x1ce391c0&quot;&gt;ADO&lt;/a&gt;.&lt;a href=&quot;http://dbpedia.org/resource/.NET_Framework&quot; id=&quot;link-id0xacf1168&quot;&gt;NET&lt;/a&gt;, and XMLA) to connect, including the &lt;a href=&quot;http://jena.sourceforge.net/&quot; id=&quot;link-id0xaaf5b58&quot;&gt;Jena&lt;/a&gt; and &lt;a href=&quot;http://sourceforge.net/projects/sesame/&quot; id=&quot;link-id0x1b1e4328&quot;&gt;Sesame&lt;/a&gt; frameworks for RDF. ODBC now offers full support of RDF &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1cfc9f78&quot;&gt;data&lt;/a&gt; types for &lt;a href=&quot;http://dbpedia.org/resource/C%2B%2B&quot; id=&quot;link-id0xa6059d8&quot;&gt;C&lt;/a&gt;-based clients. A Redland-compatible API also exists, for use with Redland v1.0.8 and later. &lt;/p&gt; &lt;p&gt;Especially for embedded use, we now allow restricting the listener to be a Unix socket, which allows client connections only from the localhost.&lt;/p&gt; &lt;p&gt;Shipping an embedded Virtuoso is easy. It just takes one executable and one configuration file. Performance is generally comparable to &amp;quot;normal&amp;quot; mode, except that Lite will be somewhat less scalable on multicore systems.&lt;/p&gt; &lt;p&gt;The Lite mode will be included in the next Virtuoso 5 Open Source release.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>See the Lite: Embeddable/Background Virtuoso starts at 25MB</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-12-17#1502</atom:id>
  <atom:published>2008-12-17T09:34:12Z</atom:published>
  <atom:updated>2008-12-17T12:03:43-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We have received many requests for an embeddable-scale &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xa5aa1b38&quot;&gt;Virtuoso&lt;/a&gt;. In response to this, we have added a Lite mode, where the initial size of a server process is a tiny fraction of what the initial size would be with default settings. With 2MB of disk cache buffers (ini file setting, &lt;code&gt;NumberOfBuffers = 256&lt;/code&gt;), the process size stays under 30MB on 32-bit Linux.&lt;/p&gt; &lt;p&gt;The value of this is that one can now have &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1db79ac8&quot;&gt;RDF&lt;/a&gt; and full text indexing on the desktop without running a Java VM or any other memory-intensive software. And of course, all of &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0xa923298&quot;&gt;SQL&lt;/a&gt; (transactions, stored procedures, etc.) is in the same embeddably-sized container.&lt;/p&gt; &lt;p&gt;The Lite executable is a full Virtuoso executable; the Lite mode is controlled by a switch in the configuration file. The executable size is about 10MB for 32-bit Linux. A database created in the Lite mode will be converted into a fully-featured database (tables and indexes are added, among other things) if the server is started with the Lite setting &amp;quot;off&amp;quot;; functionality can be reverted to Lite mode, though it will now consume somewhat more memory, etc.&lt;/p&gt; &lt;p&gt;Lite mode offers full SQL and &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1b388830&quot;&gt;SPARQL&lt;/a&gt;/SPARUL (via SPASQL), but disables all &lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0x1d56b618&quot;&gt;HTTP&lt;/a&gt;-based services (WebDAV, application hosting, etc.). Clients can still use all typical database access mechanisms (i.e., &lt;a href=&quot;http://dbpedia.org/resource/Open_Database_Connectivity&quot; id=&quot;link-id0x1c5abc38&quot;&gt;ODBC&lt;/a&gt;, &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id0x1dade1f8&quot;&gt;JDBC&lt;/a&gt;, OLE-DB, &lt;a href=&quot;http://dbpedia.org/resource/ADO.NET&quot; id=&quot;link-id0x25d8e0f0&quot;&gt;ADO&lt;/a&gt;.&lt;a href=&quot;http://dbpedia.org/resource/.NET_Framework&quot; id=&quot;link-id0x1d7a1a28&quot;&gt;NET&lt;/a&gt;, and XMLA) to connect, including the &lt;a href=&quot;http://jena.sourceforge.net/&quot; id=&quot;link-id0x1d929b98&quot;&gt;Jena&lt;/a&gt; and &lt;a href=&quot;http://sourceforge.net/projects/sesame/&quot; id=&quot;link-id0x1b7a9088&quot;&gt;Sesame&lt;/a&gt; frameworks for RDF. ODBC now offers full support of RDF &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xaf62aa0&quot;&gt;data&lt;/a&gt; types for &lt;a href=&quot;http://dbpedia.org/resource/C%2B%2B&quot; id=&quot;link-id0xa8784b0&quot;&gt;C&lt;/a&gt;-based clients. A Redland-compatible API also exists, for use with Redland v1.0.8 and later. &lt;/p&gt; &lt;p&gt;Especially for embedded use, we now allow restricting the listener to be a Unix socket, which allows client connections only from the localhost.&lt;/p&gt; &lt;p&gt;Shipping an embedded Virtuoso is easy. It just takes one executable and one configuration file. Performance is generally comparable to &amp;quot;normal&amp;quot; mode, except that Lite will be somewhat less scalable on multicore systems.&lt;/p&gt; &lt;p&gt;The Lite mode will be included in the next Virtuoso 5 Open Source release.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>&quot;E Pluribus Unum&quot;, or &quot;Inversely Functional Identity&quot;, or &quot;Smooshing Without the Stickiness&quot; (re-updated)</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-12-16#1499</atom:id>
  <atom:published>2008-12-16T14:14:43Z</atom:published>
  <atom:updated>2008-12-16T15:01:36.000003-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;What a terrible word, smooshing... I have understood it to mean that when you have two names for one thing, you give each all the attributes of the other. This smooshes them together, makes them interchangeable.&lt;/p&gt; &lt;p&gt;This is complex, so I will begin with the point and the interested may read on for the details and implications. Starting with soon to be released version 6, &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id15718cb8&quot;&gt;Virtuoso&lt;/a&gt; allows you to say that two things, if they share a uniquely identifying property, are the same. Examples of uniquely identifying properties would be a book&amp;#39;s ISBN number, or a person&amp;#39;s social security plus full name. In relational language this is a &lt;i&gt;unique key&lt;/i&gt;, and in &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id145ed998&quot;&gt;RDF&lt;/a&gt; parlance, an &lt;i&gt;inverse functional property&lt;/i&gt;.&lt;/p&gt; &lt;p&gt;In most systems, such problems are dealt with as a preprocessing step before querying. For example, all the items that are considered the same will get the same properties or at load time all identifiers will be normalized according to some application rules. This is good if the rules are clear and understood. This is so in closed situations, where things tend to have standard identifiers to begin with. But on the open web this is not so clear cut.&lt;/p&gt; &lt;p&gt;In this post, we show how to do these things &lt;i&gt;ad hoc&lt;/i&gt;, without materializing anything. At the end, we also show how to materialize identity and what the consequences of this are with open web &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id11726358&quot;&gt;data&lt;/a&gt;. We use real live web crawls from the &lt;a href=&quot;http://challenge.semanticweb.org/&quot; id=&quot;link-id14f40448&quot;&gt;Billion Triples Challenge&lt;/a&gt; data set.&lt;/p&gt; &lt;p&gt;On the &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id156e2b10&quot;&gt;linked data&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Giant_Global_Graph&quot; id=&quot;link-id1106ce08&quot;&gt;web&lt;/a&gt;, there are independently arising descriptions of the same thing and thus arises the need to smoosh, if these are to be somehow integrated. But this is only the beginning of the problems.&lt;/p&gt; &lt;p&gt;To address these, we have added the option of specifying that some property will be considered inversely functional in a query. This is done at run time and the property does not really have to be inversely functional in the pure sense. &lt;code&gt;foaf:name&lt;/code&gt; will do for an example. This simply means that for purposes of the query concerned, two subjects which have at least one &lt;code&gt;foaf:name&lt;/code&gt; in common are considered the same. In this way, we can join between FOAF files. With the same database, a query about music preferences might consider having the same name as &amp;quot;same enough,&amp;quot; but a query about criminal prosecution would obviously need to be more precise about sameness.&lt;/p&gt; &lt;p&gt;Our ontology is defined like this:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;-- Populate a named graph with the triples you want to use in query time inferencing&lt;br /&gt; ttlp ( &amp;#39; @prefix foaf: &amp;lt;xmlns=&amp;quot;http&amp;quot; xmlns.com=&amp;quot;xmlns.com&amp;quot; foaf=&amp;quot;foaf&amp;quot;&amp;gt; &amp;lt;/&amp;gt; @prefix owl: &amp;lt;xmlns=&amp;quot;http&amp;quot; www.w3.org=&amp;quot;www.w3.org&amp;quot; owl=&amp;quot;owl&amp;quot;&amp;gt; &amp;lt;/&amp;gt; foaf:mbox_sha1sum a owl:InverseFunctionalProperty . foaf:name a owl:InverseFunctionalProperty . &amp;#39;, &amp;#39;xx&amp;#39;, &amp;#39;b3sifp&amp;#39; );&lt;br /&gt; -- Declare that the graph contains an ontology for use in query time inferencing &lt;br /&gt; rdfs_rule_set ( &amp;#39;http://example.com/rules/b3sifp#&amp;#39;, &amp;#39;b3sifp&amp;#39; ); &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Then use it:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;sparql DEFINE input:inference &amp;quot;http://example.com/rules/b3sifp#&amp;quot; SELECT DISTINCT ?k ?f1 ?f2 WHERE { ?k foaf:name ?n . ?n bif:contains &amp;quot;&amp;#39;Kjetil Kjernsmo&amp;#39;&amp;quot; . ?k foaf:knows ?f1 . ?f1 foaf:knows ?f2 };&lt;br /&gt; VARCHAR VARCHAR VARCHAR ______________________________________ _______________________________________________ ______________________________&lt;br /&gt; http://www.kjetil.kjernsmo.net/foaf#me http://norman.walsh.name/knows/who/robin-berjon http://twitter.com/dajobe http://www.kjetil.kjernsmo.net/foaf#me http://norman.walsh.name/knows/who/robin-berjon http://twitter.com/net_twitter http://www.kjetil.kjernsmo.net/foaf#me http://norman.walsh.name/knows/who/robin-berjon http://twitter.com/amyvdh http://www.kjetil.kjernsmo.net/foaf#me http://norman.walsh.name/knows/who/robin-berjon http://twitter.com/pom http://www.kjetil.kjernsmo.net/foaf#me http://norman.walsh.name/knows/who/robin-berjon http://twitter.com/mattb http://www.kjetil.kjernsmo.net/foaf#me http://norman.walsh.name/knows/who/robin-berjon http://twitter.com/davorg http://www.kjetil.kjernsmo.net/foaf#me http://norman.walsh.name/knows/who/robin-berjon http://twitter.com/distobj http://www.kjetil.kjernsmo.net/foaf#me http://norman.walsh.name/knows/who/robin-berjon http://twitter.com/perigrin .... &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Without the inference, we get no matches. This is because the data in question has one graph per FOAF file, and blank nodes for persons. No graph references any person outside the ones in the graph. So if somebody is mentioned as known, then without the inference there is no way to get to what that person&amp;#39;s FOAF file says, since the same individual will be a different blank node there. The declaration in the context named &lt;code&gt;b3sifp&lt;/code&gt; just means that all things with a matching &lt;code&gt;foaf:name&lt;/code&gt; or &lt;code&gt;foaf:mbox_sha1sum&lt;/code&gt; are the same.&lt;/p&gt; &lt;p&gt;Sameness means that two are the same for purposes of &lt;code&gt;DISTINCT&lt;/code&gt; or &lt;code&gt;GROUP BY&lt;/code&gt;, and if two are the same, then both have the &lt;code&gt;UNION&lt;/code&gt; of all of the properties of both.&lt;/p&gt; &lt;p&gt;If this were a naive smoosh, then the individuals would have all the same properties but would not be the same for &lt;code&gt;DISTINCT&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;If we have complex application rules for determining whether individuals are the same, then one can materialize &lt;code&gt;owl:sameAs&lt;/code&gt; triples and keep them in a separate graph. In this way, the original data is not contaminated and the materialized volume stays reasonable â nothing like the blow-up of duplicating properties across instances.&lt;/p&gt; &lt;p&gt;The pro-smoosh argument is that if every duplicate makes exactly the same statements, then there is no great blow-up. Best and worst cases will always depend on the data. In rough terms, the more &lt;i&gt;ad hoc&lt;/i&gt; the use, the less desirable the materialization. If the usage pattern is really set, then a relational-style application-specific representation with identity resolved at load time will perform best. We can do that too, but so can others.&lt;/p&gt; &lt;p&gt;The principal point is about agility as concerns the inference. Run time is more agile than materialization, and if the rules change or if different users have different needs, then materialization runs into trouble. When talking web scale, having multiple users is a given; it is very uneconomical to give everybody their own copy, and the likelihood of a user accessing any significant part of the corpus is minimal. Even if the queries were not limited, the user would typically not wait for the answer of a query doing a scan or aggregation over 1 billion &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id1156a550&quot;&gt;blog&lt;/a&gt; posts or something of the sort. So queries will typically be selective. Selective means that they do not access all of the data, hence do not benefit from ready-made materialization for things they do not even look at. &lt;/p&gt; &lt;p&gt;The exception is corpus-wide statistics queries. But these will not be done in interactive time anyway, and will not be done very often. Plus, since these do not typically run all in memory, these are disk bound. And when things are disk bound, size matters. Reading extra entailment on the way is just a performance penalty.&lt;/p&gt; &lt;p&gt;Enough talk. Time for an experiment. We take the Yahoo and Falcon web crawls from the Billion Triples Challenge set, and do two things with the FOAF data in them:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Resolve identity at insert time. We remove duplicate person URIs, and give the single &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id11317008&quot;&gt;URI&lt;/a&gt; all the properties of all the duplicate URIs. We expect these to be most often repeats. If a person references another person, we normalize this reference to go to the single URI of the referenced person.&lt;/li&gt; &lt;li&gt;Give every duplicate URI of a person all the properties of all the duplicates. If these are the same value, the data should not get much bigger, or so we think.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;For the experiment, we will consider two people the same if they have the same &lt;code&gt;foaf:name&lt;/code&gt; and are both instances of &lt;code&gt;foaf:Person&lt;/code&gt;. This gets some extra hits but should not be statistically significant.&lt;/p&gt; &lt;p&gt;The following is a commented &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id110945b0&quot;&gt;SQL&lt;/a&gt; script performing the smoosh. We play with internal IDs of things, thus some of these operations cannot be done in SPARQL alone. We use SPARQL where possible for readability. As the documentation states, &lt;code&gt;iri_to_id&lt;/code&gt; converts from the qualified name of an IRI to its ID and &lt;code&gt;id_to_iri&lt;/code&gt; does the reverse.&lt;/p&gt; &lt;p&gt;We count the triples that enter into the smoosh:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;-- the name is an existence because else we&amp;#39;d get several times more due to -- the names occurring in many graphs &lt;br /&gt; sparql SELECT COUNT(*) WHERE { { SELECT DISTINCT ?person WHERE { ?person a foaf:Person } } . FILTER ( bif:exists ( SELECT (1) WHERE { ?person foaf:name ?nn } ) ) . ?person ?p ?o };&lt;br /&gt; -- We get 3284674 &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;We make a few tables for intermediate results.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;-- For each distinct name, gather the properties and objects from -- all subjects with this name &lt;br /&gt; CREATE TABLE name_prop ( np_name ANY, np_p IRI_ID_8, np_o ANY, PRIMARY KEY ( np_name, np_p, np_o ) ); ALTER INDEX name_prop ON name_prop PARTITION ( np_name VARCHAR (-1, 0hexffff) );&lt;br /&gt; -- Map from name to canonical IRI used for the name &lt;br /&gt; CREATE TABLE name_iri ( ni_name ANY PRIMARY KEY, ni_s IRI_ID_8 ); ALTER INDEX name_iri ON name_iri PARTITION ( ni_name VARCHAR (-1, 0hexffff) );&lt;br /&gt; -- Map from person IRI to canonical person IRI&lt;br /&gt; CREATE TABLE pref_iri ( i IRI_ID_8, pref IRI_ID_8, PRIMARY KEY ( i ) ); ALTER INDEX pref_iri ON pref_iri PARTITION ( i INT (0hexffff00) );&lt;br /&gt; -- a table for the materialization where all aliases get all properties of every other &lt;br /&gt; CREATE TABLE smoosh_ct ( s IRI_ID_8, p IRI_ID_8, o ANY, PRIMARY KEY ( s, p, o ) ); ALTER INDEX smoosh_ct ON smoosh_ct PARTITION ( s INT (0hexffff00) );&lt;br /&gt; -- disable transaction log and enable row auto-commit. This is necessary, otherwise -- bulk operations are done transactionally and they will run out of rollback space.&lt;br /&gt; LOG_ENABLE (2);&lt;br /&gt; -- Gather all the properties of all persons with a name under that name. -- INSERT SOFT means that duplicates are ignored &lt;br /&gt; INSERT SOFT name_prop SELECT &amp;quot;n&amp;quot;, &amp;quot;p&amp;quot;, &amp;quot;o&amp;quot; FROM ( sparql DEFINE output:valmode &amp;quot;LONG&amp;quot; SELECT ?n ?p ?o WHERE { ?x a foaf:Person . ?x foaf:name ?n . ?x ?p ?o } ) xx ;&lt;br /&gt; -- Now choose for each name the canonical IRI &lt;br /&gt; INSERT INTO name_iri SELECT np_name, ( SELECT MIN (s) FROM rdf_quad WHERE o = np_name AND p = IRI_TO_ID (&amp;#39;http://xmlns.com/foaf/0.1/name&amp;#39;) ) AS mini FROM name_prop WHERE np_p = IRI_TO_ID (&amp;#39;http://xmlns.com/foaf/0.1/name&amp;#39;) ;&lt;br /&gt; -- For each person IRI, map to the canonical IRI of that person &lt;br /&gt; INSERT SOFT pref_iri (i, pref) SELECT s, ni_s FROM name_iri, rdf_quad WHERE o = ni_name AND p = IRI_TO_ID (&amp;#39;http://xmlns.com/foaf/0.1/name&amp;#39;) ;&lt;br /&gt; -- Make a graph where all persons have one iri with all the properties of all aliases -- and where person-to-person refs are canonicalized&lt;br /&gt; INSERT SOFT rdf_quad (g,s,p,o) SELECT IRI_TO_ID (&amp;#39;psmoosh&amp;#39;), ni_s, np_p, COALESCE ( ( SELECT pref FROM pref_iri WHERE i = np_o ), np_o ) FROM name_prop, name_iri WHERE ni_name = np_name OPTION ( loop, quietcast ) ;&lt;br /&gt; -- A little explanation: The properties of names are copied into rdf_quad with the name -- replaced with its canonical IRI. If the object has a canonical IRI, this is used as -- the object, else the object is unmodified. This is the COALESCE with the sub-query.&lt;br /&gt; -- This takes a little time. To check on the progress, take another connection to the -- server and do &lt;br /&gt; STATUS (&amp;#39;cluster&amp;#39;);&lt;br /&gt; -- It will return something like -- Cluster 4 nodes, 35 s. 108 m/s 1001 KB/s 75% cpu 186% read 12% clw threads 5r 0w 0i -- buffers 549481 253929 d 8 w 0 pfs&lt;br /&gt; -- Now finalize the state; this makes it permanent. Else the work will be lost on server -- failure, since there was no transaction log &lt;br /&gt; CL_EXEC (&amp;#39;checkpoint&amp;#39;);&lt;br /&gt; -- See what we got&lt;br /&gt; sparql SELECT COUNT (*) FROM &amp;lt;psmoosh&amp;gt; WHERE {?s ?p ?o};&lt;br /&gt; -- This is 2253102&lt;br /&gt; -- Now make the copy where all have the properties of all synonyms. This takes so much -- space we do not insert it as RDF quads, but make a special table for it so that we can -- run some statistics. This saves time.&lt;br /&gt; INSERT SOFT smoosh_ct (s, p, o) SELECT s, np_p, np_o FROM name_prop, rdf_quad WHERE o = np_name AND p = IRI_TO_ID (&amp;#39;http://xmlns.com/foaf/0.1/name&amp;#39;) ;&lt;br /&gt; -- as above, INSERT SOFT so as to ignore duplicates &lt;br /&gt; SELECT COUNT (*) FROM smoosh_ct;&lt;br /&gt; -- This is 167360324&lt;br /&gt; -- Find out where the bloat comes from &lt;br /&gt; SELECT TOP 20 COUNT (*), ID_TO_IRI (p) FROM smoosh_ct GROUP BY p ORDER BY 1 DESC; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;The results are:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;54728777 http://www.w3.org/2002/07/owl#sameAs 48543153 http://xmlns.com/foaf/0.1/knows 13930234 http://www.w3.org/2000/01/rdf-schema#seeAlso 12268512 http://xmlns.com/foaf/0.1/interest 11415867 http://xmlns.com/foaf/0.1/nick 6683963 http://xmlns.com/foaf/0.1/weblog 6650093 http://xmlns.com/foaf/0.1/depiction 4231946 http://xmlns.com/foaf/0.1/mbox_sha1sum 4129629 http://xmlns.com/foaf/0.1/homepage 1776555 http://xmlns.com/foaf/0.1/holdsAccount 1219525 http://xmlns.com/foaf/0.1/based_near 305522 http://www.w3.org/1999/02/22-rdf-syntax-ns#type 274965 http://xmlns.com/foaf/0.1/name 155131 http://xmlns.com/foaf/0.1/dateOfBirth 153001 http://xmlns.com/foaf/0.1/img 111130 http://www.w3.org/2001/vcard-rdf/3.0#ADR 52930 http://xmlns.com/foaf/0.1/gender 48517 http://www.w3.org/2004/02/skos/core#subject 45697 http://www.w3.org/2000/01/rdf-schema#label 44860 http://purl.org/vocab/bio/0.1/olb &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Now compare with the predicate distribution of the smoosh with identities canonicalized &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;sparql SELECT COUNT (*) ?p FROM &amp;lt;psmoosh&amp;gt; WHERE { ?s ?p ?o } GROUP BY ?p ORDER BY 1 DESC LIMIT 20;&lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Results are:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;748311 http://xmlns.com/foaf/0.1/knows 548391 http://xmlns.com/foaf/0.1/interest 140531 http://www.w3.org/2000/01/rdf-schema#seeAlso 105273 http://www.w3.org/1999/02/22-rdf-syntax-ns#type 78497 http://xmlns.com/foaf/0.1/name 48099 http://www.w3.org/2004/02/skos/core#subject 45179 http://xmlns.com/foaf/0.1/depiction 40229 http://www.w3.org/2000/01/rdf-schema#comment 38272 http://www.w3.org/2000/01/rdf-schema#label 37378 http://xmlns.com/foaf/0.1/nick 37186 http://dbpedia.org/property/abstract 34003 http://xmlns.com/foaf/0.1/img 26182 http://xmlns.com/foaf/0.1/homepage 23795 http://www.w3.org/2002/07/owl#sameAs 17651 http://xmlns.com/foaf/0.1/mbox_sha1sum 17430 http://xmlns.com/foaf/0.1/dateOfBirth 15586 http://xmlns.com/foaf/0.1/page 12869 http://dbpedia.org/property/reference 12497 http://xmlns.com/foaf/0.1/weblog 12329 http://blogs.yandex.ru/schema/foaf/school &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;We can drop the &lt;code&gt;owl:sameAs&lt;/code&gt; triples from the count, so the bloat is a bit less by that but it still is tens of times larger than the canonicalized copy or the initial state.&lt;/p&gt; &lt;p&gt;Now, when we try using the psmoosh graph, we still get different results from the results with the original data. This is because &lt;code&gt;foaf:knows&lt;/code&gt; relations to things with no &lt;code&gt;foaf:name&lt;/code&gt; are not represented in the smoosh. The exist:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;sparql SELECT COUNT (*) WHERE { ?s foaf:knows ?thing . FILTER ( !bif:exists ( SELECT (1) WHERE { ?thing foaf:name ?nn } ) ) };&lt;br /&gt; -- 1393940 &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;So the smoosh graph is not an accurate rendition of the social network. It would have to be smooshed further to be that, since the data in the sample is quite irregular. But we do not go that far here.&lt;/p&gt; &lt;p&gt;Finally, we calculate the smoosh blow up factors. We do not include &lt;code&gt;owl:sameAs&lt;/code&gt; triples in the counts.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;select (167360324 - 54728777) / 3284674.0; 34.290022997716059&lt;br /&gt; select 2229307 / 3284674.0; = 0.678699621332284 &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;So, to get a smoosh that is not really the equivalent of the original, either multiply the original triple count by 34 or 0.68, depending on whether synonyms are collapsed or not.&lt;/p&gt; &lt;p&gt;Making the smooshes does not take very long, some minutes for the small one. Inserting the big one would be longer, a couple of hours maybe. It was 33 minutes for filling the &lt;code&gt;smoosh_ct&lt;/code&gt; table. The metrics were not with optimal tuning so the performance numbers just serve to show that smooshing takes time. Probably more time than allowable in an interactive situation, no matter how the process is optimized.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>&quot;E Pluribus Unum&quot;, or &quot;Inversely Functional Identity&quot;, or &quot;Smooshing Without the Stickiness&quot; (re-updated)</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-12-16#1498</atom:id>
  <atom:published>2008-12-16T14:14:43Z</atom:published>
  <atom:updated>2008-12-16T15:01:30-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;What a terrible word, smooshing... I have understood it to mean that when you have two names for one thing, you give each all the attributes of the other. This smooshes them together, makes them interchangeable.&lt;/p&gt; &lt;p&gt;This is complex, so I will begin with the point and the interested may read on for the details and implications. Starting with soon to be released version 6, &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id15718cb8&quot;&gt;Virtuoso&lt;/a&gt; allows you to say that two things, if they share a uniquely identifying property, are the same. Examples of uniquely identifying properties would be a book&amp;#39;s ISBN number, or a person&amp;#39;s social security plus full name. In relational language this is a &lt;i&gt;unique key&lt;/i&gt;, and in &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id145ed998&quot;&gt;RDF&lt;/a&gt; parlance, an &lt;i&gt;inverse functional property&lt;/i&gt;.&lt;/p&gt; &lt;p&gt;In most systems, such problems are dealt with as a preprocessing step before querying. For example, all the items that are considered the same will get the same properties or at load time all identifiers will be normalized according to some application rules. This is good if the rules are clear and understood. This is so in closed situations, where things tend to have standard identifiers to begin with. But on the open web this is not so clear cut.&lt;/p&gt; &lt;p&gt;In this post, we show how to do these things &lt;i&gt;ad hoc&lt;/i&gt;, without materializing anything. At the end, we also show how to materialize identity and what the consequences of this are with open web &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id11726358&quot;&gt;data&lt;/a&gt;. We use real live web crawls from the &lt;a href=&quot;http://challenge.semanticweb.org/&quot; id=&quot;link-id14f40448&quot;&gt;Billion Triples Challenge&lt;/a&gt; data set.&lt;/p&gt; &lt;p&gt;On the &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id156e2b10&quot;&gt;linked data&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Giant_Global_Graph&quot; id=&quot;link-id1106ce08&quot;&gt;web&lt;/a&gt;, there are independently arising descriptions of the same thing and thus arises the need to smoosh, if these are to be somehow integrated. But this is only the beginning of the problems.&lt;/p&gt; &lt;p&gt;To address these, we have added the option of specifying that some property will be considered inversely functional in a query. This is done at run time and the property does not really have to be inversely functional in the pure sense. &lt;code&gt;foaf:name&lt;/code&gt; will do for an example. This simply means that for purposes of the query concerned, two subjects which have at least one &lt;code&gt;foaf:name&lt;/code&gt; in common are considered the same. In this way, we can join between FOAF files. With the same database, a query about music preferences might consider having the same name as &amp;quot;same enough,&amp;quot; but a query about criminal prosecution would obviously need to be more precise about sameness.&lt;/p&gt; &lt;p&gt;Our ontology is defined like this:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;-- Populate a named graph with the triples you want to use in query time inferencing&lt;br /&gt; ttlp ( &amp;#39; @prefix foaf: &amp;lt;xmlns=&amp;quot;http&amp;quot; xmlns.com=&amp;quot;xmlns.com&amp;quot; foaf=&amp;quot;foaf&amp;quot;&amp;gt; &amp;lt;/&amp;gt; @prefix owl: &amp;lt;xmlns=&amp;quot;http&amp;quot; www.w3.org=&amp;quot;www.w3.org&amp;quot; owl=&amp;quot;owl&amp;quot;&amp;gt; &amp;lt;/&amp;gt; foaf:mbox_sha1sum a owl:InverseFunctionalProperty . foaf:name a owl:InverseFunctionalProperty . &amp;#39;, &amp;#39;xx&amp;#39;, &amp;#39;b3sifp&amp;#39; );&lt;br /&gt; -- Declare that the graph contains an ontology for use in query time inferencing &lt;br /&gt; rdfs_rule_set ( &amp;#39;http://example.com/rules/b3sifp#&amp;#39;, &amp;#39;b3sifp&amp;#39; ); &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Then use it:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;sparql DEFINE input:inference &amp;quot;http://example.com/rules/b3sifp#&amp;quot; SELECT DISTINCT ?k ?f1 ?f2 WHERE { ?k foaf:name ?n . ?n bif:contains &amp;quot;&amp;#39;Kjetil Kjernsmo&amp;#39;&amp;quot; . ?k foaf:knows ?f1 . ?f1 foaf:knows ?f2 };&lt;br /&gt; VARCHAR VARCHAR VARCHAR ______________________________________ _______________________________________________ ______________________________&lt;br /&gt; http://www.kjetil.kjernsmo.net/foaf#me http://norman.walsh.name/knows/who/robin-berjon http://twitter.com/dajobe http://www.kjetil.kjernsmo.net/foaf#me http://norman.walsh.name/knows/who/robin-berjon http://twitter.com/net_twitter http://www.kjetil.kjernsmo.net/foaf#me http://norman.walsh.name/knows/who/robin-berjon http://twitter.com/amyvdh http://www.kjetil.kjernsmo.net/foaf#me http://norman.walsh.name/knows/who/robin-berjon http://twitter.com/pom http://www.kjetil.kjernsmo.net/foaf#me http://norman.walsh.name/knows/who/robin-berjon http://twitter.com/mattb http://www.kjetil.kjernsmo.net/foaf#me http://norman.walsh.name/knows/who/robin-berjon http://twitter.com/davorg http://www.kjetil.kjernsmo.net/foaf#me http://norman.walsh.name/knows/who/robin-berjon http://twitter.com/distobj http://www.kjetil.kjernsmo.net/foaf#me http://norman.walsh.name/knows/who/robin-berjon http://twitter.com/perigrin .... &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Without the inference, we get no matches. This is because the data in question has one graph per FOAF file, and blank nodes for persons. No graph references any person outside the ones in the graph. So if somebody is mentioned as known, then without the inference there is no way to get to what that person&amp;#39;s FOAF file says, since the same individual will be a different blank node there. The declaration in the context named &lt;code&gt;b3sifp&lt;/code&gt; just means that all things with a matching &lt;code&gt;foaf:name&lt;/code&gt; or &lt;code&gt;foaf:mbox_sha1sum&lt;/code&gt; are the same.&lt;/p&gt; &lt;p&gt;Sameness means that two are the same for purposes of &lt;code&gt;DISTINCT&lt;/code&gt; or &lt;code&gt;GROUP BY&lt;/code&gt;, and if two are the same, then both have the &lt;code&gt;UNION&lt;/code&gt; of all of the properties of both.&lt;/p&gt; &lt;p&gt;If this were a naive smoosh, then the individuals would have all the same properties but would not be the same for &lt;code&gt;DISTINCT&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;If we have complex application rules for determining whether individuals are the same, then one can materialize &lt;code&gt;owl:sameAs&lt;/code&gt; triples and keep them in a separate graph. In this way, the original data is not contaminated and the materialized volume stays reasonable â nothing like the blow-up of duplicating properties across instances.&lt;/p&gt; &lt;p&gt;The pro-smoosh argument is that if every duplicate makes exactly the same statements, then there is no great blow-up. Best and worst cases will always depend on the data. In rough terms, the more &lt;i&gt;ad hoc&lt;/i&gt; the use, the less desirable the materialization. If the usage pattern is really set, then a relational-style application-specific representation with identity resolved at load time will perform best. We can do that too, but so can others.&lt;/p&gt; &lt;p&gt;The principal point is about agility as concerns the inference. Run time is more agile than materialization, and if the rules change or if different users have different needs, then materialization runs into trouble. When talking web scale, having multiple users is a given; it is very uneconomical to give everybody their own copy, and the likelihood of a user accessing any significant part of the corpus is minimal. Even if the queries were not limited, the user would typically not wait for the answer of a query doing a scan or aggregation over 1 billion &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id1156a550&quot;&gt;blog&lt;/a&gt; posts or something of the sort. So queries will typically be selective. Selective means that they do not access all of the data, hence do not benefit from ready-made materialization for things they do not even look at. &lt;/p&gt; &lt;p&gt;The exception is corpus-wide statistics queries. But these will not be done in interactive time anyway, and will not be done very often. Plus, since these do not typically run all in memory, these are disk bound. And when things are disk bound, size matters. Reading extra entailment on the way is just a performance penalty.&lt;/p&gt; &lt;p&gt;Enough talk. Time for an experiment. We take the Yahoo and Falcon web crawls from the Billion Triples Challenge set, and do two things with the FOAF data in them:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Resolve identity at insert time. We remove duplicate person URIs, and give the single &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id11317008&quot;&gt;URI&lt;/a&gt; all the properties of all the duplicate URIs. We expect these to be most often repeats. If a person references another person, we normalize this reference to go to the single URI of the referenced person.&lt;/li&gt; &lt;li&gt;Give every duplicate URI of a person all the properties of all the duplicates. If these are the same value, the data should not get much bigger, or so we think.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;For the experiment, we will consider two people the same if they have the same &lt;code&gt;foaf:name&lt;/code&gt; and are both instances of &lt;code&gt;foaf:Person&lt;/code&gt;. This gets some extra hits but should not be statistically significant.&lt;/p&gt; &lt;p&gt;The following is a commented &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id110945b0&quot;&gt;SQL&lt;/a&gt; script performing the smoosh. We play with internal IDs of things, thus some of these operations cannot be done in SPARQL alone. We use SPARQL where possible for readability. As the documentation states, &lt;code&gt;iri_to_id&lt;/code&gt; converts from the qualified name of an IRI to its ID and &lt;code&gt;id_to_iri&lt;/code&gt; does the reverse.&lt;/p&gt; &lt;p&gt;We count the triples that enter into the smoosh:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;-- the name is an existence because else we&amp;#39;d get several times more due to -- the names occurring in many graphs &lt;br /&gt; sparql SELECT COUNT(*) WHERE { { SELECT DISTINCT ?person WHERE { ?person a foaf:Person } } . FILTER ( bif:exists ( SELECT (1) WHERE { ?person foaf:name ?nn } ) ) . ?person ?p ?o };&lt;br /&gt; -- We get 3284674 &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;We make a few tables for intermediate results.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;-- For each distinct name, gather the properties and objects from -- all subjects with this name &lt;br /&gt; CREATE TABLE name_prop ( np_name ANY, np_p IRI_ID_8, np_o ANY, PRIMARY KEY ( np_name, np_p, np_o ) ); ALTER INDEX name_prop ON name_prop PARTITION ( np_name VARCHAR (-1, 0hexffff) );&lt;br /&gt; -- Map from name to canonical IRI used for the name &lt;br /&gt; CREATE TABLE name_iri ( ni_name ANY PRIMARY KEY, ni_s IRI_ID_8 ); ALTER INDEX name_iri ON name_iri PARTITION ( ni_name VARCHAR (-1, 0hexffff) );&lt;br /&gt; -- Map from person IRI to canonical person IRI&lt;br /&gt; CREATE TABLE pref_iri ( i IRI_ID_8, pref IRI_ID_8, PRIMARY KEY ( i ) ); ALTER INDEX pref_iri ON pref_iri PARTITION ( i INT (0hexffff00) );&lt;br /&gt; -- a table for the materialization where all aliases get all properties of every other &lt;br /&gt; CREATE TABLE smoosh_ct ( s IRI_ID_8, p IRI_ID_8, o ANY, PRIMARY KEY ( s, p, o ) ); ALTER INDEX smoosh_ct ON smoosh_ct PARTITION ( s INT (0hexffff00) );&lt;br /&gt; -- disable transaction log and enable row auto-commit. This is necessary, otherwise -- bulk operations are done transactionally and they will run out of rollback space.&lt;br /&gt; LOG_ENABLE (2);&lt;br /&gt; -- Gather all the properties of all persons with a name under that name. -- INSERT SOFT means that duplicates are ignored &lt;br /&gt; INSERT SOFT name_prop SELECT &amp;quot;n&amp;quot;, &amp;quot;p&amp;quot;, &amp;quot;o&amp;quot; FROM ( sparql DEFINE output:valmode &amp;quot;LONG&amp;quot; SELECT ?n ?p ?o WHERE { ?x a foaf:Person . ?x foaf:name ?n . ?x ?p ?o } ) xx ;&lt;br /&gt; -- Now choose for each name the canonical IRI &lt;br /&gt; INSERT INTO name_iri SELECT np_name, ( SELECT MIN (s) FROM rdf_quad WHERE o = np_name AND p = IRI_TO_ID (&amp;#39;http://xmlns.com/foaf/0.1/name&amp;#39;) ) AS mini FROM name_prop WHERE np_p = IRI_TO_ID (&amp;#39;http://xmlns.com/foaf/0.1/name&amp;#39;) ;&lt;br /&gt; -- For each person IRI, map to the canonical IRI of that person &lt;br /&gt; INSERT SOFT pref_iri (i, pref) SELECT s, ni_s FROM name_iri, rdf_quad WHERE o = ni_name AND p = IRI_TO_ID (&amp;#39;http://xmlns.com/foaf/0.1/name&amp;#39;) ;&lt;br /&gt; -- Make a graph where all persons have one iri with all the properties of all aliases -- and where person-to-person refs are canonicalized&lt;br /&gt; INSERT SOFT rdf_quad (g,s,p,o) SELECT IRI_TO_ID (&amp;#39;psmoosh&amp;#39;), ni_s, np_p, COALESCE ( ( SELECT pref FROM pref_iri WHERE i = np_o ), np_o ) FROM name_prop, name_iri WHERE ni_name = np_name OPTION ( loop, quietcast ) ;&lt;br /&gt; -- A little explanation: The properties of names are copied into rdf_quad with the name -- replaced with its canonical IRI. If the object has a canonical IRI, this is used as -- the object, else the object is unmodified. This is the COALESCE with the sub-query.&lt;br /&gt; -- This takes a little time. To check on the progress, take another connection to the -- server and do &lt;br /&gt; STATUS (&amp;#39;cluster&amp;#39;);&lt;br /&gt; -- It will return something like -- Cluster 4 nodes, 35 s. 108 m/s 1001 KB/s 75% cpu 186% read 12% clw threads 5r 0w 0i -- buffers 549481 253929 d 8 w 0 pfs&lt;br /&gt; -- Now finalize the state; this makes it permanent. Else the work will be lost on server -- failure, since there was no transaction log &lt;br /&gt; CL_EXEC (&amp;#39;checkpoint&amp;#39;);&lt;br /&gt; -- See what we got&lt;br /&gt; sparql SELECT COUNT (*) FROM &amp;lt;psmoosh&amp;gt; WHERE {?s ?p ?o};&lt;br /&gt; -- This is 2253102&lt;br /&gt; -- Now make the copy where all have the properties of all synonyms. This takes so much -- space we do not insert it as RDF quads, but make a special table for it so that we can -- run some statistics. This saves time.&lt;br /&gt; INSERT SOFT smoosh_ct (s, p, o) SELECT s, np_p, np_o FROM name_prop, rdf_quad WHERE o = np_name AND p = IRI_TO_ID (&amp;#39;http://xmlns.com/foaf/0.1/name&amp;#39;) ;&lt;br /&gt; -- as above, INSERT SOFT so as to ignore duplicates &lt;br /&gt; SELECT COUNT (*) FROM smoosh_ct;&lt;br /&gt; -- This is 167360324&lt;br /&gt; -- Find out where the bloat comes from &lt;br /&gt; SELECT TOP 20 COUNT (*), ID_TO_IRI (p) FROM smoosh_ct GROUP BY p ORDER BY 1 DESC; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;The results are:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;54728777 http://www.w3.org/2002/07/owl#sameAs 48543153 http://xmlns.com/foaf/0.1/knows 13930234 http://www.w3.org/2000/01/rdf-schema#seeAlso 12268512 http://xmlns.com/foaf/0.1/interest 11415867 http://xmlns.com/foaf/0.1/nick 6683963 http://xmlns.com/foaf/0.1/weblog 6650093 http://xmlns.com/foaf/0.1/depiction 4231946 http://xmlns.com/foaf/0.1/mbox_sha1sum 4129629 http://xmlns.com/foaf/0.1/homepage 1776555 http://xmlns.com/foaf/0.1/holdsAccount 1219525 http://xmlns.com/foaf/0.1/based_near 305522 http://www.w3.org/1999/02/22-rdf-syntax-ns#type 274965 http://xmlns.com/foaf/0.1/name 155131 http://xmlns.com/foaf/0.1/dateOfBirth 153001 http://xmlns.com/foaf/0.1/img 111130 http://www.w3.org/2001/vcard-rdf/3.0#ADR 52930 http://xmlns.com/foaf/0.1/gender 48517 http://www.w3.org/2004/02/skos/core#subject 45697 http://www.w3.org/2000/01/rdf-schema#label 44860 http://purl.org/vocab/bio/0.1/olb &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Now compare with the predicate distribution of the smoosh with identities canonicalized &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;sparql SELECT COUNT (*) ?p FROM &amp;lt;psmoosh&amp;gt; WHERE { ?s ?p ?o } GROUP BY ?p ORDER BY 1 DESC LIMIT 20;&lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Results are:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;748311 http://xmlns.com/foaf/0.1/knows 548391 http://xmlns.com/foaf/0.1/interest 140531 http://www.w3.org/2000/01/rdf-schema#seeAlso 105273 http://www.w3.org/1999/02/22-rdf-syntax-ns#type 78497 http://xmlns.com/foaf/0.1/name 48099 http://www.w3.org/2004/02/skos/core#subject 45179 http://xmlns.com/foaf/0.1/depiction 40229 http://www.w3.org/2000/01/rdf-schema#comment 38272 http://www.w3.org/2000/01/rdf-schema#label 37378 http://xmlns.com/foaf/0.1/nick 37186 http://dbpedia.org/property/abstract 34003 http://xmlns.com/foaf/0.1/img 26182 http://xmlns.com/foaf/0.1/homepage 23795 http://www.w3.org/2002/07/owl#sameAs 17651 http://xmlns.com/foaf/0.1/mbox_sha1sum 17430 http://xmlns.com/foaf/0.1/dateOfBirth 15586 http://xmlns.com/foaf/0.1/page 12869 http://dbpedia.org/property/reference 12497 http://xmlns.com/foaf/0.1/weblog 12329 http://blogs.yandex.ru/schema/foaf/school &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;We can drop the &lt;code&gt;owl:sameAs&lt;/code&gt; triples from the count, so the bloat is a bit less by that but it still is tens of times larger than the canonicalized copy or the initial state.&lt;/p&gt; &lt;p&gt;Now, when we try using the psmoosh graph, we still get different results from the results with the original data. This is because &lt;code&gt;foaf:knows&lt;/code&gt; relations to things with no &lt;code&gt;foaf:name&lt;/code&gt; are not represented in the smoosh. The exist:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;sparql SELECT COUNT (*) WHERE { ?s foaf:knows ?thing . FILTER ( !bif:exists ( SELECT (1) WHERE { ?thing foaf:name ?nn } ) ) };&lt;br /&gt; -- 1393940 &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;So the smoosh graph is not an accurate rendition of the social network. It would have to be smooshed further to be that, since the data in the sample is quite irregular. But we do not go that far here.&lt;/p&gt; &lt;p&gt;Finally, we calculate the smoosh blow up factors. We do not include &lt;code&gt;owl:sameAs&lt;/code&gt; triples in the counts.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;select (167360324 - 54728777) / 3284674.0; 34.290022997716059&lt;br /&gt; select 2229307 / 3284674.0; = 0.678699621332284 &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;So, to get a smoosh that is not really the equivalent of the original, either multiply the original triple count by 34 or 0.68, depending on whether synonyms are collapsed or not.&lt;/p&gt; &lt;p&gt;Making the smooshes does not take very long, some minutes for the small one. Inserting the big one would be longer, a couple of hours maybe. It was 33 minutes for filling the &lt;code&gt;smoosh_ct&lt;/code&gt; table. The metrics were not with optimal tuning so the performance numbers just serve to show that smooshing takes time. Probably more time than allowable in an interactive situation, no matter how the process is optimized.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Anytime: No Query Is Too Complex (updated)</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-12-11#1495</atom:id>
  <atom:published>2008-12-11T16:13:10Z</atom:published>
  <atom:updated>2008-12-12T10:29:23-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;A persistent argument against the &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id1199d5f8&quot;&gt;linked data&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Giant_Global_Graph&quot; id=&quot;link-id116f2730&quot;&gt;web&lt;/a&gt; has been the cost, scalability, and vulnerability of &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id14e423c0&quot;&gt;SPARQL&lt;/a&gt; end points, should the linked data web gain serious mass and traffic.&lt;/p&gt; &lt;p&gt;As we are on the brink of hosting the whole &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id1376a8b0&quot;&gt;DBpedia&lt;/a&gt; &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id113c8d20&quot;&gt;Linked Open Data&lt;/a&gt; cloud in &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id11425a78&quot;&gt;Virtuoso&lt;/a&gt; Cluster, we have had to think of what we&amp;#39;ll do if, for example, somebody decides to count all the triples in the set.&lt;/p&gt; &lt;p&gt;How can we encourage clever use of &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id116f1210&quot;&gt;data&lt;/a&gt;, yet not die if somebody, whether through malice, lack of understanding, or simple bad luck, submits impossible queries?&lt;/p&gt; &lt;p&gt;Restricting the language is not the way; any language beyond text search can express queries that will take forever to execute. Also, just returning a timeout after the first second (or whatever arbitrary time period) leaves people in the dark and does not produce an impression of responsiveness. So we decided to allow arbitrary queries, and if a quota of time or resources is exceeded, we return partial results and indicate how much processing was done.&lt;/p&gt; &lt;p&gt;Here we are looking for the top 10 people whom people claim to know without being known in return, like this:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;SQL&amp;gt; sparql SELECT ?celeb, COUNT (*) WHERE { ?claimant foaf:knows ?celeb . FILTER (!bif:exists ( SELECT (1) WHERE { ?celeb foaf:knows ?claimant } ) ) } GROUP BY ?celeb ORDER BY DESC 2 LIMIT 10;&lt;br /&gt; celeb callret-1 VARCHAR VARCHAR ________________________________________ _________&lt;br /&gt; http://twitter.com/BarackObama 252 http://twitter.com/brianshaler 183 http://twitter.com/newmediajim 101 http://twitter.com/HenryRollins 95 http://twitter.com/wilw 81 http://twitter.com/stevegarfield 78 http://twitter.com/cote 66 mailto:adam.westerski@deri.org 66 mailto:michal.zaremba@deri.org 66 http://twitter.com/dsifry 65&lt;br /&gt; *** Error S1TAT: [Virtuoso Driver][Virtuoso Server]RC...: Returning incomplete results, query interrupted by result timeout. Activity: 1R rnd 0R seq 0P disk 1.346KB / 3 messages&lt;br /&gt; SQL&amp;gt; sparql SELECT ?celeb, COUNT (*) WHERE { ?claimant foaf:knows ?celeb . FILTER (!bif:exists ( SELECT (1) WHERE { ?celeb foaf:knows ?claimant } ) ) } GROUP BY ?celeb ORDER BY DESC 2 LIMIT 10;&lt;br /&gt; celeb callret-1 VARCHAR VARCHAR ________________________________________ _________&lt;br /&gt; http://twitter.com/JasonCalacanis 496 http://twitter.com/Twitterrific 466 http://twitter.com/ev 442 http://twitter.com/BarackObama 356 http://twitter.com/laughingsquid 317 http://twitter.com/gruber 294 http://twitter.com/chrispirillo 259 http://twitter.com/ambermacarthur 224 http://twitter.com/t 219 http://twitter.com/johnedwards 188&lt;br /&gt; *** Error S1TAT: [Virtuoso Driver][Virtuoso Server]RC...: Returning incomplete results, query interrupted by result timeout. Activity: 329R rnd 44.6KR seq 342P disk 638.4KB / 46 messages&lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;The first query read all data from disk; the second run had the working set from the first and could read some more before time ran out, hence the results were better. But the response time was the same.&lt;/p&gt; &lt;p&gt;If one has a query that just loops over consecutive joins, like in basic SPARQL, interrupting the processing after a set time period is simple. But such queries are not very interesting. To give meaningful partial answers with nested aggregation and sub-queries requires some more tricks. The basic idea is to terminate the innermost active sub-query/aggregation at the first timeout, and extend the timeout a bit so that accumulated results get fed to the next aggregation, like from the &lt;code&gt;GROUP BY&lt;/code&gt; to the &lt;code&gt;ORDER BY&lt;/code&gt;. If this again times out, we continue with the next outer layer. This guarantees that results are delivered if there were any results found for which the query pattern is true. False results are not produced, except in cases where there is comparison with a count and the count is smaller than it would be with the full evaluation.&lt;/p&gt; &lt;p&gt;One can also use this as a basis for paid services. The cutoff does not have to be time; it can also be in other units, making it insensitive to concurrent usage and variations of working set.&lt;/p&gt; &lt;p&gt;This system will be deployed on our &lt;a href=&quot;http://challenge.semanticweb.org/&quot; id=&quot;link-id11500a58&quot;&gt;Billion Triples Challenge&lt;/a&gt; &lt;a href=&quot;http://b3s.openlinksw.com/&quot; id=&quot;link-id11683120&quot;&gt;demo instance&lt;/a&gt; in a few days, after some more testing. When Virtuoso 6 ships, all &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id1157a500&quot;&gt;LOD&lt;/a&gt; Cloud AMIs and OpenLink-hosted LOD Cloud SPARQL endpoints will have this enabled by default. (AMI users will be able to disable the feature, if desired.) The feature works with Virtuoso 6 in both single server and cluster deployment.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Anytime: No Query Is Too Complex (updated)</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-12-11#1494</atom:id>
  <atom:published>2008-12-11T16:13:10Z</atom:published>
  <atom:updated>2008-12-12T10:29:18-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;A persistent argument against the &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id1199d5f8&quot;&gt;linked data&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Giant_Global_Graph&quot; id=&quot;link-id116f2730&quot;&gt;web&lt;/a&gt; has been the cost, scalability, and vulnerability of &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id14e423c0&quot;&gt;SPARQL&lt;/a&gt; end points, should the linked data web gain serious mass and traffic.&lt;/p&gt; &lt;p&gt;As we are on the brink of hosting the whole &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id1376a8b0&quot;&gt;DBpedia&lt;/a&gt; &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id113c8d20&quot;&gt;Linked Open Data&lt;/a&gt; cloud in &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id11425a78&quot;&gt;Virtuoso&lt;/a&gt; Cluster, we have had to think of what we&amp;#39;ll do if, for example, somebody decides to count all the triples in the set.&lt;/p&gt; &lt;p&gt;How can we encourage clever use of &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id116f1210&quot;&gt;data&lt;/a&gt;, yet not die if somebody, whether through malice, lack of understanding, or simple bad luck, submits impossible queries?&lt;/p&gt; &lt;p&gt;Restricting the language is not the way; any language beyond text search can express queries that will take forever to execute. Also, just returning a timeout after the first second (or whatever arbitrary time period) leaves people in the dark and does not produce an impression of responsiveness. So we decided to allow arbitrary queries, and if a quota of time or resources is exceeded, we return partial results and indicate how much processing was done.&lt;/p&gt; &lt;p&gt;Here we are looking for the top 10 people whom people claim to know without being known in return, like this:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;SQL&amp;gt; sparql SELECT ?celeb, COUNT (*) WHERE { ?claimant foaf:knows ?celeb . FILTER (!bif:exists ( SELECT (1) WHERE { ?celeb foaf:knows ?claimant } ) ) } GROUP BY ?celeb ORDER BY DESC 2 LIMIT 10;&lt;br /&gt; celeb callret-1 VARCHAR VARCHAR ________________________________________ _________&lt;br /&gt; http://twitter.com/BarackObama 252 http://twitter.com/brianshaler 183 http://twitter.com/newmediajim 101 http://twitter.com/HenryRollins 95 http://twitter.com/wilw 81 http://twitter.com/stevegarfield 78 http://twitter.com/cote 66 mailto:adam.westerski@deri.org 66 mailto:michal.zaremba@deri.org 66 http://twitter.com/dsifry 65&lt;br /&gt; *** Error S1TAT: [Virtuoso Driver][Virtuoso Server]RC...: Returning incomplete results, query interrupted by result timeout. Activity: 1R rnd 0R seq 0P disk 1.346KB / 3 messages&lt;br /&gt; SQL&amp;gt; sparql SELECT ?celeb, COUNT (*) WHERE { ?claimant foaf:knows ?celeb . FILTER (!bif:exists ( SELECT (1) WHERE { ?celeb foaf:knows ?claimant } ) ) } GROUP BY ?celeb ORDER BY DESC 2 LIMIT 10;&lt;br /&gt; celeb callret-1 VARCHAR VARCHAR ________________________________________ _________&lt;br /&gt; http://twitter.com/JasonCalacanis 496 http://twitter.com/Twitterrific 466 http://twitter.com/ev 442 http://twitter.com/BarackObama 356 http://twitter.com/laughingsquid 317 http://twitter.com/gruber 294 http://twitter.com/chrispirillo 259 http://twitter.com/ambermacarthur 224 http://twitter.com/t 219 http://twitter.com/johnedwards 188&lt;br /&gt; *** Error S1TAT: [Virtuoso Driver][Virtuoso Server]RC...: Returning incomplete results, query interrupted by result timeout. Activity: 329R rnd 44.6KR seq 342P disk 638.4KB / 46 messages&lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;The first query read all data from disk; the second run had the working set from the first and could read some more before time ran out, hence the results were better. But the response time was the same.&lt;/p&gt; &lt;p&gt;If one has a query that just loops over consecutive joins, like in basic SPARQL, interrupting the processing after a set time period is simple. But such queries are not very interesting. To give meaningful partial answers with nested aggregation and sub-queries requires some more tricks. The basic idea is to terminate the innermost active sub-query/aggregation at the first timeout, and extend the timeout a bit so that accumulated results get fed to the next aggregation, like from the &lt;code&gt;GROUP BY&lt;/code&gt; to the &lt;code&gt;ORDER BY&lt;/code&gt;. If this again times out, we continue with the next outer layer. This guarantees that results are delivered if there were any results found for which the query pattern is true. False results are not produced, except in cases where there is comparison with a count and the count is smaller than it would be with the full evaluation.&lt;/p&gt; &lt;p&gt;One can also use this as a basis for paid services. The cutoff does not have to be time; it can also be in other units, making it insensitive to concurrent usage and variations of working set.&lt;/p&gt; &lt;p&gt;This system will be deployed on our &lt;a href=&quot;http://challenge.semanticweb.org/&quot; id=&quot;link-id11500a58&quot;&gt;Billion Triples Challenge&lt;/a&gt; &lt;a href=&quot;http://b3s.openlinksw.com/&quot; id=&quot;link-id11683120&quot;&gt;demo instance&lt;/a&gt; in a few days, after some more testing. When Virtuoso 6 ships, all &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id1157a500&quot;&gt;LOD&lt;/a&gt; Cloud AMIs and OpenLink-hosted LOD Cloud SPARQL endpoints will have this enabled by default. (AMI users will be able to disable the feature, if desired.) The feature works with Virtuoso 6 in both single server and cluster deployment.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>An Example of RDF Scalability</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-11-27#1488</atom:id>
  <atom:published>2008-11-27T11:23:47Z</atom:published>
  <atom:updated>2008-12-01T12:09:55.000008-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We hear it to exhaustion, where is &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x14e828d8&quot;&gt;RDF&lt;/a&gt; scalability? We have been suggesting for a while that this is a solved question. I will here give some concrete numbers to back this.&lt;/p&gt; &lt;p&gt;The scalability dream is to add hardware and get increased performance in proportion to the power the added component has when measured by itself. A corollary dream is to take scalability effects that are measured in a simple task and see them in a complex task.&lt;/p&gt; &lt;p&gt;Below we show how we do 3.3 million random triple lookups per second on two 8 core commodity servers producing complete results, joining across partitions. On a single 4 core server, the figure is about 1 million lookups per second. With a single thread, it is about 250K lookups per second. This is the good case. But even our worse case is quite decent.&lt;/p&gt; &lt;p&gt;We took a simple &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x14fef850&quot;&gt;SPARQL&lt;/a&gt; query, counting how many people say they reciprocally know each other. In the &lt;a href=&quot;http://challenge.semanticweb.org/&quot; id=&quot;link-id0x1bca04d0&quot;&gt;Billion Triples Challenge&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1be84e88&quot;&gt;data&lt;/a&gt; set, there are 25M &lt;code&gt;foaf:knows&lt;/code&gt; quads of which 92K are reciprocal. &lt;i&gt;Reciprocal&lt;/i&gt; here means that when x knows y in some graph, y knows x in the same or any other graph.&lt;/p&gt; &lt;pre&gt;SELECT COUNT (*) WHERE { ?p1 foaf:knows ?p2 . ?p2 foaf:knows ?p1 }&lt;/pre&gt; &lt;p&gt;There is no guarantee that the triple of &lt;code&gt;x knows y&lt;/code&gt; is in the same partition as the triple y knows x. Thus the join is randomly distributed, n partitions to n partitions.&lt;/p&gt; &lt;p&gt;We left this out of the Billion Triples Challenge demo because this did not run fast enough for our liking. Since then, we have corrected this.&lt;/p&gt; &lt;p&gt;If run on a single thread, this query would be a loop over all the quads with a predicate of &lt;code&gt;foaf:knows&lt;/code&gt;, and an inner loop looking for a quad with 3 of 4 fields given (&lt;code&gt;SPO&lt;/code&gt;). If we have a partitioned situation, we have a loop over all the &lt;code&gt;foaf:knows&lt;/code&gt; quads in each partition, and an inner lookup looking for the reciprocal &lt;code&gt;foaf:knows&lt;/code&gt; quad in whatever partition it may be found.&lt;/p&gt; &lt;p&gt;We have implemented this with two different message patterns: &lt;/p&gt; &lt;ol&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Centralized:&lt;/b&gt; One process reads all the &lt;code&gt;foaf:knows&lt;/code&gt; quads from all processes. Every 50K quads, it sends a batch of reciprocal quad checks to each partition that could contain a reciprocal quad. Each partition keeps the count of found reciprocal quads, and these are gathered and added up at the end.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Symmetrical:&lt;/b&gt; Each process reads the &lt;code&gt;foaf:knows&lt;/code&gt; quads in its partition, and sends a batch of checks to each process that could have the reciprocal &lt;code&gt;foaf:knows&lt;/code&gt; quad every 50K quads. At the end, the counts are gathered from all partitions. There is some additional control traffic but we do not go into its details here.&lt;/p&gt; &lt;/li&gt; &lt;/ol&gt; &lt;p&gt;Below is the result measured on 2 machines each with 2 x Xeon 5345 (quad core; total 8 cores), 16G RAM, and each machine running 6 &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x16642a90&quot;&gt;Virtuoso&lt;/a&gt; instances. The interconnect is dual 1-Gbit ethernet. Numbers are with warm cache.&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;Centralized: 35,543 msec, 728,634 sequential + random lookups per second &lt;br /&gt; Cluster 12 nodes, 35 s. 1072 m/s 39,085 KB/s 316% cpu ... &lt;br /&gt; &lt;br /&gt; Symmetrical: 7706 msec, 3,360,740 sequential + random lookups per second &lt;br /&gt; Cluster 12 nodes, 7 s. 572 m/s 16,983 KB/s 1137% cpu ...&lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;The second line is the summary from the cluster status report for the duration of the query. The interesting numbers are the KB/s and the %CPU. The former is the cross-sectional data transfer rate for intra-cluster communication; the latter is the consolidated CPU utilization, where a constantly-busy core counts for 100%. The point to note is that the symmetrical approach takes 4x less real time with under half the data transfer rate. Further, when using multiple machines, the speed of a single interface does not limit the overall throughput as it does in the centralized situation.&lt;/p&gt; &lt;p&gt;These figures represent the best and worst cases of distributed &lt;code&gt;JOIN&lt;/code&gt;ing. If we have a straight sequence of &lt;code&gt;JOIN&lt;/code&gt;s, with single pattern optionals and existences and the order in which results are produced is not significant (i.e., there is aggregation, existence test, or &lt;code&gt;ORDER BY&lt;/code&gt;), the symmetrical pattern is applicable. On the other hand, if there are multiple triple pattern optionals, complex sub-queries, &lt;code&gt;DISTINCT&lt;/code&gt;s in the middle of the query, or results have to be produced in the order of an index, then the centralized approach must be used at least part of the time.&lt;/p&gt; &lt;p&gt;Also, if we must make transitive closures, which can be thought of as an extension of a &lt;code&gt;DISTINCT&lt;/code&gt; in a subquery, we must pass the data through a single point before moving the bindings to the next &lt;code&gt;JOIN&lt;/code&gt; in the sequence. This happens for example in resolving &lt;code&gt;&lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0x14e1a160&quot;&gt;owl&lt;/a&gt;:sameAs&lt;/code&gt; at run time. However, the good news is that performance does not fall much below the centralized figure even when there are complex nested structures with intermediate transitive closures, &lt;code&gt;DISTINCT&lt;/code&gt;s, complex existence tests, etc., that require passing all intermediate results through a central point. No matter the complexity, it is always possible to vector some tens-of-thousands of variable bindings into a single message exchange. And if there are not that many intermediate results, then single query execution time is not a problem anyhow.&lt;/p&gt; &lt;p&gt;For our sample query, we would get still more speed by using a partitioned hash join, filling the hash from the &lt;code&gt;foaf:knows&lt;/code&gt; relations and then running the &lt;code&gt;foaf:knows&lt;/code&gt; relations through the hash. If the hash size is right, a hash lookup is somewhat better than an index lookup. The problem is that when the hash join is not the right solution, it is an expensive mistake: the best case is good; the worst case is very bad. But if there is no index then hash join is better than nothing. One problem of hash joins is that they make temporary data structures which, if large, will skew the working set. One must be quite sure of the cardinality before it is safe to try a hash join. So we do not do hash joins with RDF, but we do use them sometimes with relational data. &lt;/p&gt; &lt;p&gt;These same methods apply to relational data just as well. This does not make generic RDF storage outperform an application-specific relational representation on the same platform, as the latter benefits from all the same optimizations, but in terms of sheer numbers, this makes RDF representation an option where it was not an option before. RDF is all about not needing to design the schema around the queries, and not needing to limit what joins with what else.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>An Example of RDF Scalability</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-11-27#1487</atom:id>
  <atom:published>2008-11-27T11:23:47Z</atom:published>
  <atom:updated>2008-12-01T12:09:49.000005-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We hear it to exhaustion, where is &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1eab4128&quot;&gt;RDF&lt;/a&gt; scalability? We have been suggesting for a while that this is a solved question. I will here give some concrete numbers to back this.&lt;/p&gt; &lt;p&gt;The scalability dream is to add hardware and get increased performance in proportion to the power the added component has when measured by itself. A corollary dream is to take scalability effects that are measured in a simple task and see them in a complex task.&lt;/p&gt; &lt;p&gt;Below we show how we do 3.3 million random triple lookups per second on two 8 core commodity servers producing complete results, joining across partitions. On a single 4 core server, the figure is about 1 million lookups per second. With a single thread, it is about 250K lookups per second. This is the good case. But even our worse case is quite decent.&lt;/p&gt; &lt;p&gt;We took a simple &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x15cb3da8&quot;&gt;SPARQL&lt;/a&gt; query, counting how many people say they reciprocally know each other. In the &lt;a href=&quot;http://challenge.semanticweb.org/&quot; id=&quot;link-id0x1bfb7a00&quot;&gt;Billion Triples Challenge&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xa57187d8&quot;&gt;data&lt;/a&gt; set, there are 25M &lt;code&gt;foaf:knows&lt;/code&gt; quads of which 92K are reciprocal. &lt;i&gt;Reciprocal&lt;/i&gt; here means that when x knows y in some graph, y knows x in the same or any other graph.&lt;/p&gt; &lt;pre&gt;SELECT COUNT (*) WHERE { ?p1 foaf:knows ?p2 . ?p2 foaf:knows ?p1 }&lt;/pre&gt; &lt;p&gt;There is no guarantee that the triple of &lt;code&gt;x knows y&lt;/code&gt; is in the same partition as the triple y knows x. Thus the join is randomly distributed, n partitions to n partitions.&lt;/p&gt; &lt;p&gt;We left this out of the Billion Triples Challenge demo because this did not run fast enough for our liking. Since then, we have corrected this.&lt;/p&gt; &lt;p&gt;If run on a single thread, this query would be a loop over all the quads with a predicate of &lt;code&gt;foaf:knows&lt;/code&gt;, and an inner loop looking for a quad with 3 of 4 fields given (&lt;code&gt;SPO&lt;/code&gt;). If we have a partitioned situation, we have a loop over all the &lt;code&gt;foaf:knows&lt;/code&gt; quads in each partition, and an inner lookup looking for the reciprocal &lt;code&gt;foaf:knows&lt;/code&gt; quad in whatever partition it may be found.&lt;/p&gt; &lt;p&gt;We have implemented this with two different message patterns: &lt;/p&gt; &lt;ol&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Centralized:&lt;/b&gt; One process reads all the &lt;code&gt;foaf:knows&lt;/code&gt; quads from all processes. Every 50K quads, it sends a batch of reciprocal quad checks to each partition that could contain a reciprocal quad. Each partition keeps the count of found reciprocal quads, and these are gathered and added up at the end.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Symmetrical:&lt;/b&gt; Each process reads the &lt;code&gt;foaf:knows&lt;/code&gt; quads in its partition, and sends a batch of checks to each process that could have the reciprocal &lt;code&gt;foaf:knows&lt;/code&gt; quad every 50K quads. At the end, the counts are gathered from all partitions. There is some additional control traffic but we do not go into its details here.&lt;/p&gt; &lt;/li&gt; &lt;/ol&gt; &lt;p&gt;Below is the result measured on 2 machines each with 2 x Xeon 5345 (quad core; total 8 cores), 16G RAM, and each machine running 6 &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1c0c94a8&quot;&gt;Virtuoso&lt;/a&gt; instances. The interconnect is dual 1-Gbit ethernet. Numbers are with warm cache.&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;Centralized: 35,543 msec, 728,634 sequential + random lookups per second &lt;br /&gt; Cluster 12 nodes, 35 s. 1072 m/s 39,085 KB/s 316% cpu ... &lt;br /&gt; &lt;br /&gt; Symmetrical: 7706 msec, 3,360,740 sequential + random lookups per second &lt;br /&gt; Cluster 12 nodes, 7 s. 572 m/s 16,983 KB/s 1137% cpu ...&lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;The second line is the summary from the cluster status report for the duration of the query. The interesting numbers are the KB/s and the %CPU. The former is the cross-sectional data transfer rate for intra-cluster communication; the latter is the consolidated CPU utilization, where a constantly-busy core counts for 100%. The point to note is that the symmetrical approach takes 4x less real time with under half the data transfer rate. Further, when using multiple machines, the speed of a single interface does not limit the overall throughput as it does in the centralized situation.&lt;/p&gt; &lt;p&gt;These figures represent the best and worst cases of distributed &lt;code&gt;JOIN&lt;/code&gt;ing. If we have a straight sequence of &lt;code&gt;JOIN&lt;/code&gt;s, with single pattern optionals and existences and the order in which results are produced is not significant (i.e., there is aggregation, existence test, or &lt;code&gt;ORDER BY&lt;/code&gt;), the symmetrical pattern is applicable. On the other hand, if there are multiple triple pattern optionals, complex sub-queries, &lt;code&gt;DISTINCT&lt;/code&gt;s in the middle of the query, or results have to be produced in the order of an index, then the centralized approach must be used at least part of the time.&lt;/p&gt; &lt;p&gt;Also, if we must make transitive closures, which can be thought of as an extension of a &lt;code&gt;DISTINCT&lt;/code&gt; in a subquery, we must pass the data through a single point before moving the bindings to the next &lt;code&gt;JOIN&lt;/code&gt; in the sequence. This happens for example in resolving &lt;code&gt;&lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0x28005280&quot;&gt;owl&lt;/a&gt;:sameAs&lt;/code&gt; at run time. However, the good news is that performance does not fall much below the centralized figure even when there are complex nested structures with intermediate transitive closures, &lt;code&gt;DISTINCT&lt;/code&gt;s, complex existence tests, etc., that require passing all intermediate results through a central point. No matter the complexity, it is always possible to vector some tens-of-thousands of variable bindings into a single message exchange. And if there are not that many intermediate results, then single query execution time is not a problem anyhow.&lt;/p&gt; &lt;p&gt;For our sample query, we would get still more speed by using a partitioned hash join, filling the hash from the &lt;code&gt;foaf:knows&lt;/code&gt; relations and then running the &lt;code&gt;foaf:knows&lt;/code&gt; relations through the hash. If the hash size is right, a hash lookup is somewhat better than an index lookup. The problem is that when the hash join is not the right solution, it is an expensive mistake: the best case is good; the worst case is very bad. But if there is no index then hash join is better than nothing. One problem of hash joins is that they make temporary data structures which, if large, will skew the working set. One must be quite sure of the cardinality before it is safe to try a hash join. So we do not do hash joins with RDF, but we do use them sometimes with relational data. &lt;/p&gt; &lt;p&gt;These same methods apply to relational data just as well. This does not make generic RDF storage outperform an application-specific relational representation on the same platform, as the latter benefits from all the same optimizations, but in terms of sheer numbers, this makes RDF representation an option where it was not an option before. RDF is all about not needing to design the schema around the queries, and not needing to limit what joins with what else.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Vs. MySQL: Setting the Berlin Record Straight (update 2)</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-11-20#1485</atom:id>
  <atom:published>2008-11-20T11:06:11Z</atom:published>
  <atom:updated>2008-11-24T10:15:11.000021-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;In the context of the &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0xa322b58&quot;&gt;Berlin SPARQL Benchmark&lt;/a&gt;, I have repeatedly written about measurement procedures and steady state. The point is that the numbers at larger scales are unreliable due to cache behavior if one is not careful about measurement and does not have adequate warmup. Thus it came to pass that one cut of the &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0x9524730&quot;&gt;BSBM&lt;/a&gt; paper had 3 seconds for &lt;a href=&quot;http://dbpedia.org/resource/MySQL&quot; id=&quot;link-id0x2ba8db0&quot;&gt;MySQL&lt;/a&gt; and 100 for &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xa9137d0&quot;&gt;Virtuoso&lt;/a&gt;, basically through ignoring cache effects.&lt;/p&gt; &lt;p&gt;So we decided to do it ourselves.&lt;/p&gt; &lt;p&gt;The score is (updated with revised &lt;code&gt;innodb_buffer_pool_size&lt;/code&gt; setting, based on advice noted down below):&lt;/p&gt; &lt;table border=&quot;1&quot; cellspacing=&quot;2&quot; cellpadding=&quot;5&quot;&gt; &lt;tr&gt; &lt;th&gt;n-clients&lt;/th&gt; &lt;th&gt;Virtuoso&lt;/th&gt; &lt;th&gt;MySQL &lt;br /&gt; (with increased buffer pool size)&lt;/th&gt; &lt;th&gt;MySQL &lt;br /&gt; (with default buffer poll size)&lt;/th&gt; &lt;/tr&gt; &lt;tr align=&quot;right&quot;&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt; 41,161.33&lt;/td&gt; &lt;td&gt; 27,023.11 &lt;/td&gt; &lt;td&gt; 12,171.41&lt;/td&gt; &lt;/tr&gt; &lt;tr align=&quot;right&quot;&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt; 127,918.30&lt;/td&gt; &lt;td&gt; (pending) &lt;/td&gt; &lt;td&gt; 37,566.82&lt;/td&gt; &lt;/tr&gt; &lt;tr align=&quot;right&quot;&gt; &lt;td&gt;8&lt;/td&gt; &lt;td&gt; 218,162.29 &lt;/td&gt; &lt;td&gt; 105,524.23 &lt;/td&gt; &lt;td&gt; 51,104.39 &lt;/td&gt; &lt;/tr&gt; &lt;tr align=&quot;right&quot;&gt; &lt;td&gt;16&lt;/td&gt; &lt;td&gt; 214,763.58 &lt;/td&gt; &lt;td&gt; 98,852.42 &lt;/td&gt; &lt;td&gt; 47,589.18 &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;p&gt;The metric is the query mixes per hour from the BSBM test driver output. For the interested, the complete output is &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/texts/bsbmres.txt&quot; id=&quot;link-id1119f770&quot;&gt;here&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The benchmark is pure &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x2b61c88&quot;&gt;SQL&lt;/a&gt;, nothing to do with &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x17a6d408&quot;&gt;SPARQL&lt;/a&gt; or &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x9a0a968&quot;&gt;RDF&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The hardware is 2 x Xeon 5345 (2 x quad core, 2.33 GHz), 16 G RAM. The OS is 64-bit Debian Linux.&lt;/p&gt; &lt;p&gt;The benchmark was run at a scale of 200,000. Each run had 2000 warm-up query mixes and 500 measured query mixes, which gives steady state, eliminating any effects of OS disk cache and the like. Both databases were configured to use 8G for disk cache. The test effectively runs from memory. We ran an analyze table on each MySQL table but noticed that this had no effect. Virtuoso does the stats sampling on the go; possibly MySQL also since the explicit stats did not make any difference. The MySQL tables were served by the InnoDB engine. MySQL appears to cache results of queries in some cases. This was not apparent in the tests.&lt;/p&gt; &lt;p&gt;The versions are 5.09 for Virtuoso and 5.1.29 for MySQL. You can download and examine --&lt;/p&gt; &lt;ul&gt; &lt;li&gt; &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/texts/virtuoso.ini&quot; id=&quot;link-id14fe17f0&quot;&gt;Virtuoso configuration file&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/texts/my.cnf&quot; id=&quot;link-id116fe490&quot;&gt;MySQL configuration file&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/texts/create_tables_and_rdf_view.sql&quot; id=&quot;link-id14ce9268&quot;&gt;Table definitions &amp;amp; RDF views&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/texts/mysqlinx.sql&quot; id=&quot;link-id1535e298&quot;&gt;Indexes on MySQL tables&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;p&gt; &lt;strike&gt;MySQL ought to do better. We suspect that here, just as in the TPC-D experiment we made way back, the query plans are not quite right. Also we rarely saw over 300% CPU utilization for MySQL. It is possible there is a config parameter that affects this. The public is invited to tell us about such.&lt;/strike&gt; &lt;/p&gt; &lt;p&gt; &lt;b&gt;Update:&lt;/b&gt; &lt;/p&gt; &lt;p&gt;Andreas Schultz of the BSBM team advised us to increase the &lt;code&gt;innodb_buffer_pool_size&lt;/code&gt; setting in the MySQL config. We did and it produced some improvement. Indeed, this is more like it, as we now see CPU utilization around 700% instead of the 300% in the previously published run, which rendered it suspect. Also, our experiments with TPC-D led us to expect better. We ran these things a few times so as to have warm cache.&lt;/p&gt; &lt;p&gt;On the first run, we noticed that the Innodb warm up time was somewhere well in excess of 2000 query mixes. Another time, we should make a graph of throughput as a function of time for both MySQL and Virtuoso. We recently made a greedy prefetch hack that should give us some mileage there. For the next BSBM, all we can advise is to run larger scale system for half an hour first and then measure and then measure again. If the second measurement is the same as the first then it is good.&lt;/p&gt; &lt;p&gt;As always, since MySQL is not our specialty, we confidently invite the public to tell us how to make it run faster. So, unless something more turns up, our next trial is a revisit of &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x17a20498&quot;&gt;TPC-H&lt;/a&gt;.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Vs. MySQL: Setting the Berlin Record Straight (update 2)</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-11-20#1484</atom:id>
  <atom:published>2008-11-20T11:06:11Z</atom:published>
  <atom:updated>2008-11-24T10:15:05-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;In the context of the &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0xa5314d8&quot;&gt;Berlin SPARQL Benchmark&lt;/a&gt;, I have repeatedly written about measurement procedures and steady state. The point is that the numbers at larger scales are unreliable due to cache behavior if one is not careful about measurement and does not have adequate warmup. Thus it came to pass that one cut of the &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0x18482c20&quot;&gt;BSBM&lt;/a&gt; paper had 3 seconds for &lt;a href=&quot;http://dbpedia.org/resource/MySQL&quot; id=&quot;link-id0xb8c54de8&quot;&gt;MySQL&lt;/a&gt; and 100 for &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x189b2210&quot;&gt;Virtuoso&lt;/a&gt;, basically through ignoring cache effects.&lt;/p&gt; &lt;p&gt;So we decided to do it ourselves.&lt;/p&gt; &lt;p&gt;The score is (updated with revised &lt;code&gt;innodb_buffer_pool_size&lt;/code&gt; setting, based on advice noted down below):&lt;/p&gt; &lt;table border=&quot;1&quot; cellspacing=&quot;2&quot; cellpadding=&quot;5&quot;&gt; &lt;tr&gt; &lt;th&gt;n-clients&lt;/th&gt; &lt;th&gt;Virtuoso&lt;/th&gt; &lt;th&gt;MySQL &lt;br /&gt; (with increased buffer pool size)&lt;/th&gt; &lt;th&gt;MySQL &lt;br /&gt; (with default buffer poll size)&lt;/th&gt; &lt;/tr&gt; &lt;tr align=&quot;right&quot;&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt; 41,161.33&lt;/td&gt; &lt;td&gt; 27,023.11 &lt;/td&gt; &lt;td&gt; 12,171.41&lt;/td&gt; &lt;/tr&gt; &lt;tr align=&quot;right&quot;&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt; 127,918.30&lt;/td&gt; &lt;td&gt; (pending) &lt;/td&gt; &lt;td&gt; 37,566.82&lt;/td&gt; &lt;/tr&gt; &lt;tr align=&quot;right&quot;&gt; &lt;td&gt;8&lt;/td&gt; &lt;td&gt; 218,162.29 &lt;/td&gt; &lt;td&gt; 105,524.23 &lt;/td&gt; &lt;td&gt; 51,104.39 &lt;/td&gt; &lt;/tr&gt; &lt;tr align=&quot;right&quot;&gt; &lt;td&gt;16&lt;/td&gt; &lt;td&gt; 214,763.58 &lt;/td&gt; &lt;td&gt; 98,852.42 &lt;/td&gt; &lt;td&gt; 47,589.18 &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;p&gt;The metric is the query mixes per hour from the BSBM test driver output. For the interested, the complete output is &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/texts/bsbmres.txt&quot; id=&quot;link-id1119f770&quot;&gt;here&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The benchmark is pure &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x5257718&quot;&gt;SQL&lt;/a&gt;, nothing to do with &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xb8c463e0&quot;&gt;SPARQL&lt;/a&gt; or &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x16e68d50&quot;&gt;RDF&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The hardware is 2 x Xeon 5345 (2 x quad core, 2.33 GHz), 16 G RAM. The OS is 64-bit Debian Linux.&lt;/p&gt; &lt;p&gt;The benchmark was run at a scale of 200,000. Each run had 2000 warm-up query mixes and 500 measured query mixes, which gives steady state, eliminating any effects of OS disk cache and the like. Both databases were configured to use 8G for disk cache. The test effectively runs from memory. We ran an analyze table on each MySQL table but noticed that this had no effect. Virtuoso does the stats sampling on the go; possibly MySQL also since the explicit stats did not make any difference. The MySQL tables were served by the InnoDB engine. MySQL appears to cache results of queries in some cases. This was not apparent in the tests.&lt;/p&gt; &lt;p&gt;The versions are 5.09 for Virtuoso and 5.1.29 for MySQL. You can download and examine --&lt;/p&gt; &lt;ul&gt; &lt;li&gt; &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/texts/virtuoso.ini&quot; id=&quot;link-id14fe17f0&quot;&gt;Virtuoso configuration file&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/texts/my.cnf&quot; id=&quot;link-id116fe490&quot;&gt;MySQL configuration file&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/texts/create_tables_and_rdf_view.sql&quot; id=&quot;link-id14ce9268&quot;&gt;Table definitions &amp;amp; RDF views&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/texts/mysqlinx.sql&quot; id=&quot;link-id1535e298&quot;&gt;Indexes on MySQL tables&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;p&gt; &lt;strike&gt;MySQL ought to do better. We suspect that here, just as in the TPC-D experiment we made way back, the query plans are not quite right. Also we rarely saw over 300% CPU utilization for MySQL. It is possible there is a config parameter that affects this. The public is invited to tell us about such.&lt;/strike&gt; &lt;/p&gt; &lt;p&gt; &lt;b&gt;Update:&lt;/b&gt; &lt;/p&gt; &lt;p&gt;Andreas Schultz of the BSBM team advised us to increase the &lt;code&gt;innodb_buffer_pool_size&lt;/code&gt; setting in the MySQL config. We did and it produced some improvement. Indeed, this is more like it, as we now see CPU utilization around 700% instead of the 300% in the previously published run, which rendered it suspect. Also, our experiments with TPC-D led us to expect better. We ran these things a few times so as to have warm cache.&lt;/p&gt; &lt;p&gt;On the first run, we noticed that the Innodb warm up time was somewhere well in excess of 2000 query mixes. Another time, we should make a graph of throughput as a function of time for both MySQL and Virtuoso. We recently made a greedy prefetch hack that should give us some mileage there. For the next BSBM, all we can advise is to run larger scale system for half an hour first and then measure and then measure again. If the second measurement is the same as the first then it is good.&lt;/p&gt; &lt;p&gt;As always, since MySQL is not our specialty, we confidently invite the public to tell us how to make it run faster. So, unless something more turns up, our next trial is a revisit of &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x122eaa00&quot;&gt;TPC-H&lt;/a&gt;.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>ISWC 2008: Some Questions</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-11-04#1481</atom:id>
  <atom:published>2008-11-04T15:54:42Z</atom:published>
  <atom:updated>2008-11-04T14:37:01-05:00</atom:updated>
  <atom:content type="html">&lt;h2&gt;Inference: Is it always forward chaining?&lt;/h2&gt; &lt;p&gt;We got a number of questions about &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x13c64b60&quot;&gt;Virtuoso&lt;/a&gt;&amp;#39;s inference support. It seems that we are the odd one out, as we do not take it for granted that inference ought to consist of materializing entailment.&lt;/p&gt; &lt;p&gt;Firstly, of course one can materialize all one wants with Virtuoso. The simplest way to do this is using SPARUL. With the recent transitivity extensions to &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x14d17778&quot;&gt;SPARQL&lt;/a&gt;, it is also easy to materialize implications of transitivity with a single statement. Our point is that for trivial entailment such as subclass, sub-property, single transitive property, and &lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0x128e55d0&quot;&gt;owl&lt;/a&gt;:sameAs, we do not require materialization, as we can resolve these at run time also, with backward-chaining built into the engine.&lt;/p&gt; &lt;p&gt;For more complex situations, one needs to materialize the entailment. At the present time, we know how to generalize our transitive feature to run arbitrary backward-chaining rules, including recursive ones. We could have a sort of Datalog backward-chaining embedded in our &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x12614770&quot;&gt;SQL&lt;/a&gt;/SPARQL and could run this with good parallelism, as the transitive feature already works with clustering and partitioning without dying of message latency. Exactly when and how we do this will be seen. Even if users want entailment to be materialized, such a rule system could be used for producing the materialization at good speed.&lt;/p&gt; &lt;p&gt;We had a word with &lt;a href=&quot;http://web.comlab.ox.ac.uk/people/Ian.Horrocks/&quot; id=&quot;link-id117c99d0&quot;&gt;Ian Horrocks&lt;/a&gt; on the question. He noted that it is often naive on behalf of the community to tend to equate description of semantics with description of algorithm. The &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x145b2980&quot;&gt;data&lt;/a&gt; need not always be blown up.&lt;/p&gt; &lt;p&gt;The advantage of not always materializing is that the working set stays better. Once the working set is no longer in memory, response times jump disproportionately. Also, if the data changes or is retracted or is unreliable, one can end up doing a lot of extra work with materialization. Consider the effect of one malicious sameAs statement. This can lead to a lot of effects that are hard to retract. On the other hand, if running in memory with static data such as the LUBM benchmark, the queries run some 20% faster if entailment subclasses and sub-properties are materialized rather than done at run time.&lt;/p&gt; &lt;h2&gt;Genetic Algorithms for SPARQL?&lt;/h2&gt; &lt;p&gt;Our compliments for the wildest idea of the conference go to &lt;a href=&quot;http://www.eyaloren.org/&quot; id=&quot;link-id1a203af8&quot;&gt;Eyal Oren&lt;/a&gt;, &lt;a href=&quot;http://www.few.vu.nl/~cgueret/&quot; id=&quot;link-id16208758&quot;&gt;Christophe GuÃ©ret&lt;/a&gt;, and &lt;a href=&quot;http://www.few.vu.nl/~schlobac/&quot; id=&quot;link-id111923e0&quot;&gt;Stefan Schlobach&lt;/a&gt;, &lt;i&gt;et al&lt;/i&gt;, for their &lt;a href=&quot;http://www.informatik.uni-trier.de/~ley/db/conf/semweb/iswc2008.html#OrenGS08&quot; id=&quot;link-id11793540&quot;&gt;paper on using genetic algorithms for guessing how variables in a SPARQL query ought to be instantiated&lt;/a&gt;. Prisoners of our &amp;quot;conventional wisdom&amp;quot; as we are, this might never have occurred to us.&lt;/p&gt; &lt;h2&gt;Schema Last?&lt;/h2&gt; &lt;p&gt;It is interesting to see how the industry comes to the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x12b57e90&quot;&gt;semantic web&lt;/a&gt; conferences talking about schema last while at the same time the traditional semantic web people stress enforcing schema constraints and making more predictably performing and database friendlier logics. So do the extremes converge.&lt;/p&gt; &lt;p&gt;There is a point to schema last. &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x12a8ff48&quot;&gt;RDF&lt;/a&gt; is very good for getting a view of ad hoc or unknown data. One can just load and look at what there is. Also, additions of unforeseen optional properties or relations to the schema are easy and efficient. However, it seems that a really high traffic online application would always benefit from having some application specific data structures. Such could also save considerably in hardware.&lt;/p&gt; &lt;p&gt;It is not a sharp divide between RDF and relational application oriented representation. We have the capabilities in our RDB to RDF mapping. We just need to show this and have SPARUL and data loading&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>ISWC 2008: Some Questions</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-11-04#1479</atom:id>
  <atom:published>2008-11-04T15:54:42Z</atom:published>
  <atom:updated>2008-11-04T14:36:50.000010-05:00</atom:updated>
  <atom:content type="html">&lt;h2&gt;Inference: Is it always forward chaining?&lt;/h2&gt; &lt;p&gt;We got a number of questions about &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x131604a8&quot;&gt;Virtuoso&lt;/a&gt;&amp;#39;s inference support. It seems that we are the odd one out, as we do not take it for granted that inference ought to consist of materializing entailment.&lt;/p&gt; &lt;p&gt;Firstly, of course one can materialize all one wants with Virtuoso. The simplest way to do this is using SPARUL. With the recent transitivity extensions to &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1422f910&quot;&gt;SPARQL&lt;/a&gt;, it is also easy to materialize implications of transitivity with a single statement. Our point is that for trivial entailment such as subclass, sub-property, single transitive property, and &lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0x145894a8&quot;&gt;owl&lt;/a&gt;:sameAs, we do not require materialization, as we can resolve these at run time also, with backward-chaining built into the engine.&lt;/p&gt; &lt;p&gt;For more complex situations, one needs to materialize the entailment. At the present time, we know how to generalize our transitive feature to run arbitrary backward-chaining rules, including recursive ones. We could have a sort of Datalog backward-chaining embedded in our &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1458a288&quot;&gt;SQL&lt;/a&gt;/SPARQL and could run this with good parallelism, as the transitive feature already works with clustering and partitioning without dying of message latency. Exactly when and how we do this will be seen. Even if users want entailment to be materialized, such a rule system could be used for producing the materialization at good speed.&lt;/p&gt; &lt;p&gt;We had a word with &lt;a href=&quot;http://web.comlab.ox.ac.uk/people/Ian.Horrocks/&quot; id=&quot;link-id117c99d0&quot;&gt;Ian Horrocks&lt;/a&gt; on the question. He noted that it is often naive on behalf of the community to tend to equate description of semantics with description of algorithm. The &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x14cf0b18&quot;&gt;data&lt;/a&gt; need not always be blown up.&lt;/p&gt; &lt;p&gt;The advantage of not always materializing is that the working set stays better. Once the working set is no longer in memory, response times jump disproportionately. Also, if the data changes or is retracted or is unreliable, one can end up doing a lot of extra work with materialization. Consider the effect of one malicious sameAs statement. This can lead to a lot of effects that are hard to retract. On the other hand, if running in memory with static data such as the LUBM benchmark, the queries run some 20% faster if entailment subclasses and sub-properties are materialized rather than done at run time.&lt;/p&gt; &lt;h2&gt;Genetic Algorithms for SPARQL?&lt;/h2&gt; &lt;p&gt;Our compliments for the wildest idea of the conference go to &lt;a href=&quot;http://www.eyaloren.org/&quot; id=&quot;link-id1a203af8&quot;&gt;Eyal Oren&lt;/a&gt;, &lt;a href=&quot;http://www.few.vu.nl/~cgueret/&quot; id=&quot;link-id16208758&quot;&gt;Christophe GuÃ©ret&lt;/a&gt;, and &lt;a href=&quot;http://www.few.vu.nl/~schlobac/&quot; id=&quot;link-id111923e0&quot;&gt;Stefan Schlobach&lt;/a&gt;, &lt;i&gt;et al&lt;/i&gt;, for their &lt;a href=&quot;http://www.informatik.uni-trier.de/~ley/db/conf/semweb/iswc2008.html#OrenGS08&quot; id=&quot;link-id11793540&quot;&gt;paper on using genetic algorithms for guessing how variables in a SPARQL query ought to be instantiated&lt;/a&gt;. Prisoners of our &amp;quot;conventional wisdom&amp;quot; as we are, this might never have occurred to us.&lt;/p&gt; &lt;h2&gt;Schema Last?&lt;/h2&gt; &lt;p&gt;It is interesting to see how the industry comes to the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x1154c1b0&quot;&gt;semantic web&lt;/a&gt; conferences talking about schema last while at the same time the traditional semantic web people stress enforcing schema constraints and making more predictably performing and database friendlier logics. So do the extremes converge.&lt;/p&gt; &lt;p&gt;There is a point to schema last. &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x14c6a930&quot;&gt;RDF&lt;/a&gt; is very good for getting a view of ad hoc or unknown data. One can just load and look at what there is. Also, additions of unforeseen optional properties or relations to the schema are easy and efficient. However, it seems that a really high traffic online application would always benefit from having some application specific data structures. Such could also save considerably in hardware.&lt;/p&gt; &lt;p&gt;It is not a sharp divide between RDF and relational application oriented representation. We have the capabilities in our RDB to RDF mapping. We just need to show this and have SPARUL and data loading&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>ISWC 2008: RDB2RDF Face-to-Face</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-11-04#1477</atom:id>
  <atom:published>2008-11-04T13:26:19Z</atom:published>
  <atom:updated>2008-11-04T17:20:35-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;The W3C&amp;#39;s RDB-to-&lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x153bdcf8&quot;&gt;RDF&lt;/a&gt; mapping incubator group (&lt;a href=&quot;http://www.w3.org/2005/Incubator/rdb2rdf/&quot; id=&quot;link-id0x13e3e6b8&quot;&gt;RDB2RDF XG&lt;/a&gt;) met in &lt;a href=&quot;http://dbpedia.org/resource/Karlsruhe&quot; id=&quot;link-id0x15236b08&quot;&gt;Karlsruhe&lt;/a&gt; after &lt;a href=&quot;http://iswc2008.semanticweb.org/&quot; id=&quot;link-id0x2450fba8&quot;&gt;ISWC 2008&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The meeting was about writing a charter for a working group that would define a standard for mapping relational databases to RDF, either for purposes of import into RDF stores or of query mapping from &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x14c84338&quot;&gt;SPARQL&lt;/a&gt; to &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x146db368&quot;&gt;SQL&lt;/a&gt;. There was a lot of agreement and the meeting even finished ahead of the allotted time.&lt;/p&gt; &lt;h2&gt;Whose Identifiers?&lt;/h2&gt; &lt;p&gt;There was discussion concerning using the &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0x12c15e58&quot;&gt;Entity&lt;/a&gt; Name Service from the Okkam project for assigning URIs to entities mapped from relational databases. This makes sense when talking about long-lived, legal entities, such as people or companies or geography. Of course, there are cases where this makes no sense; for example, a purchase order or maintenance call hardly needs an identifier registered with the ENS. The problem is, in practice, a CRM could mention customers that have an ENS registered ID (or even several such IDs) and others that have none. Of course, the CRM&amp;#39;s reference cannot depend on any registration. Also, even when there is a stable &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id0x12b7b5c0&quot;&gt;URI&lt;/a&gt; for the entity, a CRM may need a key that specifies some administrative subdivision of the customer.&lt;/p&gt; &lt;p&gt;Also we note that an on-demand RDB-to-RDF mapping may have some trouble dealing with &amp;quot;same as&amp;quot; assertions. If names that are anything other than string forms of the keys in the system must be returned, there will have to be a lookup added to the RDB. This is an administrative issue. Certainly going over the network to ask for names of items returned by queries has a prohibitive cost. It would be good for ad hoc integration to use shared URIs when possible. The trouble of adding and maintaining lookups for these, however, makes this more expensive than just mapping to RDF and using literals for joining between independently maintained systems.&lt;/p&gt; &lt;h2&gt; &lt;a href=&quot;http://dbpedia.org/resource/XML&quot; id=&quot;link-id0x14bf7da0&quot;&gt;XML&lt;/a&gt; or RDF?&lt;/h2&gt; &lt;p&gt;We talked about having a language for human consumption and another for discovery and machine processing of mappings. Would this latter be XML or RDF based? Describing every detail of syntax for a mapping as RDF is really tedious. Also such descriptions are very hard to query, just as &lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0x1493ffc0&quot;&gt;OWL&lt;/a&gt; ontologies are. One solution is to have opaque strings embedded into RDF, just like XSLT has &lt;a href=&quot;http://dbpedia.org/resource/XPath&quot; id=&quot;link-id0x1400fe98&quot;&gt;XPath&lt;/a&gt; in string form embedded into XML. Maybe it will end up in this way here also. Having a complete XML mapping of the parse tree for mappings, XQueryX-style, could be nice for automatic generation of mappings with XSLT from an XML view of the &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x14c846d8&quot;&gt;information&lt;/a&gt; schema. But then XSLT can also produce text, so an XML syntax that has every detail of a mapping language as distinct elements is not really necessary for this.&lt;/p&gt; &lt;p&gt;Another matter is then describing the RDF generated by the mapping in terms of RDFS or OWL. This would be a by-product of declaring the mapping. Most often, I would presume the target ontology to be given, though, reducing the need for this feature. But if RDF mapping is used for discovery of &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x14f6f128&quot;&gt;data&lt;/a&gt;, such a description of the exposed data is essential.&lt;/p&gt; &lt;h2&gt;Interoperability&lt;/h2&gt; &lt;p&gt;We agreed with &lt;a href=&quot;http://www.informatik.uni-leipzig.de/~auer/foaf.rdf#me&quot; id=&quot;link-id0x1e776730&quot;&gt;SÃ¶ren Auer&lt;/a&gt; that we could make &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1477ad18&quot;&gt;Virtuoso&lt;/a&gt;&amp;#39;s mapping language compatible with &lt;a href=&quot;http://triplify.org/&quot; id=&quot;link-id0x15514388&quot;&gt;Triplify&lt;/a&gt;. Triplify is very simple, extraction only, no SPARQL, but does have the benefit of expressing everything in SQL. As it happens, I would be the last person to tell a web developer what language to program in. So if it is SQL, then let it stay SQL. Technically, a lot of the information the Virtuoso mapping expresses is contained in the Triplify SQL statements, but not all. Some extra declarations are needed still but can have reasonable defaults.&lt;/p&gt; &lt;p&gt;There are two ways of stating a mapping. Virtuoso starts with the triple and says which tables and columns will produce the triple. Triplify starts with the SQL statement and says what triples it produces. These are fairly equivalent. For the web developer, the latter is likely more self-evident, while the former may be more compact and have less repetition.&lt;/p&gt; &lt;p&gt;Virtuoso and Triplify alone would give us the two interoperable implementations required from a working group, supposing the language were annotations on top of SQL. This would be a guarantee of delivery, as we would be close enough to the result from the get go.&lt;/p&gt; &lt;h2&gt;Related Web resources&lt;/h2&gt; &lt;ul&gt; &lt;li&gt; &lt;a href=&quot;http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VOSSQL2RDF&quot; id=&quot;link-id14e27040&quot;&gt;OpenLink Virtuoso: Open-Source Edition: Mapping SQL Data to RDF&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/pdf/Virtuoso_SQL_to_RDF_Mapping.pdf&quot; id=&quot;link-id1baad3a8&quot;&gt;Virtuoso RDF Views â Getting Started Guide (PDF)&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>ISWC 2008: RDB2RDF Face-to-Face</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-11-04#1476</atom:id>
  <atom:published>2008-11-04T13:26:19Z</atom:published>
  <atom:updated>2008-11-04T17:20:30.000002-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;The W3C&amp;#39;s RDB-to-&lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x141f0470&quot;&gt;RDF&lt;/a&gt; mapping incubator group (&lt;a href=&quot;http://www.w3.org/2005/Incubator/rdb2rdf/&quot; id=&quot;link-id0x13b8d018&quot;&gt;RDB2RDF XG&lt;/a&gt;) met in &lt;a href=&quot;http://dbpedia.org/resource/Karlsruhe&quot; id=&quot;link-id0x1e748060&quot;&gt;Karlsruhe&lt;/a&gt; after &lt;a href=&quot;http://iswc2008.semanticweb.org/&quot; id=&quot;link-id0x1eba8468&quot;&gt;ISWC 2008&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The meeting was about writing a charter for a working group that would define a standard for mapping relational databases to RDF, either for purposes of import into RDF stores or of query mapping from &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1e5abe10&quot;&gt;SPARQL&lt;/a&gt; to &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x13930368&quot;&gt;SQL&lt;/a&gt;. There was a lot of agreement and the meeting even finished ahead of the allotted time.&lt;/p&gt; &lt;h2&gt;Whose Identifiers?&lt;/h2&gt; &lt;p&gt;There was discussion concerning using the &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0x15587978&quot;&gt;Entity&lt;/a&gt; Name Service from the Okkam project for assigning URIs to entities mapped from relational databases. This makes sense when talking about long-lived, legal entities, such as people or companies or geography. Of course, there are cases where this makes no sense; for example, a purchase order or maintenance call hardly needs an identifier registered with the ENS. The problem is, in practice, a CRM could mention customers that have an ENS registered ID (or even several such IDs) and others that have none. Of course, the CRM&amp;#39;s reference cannot depend on any registration. Also, even when there is a stable &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id0x144660f8&quot;&gt;URI&lt;/a&gt; for the entity, a CRM may need a key that specifies some administrative subdivision of the customer.&lt;/p&gt; &lt;p&gt;Also we note that an on-demand RDB-to-RDF mapping may have some trouble dealing with &amp;quot;same as&amp;quot; assertions. If names that are anything other than string forms of the keys in the system must be returned, there will have to be a lookup added to the RDB. This is an administrative issue. Certainly going over the network to ask for names of items returned by queries has a prohibitive cost. It would be good for ad hoc integration to use shared URIs when possible. The trouble of adding and maintaining lookups for these, however, makes this more expensive than just mapping to RDF and using literals for joining between independently maintained systems.&lt;/p&gt; &lt;h2&gt; &lt;a href=&quot;http://dbpedia.org/resource/XML&quot; id=&quot;link-id0x1edb8170&quot;&gt;XML&lt;/a&gt; or RDF?&lt;/h2&gt; &lt;p&gt;We talked about having a language for human consumption and another for discovery and machine processing of mappings. Would this latter be XML or RDF based? Describing every detail of syntax for a mapping as RDF is really tedious. Also such descriptions are very hard to query, just as &lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0x2450fba8&quot;&gt;OWL&lt;/a&gt; ontologies are. One solution is to have opaque strings embedded into RDF, just like XSLT has &lt;a href=&quot;http://dbpedia.org/resource/XPath&quot; id=&quot;link-id0x234e5478&quot;&gt;XPath&lt;/a&gt; in string form embedded into XML. Maybe it will end up in this way here also. Having a complete XML mapping of the parse tree for mappings, XQueryX-style, could be nice for automatic generation of mappings with XSLT from an XML view of the &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x22e129f8&quot;&gt;information&lt;/a&gt; schema. But then XSLT can also produce text, so an XML syntax that has every detail of a mapping language as distinct elements is not really necessary for this.&lt;/p&gt; &lt;p&gt;Another matter is then describing the RDF generated by the mapping in terms of RDFS or OWL. This would be a by-product of declaring the mapping. Most often, I would presume the target ontology to be given, though, reducing the need for this feature. But if RDF mapping is used for discovery of &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x155139c0&quot;&gt;data&lt;/a&gt;, such a description of the exposed data is essential.&lt;/p&gt; &lt;h2&gt;Interoperability&lt;/h2&gt; &lt;p&gt;We agreed with &lt;a href=&quot;http://www.informatik.uni-leipzig.de/~auer/foaf.rdf#me&quot; id=&quot;link-id0x132a64e0&quot;&gt;SÃ¶ren Auer&lt;/a&gt; that we could make &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1272c988&quot;&gt;Virtuoso&lt;/a&gt;&amp;#39;s mapping language compatible with &lt;a href=&quot;http://triplify.org/&quot; id=&quot;link-id0x12622738&quot;&gt;Triplify&lt;/a&gt;. Triplify is very simple, extraction only, no SPARQL, but does have the benefit of expressing everything in SQL. As it happens, I would be the last person to tell a web developer what language to program in. So if it is SQL, then let it stay SQL. Technically, a lot of the information the Virtuoso mapping expresses is contained in the Triplify SQL statements, but not all. Some extra declarations are needed still but can have reasonable defaults.&lt;/p&gt; &lt;p&gt;There are two ways of stating a mapping. Virtuoso starts with the triple and says which tables and columns will produce the triple. Triplify starts with the SQL statement and says what triples it produces. These are fairly equivalent. For the web developer, the latter is likely more self-evident, while the former may be more compact and have less repetition.&lt;/p&gt; &lt;p&gt;Virtuoso and Triplify alone would give us the two interoperable implementations required from a working group, supposing the language were annotations on top of SQL. This would be a guarantee of delivery, as we would be close enough to the result from the get go.&lt;/p&gt; &lt;h2&gt;Related Web resources&lt;/h2&gt; &lt;ul&gt; &lt;li&gt; &lt;a href=&quot;http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VOSSQL2RDF&quot; id=&quot;link-id14e27040&quot;&gt;OpenLink Virtuoso: Open-Source Edition: Mapping SQL Data to RDF&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/pdf/Virtuoso_SQL_to_RDF_Mapping.pdf&quot; id=&quot;link-id1baad3a8&quot;&gt;Virtuoso RDF Views â Getting Started Guide (PDF)&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>ISWC 2008: The Scalable Knowledge Systems Workshop</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-11-03#1473</atom:id>
  <atom:published>2008-11-03T13:16:47Z</atom:published>
  <atom:updated>2008-11-03T12:33:54-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;Mike Dean of &lt;a href=&quot;http://dbpedia.org/resource/BBN_Technologies&quot; id=&quot;link-id0x25699878&quot;&gt;BBN Technologies&lt;/a&gt; opened the Scalable &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x1ed01750&quot;&gt;Knowledge&lt;/a&gt; Systems Workshop with an invited talk. He reminded us of the facts of nature as concern the cost of distributed computing and running out of space for the working set. Developers in the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x21fbb9a8&quot;&gt;semantic web&lt;/a&gt; field deplorably often ignore these facts, or alternatively recognize them and admit that they are unbeatable, that one just can&amp;#39;t join across partitions.&lt;/p&gt; &lt;p&gt;I gave a talk about the &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x20b6e020&quot;&gt;Virtuoso&lt;/a&gt; Cluster edition, wherein I repeated essentially the same ground facts as Mike and outlined how we (in spite of these) profit from distributed memory multiprocessing. To those not intimate with these questions, let me affirm that deriving benefit from threading in a symmetric multiprocessor box, let alone a cluster connected by a network, totally depends on having many relatively long running things going at a time and blocking as seldom as possible.&lt;/p&gt; &lt;p&gt;Further, Mike Dean talked about &lt;a href=&quot;http://www.asio.bbn.com/&quot; id=&quot;link-id0x222252f0&quot;&gt;ASIO&lt;/a&gt;, the BBN suite of semantic web tools. His most challenging statement was about the storage engine, a network-database-inspired triple-store using memory-mapped files. &lt;/p&gt; &lt;p&gt;Will the &lt;a href=&quot;http://dbpedia.org/resource/CODASYL&quot; id=&quot;link-id0x222d8730&quot;&gt;CODASYL&lt;/a&gt; days come back, and will the linked list on disk be the way to store triples/quads? I would say that this will have, especially with a memory-mapped file, probably a better best-case as a B-tree but that this also will be less predictable with fragmentation. With Virtuoso, using a B-tree index, we see about 20-30% of CPU time spent on index lookup when running LUBM queries. With a disk-based memory-mapped linked-list storage, we would see some improvements in this while getting hit probably worse than now in the case of fragmentation. Plus compaction on the fly would not be nearly as easy and surely far less local, if there were pointers between pages. So it is my intuition that trees are a safer bet with varying workloads while linked lists can be faster in a query-dominated in-memory situation.&lt;/p&gt; &lt;p&gt;Chris Bizer presented the &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0x22e41c40&quot;&gt;Berlin SPARQL Benchmark&lt;/a&gt; (&lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0x1c909960&quot;&gt;BSBM&lt;/a&gt;), which has already been discussed here in some detail. He did acknowledge that the next round of the race must have a real steady-state rule. This just means that the benchmark must be run long enough for the system under test to reach a state where the cache is full and the performance remains indefinitely at the same level. Reaching steady state can take 20-30 minutes in some cases.&lt;/p&gt; &lt;p&gt;Regardless of steady state, BSBM has two generally valid conclusions: &lt;/p&gt; &lt;ol&gt; &lt;li&gt;mapping relational to &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x21d01890&quot;&gt;RDF&lt;/a&gt;, where possible, is faster than triple storage; and &lt;/li&gt; &lt;li&gt;the equivalent relational solution can be some 10x faster than the pure triples representation.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;Mike Dean asked whether BSBM was a case of a setup to have triple stores fail. Not necessarily, I would say; we should understand that one motivation of BSBM is testing mapping technologies. Therefore it must have a workload where mapping makes sense. Of course there are workloads where triples are unchallenged â take the &lt;a href=&quot;http://challenge.semanticweb.org/&quot; id=&quot;link-id0x1feb9250&quot;&gt;Billion Triples Challenge&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1fe12b60&quot;&gt;data&lt;/a&gt; set for one.&lt;/p&gt; &lt;p&gt;Also, with BSBM, once should note that the query optimization time plays a fairly large role since most queries touch relatively little data. Also, even if the scale is large, the working set is not nearly the size of the database. This in fact penalizes mapping technologies against native &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1e275c88&quot;&gt;SQL&lt;/a&gt; since the difference there is compiling the query, especially since parameters are not used. So, Chris, since we both like to map, let&amp;#39;s make a benchmark that shows mapping closer to native SQL.&lt;/p&gt; &lt;h2&gt;Bridging the 10x Gap?&lt;/h2&gt; &lt;p&gt;When we run Virtuoso relational against Virtuoso triple store with the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x22046d88&quot;&gt;TPC-H&lt;/a&gt; workload, we see that the relational case is significantly faster. These are long queries, thus query optimization time is negligible; we are here comparing memory-based access times. Why is this? The answer is that a single index lookup gives multiple column values with almost no penalty for the extra column. Also, since the number of total joins is lower, the overhead coming from moving from join to next join is likewise lower. This is just a meter of count of executed instructions.&lt;/p&gt; &lt;p&gt;A column store joins in principle just as much as a triple store. However, since the BI workload often consists of scanning over large tables, the joins tend to be local, the needed lookup can often use the previous location as a starting point. A triple store can do the same if queries have high locality. We do this in some SQL situations and can try this with triples also. The RDF workload is typically more random in its access pattern, though. The other factor is the length of control path. A column store has a simpler control flow if it knows that the column will have exactly one value per row. With RDF, this is not a given. Also, the column store&amp;#39;s row is identified by a single number and not a multipart key. These two factors give the column store running with a fixed schema some edge over the more generic RDF quad store.&lt;/p&gt; &lt;p&gt;There was some discussion on how much closer a triple store could come to a relational one. Some gains are undoubtedly possible. We will see. For the ideal row store workload, the &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x22f837c0&quot;&gt;RDBMS&lt;/a&gt; will continue to have some edge. Large online systems typically have a large part of the workload that is simple and repetitive. There is nothing to prevent one having special indices for supporting such workload, even while retaining the possibility of arbitrary triples elsewhere. Some degree of application-specific data structure does make sense. We just need to show how this is done. In this way, we have a continuum and not an either/or choice of triples vs. tables.&lt;/p&gt; &lt;h2&gt;Scale, Where Next?&lt;/h2&gt; &lt;p&gt;Concerning the future direction of the workshop, there were a few directions suggested. One of the more interesting ones was Mike Dean&amp;#39;s suggestion about dealing with a large volume of same-as assertions, specifically a volume where materializing all the entailed triples was no longer practical. Of course, there is the question of scale. This time, we were the only ones focusing on a parallel database with no restrictions on joining.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>ISWC 2008: The Scalable Knowledge Systems Workshop</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-11-03#1471</atom:id>
  <atom:published>2008-11-03T13:16:47Z</atom:published>
  <atom:updated>2008-11-03T12:33:49-05:00</atom:updated>
  <atom:content type="html">&lt;p&gt;Mike Dean of &lt;a href=&quot;http://dbpedia.org/resource/BBN_Technologies&quot; id=&quot;link-id0x21d04768&quot;&gt;BBN Technologies&lt;/a&gt; opened the Scalable &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x22348c58&quot;&gt;Knowledge&lt;/a&gt; Systems Workshop with an invited talk. He reminded us of the facts of nature as concern the cost of distributed computing and running out of space for the working set. Developers in the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x22570328&quot;&gt;semantic web&lt;/a&gt; field deplorably often ignore these facts, or alternatively recognize them and admit that they are unbeatable, that one just can&amp;#39;t join across partitions.&lt;/p&gt; &lt;p&gt;I gave a talk about the &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x23f313f0&quot;&gt;Virtuoso&lt;/a&gt; Cluster edition, wherein I repeated essentially the same ground facts as Mike and outlined how we (in spite of these) profit from distributed memory multiprocessing. To those not intimate with these questions, let me affirm that deriving benefit from threading in a symmetric multiprocessor box, let alone a cluster connected by a network, totally depends on having many relatively long running things going at a time and blocking as seldom as possible.&lt;/p&gt; &lt;p&gt;Further, Mike Dean talked about &lt;a href=&quot;http://www.asio.bbn.com/&quot; id=&quot;link-id0x1d74c108&quot;&gt;ASIO&lt;/a&gt;, the BBN suite of semantic web tools. His most challenging statement was about the storage engine, a network-database-inspired triple-store using memory-mapped files. &lt;/p&gt; &lt;p&gt;Will the &lt;a href=&quot;http://dbpedia.org/resource/CODASYL&quot; id=&quot;link-id0x1f8ee860&quot;&gt;CODASYL&lt;/a&gt; days come back, and will the linked list on disk be the way to store triples/quads? I would say that this will have, especially with a memory-mapped file, probably a better best-case as a B-tree but that this also will be less predictable with fragmentation. With Virtuoso, using a B-tree index, we see about 20-30% of CPU time spent on index lookup when running LUBM queries. With a disk-based memory-mapped linked-list storage, we would see some improvements in this while getting hit probably worse than now in the case of fragmentation. Plus compaction on the fly would not be nearly as easy and surely far less local, if there were pointers between pages. So it is my intuition that trees are a safer bet with varying workloads while linked lists can be faster in a query-dominated in-memory situation.&lt;/p&gt; &lt;p&gt;Chris Bizer presented the &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0x1d670da0&quot;&gt;Berlin SPARQL Benchmark&lt;/a&gt; (&lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0x21928808&quot;&gt;BSBM&lt;/a&gt;), which has already been discussed here in some detail. He did acknowledge that the next round of the race must have a real steady-state rule. This just means that the benchmark must be run long enough for the system under test to reach a state where the cache is full and the performance remains indefinitely at the same level. Reaching steady state can take 20-30 minutes in some cases.&lt;/p&gt; &lt;p&gt;Regardless of steady state, BSBM has two generally valid conclusions: &lt;/p&gt; &lt;ol&gt; &lt;li&gt;mapping relational to &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xab811020&quot;&gt;RDF&lt;/a&gt;, where possible, is faster than triple storage; and &lt;/li&gt; &lt;li&gt;the equivalent relational solution can be some 10x faster than the pure triples representation.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;Mike Dean asked whether BSBM was a case of a setup to have triple stores fail. Not necessarily, I would say; we should understand that one motivation of BSBM is testing mapping technologies. Therefore it must have a workload where mapping makes sense. Of course there are workloads where triples are unchallenged â take the &lt;a href=&quot;http://challenge.semanticweb.org/&quot; id=&quot;link-id0x2538c3b8&quot;&gt;Billion Triples Challenge&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1d673760&quot;&gt;data&lt;/a&gt; set for one.&lt;/p&gt; &lt;p&gt;Also, with BSBM, once should note that the query optimization time plays a fairly large role since most queries touch relatively little data. Also, even if the scale is large, the working set is not nearly the size of the database. This in fact penalizes mapping technologies against native &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0xac16cc10&quot;&gt;SQL&lt;/a&gt; since the difference there is compiling the query, especially since parameters are not used. So, Chris, since we both like to map, let&amp;#39;s make a benchmark that shows mapping closer to native SQL.&lt;/p&gt; &lt;h2&gt;Bridging the 10x Gap?&lt;/h2&gt; &lt;p&gt;When we run Virtuoso relational against Virtuoso triple store with the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x1d7dc518&quot;&gt;TPC-H&lt;/a&gt; workload, we see that the relational case is significantly faster. These are long queries, thus query optimization time is negligible; we are here comparing memory-based access times. Why is this? The answer is that a single index lookup gives multiple column values with almost no penalty for the extra column. Also, since the number of total joins is lower, the overhead coming from moving from join to next join is likewise lower. This is just a meter of count of executed instructions.&lt;/p&gt; &lt;p&gt;A column store joins in principle just as much as a triple store. However, since the BI workload often consists of scanning over large tables, the joins tend to be local, the needed lookup can often use the previous location as a starting point. A triple store can do the same if queries have high locality. We do this in some SQL situations and can try this with triples also. The RDF workload is typically more random in its access pattern, though. The other factor is the length of control path. A column store has a simpler control flow if it knows that the column will have exactly one value per row. With RDF, this is not a given. Also, the column store&amp;#39;s row is identified by a single number and not a multipart key. These two factors give the column store running with a fixed schema some edge over the more generic RDF quad store.&lt;/p&gt; &lt;p&gt;There was some discussion on how much closer a triple store could come to a relational one. Some gains are undoubtedly possible. We will see. For the ideal row store workload, the &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x22e5b6f8&quot;&gt;RDBMS&lt;/a&gt; will continue to have some edge. Large online systems typically have a large part of the workload that is simple and repetitive. There is nothing to prevent one having special indices for supporting such workload, even while retaining the possibility of arbitrary triples elsewhere. Some degree of application-specific data structure does make sense. We just need to show how this is done. In this way, we have a continuum and not an either/or choice of triples vs. tables.&lt;/p&gt; &lt;h2&gt;Scale, Where Next?&lt;/h2&gt; &lt;p&gt;Concerning the future direction of the workshop, there were a few directions suggested. One of the more interesting ones was Mike Dean&amp;#39;s suggestion about dealing with a large volume of same-as assertions, specifically a volume where materializing all the entailed triples was no longer practical. Of course, there is the question of scale. This time, we were the only ones focusing on a parallel database with no restrictions on joining.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso - Are We Too Clever for Our Own Good? (updated)</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-10-26#1467</atom:id>
  <atom:published>2008-10-26T12:15:35Z</atom:published>
  <atom:updated>2008-10-27T12:07:58-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;&amp;quot;Physician, heal thyself,&amp;quot; it is said. We profess to say what the messaging of the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x1b4a25f0&quot;&gt;semantic web&lt;/a&gt; ought to be, but is our own perfect?&lt;/p&gt; &lt;p&gt;I will here engage in some critical introspection as well as amplify on some answers given to &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1e4f9928&quot;&gt;Virtuoso&lt;/a&gt;-related questions in recent times.&lt;/p&gt; &lt;p&gt;I use some conversations from the &lt;a href=&quot;http://dbpedia.org/resource/Vienna&quot; id=&quot;link-id0x1e6c0ca8&quot;&gt;Vienna&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x1e56df88&quot;&gt;Linked Data&lt;/a&gt; Practitioners meeting as a starting point. These views are mine and are limited to the Virtuoso server. These do not apply to the &lt;a href=&quot;http://dbpedia.org/resource/OpenLink_Data_Spaces&quot; id=&quot;link-id0x1e680440&quot;&gt;ODS&lt;/a&gt; (&lt;a href=&quot;http://dbpedia.org/resource/OpenLink_Data_Spaces&quot; id=&quot;link-id0x1e140068&quot;&gt;OpenLink Data Spaces&lt;/a&gt;) applications line, &lt;a href=&quot;http://oat.openlinksw.com/&quot; id=&quot;link-id0x1f4ba630&quot;&gt;OAT&lt;/a&gt; (&lt;a href=&quot;http://oat.openlinksw.com/&quot; id=&quot;link-id0x1ba4bac8&quot;&gt;OpenLink Ajax Toolkit&lt;/a&gt;), or &lt;a href=&quot;http://ode.openlinksw.com/&quot; id=&quot;link-id0x1d4159b0&quot;&gt;ODE&lt;/a&gt; (&lt;a href=&quot;http://ode.openlinksw.com/&quot; id=&quot;link-id0x1e973c80&quot;&gt;OpenLink Data Explorer&lt;/a&gt;).&lt;/p&gt; &lt;h3&gt;&amp;quot;It is not always clear what the main thrust is, we get the impression that you are spread too thin,&amp;quot; said &lt;a href=&quot;http://www.informatik.uni-leipzig.de/~auer/foaf.rdf#me&quot; id=&quot;link-id0x1f8bafe0&quot;&gt;SÃ¶ren Auer&lt;/a&gt;.&lt;/h3&gt; &lt;p&gt;Well, personally, I am all for core competence. This is why I do not participate in all the online conversations and groups as much as I could, for example. Time and energy are critical resources and must be invested where they make a difference. In this case, the real core competence is running in the database race. This in itself, come to think of it, is a pretty broad concept.&lt;/p&gt; &lt;p&gt;This is why we put a lot of emphasis on Linked Data and the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x200bd1f0&quot;&gt;Data&lt;/a&gt; Web for now, as this is the emerging game. This is a deliberate choice, not an outside imperative or built-in limitation. More specifically, this means exposing any pre-existing relational data as linked data plus being the definitive &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1fb03528&quot;&gt;RDF&lt;/a&gt; store.&lt;/p&gt; &lt;p&gt;We can do this because we own our database and &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1e7dcc70&quot;&gt;SQL&lt;/a&gt; and data access middleware and have a history of connecting to any &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x1e9baf18&quot;&gt;RDBMS&lt;/a&gt; out there.&lt;/p&gt; &lt;p&gt;The principal message we have been hearing from the RDF field is the call for scale of triple storage. This is even louder than the call for relational mapping. We believe that in time mapping will exceed triple storage as such, once we get some real production strength mappings deployed, enough to outperform RDF warehousing.&lt;/p&gt; &lt;p&gt;There are also RDF middleware things like RDF-ization and demand-driven web harvesting (i.e, the so-called Sponger). These are &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1f5f6b78&quot;&gt;SPARQL&lt;/a&gt; options, thus accessed via standard interfaces. We have little desire to create our own languages or APIs, or to tell people how to program. This is why we recently introduced &lt;a href=&quot;http://sourceforge.net/projects/sesame/&quot; id=&quot;link-id0x206818c8&quot;&gt;Sesame&lt;/a&gt;- and &lt;a href=&quot;http://jena.sourceforge.net/&quot; id=&quot;link-id0x202b3348&quot;&gt;Jena&lt;/a&gt;-compatible APIs to our RDF store. From what we hear, these work. On the other hand, we do not hesitate to move beyond the standards when there is obvious value or necessity. This is why we brought SPARQL up to and beyond SQL expressivity. It is not a case of E3 (Embrace, Extend, Extinguish).&lt;/p&gt; &lt;p&gt;Now, this message could be better reflected in our material on the web. This &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0x1c82e508&quot;&gt;blog&lt;/a&gt; is a rather informal step in this direction; more is to come. For now we concentrate on delivering.&lt;/p&gt; &lt;p&gt;The conventional communications wisdom is to split the message by target audience. For this, we should split the RDF, relational, and web services messages from each other. We believe that a challenger, like the semantic web technology stack, must have a compelling message to tell for it to be interesting. This is not a question of research prototypes. The new technology cannot lack something the installed technology takes for granted.&lt;/p&gt; &lt;p&gt;This is why we do not tend to show things like how to insert and query a few triples: No business out there will insert and query triples for the sake of triples. There must be a more compelling story â for example, turning the whole world into a database. This is why our examples start with things like turning the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x20832510&quot;&gt;TPC-H&lt;/a&gt; database into RDF, queries and all. Anything less is not interesting. Why would an enterprise that has business intelligence and integration issues way more complex than the rather stereotypical TPC-H even look at a technology that pretends to be all for integration and all for expressivity of queries, yet cannot answer the first question of the entry exam?&lt;/p&gt; &lt;p&gt;The world out there is complex. But maybe we ought to make some simple tutorials? So, as a call to the people out there, tell us what a good tutorial would be. The question is more about figuring out what is out there and adapting these and making a sort of compatibility list. Jena and Sesame stuff ought to run as is. We could offer a webinar to all the data web luminaries showing how to promote the data web message with Virtuoso. After all, why not show it on the best platform?&lt;/p&gt; &lt;h3&gt;&amp;quot;You are arrogant. When I read your papers or documentation, the impression I get is that you say you are smart and the reader is stupid.&amp;quot;&lt;/h3&gt; &lt;p&gt;We should answer in multiple parts.&lt;/p&gt; &lt;p&gt;For general collateral, like web sites and documentation:&lt;/p&gt; &lt;p&gt;The web site gives a confused product image. For the Virtuoso product, we should divide at the top into&lt;/p&gt; &lt;ul&gt; &lt;li&gt; Data web and RDF - Host linked data, expose relational assets as linked data;&lt;/li&gt; &lt;li&gt; Relational Database - Full function, high performance, open source, Federated/Virtual Relational DBMS, expose heterogeneous RDB assets through one point of contact for integration;&lt;/li&gt; &lt;li&gt; Web Services - access all the above over standard protocols, dynamic web pages, web hosting.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;For each point, one simple statement. We all know what the above things mean?&lt;/p&gt; &lt;p&gt;Then we add a new point about scalability that impacts all the above, namely the Virtuoso version 6 Cluster, meaning that you can do all these things at 10 to 1000 times the scale. This means this much more data or in some cases this much more requests per second. This too is clear.&lt;/p&gt; &lt;p&gt;Far as I am concerned, hosting Java or .&lt;a href=&quot;http://dbpedia.org/resource/.NET_Framework&quot; id=&quot;link-id0x20283a88&quot;&gt;NET&lt;/a&gt; does not have to be on the front page. Also, we have no great interest in going against &lt;a href=&quot;http://dbpedia.org/resource/Apache&quot; id=&quot;link-id0x2024a068&quot;&gt;Apache&lt;/a&gt; when it comes to a web server only situation. The fact that we have a web listener is important for some things but our claim to fame does not rest on this.&lt;/p&gt; &lt;p&gt;Then for documentation and training materials: The documentation should be better. Specifically it should have more of a how-to dimension since nobody reads the whole thing anyhow. About online tutorials, the order of presentation should be different. They do not really reflect what is important at the present moment either.&lt;/p&gt; &lt;p&gt;Now for conference papers: Since taking the data web as a focus area, we have submitted some papers and had some rejected because these do not have enough references and do not explain what is obvious to ourselves.&lt;/p&gt; &lt;p&gt;I think that the communications failure in this case is that we want to talk about end to end solutions and the reviewers expect research. For us, the solution is interesting and exists only if there is an adequate functionality mix for addressing a specific use case. This is why we do not make a paper about query cost model alone because the cost model, while indispensable, is a thing that is taken for granted where we come from. So we mention RDF adaptations to cost model, as these are important to the whole but do not find these to be the justification for a whole paper. If we made papers on this basis, we would have to make five times as many. Maybe we ought to.&lt;/p&gt; &lt;h3&gt;&amp;quot;Virtuoso is very big and very difficult&amp;quot;&lt;/h3&gt; &lt;p&gt;One thing that is not obvious from the Virtuoso packaging is that the minimum installation is an executable under 10MB and a config file. Two files.&lt;/p&gt; &lt;p&gt;This gives you SQL and SPARQL out of the box. Adding &lt;a href=&quot;http://dbpedia.org/resource/Open_Database_Connectivity&quot; id=&quot;link-id0x1ee61058&quot;&gt;ODBC&lt;/a&gt; and &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id0x1b8c31c0&quot;&gt;JDBC&lt;/a&gt; clients is as simple as it gets. After this, there is basic database functionality. Tuning is a matter of a few parameters that are explained on this blog and elsewhere. Also, the full scale installation is available as an Amazon EC2 image, so no installation required.&lt;/p&gt; &lt;p&gt;Now for the difficult side:&lt;/p&gt; &lt;p&gt;Use SQL and SPARQL; use stored procedures whenever there is server side business logic. For some time critical web pages, use VSP. Do not use VSPX. Otherwise, use whatever you are used to â &lt;a href=&quot;http://dbpedia.org/resource/PHP&quot; id=&quot;link-id0x20a13c00&quot;&gt;PHP&lt;/a&gt; or Java or anything else. For web services, simple is best. Stick to basics. &amp;quot;The engineer is one who can invent a simple thing.&amp;quot; Use SQL statements rather than admin UI.&lt;/p&gt; &lt;p&gt;Know that you can start a server with no database file and you get an initial database with nothing extra. The demo database, the way it is produced by installers is cluttered.&lt;/p&gt; &lt;p&gt;We should put this into a couple of use case oriented how-tos.&lt;/p&gt; &lt;p&gt;Also, we should create a network of &amp;quot;friendly local virtuoso geeks&amp;quot; for providing basic training and services so we do not have to explain these things all the time. To all you data-web-ers out there â please sign up and we will provide instructions, etc. Contact YrjÃ¤nÃ¤ Rankka (ghard[at-sign]openlinksw.com), or go through the mailing lists; do not contact me directly.&lt;/p&gt; &lt;h3&gt;&amp;quot;OK, we understand that you may be good at the large end of the spectrum but how do you reconcile this with the lightweight or embedded end, like the semantic desktop?&amp;quot;&lt;/h3&gt; &lt;p&gt;Now, what is good for one end is usually good for the other. Namely, a database, no matter the scale, needs to have space efficient storage, fast index lookup, and correct query plans. Then there are things that occur only at the high-end, like clustering, but these are separate things. For embedding, the initial memory footprint needs to be small. With Virtuoso, this is accomplished by leaving out some 200 built-in tables and 100,000 lines of SQL procedures that are normally in by default, supporting things such as DAV and diverse other protocols. After all, if SPARQL is all one wants these are not needed.&lt;/p&gt; &lt;p&gt;If one really wants to do one&amp;#39;s server logic (like web listener and thread dispatching) oneself, this is not impossible but requires some advice from us. On the other hand, if one wants to have logic for security close to the data, then using stored procedures is recommended; these execute right next to the data, and support inline SPARQL and SQL. Depending on the license status of the other code, some special licensing arrangements may apply.&lt;/p&gt; &lt;p&gt;We are talking about such things with different parties at present.&lt;/p&gt; &lt;h3&gt;&amp;quot;How webby are you? What is webby?&amp;quot;&lt;/h3&gt; &lt;p&gt;&amp;quot;Webby means distributed, heterogeneous, open; not monolithic consolidation of everything.&amp;quot;&lt;/p&gt; &lt;p&gt;We are philosophically webby. We come from open standards; we are after all called OpenLink; our history consists of connecting things. We believe in choice â the user should be able to pick the best of breed for components and have them work together. We cannot and do not wish to force replacement of existing assets. Transforming data on the fly and connecting systems, leaving data where it originally resides, is the first preference. For the data web, the first preference is a federation of independent SPARQL end points. When there is harvesting, we prefer to do it on demand, as with our Sponger. With the immense amount of data out there we believe in finding what is relevant &lt;i&gt;when&lt;/i&gt; it is relevant, preferably close at hand, leveraging things like social networks. With a data web, many things which are now siloized, such as marketplaces and social networks, will return to the open.&lt;/p&gt; &lt;p&gt;Google-style crawling of everything becomes less practical if one needs to run complex &lt;i&gt;ad hoc&lt;/i&gt; queries against the mass of data. For these types of scenarios, if one needs to warehouse, the data cloud will offer solutions where one pays for database on demand. While we believe in loosely coupled federation where possible, we have serious work on the scalability side for the data center and the compute-on-demand cloud.&lt;/p&gt; &lt;h3&gt;&amp;quot;How does OpenLink see the next five years unfolding?&amp;quot;&lt;/h3&gt; &lt;p&gt;Personally, I think we have the basics for the birth of a new inflection in the &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x1fb9ae58&quot;&gt;knowledge&lt;/a&gt; economy. The &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id0x1f07c648&quot;&gt;URI&lt;/a&gt; is the unit of exchange; its value and competitive edge lie in the data it links you with. A name without context is worth little, but as a name gets more use, more &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x1f007d60&quot;&gt;information&lt;/a&gt; can be found through that name. This is anything from financial statistics, to legal precedents, to news reporting or government data. Right now, if the SEC just added one line of markup to the XBRL template, this would instantaneously make all SEC-mandated reporting into linked data via GRDDL.&lt;/p&gt; &lt;p&gt;The URI is a carrier of brand. An information brand gets traffic and references, and this can be monetized in diverse ways. The key word is &lt;i&gt;context&lt;/i&gt;. Information overload is here to stay, and only better context offers the needed increase in productivity to stay ahead of the flood.&lt;/p&gt; &lt;p&gt;Semantic technologies on the whole can help with this. Why these should be semantic web or data web technologies as opposed to just semantic is the linked data value proposition. Even smart islands are still islands. Agility, scale, and scope, depend on the possibility of combining things. Therefore common terminologies and dereferenceability and discoverability are important. Without these, we are at best dealing with closed systems even if they were smart. The expert systems of the 1980s are a case in point.&lt;/p&gt; &lt;p&gt;Ever since the .com era, the &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Locator&quot; id=&quot;link-id0x2048e670&quot;&gt;URL&lt;/a&gt; has been a brand. Now it becomes a URI. Thus, entirely hiding the URI from the user experience is not always desirable. The URI is a sort of handle on the provenance and where more can be found; besides, people are already used to these.&lt;/p&gt; &lt;p&gt;With linked data, information value-add products become easy to build and deploy. They can be basically just canned SPARQL queries combining data in a useful and insightful manner. And where there is traffic there can be monetization, whether by advertizing, subscription, or other means. Such possibilities are a natural adjunct to the blogosphere. To publish analysis, one no longer needs to be a think tank or media company. We could call this scenario the birth of a meshup economy.&lt;/p&gt; &lt;p&gt;For OpenLink itself, this is our roadmap. The immediate future is about getting our high end offerings like clustered RDF storage generally available, both on the cloud and for private data centers. Ourselves, we will offer the whole &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x1c696170&quot;&gt;Linked Open Data&lt;/a&gt; cloud as a database. The single feature to come in version 2 of this is fully automatic partitioning and repartitioning for on-demand scale; now, you have to choose how many partitions you have.&lt;/p&gt; &lt;p&gt;This makes some things possible that were hard thus far.&lt;/p&gt; &lt;p&gt;On the mapping front, we go for real-scale data integration scenarios where we can show that SPARQL can unify terms and concepts across databases, yet bring no added cost for complex queries. Enterprises can use their existing warehouses and have an added level of abstraction, the possibility of cross systems interlinking, the advantages of using the same taxonomies and ontologies across systems, and so forth.&lt;/p&gt; &lt;p&gt;Then there will be developments in the direction of smarter web harvesting on demand with the Virtuoso &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/VirtSpongerWhitePaper.html&quot; id=&quot;link-id0x206ab780&quot;&gt;Sponger&lt;/a&gt;, and federation of heterogeneous SPARQL end points. The federation is not so unlike clustering, except the time scales are 2 orders of magnitude longer. The work on SPARQL end point statistics and data set description and discovery is a good development in the community.&lt;/p&gt; &lt;p&gt;Then there will be NLP integration, as exemplified by the Open Calais linked data wrapper and more.&lt;/p&gt; &lt;p&gt;Can we pull this off or is this being spread too thin? We know from experience that all this can be accomplished. Scale is already here; we show it with the billion triples set. Mapping is here; we showed it last in the Berlin Benchmark. We will also show some TPC-H results after we get a little quiet after the ISWC event. Then there is ongoing maintenance but with this we have shown a steady turnaround and quick time to fix for pretty much anything.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso - Are We Too Clever for Our Own Good? (updated)</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-10-26#1465</atom:id>
  <atom:published>2008-10-26T12:15:35Z</atom:published>
  <atom:updated>2008-10-27T12:07:52-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;&amp;quot;Physician, heal thyself,&amp;quot; it is said. We profess to say what the messaging of the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x1fa3da18&quot;&gt;semantic web&lt;/a&gt; ought to be, but is our own perfect?&lt;/p&gt; &lt;p&gt;I will here engage in some critical introspection as well as amplify on some answers given to &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1e1eecf0&quot;&gt;Virtuoso&lt;/a&gt;-related questions in recent times.&lt;/p&gt; &lt;p&gt;I use some conversations from the &lt;a href=&quot;http://dbpedia.org/resource/Vienna&quot; id=&quot;link-id0x1ec0b2e0&quot;&gt;Vienna&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x2045ac10&quot;&gt;Linked Data&lt;/a&gt; Practitioners meeting as a starting point. These views are mine and are limited to the Virtuoso server. These do not apply to the &lt;a href=&quot;http://dbpedia.org/resource/OpenLink_Data_Spaces&quot; id=&quot;link-id0x2045ac38&quot;&gt;ODS&lt;/a&gt; (&lt;a href=&quot;http://dbpedia.org/resource/OpenLink_Data_Spaces&quot; id=&quot;link-id0x14f63c58&quot;&gt;OpenLink Data Spaces&lt;/a&gt;) applications line, &lt;a href=&quot;http://oat.openlinksw.com/&quot; id=&quot;link-id0x14f63c80&quot;&gt;OAT&lt;/a&gt; (&lt;a href=&quot;http://oat.openlinksw.com/&quot; id=&quot;link-id0x1e536928&quot;&gt;OpenLink Ajax Toolkit&lt;/a&gt;), or &lt;a href=&quot;http://ode.openlinksw.com/&quot; id=&quot;link-id0x1eaed7f8&quot;&gt;ODE&lt;/a&gt; (&lt;a href=&quot;http://ode.openlinksw.com/&quot; id=&quot;link-id0x1edfff88&quot;&gt;OpenLink Data Explorer&lt;/a&gt;).&lt;/p&gt; &lt;h3&gt;&amp;quot;It is not always clear what the main thrust is, we get the impression that you are spread too thin,&amp;quot; said &lt;a href=&quot;http://www.informatik.uni-leipzig.de/~auer/foaf.rdf#me&quot; id=&quot;link-id0x1b8a9580&quot;&gt;SÃ¶ren Auer&lt;/a&gt;.&lt;/h3&gt; &lt;p&gt;Well, personally, I am all for core competence. This is why I do not participate in all the online conversations and groups as much as I could, for example. Time and energy are critical resources and must be invested where they make a difference. In this case, the real core competence is running in the database race. This in itself, come to think of it, is a pretty broad concept.&lt;/p&gt; &lt;p&gt;This is why we put a lot of emphasis on Linked Data and the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1b85fa38&quot;&gt;Data&lt;/a&gt; Web for now, as this is the emerging game. This is a deliberate choice, not an outside imperative or built-in limitation. More specifically, this means exposing any pre-existing relational data as linked data plus being the definitive &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1f5b4468&quot;&gt;RDF&lt;/a&gt; store.&lt;/p&gt; &lt;p&gt;We can do this because we own our database and &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x20076468&quot;&gt;SQL&lt;/a&gt; and data access middleware and have a history of connecting to any &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x1ffd6f98&quot;&gt;RDBMS&lt;/a&gt; out there.&lt;/p&gt; &lt;p&gt;The principal message we have been hearing from the RDF field is the call for scale of triple storage. This is even louder than the call for relational mapping. We believe that in time mapping will exceed triple storage as such, once we get some real production strength mappings deployed, enough to outperform RDF warehousing.&lt;/p&gt; &lt;p&gt;There are also RDF middleware things like RDF-ization and demand-driven web harvesting (i.e, the so-called Sponger). These are &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1316f720&quot;&gt;SPARQL&lt;/a&gt; options, thus accessed via standard interfaces. We have little desire to create our own languages or APIs, or to tell people how to program. This is why we recently introduced &lt;a href=&quot;http://sourceforge.net/projects/sesame/&quot; id=&quot;link-id0x20756a68&quot;&gt;Sesame&lt;/a&gt;- and &lt;a href=&quot;http://jena.sourceforge.net/&quot; id=&quot;link-id0x1ec01ac0&quot;&gt;Jena&lt;/a&gt;-compatible APIs to our RDF store. From what we hear, these work. On the other hand, we do not hesitate to move beyond the standards when there is obvious value or necessity. This is why we brought SPARQL up to and beyond SQL expressivity. It is not a case of E3 (Embrace, Extend, Extinguish).&lt;/p&gt; &lt;p&gt;Now, this message could be better reflected in our material on the web. This &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0x2027b410&quot;&gt;blog&lt;/a&gt; is a rather informal step in this direction; more is to come. For now we concentrate on delivering.&lt;/p&gt; &lt;p&gt;The conventional communications wisdom is to split the message by target audience. For this, we should split the RDF, relational, and web services messages from each other. We believe that a challenger, like the semantic web technology stack, must have a compelling message to tell for it to be interesting. This is not a question of research prototypes. The new technology cannot lack something the installed technology takes for granted.&lt;/p&gt; &lt;p&gt;This is why we do not tend to show things like how to insert and query a few triples: No business out there will insert and query triples for the sake of triples. There must be a more compelling story â for example, turning the whole world into a database. This is why our examples start with things like turning the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x2051ff98&quot;&gt;TPC-H&lt;/a&gt; database into RDF, queries and all. Anything less is not interesting. Why would an enterprise that has business intelligence and integration issues way more complex than the rather stereotypical TPC-H even look at a technology that pretends to be all for integration and all for expressivity of queries, yet cannot answer the first question of the entry exam?&lt;/p&gt; &lt;p&gt;The world out there is complex. But maybe we ought to make some simple tutorials? So, as a call to the people out there, tell us what a good tutorial would be. The question is more about figuring out what is out there and adapting these and making a sort of compatibility list. Jena and Sesame stuff ought to run as is. We could offer a webinar to all the data web luminaries showing how to promote the data web message with Virtuoso. After all, why not show it on the best platform?&lt;/p&gt; &lt;h3&gt;&amp;quot;You are arrogant. When I read your papers or documentation, the impression I get is that you say you are smart and the reader is stupid.&amp;quot;&lt;/h3&gt; &lt;p&gt;We should answer in multiple parts.&lt;/p&gt; &lt;p&gt;For general collateral, like web sites and documentation:&lt;/p&gt; &lt;p&gt;The web site gives a confused product image. For the Virtuoso product, we should divide at the top into&lt;/p&gt; &lt;ul&gt; &lt;li&gt; Data web and RDF - Host linked data, expose relational assets as linked data;&lt;/li&gt; &lt;li&gt; Relational Database - Full function, high performance, open source, Federated/Virtual Relational DBMS, expose heterogeneous RDB assets through one point of contact for integration;&lt;/li&gt; &lt;li&gt; Web Services - access all the above over standard protocols, dynamic web pages, web hosting.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;For each point, one simple statement. We all know what the above things mean?&lt;/p&gt; &lt;p&gt;Then we add a new point about scalability that impacts all the above, namely the Virtuoso version 6 Cluster, meaning that you can do all these things at 10 to 1000 times the scale. This means this much more data or in some cases this much more requests per second. This too is clear.&lt;/p&gt; &lt;p&gt;Far as I am concerned, hosting Java or .&lt;a href=&quot;http://dbpedia.org/resource/.NET_Framework&quot; id=&quot;link-id0x1f297540&quot;&gt;NET&lt;/a&gt; does not have to be on the front page. Also, we have no great interest in going against &lt;a href=&quot;http://dbpedia.org/resource/Apache&quot; id=&quot;link-id0x1ea29578&quot;&gt;Apache&lt;/a&gt; when it comes to a web server only situation. The fact that we have a web listener is important for some things but our claim to fame does not rest on this.&lt;/p&gt; &lt;p&gt;Then for documentation and training materials: The documentation should be better. Specifically it should have more of a how-to dimension since nobody reads the whole thing anyhow. About online tutorials, the order of presentation should be different. They do not really reflect what is important at the present moment either.&lt;/p&gt; &lt;p&gt;Now for conference papers: Since taking the data web as a focus area, we have submitted some papers and had some rejected because these do not have enough references and do not explain what is obvious to ourselves.&lt;/p&gt; &lt;p&gt;I think that the communications failure in this case is that we want to talk about end to end solutions and the reviewers expect research. For us, the solution is interesting and exists only if there is an adequate functionality mix for addressing a specific use case. This is why we do not make a paper about query cost model alone because the cost model, while indispensable, is a thing that is taken for granted where we come from. So we mention RDF adaptations to cost model, as these are important to the whole but do not find these to be the justification for a whole paper. If we made papers on this basis, we would have to make five times as many. Maybe we ought to.&lt;/p&gt; &lt;h3&gt;&amp;quot;Virtuoso is very big and very difficult&amp;quot;&lt;/h3&gt; &lt;p&gt;One thing that is not obvious from the Virtuoso packaging is that the minimum installation is an executable under 10MB and a config file. Two files.&lt;/p&gt; &lt;p&gt;This gives you SQL and SPARQL out of the box. Adding &lt;a href=&quot;http://dbpedia.org/resource/Open_Database_Connectivity&quot; id=&quot;link-id0x20a2e7d0&quot;&gt;ODBC&lt;/a&gt; and &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id0x1e4cceb8&quot;&gt;JDBC&lt;/a&gt; clients is as simple as it gets. After this, there is basic database functionality. Tuning is a matter of a few parameters that are explained on this blog and elsewhere. Also, the full scale installation is available as an Amazon EC2 image, so no installation required.&lt;/p&gt; &lt;p&gt;Now for the difficult side:&lt;/p&gt; &lt;p&gt;Use SQL and SPARQL; use stored procedures whenever there is server side business logic. For some time critical web pages, use VSP. Do not use VSPX. Otherwise, use whatever you are used to â &lt;a href=&quot;http://dbpedia.org/resource/PHP&quot; id=&quot;link-id0x20b03f08&quot;&gt;PHP&lt;/a&gt; or Java or anything else. For web services, simple is best. Stick to basics. &amp;quot;The engineer is one who can invent a simple thing.&amp;quot; Use SQL statements rather than admin UI.&lt;/p&gt; &lt;p&gt;Know that you can start a server with no database file and you get an initial database with nothing extra. The demo database, the way it is produced by installers is cluttered.&lt;/p&gt; &lt;p&gt;We should put this into a couple of use case oriented how-tos.&lt;/p&gt; &lt;p&gt;Also, we should create a network of &amp;quot;friendly local virtuoso geeks&amp;quot; for providing basic training and services so we do not have to explain these things all the time. To all you data-web-ers out there â please sign up and we will provide instructions, etc. Contact YrjÃ¤nÃ¤ Rankka (ghard[at-sign]openlinksw.com), or go through the mailing lists; do not contact me directly.&lt;/p&gt; &lt;h3&gt;&amp;quot;OK, we understand that you may be good at the large end of the spectrum but how do you reconcile this with the lightweight or embedded end, like the semantic desktop?&amp;quot;&lt;/h3&gt; &lt;p&gt;Now, what is good for one end is usually good for the other. Namely, a database, no matter the scale, needs to have space efficient storage, fast index lookup, and correct query plans. Then there are things that occur only at the high-end, like clustering, but these are separate things. For embedding, the initial memory footprint needs to be small. With Virtuoso, this is accomplished by leaving out some 200 built-in tables and 100,000 lines of SQL procedures that are normally in by default, supporting things such as DAV and diverse other protocols. After all, if SPARQL is all one wants these are not needed.&lt;/p&gt; &lt;p&gt;If one really wants to do one&amp;#39;s server logic (like web listener and thread dispatching) oneself, this is not impossible but requires some advice from us. On the other hand, if one wants to have logic for security close to the data, then using stored procedures is recommended; these execute right next to the data, and support inline SPARQL and SQL. Depending on the license status of the other code, some special licensing arrangements may apply.&lt;/p&gt; &lt;p&gt;We are talking about such things with different parties at present.&lt;/p&gt; &lt;h3&gt;&amp;quot;How webby are you? What is webby?&amp;quot;&lt;/h3&gt; &lt;p&gt;&amp;quot;Webby means distributed, heterogeneous, open; not monolithic consolidation of everything.&amp;quot;&lt;/p&gt; &lt;p&gt;We are philosophically webby. We come from open standards; we are after all called OpenLink; our history consists of connecting things. We believe in choice â the user should be able to pick the best of breed for components and have them work together. We cannot and do not wish to force replacement of existing assets. Transforming data on the fly and connecting systems, leaving data where it originally resides, is the first preference. For the data web, the first preference is a federation of independent SPARQL end points. When there is harvesting, we prefer to do it on demand, as with our Sponger. With the immense amount of data out there we believe in finding what is relevant &lt;i&gt;when&lt;/i&gt; it is relevant, preferably close at hand, leveraging things like social networks. With a data web, many things which are now siloized, such as marketplaces and social networks, will return to the open.&lt;/p&gt; &lt;p&gt;Google-style crawling of everything becomes less practical if one needs to run complex &lt;i&gt;ad hoc&lt;/i&gt; queries against the mass of data. For these types of scenarios, if one needs to warehouse, the data cloud will offer solutions where one pays for database on demand. While we believe in loosely coupled federation where possible, we have serious work on the scalability side for the data center and the compute-on-demand cloud.&lt;/p&gt; &lt;h3&gt;&amp;quot;How does OpenLink see the next five years unfolding?&amp;quot;&lt;/h3&gt; &lt;p&gt;Personally, I think we have the basics for the birth of a new inflection in the &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x2018bd98&quot;&gt;knowledge&lt;/a&gt; economy. The &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id0x1ec110d8&quot;&gt;URI&lt;/a&gt; is the unit of exchange; its value and competitive edge lie in the data it links you with. A name without context is worth little, but as a name gets more use, more &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x1ecfba08&quot;&gt;information&lt;/a&gt; can be found through that name. This is anything from financial statistics, to legal precedents, to news reporting or government data. Right now, if the SEC just added one line of markup to the XBRL template, this would instantaneously make all SEC-mandated reporting into linked data via GRDDL.&lt;/p&gt; &lt;p&gt;The URI is a carrier of brand. An information brand gets traffic and references, and this can be monetized in diverse ways. The key word is &lt;i&gt;context&lt;/i&gt;. Information overload is here to stay, and only better context offers the needed increase in productivity to stay ahead of the flood.&lt;/p&gt; &lt;p&gt;Semantic technologies on the whole can help with this. Why these should be semantic web or data web technologies as opposed to just semantic is the linked data value proposition. Even smart islands are still islands. Agility, scale, and scope, depend on the possibility of combining things. Therefore common terminologies and dereferenceability and discoverability are important. Without these, we are at best dealing with closed systems even if they were smart. The expert systems of the 1980s are a case in point.&lt;/p&gt; &lt;p&gt;Ever since the .com era, the &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Locator&quot; id=&quot;link-id0x1c4c9248&quot;&gt;URL&lt;/a&gt; has been a brand. Now it becomes a URI. Thus, entirely hiding the URI from the user experience is not always desirable. The URI is a sort of handle on the provenance and where more can be found; besides, people are already used to these.&lt;/p&gt; &lt;p&gt;With linked data, information value-add products become easy to build and deploy. They can be basically just canned SPARQL queries combining data in a useful and insightful manner. And where there is traffic there can be monetization, whether by advertizing, subscription, or other means. Such possibilities are a natural adjunct to the blogosphere. To publish analysis, one no longer needs to be a think tank or media company. We could call this scenario the birth of a meshup economy.&lt;/p&gt; &lt;p&gt;For OpenLink itself, this is our roadmap. The immediate future is about getting our high end offerings like clustered RDF storage generally available, both on the cloud and for private data centers. Ourselves, we will offer the whole &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x20791bf0&quot;&gt;Linked Open Data&lt;/a&gt; cloud as a database. The single feature to come in version 2 of this is fully automatic partitioning and repartitioning for on-demand scale; now, you have to choose how many partitions you have.&lt;/p&gt; &lt;p&gt;This makes some things possible that were hard thus far.&lt;/p&gt; &lt;p&gt;On the mapping front, we go for real-scale data integration scenarios where we can show that SPARQL can unify terms and concepts across databases, yet bring no added cost for complex queries. Enterprises can use their existing warehouses and have an added level of abstraction, the possibility of cross systems interlinking, the advantages of using the same taxonomies and ontologies across systems, and so forth.&lt;/p&gt; &lt;p&gt;Then there will be developments in the direction of smarter web harvesting on demand with the Virtuoso &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/VirtSpongerWhitePaper.html&quot; id=&quot;link-id0x1f27e6d8&quot;&gt;Sponger&lt;/a&gt;, and federation of heterogeneous SPARQL end points. The federation is not so unlike clustering, except the time scales are 2 orders of magnitude longer. The work on SPARQL end point statistics and data set description and discovery is a good development in the community.&lt;/p&gt; &lt;p&gt;Then there will be NLP integration, as exemplified by the Open Calais linked data wrapper and more.&lt;/p&gt; &lt;p&gt;Can we pull this off or is this being spread too thin? We know from experience that all this can be accomplished. Scale is already here; we show it with the billion triples set. Mapping is here; we showed it last in the Berlin Benchmark. We will also show some TPC-H results after we get a little quiet after the ISWC event. Then there is ongoing maintenance but with this we have shown a steady turnaround and quick time to fix for pretty much anything.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>State of the Semantic Web, Part 2 - The Technical Questions (updated)</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-10-26#1466</atom:id>
  <atom:published>2008-10-26T12:02:43Z</atom:published>
  <atom:updated>2008-10-27T11:28:14-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;Here I will talk about some more technical questions that came up. This is mostly general; &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x205901a0&quot;&gt;Virtuoso&lt;/a&gt; specific questions and answers are separate. &lt;/p&gt; &lt;h3&gt;&amp;quot;How to Bootstrap? Where will the triples come from?&amp;quot;&lt;/h3&gt; &lt;p&gt;There are already wrappers producing &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x13519ac8&quot;&gt;RDF&lt;/a&gt; from many applications. Since any structured or semi-structured &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1c93b418&quot;&gt;data&lt;/a&gt; can be converted to RDF and often there is even a pre-existing terminology for the application domain, the availability of the data &lt;i&gt;per se&lt;/i&gt; is not the concern.&lt;/p&gt; &lt;p&gt;The triples may come from any application or database, but they will not come from the end user directly. There was a good talk about photograph annotation in &lt;a href=&quot;http://dbpedia.org/resource/Vienna&quot; id=&quot;link-id0x1ea9d150&quot;&gt;Vienna&lt;/a&gt;, describing many ways of deriving metadata for photos. The essential wisdom is annotating on the spot and wherever possible doing so automatically. The consumer is very unlikely to go annotate photos after the fact. Further, one can infer that photos made with the same camera around the same time are from the same location. There are other such heuristics. In this use case, the end user does not need to see triples. There is some benefit though in using commonly used geographical terminology for linking to other data sources.&lt;/p&gt; &lt;h3&gt;&amp;quot;How will one develop applications?&amp;quot;&lt;/h3&gt; &lt;p&gt;I&amp;#39;d say one will develop them much the same way as thus far. In &lt;a href=&quot;http://dbpedia.org/resource/PHP&quot; id=&quot;link-id0x207fca00&quot;&gt;PHP&lt;/a&gt;, for example. Whether one&amp;#39;s query language is &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x20a5fde0&quot;&gt;SPARQL&lt;/a&gt; or &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1a0bb5e0&quot;&gt;SQL&lt;/a&gt; does not make a large difference in how basic web UI is made.&lt;/p&gt; &lt;p&gt;A SPARQL end-point is no more an end-user item than a SQL command-line is.&lt;/p&gt; &lt;p&gt;A common mistake among techies is that they think the data structure and user experience can or ought to be of the same structure. The UI dialogs do not, for example, have to have a 1:1 correspondence with SQL tables.&lt;/p&gt; &lt;p&gt;The idea of generating UI from data, whether relational or data-web, is so seductive that generation upon generation of developers fall for it, repeatedly. Even I, at OpenLink, after supposedly having been around the block a couple of times made some experiments around the topic. What does make sense is putting a thin wrapper or HTML around the application, using XSLT and such for formatting. Since the model does allow for unforeseen properties of data, one can build a viewer for these alongside the regular forms. For this, Ajax technologies like &lt;a href=&quot;http://oat.openlinksw.com/&quot; id=&quot;link-id0x1e91d118&quot;&gt;OAT&lt;/a&gt; (the &lt;a href=&quot;http://oat.openlinksw.com/&quot; id=&quot;link-id0x174b7950&quot;&gt;OpenLink AJAX Toolkit&lt;/a&gt;) will be good.&lt;/p&gt; &lt;p&gt;The UI ought not to completely hide the URIs of the data from the user. It should offer a drill down to faceted views of the triples for example. Remember when Xerox talked about graphical user interfaces in 1980? &amp;quot;Don&amp;#39;t mode me in&amp;quot; was the slogan, as I recall.&lt;/p&gt; &lt;p&gt;Since then, we have vacillated between modal and non-modal interaction models. Repetitive workflows like order entry go best modally and are anyway being replaced by web services. Also workflows that are very infrequent benefit from modality; take personal network setup wizards, for example. But enabling the &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x1ea14610&quot;&gt;knowledge&lt;/a&gt; worker is a domain that by its nature must retain some respect for human intelligence and not kill this by denying access to the underlying data, including provenance and URIs. Face it: the world is not getting simpler. It is increasingly data dependent and when this is so, having semantics and flexibility of access for the data is important.&lt;/p&gt; &lt;p&gt;For a real-time task-oriented user interface like a fighter plane cockpit, one will not show URIs unless specifically requested. For planning fighter sorties though, there is some potential benefit in having all data such as friendly and hostile assets, geography, organizational structure, etc., as &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x207bcd20&quot;&gt;linked data&lt;/a&gt;. It makes for more flexible querying. Linked data does not &lt;i&gt;per se&lt;/i&gt; mean open, so one can be joinable with open data through using the same identifiers even while maintaining arbitrary levels of security and compartmentalization.&lt;/p&gt; &lt;p&gt;For automating tasks that every time involve the same data and queries, RDF has no intrinsic superiority. Thus the user interfaces in places where RDF will have real edge must be more capable of &lt;i&gt;ad hoc&lt;/i&gt; viewing and navigation than regular real-time or line of business user interfaces.&lt;/p&gt; &lt;p&gt;The &lt;a href=&quot;http://ode.openlinksw.com/&quot; id=&quot;link-id0x2083a6f0&quot;&gt;OpenLink Data Explorer&lt;/a&gt; idea of a &amp;quot;data behind the web page&amp;quot; view goes in this direction. Read the web as before, then hit a switch to go to the data view. There are and will be separate clarifications and demos about this.&lt;/p&gt; &lt;h3&gt;&amp;quot;What of the proliferation of standards? Does this not look too tangled, no clear identity? How would one know where to begin?&amp;quot;&lt;/h3&gt; &lt;p&gt;When &lt;a href=&quot;http://www.w3.org/2001/sw/sweo/&quot; id=&quot;link-id0x1e8eac68&quot;&gt;SWEO&lt;/a&gt; was beginning, there was an endlessly protracted discussion of the so-called layer cake. This acronym jungle is not good messaging. Just say linked, flexibly repurpose-able data, and rich vocabularies and structure. Just the right amount of structure for the application, less rigid and easier to change than relational.&lt;/p&gt; &lt;p&gt;Do not even mention the different serialization formats. Just say that it fits on top of the accepted web infrastructure â &lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0x1e3806b8&quot;&gt;HTTP&lt;/a&gt;, URIs, and &lt;a href=&quot;http://dbpedia.org/resource/XML&quot; id=&quot;link-id0x1f547288&quot;&gt;XML&lt;/a&gt; where desired.&lt;/p&gt; &lt;p&gt;It is misleading to say inference is a box at some specific place in the diagram. Inference of different types may or may not take place at diverse points, whether presentation or storage, on demand or as a preprocessing step. Since there is structure and semantics, inference is possible if desired.&lt;/p&gt; &lt;h3&gt;&amp;quot;Can I make a social network application in RDF only, with no &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x20553ee0&quot;&gt;RDBMS&lt;/a&gt;?&amp;quot;&lt;/h3&gt; &lt;p&gt;Yes, in principle, but what do you have in mind? The answer is very context dependent. The person posing the question had an E-learning system in mind, with things such as course catalogues, course material, etc. In such a case, RDF is a great match, especially since the user count will not be in the millions. No university has that many students and anyway they do not hang online browsing the course catalogue.&lt;/p&gt; &lt;p&gt;On the other hand, if I think of making a social network site with RDF as the exclusive data model, I see things that would be very inefficient. For example, keeping a count of logins or the last time of login would be by default several times less efficient than with a RDBMS.&lt;/p&gt; &lt;p&gt;If some application is really large scale and has a knowable workload profile, like any social network does, then some task-specific data structure is simply economical. This does not mean that the application language cannot be SPARQL but this means that the storage format must be tuned to favor some operations over others, relational style. This is a matter of cost more than of feasibility. Ten servers cost less than a hundred and have failures ten times less frequently.&lt;/p&gt; &lt;p&gt;In the near term we will see the birth of an application paradigm for the data web. The data will be open, exposed, first-class citizen; yet the user experience will not have to be in a 1:1 image of the data.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>State of the Semantic Web, Part 2 - The Technical Questions (updated)</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-10-26#1464</atom:id>
  <atom:published>2008-10-26T12:02:43Z</atom:published>
  <atom:updated>2008-10-27T11:28:01-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;Here I will talk about some more technical questions that came up. This is mostly general; &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1f53d1a0&quot;&gt;Virtuoso&lt;/a&gt; specific questions and answers are separate. &lt;/p&gt; &lt;h3&gt;&amp;quot;How to Bootstrap? Where will the triples come from?&amp;quot;&lt;/h3&gt; &lt;p&gt;There are already wrappers producing &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1beda278&quot;&gt;RDF&lt;/a&gt; from many applications. Since any structured or semi-structured &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1e57c648&quot;&gt;data&lt;/a&gt; can be converted to RDF and often there is even a pre-existing terminology for the application domain, the availability of the data &lt;i&gt;per se&lt;/i&gt; is not the concern.&lt;/p&gt; &lt;p&gt;The triples may come from any application or database, but they will not come from the end user directly. There was a good talk about photograph annotation in &lt;a href=&quot;http://dbpedia.org/resource/Vienna&quot; id=&quot;link-id0x2028b7e8&quot;&gt;Vienna&lt;/a&gt;, describing many ways of deriving metadata for photos. The essential wisdom is annotating on the spot and wherever possible doing so automatically. The consumer is very unlikely to go annotate photos after the fact. Further, one can infer that photos made with the same camera around the same time are from the same location. There are other such heuristics. In this use case, the end user does not need to see triples. There is some benefit though in using commonly used geographical terminology for linking to other data sources.&lt;/p&gt; &lt;h3&gt;&amp;quot;How will one develop applications?&amp;quot;&lt;/h3&gt; &lt;p&gt;I&amp;#39;d say one will develop them much the same way as thus far. In &lt;a href=&quot;http://dbpedia.org/resource/PHP&quot; id=&quot;link-id0x1eff1748&quot;&gt;PHP&lt;/a&gt;, for example. Whether one&amp;#39;s query language is &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1d83dff8&quot;&gt;SPARQL&lt;/a&gt; or &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1e9f4e88&quot;&gt;SQL&lt;/a&gt; does not make a large difference in how basic web UI is made.&lt;/p&gt; &lt;p&gt;A SPARQL end-point is no more an end-user item than a SQL command-line is.&lt;/p&gt; &lt;p&gt;A common mistake among techies is that they think the data structure and user experience can or ought to be of the same structure. The UI dialogs do not, for example, have to have a 1:1 correspondence with SQL tables.&lt;/p&gt; &lt;p&gt;The idea of generating UI from data, whether relational or data-web, is so seductive that generation upon generation of developers fall for it, repeatedly. Even I, at OpenLink, after supposedly having been around the block a couple of times made some experiments around the topic. What does make sense is putting a thin wrapper or HTML around the application, using XSLT and such for formatting. Since the model does allow for unforeseen properties of data, one can build a viewer for these alongside the regular forms. For this, Ajax technologies like &lt;a href=&quot;http://oat.openlinksw.com/&quot; id=&quot;link-id0x1d780520&quot;&gt;OAT&lt;/a&gt; (the &lt;a href=&quot;http://oat.openlinksw.com/&quot; id=&quot;link-id0x20943788&quot;&gt;OpenLink AJAX Toolkit&lt;/a&gt;) will be good.&lt;/p&gt; &lt;p&gt;The UI ought not to completely hide the URIs of the data from the user. It should offer a drill down to faceted views of the triples for example. Remember when Xerox talked about graphical user interfaces in 1980? &amp;quot;Don&amp;#39;t mode me in&amp;quot; was the slogan, as I recall.&lt;/p&gt; &lt;p&gt;Since then, we have vacillated between modal and non-modal interaction models. Repetitive workflows like order entry go best modally and are anyway being replaced by web services. Also workflows that are very infrequent benefit from modality; take personal network setup wizards, for example. But enabling the &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x1e14eb88&quot;&gt;knowledge&lt;/a&gt; worker is a domain that by its nature must retain some respect for human intelligence and not kill this by denying access to the underlying data, including provenance and URIs. Face it: the world is not getting simpler. It is increasingly data dependent and when this is so, having semantics and flexibility of access for the data is important.&lt;/p&gt; &lt;p&gt;For a real-time task-oriented user interface like a fighter plane cockpit, one will not show URIs unless specifically requested. For planning fighter sorties though, there is some potential benefit in having all data such as friendly and hostile assets, geography, organizational structure, etc., as &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x1e91d118&quot;&gt;linked data&lt;/a&gt;. It makes for more flexible querying. Linked data does not &lt;i&gt;per se&lt;/i&gt; mean open, so one can be joinable with open data through using the same identifiers even while maintaining arbitrary levels of security and compartmentalization.&lt;/p&gt; &lt;p&gt;For automating tasks that every time involve the same data and queries, RDF has no intrinsic superiority. Thus the user interfaces in places where RDF will have real edge must be more capable of &lt;i&gt;ad hoc&lt;/i&gt; viewing and navigation than regular real-time or line of business user interfaces.&lt;/p&gt; &lt;p&gt;The &lt;a href=&quot;http://ode.openlinksw.com/&quot; id=&quot;link-id0x1c7f8ee0&quot;&gt;OpenLink Data Explorer&lt;/a&gt; idea of a &amp;quot;data behind the web page&amp;quot; view goes in this direction. Read the web as before, then hit a switch to go to the data view. There are and will be separate clarifications and demos about this.&lt;/p&gt; &lt;h3&gt;&amp;quot;What of the proliferation of standards? Does this not look too tangled, no clear identity? How would one know where to begin?&amp;quot;&lt;/h3&gt; &lt;p&gt;When &lt;a href=&quot;http://www.w3.org/2001/sw/sweo/&quot; id=&quot;link-id0x1d73c268&quot;&gt;SWEO&lt;/a&gt; was beginning, there was an endlessly protracted discussion of the so-called layer cake. This acronym jungle is not good messaging. Just say linked, flexibly repurpose-able data, and rich vocabularies and structure. Just the right amount of structure for the application, less rigid and easier to change than relational.&lt;/p&gt; &lt;p&gt;Do not even mention the different serialization formats. Just say that it fits on top of the accepted web infrastructure â &lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0x1efefed0&quot;&gt;HTTP&lt;/a&gt;, URIs, and &lt;a href=&quot;http://dbpedia.org/resource/XML&quot; id=&quot;link-id0x1af89b18&quot;&gt;XML&lt;/a&gt; where desired.&lt;/p&gt; &lt;p&gt;It is misleading to say inference is a box at some specific place in the diagram. Inference of different types may or may not take place at diverse points, whether presentation or storage, on demand or as a preprocessing step. Since there is structure and semantics, inference is possible if desired.&lt;/p&gt; &lt;h3&gt;&amp;quot;Can I make a social network application in RDF only, with no &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x1cb62cd8&quot;&gt;RDBMS&lt;/a&gt;?&amp;quot;&lt;/h3&gt; &lt;p&gt;Yes, in principle, but what do you have in mind? The answer is very context dependent. The person posing the question had an E-learning system in mind, with things such as course catalogues, course material, etc. In such a case, RDF is a great match, especially since the user count will not be in the millions. No university has that many students and anyway they do not hang online browsing the course catalogue.&lt;/p&gt; &lt;p&gt;On the other hand, if I think of making a social network site with RDF as the exclusive data model, I see things that would be very inefficient. For example, keeping a count of logins or the last time of login would be by default several times less efficient than with a RDBMS.&lt;/p&gt; &lt;p&gt;If some application is really large scale and has a knowable workload profile, like any social network does, then some task-specific data structure is simply economical. This does not mean that the application language cannot be SPARQL but this means that the storage format must be tuned to favor some operations over others, relational style. This is a matter of cost more than of feasibility. Ten servers cost less than a hundred and have failures ten times less frequently.&lt;/p&gt; &lt;p&gt;In the near term we will see the birth of an application paradigm for the data web. The data will be open, exposed, first-class citizen; yet the user experience will not have to be in a 1:1 image of the data.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>State of the Semantic Web, Part 1 - Sociology, Business, and Messaging (update 2)</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-10-24#1460</atom:id>
  <atom:published>2008-10-24T10:19:03Z</atom:published>
  <atom:updated>2008-10-27T11:28:07-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;I was in &lt;a href=&quot;http://dbpedia.org/resource/Vienna&quot; id=&quot;link-id0x1f18a540&quot;&gt;Vienna&lt;/a&gt; for the &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x1ec788a0&quot;&gt;Linked Data&lt;/a&gt; Practitioners gathering this week. Danny Ayers asked me if I would &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0x20838238&quot;&gt;blog&lt;/a&gt; about the State of the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x20694ed8&quot;&gt;Semantic Web&lt;/a&gt; or write the &lt;i&gt;This Week&amp;#39;s Semantic Web&lt;/i&gt; column. I don&amp;#39;t have the time to cover all that may have happened during the past week but I will editorialize about the questions that again were raised in Vienna. How these things relate to &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x20b1cd38&quot;&gt;Virtuoso&lt;/a&gt; will be covered separately. This is about the overarching questions of the times, not the finer points of geek craft.&lt;/p&gt; &lt;p&gt; &lt;a href=&quot;http://www.informatik.uni-leipzig.de/~auer/foaf.rdf#me&quot; id=&quot;link-id0x1ff31b30&quot;&gt;SÃ¶ren Auer&lt;/a&gt; asked me to say a few things about relational to &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1f8118e0&quot;&gt;RDF&lt;/a&gt; mapping. I will cite some highlights from this, as they pertain to the general scene. There was an &amp;quot;open hacking&amp;quot; session Wednesday night featuring lightning talks. I will use some of these too as a starting point.&lt;/p&gt; &lt;h3&gt;The messaging?&lt;/h3&gt; &lt;p&gt;The &lt;a href=&quot;http://www.w3.org/2001/sw/sweo/&quot; id=&quot;link-id0x1dc39210&quot;&gt;SWEO&lt;/a&gt; (Semantic Web Education and Outreach) interest group of the W3C spent some time looking for an elevator pitch for the Semantic Web. It became &amp;quot;&lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1f24dd98&quot;&gt;Data&lt;/a&gt; Unleashed.&amp;quot; Why not? Let&amp;#39;s give this some context.&lt;/p&gt; &lt;p&gt;So, if we are holding a &lt;i&gt;Semantic Web 101&lt;/i&gt; session, where should we begin? I hazard to guess that we should not begin by writing a FOAF file in Turtle by hand, as this is one thing that is not likely to happen in the real world.&lt;/p&gt; &lt;p&gt;Of course, the social aspect of the Data Web is the most immediately engaging, so a demo might be to go make an account with &lt;a href=&quot;http://myopenlink.net/&quot; id=&quot;link-id0x1f5e0198&quot;&gt;myopenlink&lt;/a&gt;.&lt;a href=&quot;http://dbpedia.org/resource/.NET_Framework&quot; id=&quot;link-id0x1ec49a00&quot;&gt;net&lt;/a&gt; and see that after one has entered the data one normally enters for any social network, one has become a Data Web citizen. This means that one can be found, just like this, with a query against the set of data spaces hosted on the system. Then we just need a few pages that repurpose this data and relate it to other data. We show some samples of queries like this in our &lt;a href=&quot;http://challenge.semanticweb.org/&quot; id=&quot;link-id0x1ee35f70&quot;&gt;Billion Triples Challenge&lt;/a&gt; demo. We will make a webcast about this to make it all clearer.&lt;/p&gt; &lt;p&gt;Behold: The Data Web is about the world becoming a database; writing &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x20644808&quot;&gt;SPARQL&lt;/a&gt; queries or triples is incidental. You will write FOAF files by hand just as little as you now write &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1fd9fbc0&quot;&gt;SQL&lt;/a&gt; insert statements for filling in your account &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x1dfd3540&quot;&gt;information&lt;/a&gt; on Myspace.&lt;/p&gt; &lt;p&gt;Every time there is a major shift in technology, this shift needs to be motivated by addressing a new class of problem. This means doing something that could not be done before. The last time this happened was when the relational database became the dominant IT technology. At that time, the questions involved putting the enterprise in the database and building a cluster of Line Of Business (LOB) applications around the database. The argument for the &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x1e920868&quot;&gt;RDBMS&lt;/a&gt; was that you did not have to constrain the set of queries that might later be made, when designing the database. In other words, it was making things more &lt;i&gt;ad hoc&lt;/i&gt;. This was opposed then on grounds of being less efficient than the hierarchical and network databases which the relational eventually replaced.&lt;/p&gt; &lt;p&gt;Today, the point of the Data Web is that you do not have to constrain what your data can join or integrate with, when you design your database. The counter-argument is that this is slow and geeky and not scalable. See the similarity?&lt;/p&gt; &lt;p&gt;A difference is that we are not specifically aiming at replacing the RDBMS. In fact, if you know exactly what you will query and have a well defined workload, a relational representation optimized for the workload will give you about 10x the performance of the equivalent RDF warehouse. OLTP remains a relational-only domain.&lt;/p&gt; &lt;p&gt;However, when we are talking about doing queries and analytics against the Web, or even against more than a handful of relational systems, the things which make RDBMS good become problematic.&lt;/p&gt; &lt;h3&gt;What is the business value of this?&lt;/h3&gt; &lt;p&gt;The most reliable of human drives is the drive to make oneself known. This drives all, from any social scene to business communications to politics. Today, when you want to proclaim you exist, you do so first on the Web. The Web did not become the prevalent media because business loved it for its own sake, it became prevalent because business could not afford not to assert their presence there. If anything, the Web eroded the communications dominance of a lot of players, which was not welcome but still had to be dealt with, by embracing the Web.&lt;/p&gt; &lt;p&gt;Today, in a world driven by data, the Data Web will be catalyzed by similar factors: If your data is not there, you will not figure in query results. Search engines will play some role there but also many social applications will have reports that are driven by published data. Also consider any e-commerce, any marketplace, and so forth. The Data Portability movement is a case in point: Users want to own their own content; silo operators want to capitalize on holding it. Right now, we see these things in silos; the Data Web will create bridges between these, and what is now in silo data centers will be increasingly available on an ad hoc basis with Open Data.&lt;/p&gt; &lt;p&gt;Again, we see a movement from the specialized to the generic: What LinkedIn does in its data center can be done with ad hoc queries with &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x1e715138&quot;&gt;linked open data&lt;/a&gt;. Of course, LinkedIn does these things somewhat more efficiently because their system is built just for this task, but the linked data approach has the built-in readiness to join with everything else at almost no cost, without making a new data warehouse for each new business question.&lt;/p&gt; &lt;p&gt;We could call this the sociological aspect of the thing. Getting to more concrete business, we see an economy that, we could say, without being alarmists, is confronted with some issues. Well, generally when times are bad, this results in consolidation of property and power. Businesses fail and get split up and sold off in pieces, government adds controls and regulations and so forth. This means ad hoc data integration, as control without data is just pretense. If times are lean, this also means that there is little readiness to do wholesale replacement of systems, which will take years before producing anything. So we must play with what there is and make it deliver, in ways and conditions that were not necessarily anticipated. The agility of the Data Web, if correctly understood, can be of great benefit there, especially on the reporting and business intelligence side. Specifically mapping line-of-business systems into RDF on the fly will help with integration, making the specialized warehouse the slower and more expensive alternative. But this too is needed at times.&lt;/p&gt; &lt;p&gt;But for the RDF community to be taken seriously there, the messaging must be geared in this direction. Writing FOAF files by hand is not where you begin the pitch. Well, what is more natural then having a global, queriable information space, when you have a global information driven economy?&lt;/p&gt; &lt;p&gt;The Data Web is about making this happen. First with doing this in published generally available data; next with the enterprises having their private data for their own use but still linking toward the outside, even though private data stays private: You can still use standard terms and taxonomies, where they apply, when talking of proprietary information.&lt;/p&gt; &lt;h3&gt;But let&amp;#39;s get back to more specific issues&lt;/h3&gt; &lt;p&gt;At the lightning talks in Vienna, one participant said, &amp;quot;Man&amp;#39;s enemy is not the lion that eats men, it&amp;#39;s his own brother. Semantic Web&amp;#39;s enemy is the &lt;a href=&quot;http://dbpedia.org/resource/XML&quot; id=&quot;link-id0x1aeb61b8&quot;&gt;XML&lt;/a&gt; Web services stack that ate its lunch.&amp;quot; There is some truth to the first part. The second part deserves some comment. The Web services stack is about transactions. When you have a fixed, often repeating task, it is a natural thing to make this a Web service. Even though SOA is not really prevalent in enterprise IT, it has value in things like managing supply-chain logistics with partners, etc. Lots of standard messages with unambiguous meaning. To make a parallel with the database world: first there was OLTP; then there was business intelligence. Of course, you must first have the transactions, to have something to analyze.&lt;/p&gt; &lt;p&gt;SOA is for the transactions; the Data Web is for integration, analysis, and discovery. It is the &lt;i&gt;ad hoc&lt;/i&gt; component of the real time enterprise, if you will. It is not a competitor against a transaction oriented SOA. In fact, RDF has no special genius for transactions. Another mistake that often gets made is stretching things beyond their natural niche. Doing transactions in RDF is this sort of over-stretching without real benefit.&lt;/p&gt; &lt;p&gt;&amp;quot;I made an ontology and it really did solve a problem. How do I convince the enterprise people, the MBA who says it&amp;#39;s too complex, the developer who says it is not what he&amp;#39;s used to, and so on?&amp;quot;&lt;/p&gt; &lt;p&gt;This is an education question. One of the findings of SWEO&amp;#39;s enterprise survey was that there was awareness that difficult problems existed. There were and are corporate ontologies and taxonomies, diversely implemented. Some of these needs are recognized. RDF based technologies offer to make these more open standards based. open standards have proven economical in the past. What we also hear is that major enterprises do not even know what their information and human resources assets are: Experts can&amp;#39;t be found even when they are in the next department, or reports and analysis gets buried in wikis, spreadsheets, and emails.&lt;/p&gt; &lt;p&gt;Just as when SQL took off, we need vendors to do workshops on getting started with a technology. The affair in Vienna was a step in this direction. Another type of event specially focusing on vertical problems and their Data Web solutions is a next step. For example, one could do a workshop on integrating supply chain information with Data Web technologies. Or one on making enterprise &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x1fbd3398&quot;&gt;knowledge&lt;/a&gt; bases from HR, CRM, office automation, wikis, etc. The good thing is that all these things are additions to, not replacements of, the existing mission-critical infrastructure. And better use of what you already have ought to be the theme of the day.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>State of the Semantic Web, Part 1 - Sociology, Business, and Messaging (update 2)</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-10-24#1459</atom:id>
  <atom:published>2008-10-24T10:19:03Z</atom:published>
  <atom:updated>2008-10-27T11:27:54-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;I was in &lt;a href=&quot;http://dbpedia.org/resource/Vienna&quot; id=&quot;link-id0x28471870&quot;&gt;Vienna&lt;/a&gt; for the &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x26f0ec28&quot;&gt;Linked Data&lt;/a&gt; Practitioners gathering this week. Danny Ayers asked me if I would &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0x26cf7678&quot;&gt;blog&lt;/a&gt; about the State of the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x273087e0&quot;&gt;Semantic Web&lt;/a&gt; or write the &lt;i&gt;This Week&amp;#39;s Semantic Web&lt;/i&gt; column. I don&amp;#39;t have the time to cover all that may have happened during the past week but I will editorialize about the questions that again were raised in Vienna. How these things relate to &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x264e11b8&quot;&gt;Virtuoso&lt;/a&gt; will be covered separately. This is about the overarching questions of the times, not the finer points of geek craft.&lt;/p&gt; &lt;p&gt; &lt;a href=&quot;http://www.informatik.uni-leipzig.de/~auer/foaf.rdf#me&quot; id=&quot;link-id0x2787de70&quot;&gt;SÃ¶ren Auer&lt;/a&gt; asked me to say a few things about relational to &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x280b12f8&quot;&gt;RDF&lt;/a&gt; mapping. I will cite some highlights from this, as they pertain to the general scene. There was an &amp;quot;open hacking&amp;quot; session Wednesday night featuring lightning talks. I will use some of these too as a starting point.&lt;/p&gt; &lt;h3&gt;The messaging?&lt;/h3&gt; &lt;p&gt;The &lt;a href=&quot;http://www.w3.org/2001/sw/sweo/&quot; id=&quot;link-id0x28078030&quot;&gt;SWEO&lt;/a&gt; (Semantic Web Education and Outreach) interest group of the W3C spent some time looking for an elevator pitch for the Semantic Web. It became &amp;quot;&lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x290a48c0&quot;&gt;Data&lt;/a&gt; Unleashed.&amp;quot; Why not? Let&amp;#39;s give this some context.&lt;/p&gt; &lt;p&gt;So, if we are holding a &lt;i&gt;Semantic Web 101&lt;/i&gt; session, where should we begin? I hazard to guess that we should not begin by writing a FOAF file in Turtle by hand, as this is one thing that is not likely to happen in the real world.&lt;/p&gt; &lt;p&gt;Of course, the social aspect of the Data Web is the most immediately engaging, so a demo might be to go make an account with &lt;a href=&quot;http://myopenlink.net/&quot; id=&quot;link-id0x272ed6d0&quot;&gt;myopenlink&lt;/a&gt;.&lt;a href=&quot;http://dbpedia.org/resource/.NET_Framework&quot; id=&quot;link-id0x277dbbd0&quot;&gt;net&lt;/a&gt; and see that after one has entered the data one normally enters for any social network, one has become a Data Web citizen. This means that one can be found, just like this, with a query against the set of data spaces hosted on the system. Then we just need a few pages that repurpose this data and relate it to other data. We show some samples of queries like this in our &lt;a href=&quot;http://challenge.semanticweb.org/&quot; id=&quot;link-id0x25fda5c8&quot;&gt;Billion Triples Challenge&lt;/a&gt; demo. We will make a webcast about this to make it all clearer.&lt;/p&gt; &lt;p&gt;Behold: The Data Web is about the world becoming a database; writing &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x278c3878&quot;&gt;SPARQL&lt;/a&gt; queries or triples is incidental. You will write FOAF files by hand just as little as you now write &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x27e6be18&quot;&gt;SQL&lt;/a&gt; insert statements for filling in your account &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x2727a278&quot;&gt;information&lt;/a&gt; on Myspace.&lt;/p&gt; &lt;p&gt;Every time there is a major shift in technology, this shift needs to be motivated by addressing a new class of problem. This means doing something that could not be done before. The last time this happened was when the relational database became the dominant IT technology. At that time, the questions involved putting the enterprise in the database and building a cluster of Line Of Business (LOB) applications around the database. The argument for the &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x26020128&quot;&gt;RDBMS&lt;/a&gt; was that you did not have to constrain the set of queries that might later be made, when designing the database. In other words, it was making things more &lt;i&gt;ad hoc&lt;/i&gt;. This was opposed then on grounds of being less efficient than the hierarchical and network databases which the relational eventually replaced.&lt;/p&gt; &lt;p&gt;Today, the point of the Data Web is that you do not have to constrain what your data can join or integrate with, when you design your database. The counter-argument is that this is slow and geeky and not scalable. See the similarity?&lt;/p&gt; &lt;p&gt;A difference is that we are not specifically aiming at replacing the RDBMS. In fact, if you know exactly what you will query and have a well defined workload, a relational representation optimized for the workload will give you about 10x the performance of the equivalent RDF warehouse. OLTP remains a relational-only domain.&lt;/p&gt; &lt;p&gt;However, when we are talking about doing queries and analytics against the Web, or even against more than a handful of relational systems, the things which make RDBMS good become problematic.&lt;/p&gt; &lt;h3&gt;What is the business value of this?&lt;/h3&gt; &lt;p&gt;The most reliable of human drives is the drive to make oneself known. This drives all, from any social scene to business communications to politics. Today, when you want to proclaim you exist, you do so first on the Web. The Web did not become the prevalent media because business loved it for its own sake, it became prevalent because business could not afford not to assert their presence there. If anything, the Web eroded the communications dominance of a lot of players, which was not welcome but still had to be dealt with, by embracing the Web.&lt;/p&gt; &lt;p&gt;Today, in a world driven by data, the Data Web will be catalyzed by similar factors: If your data is not there, you will not figure in query results. Search engines will play some role there but also many social applications will have reports that are driven by published data. Also consider any e-commerce, any marketplace, and so forth. The Data Portability movement is a case in point: Users want to own their own content; silo operators want to capitalize on holding it. Right now, we see these things in silos; the Data Web will create bridges between these, and what is now in silo data centers will be increasingly available on an ad hoc basis with Open Data.&lt;/p&gt; &lt;p&gt;Again, we see a movement from the specialized to the generic: What LinkedIn does in its data center can be done with ad hoc queries with &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x261c7bc8&quot;&gt;linked open data&lt;/a&gt;. Of course, LinkedIn does these things somewhat more efficiently because their system is built just for this task, but the linked data approach has the built-in readiness to join with everything else at almost no cost, without making a new data warehouse for each new business question.&lt;/p&gt; &lt;p&gt;We could call this the sociological aspect of the thing. Getting to more concrete business, we see an economy that, we could say, without being alarmists, is confronted with some issues. Well, generally when times are bad, this results in consolidation of property and power. Businesses fail and get split up and sold off in pieces, government adds controls and regulations and so forth. This means ad hoc data integration, as control without data is just pretense. If times are lean, this also means that there is little readiness to do wholesale replacement of systems, which will take years before producing anything. So we must play with what there is and make it deliver, in ways and conditions that were not necessarily anticipated. The agility of the Data Web, if correctly understood, can be of great benefit there, especially on the reporting and business intelligence side. Specifically mapping line-of-business systems into RDF on the fly will help with integration, making the specialized warehouse the slower and more expensive alternative. But this too is needed at times.&lt;/p&gt; &lt;p&gt;But for the RDF community to be taken seriously there, the messaging must be geared in this direction. Writing FOAF files by hand is not where you begin the pitch. Well, what is more natural then having a global, queriable information space, when you have a global information driven economy?&lt;/p&gt; &lt;p&gt;The Data Web is about making this happen. First with doing this in published generally available data; next with the enterprises having their private data for their own use but still linking toward the outside, even though private data stays private: You can still use standard terms and taxonomies, where they apply, when talking of proprietary information.&lt;/p&gt; &lt;h3&gt;But let&amp;#39;s get back to more specific issues&lt;/h3&gt; &lt;p&gt;At the lightning talks in Vienna, one participant said, &amp;quot;Man&amp;#39;s enemy is not the lion that eats men, it&amp;#39;s his own brother. Semantic Web&amp;#39;s enemy is the &lt;a href=&quot;http://dbpedia.org/resource/XML&quot; id=&quot;link-id0x26273118&quot;&gt;XML&lt;/a&gt; Web services stack that ate its lunch.&amp;quot; There is some truth to the first part. The second part deserves some comment. The Web services stack is about transactions. When you have a fixed, often repeating task, it is a natural thing to make this a Web service. Even though SOA is not really prevalent in enterprise IT, it has value in things like managing supply-chain logistics with partners, etc. Lots of standard messages with unambiguous meaning. To make a parallel with the database world: first there was OLTP; then there was business intelligence. Of course, you must first have the transactions, to have something to analyze.&lt;/p&gt; &lt;p&gt;SOA is for the transactions; the Data Web is for integration, analysis, and discovery. It is the &lt;i&gt;ad hoc&lt;/i&gt; component of the real time enterprise, if you will. It is not a competitor against a transaction oriented SOA. In fact, RDF has no special genius for transactions. Another mistake that often gets made is stretching things beyond their natural niche. Doing transactions in RDF is this sort of over-stretching without real benefit.&lt;/p&gt; &lt;p&gt;&amp;quot;I made an ontology and it really did solve a problem. How do I convince the enterprise people, the MBA who says it&amp;#39;s too complex, the developer who says it is not what he&amp;#39;s used to, and so on?&amp;quot;&lt;/p&gt; &lt;p&gt;This is an education question. One of the findings of SWEO&amp;#39;s enterprise survey was that there was awareness that difficult problems existed. There were and are corporate ontologies and taxonomies, diversely implemented. Some of these needs are recognized. RDF based technologies offer to make these more open standards based. open standards have proven economical in the past. What we also hear is that major enterprises do not even know what their information and human resources assets are: Experts can&amp;#39;t be found even when they are in the next department, or reports and analysis gets buried in wikis, spreadsheets, and emails.&lt;/p&gt; &lt;p&gt;Just as when SQL took off, we need vendors to do workshops on getting started with a technology. The affair in Vienna was a step in this direction. Another type of event specially focusing on vertical problems and their Data Web solutions is a next step. For example, one could do a workshop on integrating supply chain information with Data Web technologies. Or one on making enterprise &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x260172a8&quot;&gt;knowledge&lt;/a&gt; bases from HR, CRM, office automation, wikis, etc. The good thing is that all these things are additions to, not replacements of, the existing mission-critical infrastructure. And better use of what you already have ought to be the theme of the day.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Cluster Paper Update</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-10-02#1451</atom:id>
  <atom:published>2008-10-02T10:02:33Z</atom:published>
  <atom:updated>2008-10-03T04:38:06-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;An updated version of the paper about &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xc0abc50&quot;&gt;Virtuoso&lt;/a&gt; Cluster is available at &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/2008webscale_rdf.pdf&quot; id=&quot;link-id16459248&quot;&gt;2008webscale_rdf.pdf&lt;/a&gt; &lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Update, Billion Triples and Outlook</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-10-02#1450</atom:id>
  <atom:published>2008-10-02T10:02:32Z</atom:published>
  <atom:updated>2008-10-02T12:47:07.000004-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Virtuoso Update, Billion Triples and Outlook&lt;/div&gt; &lt;p&gt;I will say a few things about what we have been doing and where we can go.&lt;/p&gt; &lt;p&gt;Firstly, we have a fairly scalable platform with &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1aa82dc0&quot;&gt;Virtuoso&lt;/a&gt; 6 Cluster. It was most recently tested with the workload discussed in the previous &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1445&quot; id=&quot;link-id1638a5b8&quot;&gt;Billion Triples post&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;There is an updated version of &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/2008webscale_rdf.pdf&quot; id=&quot;link-id16280a68&quot;&gt;the paper about this&lt;/a&gt;. This will be presented at the web scale workshop of ISWC 2008 in Karlsruhe.&lt;/p&gt; &lt;p&gt;Right now, we are polishing some things in Virtuoso 6 -- some optimizations for smarter balancing of interconnect traffic over multiple network interfaces, and some more &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1abd3f38&quot;&gt;SQL&lt;/a&gt; optimizations specific to &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1adbe410&quot;&gt;RDF&lt;/a&gt;. The must-have basics, like parallel running of sub-queries and aggregates, and all-around unrolling of loops of every kind into large partitioned batches, is all there and proven to work.&lt;/p&gt; &lt;p&gt;We spent a lot of time around the &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0x1aaa0e78&quot;&gt;Berlin SPARQL Benchmark&lt;/a&gt; story, so we got to the more advanced stuff like the &lt;a href=&quot;http://challenge.semanticweb.org/&quot; id=&quot;link-id0x1a860a50&quot;&gt;Billion Triples Challenge&lt;/a&gt; rather late. We did along the way also run &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0x1a27f2a8&quot;&gt;BSBM&lt;/a&gt; with an &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0x1ad5c918&quot;&gt;Oracle&lt;/a&gt; back-end, with Virtuoso mapping &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1cf0e4a0&quot;&gt;SPARQL&lt;/a&gt; to SQL. This merits its own analysis in the near future. This will be the basic how-to of mapping OLTP systems to RDF. Depending on the case, one can use this for lookups in real-time or ETL.&lt;/p&gt; &lt;p&gt;RDF will deliver value in complex situations. An example of a complex relational mapping use case came from Ordnance Survey, presented at the &lt;a href=&quot;http://www.w3.org/2005/Incubator/rdb2rdf/&quot; id=&quot;link-id0x1ab96bb0&quot;&gt;RDB2RDF XG&lt;/a&gt;. Examples of complex warehouses include the &lt;a href=&quot;http://neurocommons.org/page/Main_Page&quot; id=&quot;link-id0x1adb2db0&quot;&gt;Neurocommons&lt;/a&gt; database, the Billion Triples Challenge, and the &lt;a href=&quot;http://www.garlik.com/&quot; id=&quot;link-id0x1925c7b0&quot;&gt;Garlik DataPatrol&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;In comparison, the Berlin workload is really simple and one where RDF is not at its best, as amply discussed on the &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x1c6d1480&quot;&gt;Linked Data&lt;/a&gt; forum. BSBM&amp;#39;s primary value is as a demonstrator for the basic mapping tasks that will be repeated over and over for pretty much any online system when presence on the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1a937400&quot;&gt;data&lt;/a&gt; web becomes as indispensable as presence on the HTML web.&lt;/p&gt; &lt;p&gt;I will now talk about the complex warehouse/web-harvesting side. I will come to the mapping in another post.&lt;/p&gt; &lt;p&gt;Now, all the things shown in the &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1445&quot; id=&quot;link-id14de1d18&quot;&gt;Billion Triples post&lt;/a&gt; can be done with a relational system specially built for each purpose. Since we are a general purpose &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x1a457c70&quot;&gt;RDBMS&lt;/a&gt;, we use this capability where it makes sense. For example, storing statistics about which tags or interests occur with which other tags or interests as RDF blank nodes makes no sense. We do not even make the experiment; we know ahead of time that the result is at least an order of magnitude in favor of the relational row-oriented solution in both space and time.&lt;/p&gt; &lt;p&gt;Whenever there is a data structure specially made for answering one specific question, like joint occurrence of tags, RDB and mapping is the way to go. With Virtuoso, this can fully-well coexist with physical triples, and can still be accessed in SPARQL and mixed with triples. This is territory that we have not extensively covered yet, but we will be giving some examples about this later.&lt;/p&gt; &lt;p&gt;The real value of RDF is in agility. When there is no time to design and load a new warehouse for every new question, RDF is unparalleled. Also SPARQL, once it has the necessary extensions of aggregating and sub-queries, is nicer than SQL, especially when we have sub-classes and sub-properties, transitivity, and &amp;quot;same as&amp;quot; enabled. These things have some run time cost and if there is a report one is hitting absolutely all the time, then chances are that resolving terms and identity at load-time and using materialized views in SQL is the reasonable thing. If one is inventing a new report every time, then RDF has a lot more convenience and flexibility.&lt;/p&gt; &lt;p&gt;We are just beginning to explore what we can do with data sets such as the online conversation space, linked data, and the open ontologies of &lt;a href=&quot;http://umbel.org/about/&quot; id=&quot;link-id0x1aa5ea18&quot;&gt;UMBEL&lt;/a&gt; and &lt;a href=&quot;http://dbpedia.org/resource/Cyc&quot; id=&quot;link-id0x1a631a20&quot;&gt;OpenCyc&lt;/a&gt;. It is safe to say that we can run with real world scale without loss of query expressivity. There is an incremental cost for performance but this is not prohibitive. Serving the whole billion triples set from memory would cost about $32K in hardware. $8K will do if one can wait for disk part of the time. One can use these numbers as a basis for costing larger systems. For online search applications, one will note that running the indexes pretty much from memory is necessary for flat response time. For back office analytics this is not necessarily as critical. It all depends on the use case.&lt;/p&gt; &lt;p&gt;We expect to be able to combine geography, social proximity, subject matter, and &lt;a href=&quot;http://dbpedia.org/resource/Named_entity_recognition&quot; id=&quot;link-id0x1aebdcc8&quot;&gt;named entities&lt;/a&gt;, with hierarchical taxonomies and traditional full text, and to present this through a simple user interface.&lt;/p&gt; &lt;p&gt;We expect to do this with online response times if we have a limited set of starting points and do not navigate more than 2 or 3 steps from each starting point. An example would be to have a full text pattern and news group, and get the cloud of interests from the authors of matching posts. Another would be to make a faceted view of the properties of the 1000 people most closely connected to one person.&lt;/p&gt; &lt;p&gt;Queries like finding the fastest online responders to questions about romance across the global board-scape, or finding the person who initiates the most long running conversations about crime, take a bit longer but are entirely possible.&lt;/p&gt; &lt;p&gt;The genius of RDF is to be able to do these things within a general purpose database, ad hoc, in a single query language, mostly without materializing intermediate results. Any of these things could be done with arbitrary efficiency in a custom built system. But what is special now is that the cost of access to this type of &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x1ab88490&quot;&gt;information&lt;/a&gt; and far beyond drops dramatically as we can do these things in a far less labor intensive way, with a general purpose system, with no redesigning and reloading of warehouses at every turn. The query becomes a commodity.&lt;/p&gt; &lt;p&gt;Still, one must know what to ask. In this respect, the self-describing nature of RDF is unmatched. A query like &lt;i&gt;list the top 10 attributes with the most distinct values for all persons&lt;/i&gt; cannot be done in SQL. SQL simply does not allow the columns to be variable.&lt;/p&gt; &lt;p&gt;Further, we can accept queries as text, the way people are used to supplying them, and use structure for drill-down or result-relevance, and also recognize named entities and subject matter concepts in query text. Very simple NLP will go a long way towards keeping SPARQL out of the user experience.&lt;/p&gt; &lt;p&gt;The other way of keeping query complexity hidden is to publish hand-written SPARQL as parameter-fed canned reports.&lt;/p&gt; &lt;p&gt;Between now and ISWC 2008, the last week of October, we will put out demos showing some of these things. Stay tuned.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Cluster Paper Update</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-10-02#1449</atom:id>
  <atom:published>2008-10-02T09:38:14Z</atom:published>
  <atom:updated>2008-10-03T04:38:01-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;An updated version of the paper about &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x17b3d2c8&quot;&gt;Virtuoso&lt;/a&gt; Cluster is available at &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/2008webscale_rdf.pdf&quot; id=&quot;link-id16459248&quot;&gt;2008webscale_rdf.pdf&lt;/a&gt; &lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Update, Billion Triples and Outlook</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-10-02#1448</atom:id>
  <atom:published>2008-10-02T09:31:17Z</atom:published>
  <atom:updated>2008-10-02T12:47:02.000002-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;I will say a few things about what we have been doing and where we can go.&lt;/p&gt; &lt;p&gt;Firstly, we have a fairly scalable platform with &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xa412e450&quot;&gt;Virtuoso&lt;/a&gt; 6 Cluster. It was most recently tested with the workload discussed in the previous &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1445&quot; id=&quot;link-id1638a5b8&quot;&gt;Billion Triples post&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;There is an updated version of &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/2008webscale_rdf.pdf&quot; id=&quot;link-id16280a68&quot;&gt;the paper about this&lt;/a&gt;. This will be presented at the web scale workshop of ISWC 2008 in Karlsruhe.&lt;/p&gt; &lt;p&gt;Right now, we are polishing some things in Virtuoso 6 -- some optimizations for smarter balancing of interconnect traffic over multiple network interfaces, and some more &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1c1c5f48&quot;&gt;SQL&lt;/a&gt; optimizations specific to &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1bcb6108&quot;&gt;RDF&lt;/a&gt;. The must-have basics, like parallel running of sub-queries and aggregates, and all-around unrolling of loops of every kind into large partitioned batches, is all there and proven to work.&lt;/p&gt; &lt;p&gt;We spent a lot of time around the &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0x3a4e17c8&quot;&gt;Berlin SPARQL Benchmark&lt;/a&gt; story, so we got to the more advanced stuff like the &lt;a href=&quot;http://challenge.semanticweb.org/&quot; id=&quot;link-id0x1a66c568&quot;&gt;Billion Triples Challenge&lt;/a&gt; rather late. We did along the way also run &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0x188c2608&quot;&gt;BSBM&lt;/a&gt; with an &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0x1aa97f98&quot;&gt;Oracle&lt;/a&gt; back-end, with Virtuoso mapping &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1abd87a0&quot;&gt;SPARQL&lt;/a&gt; to SQL. This merits its own analysis in the near future. This will be the basic how-to of mapping OLTP systems to RDF. Depending on the case, one can use this for lookups in real-time or ETL.&lt;/p&gt; &lt;p&gt;RDF will deliver value in complex situations. An example of a complex relational mapping use case came from Ordnance Survey, presented at the &lt;a href=&quot;http://www.w3.org/2005/Incubator/rdb2rdf/&quot; id=&quot;link-id0x1a941678&quot;&gt;RDB2RDF XG&lt;/a&gt;. Examples of complex warehouses include the &lt;a href=&quot;http://neurocommons.org/page/Main_Page&quot; id=&quot;link-id0x1aa5a9f8&quot;&gt;Neurocommons&lt;/a&gt; database, the Billion Triples Challenge, and the &lt;a href=&quot;http://www.garlik.com/&quot; id=&quot;link-id0x372df7b0&quot;&gt;Garlik DataPatrol&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;In comparison, the Berlin workload is really simple and one where RDF is not at its best, as amply discussed on the &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x1a671cf0&quot;&gt;Linked Data&lt;/a&gt; forum. BSBM&amp;#39;s primary value is as a demonstrator for the basic mapping tasks that will be repeated over and over for pretty much any online system when presence on the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1ab83dd0&quot;&gt;data&lt;/a&gt; web becomes as indispensable as presence on the HTML web.&lt;/p&gt; &lt;p&gt;I will now talk about the complex warehouse/web-harvesting side. I will come to the mapping in another post.&lt;/p&gt; &lt;p&gt;Now, all the things shown in the &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1445&quot; id=&quot;link-id14de1d18&quot;&gt;Billion Triples post&lt;/a&gt; can be done with a relational system specially built for each purpose. Since we are a general purpose &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x340d3470&quot;&gt;RDBMS&lt;/a&gt;, we use this capability where it makes sense. For example, storing statistics about which tags or interests occur with which other tags or interests as RDF blank nodes makes no sense. We do not even make the experiment; we know ahead of time that the result is at least an order of magnitude in favor of the relational row-oriented solution in both space and time.&lt;/p&gt; &lt;p&gt;Whenever there is a data structure specially made for answering one specific question, like joint occurrence of tags, RDB and mapping is the way to go. With Virtuoso, this can fully-well coexist with physical triples, and can still be accessed in SPARQL and mixed with triples. This is territory that we have not extensively covered yet, but we will be giving some examples about this later.&lt;/p&gt; &lt;p&gt;The real value of RDF is in agility. When there is no time to design and load a new warehouse for every new question, RDF is unparalleled. Also SPARQL, once it has the necessary extensions of aggregating and sub-queries, is nicer than SQL, especially when we have sub-classes and sub-properties, transitivity, and &amp;quot;same as&amp;quot; enabled. These things have some run time cost and if there is a report one is hitting absolutely all the time, then chances are that resolving terms and identity at load-time and using materialized views in SQL is the reasonable thing. If one is inventing a new report every time, then RDF has a lot more convenience and flexibility.&lt;/p&gt; &lt;p&gt;We are just beginning to explore what we can do with data sets such as the online conversation space, linked data, and the open ontologies of &lt;a href=&quot;http://umbel.org/about/&quot; id=&quot;link-id0x19cabf38&quot;&gt;UMBEL&lt;/a&gt; and &lt;a href=&quot;http://dbpedia.org/resource/Cyc&quot; id=&quot;link-id0x19cecd10&quot;&gt;OpenCyc&lt;/a&gt;. It is safe to say that we can run with real world scale without loss of query expressivity. There is an incremental cost for performance but this is not prohibitive. Serving the whole billion triples set from memory would cost about $32K in hardware. $8K will do if one can wait for disk part of the time. One can use these numbers as a basis for costing larger systems. For online search applications, one will note that running the indexes pretty much from memory is necessary for flat response time. For back office analytics this is not necessarily as critical. It all depends on the use case.&lt;/p&gt; &lt;p&gt;We expect to be able to combine geography, social proximity, subject matter, and &lt;a href=&quot;http://dbpedia.org/resource/Named_entity_recognition&quot; id=&quot;link-id0x1a8202e8&quot;&gt;named entities&lt;/a&gt;, with hierarchical taxonomies and traditional full text, and to present this through a simple user interface.&lt;/p&gt; &lt;p&gt;We expect to do this with online response times if we have a limited set of starting points and do not navigate more than 2 or 3 steps from each starting point. An example would be to have a full text pattern and news group, and get the cloud of interests from the authors of matching posts. Another would be to make a faceted view of the properties of the 1000 people most closely connected to one person.&lt;/p&gt; &lt;p&gt;Queries like finding the fastest online responders to questions about romance across the global board-scape, or finding the person who initiates the most long running conversations about crime, take a bit longer but are entirely possible.&lt;/p&gt; &lt;p&gt;The genius of RDF is to be able to do these things within a general purpose database, ad hoc, in a single query language, mostly without materializing intermediate results. Any of these things could be done with arbitrary efficiency in a custom built system. But what is special now is that the cost of access to this type of &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x1ab0a918&quot;&gt;information&lt;/a&gt; and far beyond drops dramatically as we can do these things in a far less labor intensive way, with a general purpose system, with no redesigning and reloading of warehouses at every turn. The query becomes a commodity.&lt;/p&gt; &lt;p&gt;Still, one must know what to ask. In this respect, the self-describing nature of RDF is unmatched. A query like &lt;i&gt;list the top 10 attributes with the most distinct values for all persons&lt;/i&gt; cannot be done in SQL. SQL simply does not allow the columns to be variable.&lt;/p&gt; &lt;p&gt;Further, we can accept queries as text, the way people are used to supplying them, and use structure for drill-down or result-relevance, and also recognize named entities and subject matter concepts in query text. Very simple NLP will go a long way towards keeping SPARQL out of the user experience.&lt;/p&gt; &lt;p&gt;The other way of keeping query complexity hidden is to publish hand-written SPARQL as parameter-fed canned reports.&lt;/p&gt; &lt;p&gt;Between now and ISWC 2008, the last week of October, we will put out demos showing some of these things. Stay tuned.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>OpenLink Software&#39;s Virtuoso Submission to the Billion Triples Challenge</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-09-30#1446</atom:id>
  <atom:published>2008-09-30T16:24:34Z</atom:published>
  <atom:updated>2008-10-03T06:20:48.000094-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;h2&gt;Introduction&lt;/h2&gt; &lt;p&gt;We use &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xb03e418&quot;&gt;Virtuoso&lt;/a&gt; 6 Cluster Edition to demonstrate the following:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Text and structured &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0xbd9dae8&quot;&gt;information&lt;/a&gt; based lookups&lt;/li&gt; &lt;li&gt;Analytics queries&lt;/li&gt; &lt;li&gt;Analysis of co-occurrence of features like interests and tags.&lt;/li&gt; &lt;li&gt;Dealing with identity of multiple IRI&amp;#39;s (&lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0xb383dd8&quot;&gt;owl&lt;/a&gt;:sameAs)&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;The demo is based on a set of canned &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xbda6298&quot;&gt;SPARQL&lt;/a&gt; queries that can be invoked using the &lt;a href=&quot;http://ode.openlinksw.com/&quot; id=&quot;link-id0xbb292f0&quot;&gt;OpenLink Data Explorer&lt;/a&gt; (&lt;a href=&quot;http://ode.openlinksw.com/&quot; id=&quot;link-id0xc263528&quot;&gt;ODE&lt;/a&gt;) Firefox extension.&lt;/p&gt; &lt;p&gt;The demo queries can also be run directly against the SPARQL end point.&lt;/p&gt; &lt;p&gt;The demo is being worked on at the time of submission and may be shown online by appointment.&lt;/p&gt; &lt;p&gt;Automatic annotation of the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xa173378&quot;&gt;data&lt;/a&gt; based on &lt;a href=&quot;http://dbpedia.org/resource/Named_entity_recognition&quot; id=&quot;link-id0xbdda558&quot;&gt;named entity extraction&lt;/a&gt; is being worked on at the time of this submission. By the time of ISWC 2008 the set of sample queries will be enhanced with queries based on extracted &lt;a href=&quot;http://dbpedia.org/resource/Named_entity_recognition&quot; id=&quot;link-id0xa66fbe0&quot;&gt;named entities&lt;/a&gt; and their relationships in the &lt;a href=&quot;http://umbel.org/about/&quot; id=&quot;link-id0xa06e2c8&quot;&gt;UMBEL&lt;/a&gt; and Open CYC ontologies. &lt;/p&gt; &lt;p&gt;Also examples involving owl:sameAs are being added, likewise with similarity metrics and search hit scores.&lt;/p&gt; &lt;h2&gt;The Data&lt;/h2&gt; &lt;p&gt;The database consists of the billion triples data sets and some additions like Umbel. Also the Freebase extract is newer than the challenge original.&lt;/p&gt; &lt;p&gt;The triple count is 1115 million.&lt;/p&gt; &lt;p&gt;In the case of web harvested resources, the data is loaded in one graph per resource.&lt;/p&gt; &lt;p&gt;In the case of larger data sets like &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0xc2bf770&quot;&gt;Dbpedia&lt;/a&gt; or the US census, all triples of the provenance share a data set specific graph.&lt;/p&gt; &lt;p&gt;All string literals are additionally indexed in a full text index. No stop words are used.&lt;/p&gt; &lt;p&gt;Most queries do not specify a graph. Thus they are evaluated against the union of all the graphs in the database. The indexing scheme is SPOG, GPOS, POGS, OPGS. All indices ending in S are bitmap indices. &lt;/p&gt; &lt;h2&gt;The Queries &lt;/h2&gt; &lt;p&gt;The demo uses Virtuoso SPARQL extensions in most queries. These extensions consist on one hand of well known &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0xaf8cb40&quot;&gt;SQL&lt;/a&gt; features like aggregation with grouping and existence and value subqueries and on the other of &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xafdceb8&quot;&gt;RDF&lt;/a&gt; specific features. The latter include run time RDFS and OWL inferencing support and backward chaining subclasses and transitivity. &lt;/p&gt; &lt;h3&gt;Simple Lookups&lt;/h3&gt; &lt;pre&gt;sparql select ?s ?p (bif:search_excerpt (bif:vector (&amp;#39;&lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0xbb64dd0&quot;&gt;semantic&amp;#39;, &amp;#39;web&lt;/a&gt;&amp;#39;), ?o)) where { ?s ?p ?o . filter (bif:contains (?o, &amp;quot;&amp;#39;semantic web&amp;#39;&amp;quot;)) } limit 10 ; &lt;/pre&gt; &lt;p&gt;This looks up triples with semantic web in the object and makes a search hit summary of the literal, highlighting the search terms. &lt;/p&gt; &lt;pre&gt;sparql select ?tp count(*) where { ?s ?p2 ?o2 . ?o2 a ?tp . ?s foaf:nick ?o . filter (bif:contains (?o, &amp;quot;plaid_skirt&amp;quot;)) } group by ?tp order by desc 2 limit 40 ; &lt;/pre&gt; &lt;p&gt;This looks at what sorts of things are referenced by the properties of the foaf handle plaid_skirt.&lt;/p&gt; &lt;p&gt;What are these things called?&lt;/p&gt; &lt;pre&gt;sparql select ?lbl count(*) where { ?s ?p2 ?o2 . ?o2 rdfs:label ?lbl . ?s foaf:nick ?o . filter (bif:contains (?o, &amp;quot;plaid_skirt&amp;quot;)) } group by ?lbl order by desc 2 ; &lt;/pre&gt; &lt;p&gt;Many of these things do not have a rdfs:label. Let us use a more general concept of lable which groups dc:title, foaf:name and other name-like properties together. The subproperties are resolved at run time, there is no materialization. &lt;/p&gt; &lt;pre&gt;sparql define input:inference &amp;#39;b3s&amp;#39; select ?lbl count(*) where { ?s ?p2 ?o2 . ?o2 b3s:label ?lbl . ?s foaf:nick ?o . filter (bif:contains (?o, &amp;quot;plaid_skirt&amp;quot;)) } group by ?lbl order by desc 2 ; &lt;/pre&gt; &lt;p&gt;We can list sources by the topics they contain. Below we look for graphs that mention terrorist bombing. &lt;/p&gt; &lt;pre&gt;sparql select ?g count(*) where { graph ?g { ?s ?p ?o . filter (bif:contains (?o, &amp;quot;&amp;#39;terrorist bombing&amp;#39;&amp;quot;)) } } group by ?g order by desc 2 ; &lt;/pre&gt; &lt;p&gt;Now some web 2.0 tagging of search results. The &lt;a href=&quot;http://dbpedia.org/resource/Tag&quot; id=&quot;link-id0xa8b89f8&quot;&gt;tag&lt;/a&gt; cloud of &amp;quot;computer&amp;quot;&lt;/p&gt; &lt;pre&gt;sparql select ?lbl count (*) where { ?s ?p ?o . ?o bif:contains &amp;quot;computer&amp;quot; . ?s sioc:topic ?tg . optional { ?tg rdfs:label ?lbl } } group by ?lbl order by desc 2 limit 40 ; &lt;/pre&gt; &lt;p&gt;This query will find the posters who talk the most about sex.&lt;/p&gt; &lt;pre&gt;sparql select ?auth count (*) where { ?d dc:creator ?auth . ?d ?p ?o filter (bif:contains (?o, &amp;quot;sex&amp;quot;)) } group by ?auth order by desc 2 ; &lt;/pre&gt; &lt;h3&gt;Analytics &lt;/h3&gt; &lt;p&gt;We look for people who are joined by having relatively uncommon interests but do not know each other.&lt;/p&gt; &lt;pre&gt;sparql select ?i ?cnt ?n1 ?n2 ?p1 ?p2 where { { select ?i count (*) as ?cnt where { ?p foaf:interest ?i } group by ?i } filter ( ?cnt &amp;gt; 1 &amp;amp;&amp;amp; ?cnt &amp;lt; 10) . ?p1 foaf:interest ?i . ?p2 foaf:interest ?i . filter (?p1 != ?p2 &amp;amp;&amp;amp; !bif:exists ((select (1) where {?p1 foaf:knows ?p2 })) &amp;amp;&amp;amp; !bif:exists ((select (1) where {?p2 foaf:knows ?p1 }))) . ?p1 foaf:nick ?n1 . ?p2 foaf:nick ?n2 . } order by ?cnt limit 50 ; &lt;/pre&gt; &lt;p&gt;The query takes a fairly long time, mostly spent counting the interested in 25M interest triples. It then takes people that share the interest and checks that neither claims to know the other. It then sorts the results rarest interest first. The query can be written more efficently but is here just to show that database-wide scans of the population are possible ad hoc. &lt;/p&gt; &lt;p&gt;Now we go to SQL to make a tag co-occurrence matrix. This can be used for showing a Technorati-style related tags line at the bottom of a search result page. This showcases the use of SQL together with SPARQL. The half-matrix of tags t1, t2 with the co-occurrence count at the intersection is much more efficiently done in SQL, specially since it gets updated as the data changes. This is an example of materialized intermediate results based on warehoused RDF. &lt;/p&gt; &lt;pre&gt;create table tag_count (tcn_tag iri_id_8, tcn_count int, primary key (tcn_tag)); alter index tag_count on tag_count partition (tcn_tag int (0hexffff00)); create table tag_coincidence (tc_t1 iri_id_8, tc_t2 iri_id_8, tc_count int, tc_t1_count int, tc_t2_count int, primary key (tc_t1, tc_t2)) alter index tag_coincidence on tag_coincidence partition (tc_t1 int (0hexffff00)); create index tc2 on tag_coincidence (tc_t2, tc_t1) partition (tc_t2 int (0hexffff00)); &lt;/pre&gt; &lt;p&gt;How many times each topic is mentioned?&lt;/p&gt; &lt;pre&gt; insert into tag_count select * from (sparql define output:valmode &amp;quot;LONG&amp;quot; select ?t count (*) as ?cnt where { ?s sioc:topic ?t } group by ?t) xx option (quietcast); &lt;/pre&gt; &lt;p&gt;Take all t1, t2 where t1 and t2 are tags of the same subject, store only the permutation where the internal id of t1 &amp;lt; that of t2.&lt;/p&gt; &lt;pre&gt;insert into tag_coincidence (tc_t1, tc_t2, tc_count) select &amp;quot;t1&amp;quot;, &amp;quot;t2&amp;quot;, cnt from (select &amp;quot;t1&amp;quot;, &amp;quot;t2&amp;quot;, count (*) as cnt from (sparql define output:valmode &amp;quot;LONG&amp;quot; select ?t1 ?t2 where { ?s sioc:topic ?t1 . ?s sioc:topic ?t2 }) tags where &amp;quot;t1&amp;quot; &amp;lt; &amp;quot;t2&amp;quot; group by &amp;quot;t1&amp;quot;, &amp;quot;t2&amp;quot;) xx where isiri_id (&amp;quot;t1&amp;quot;) and isiri_id (&amp;quot;t2&amp;quot;) option (quietcast); &lt;/pre&gt; &lt;p&gt;Now put the individual occurrence counts into the same table with the co-occurrence. This denormalization makes the related tags lookup faster. &lt;/p&gt; &lt;pre&gt;update tag_coincidence set tc_t1_count = (select tcn_count from tag_count where tcn_tag = tc_t1), tc_t2_count = (select tcn_count from tag_count where tcn_tag = tc_t2); &lt;/pre&gt; &lt;p&gt;Now each tag_coincidence row has the joint occurrence count and individual occurrence counts. A single select will return a Technorati-style related tags listing. &lt;/p&gt; &lt;p&gt;To show the &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id0x9d4bc60&quot;&gt;URI&lt;/a&gt;&amp;#39;s of the tags: &lt;/p&gt; &lt;pre&gt;select top 10 id_to_iri (tc_T1), id_to_iri (tc_t2), tc_count from tag_coincidence order by tc_count desc; &lt;/pre&gt; &lt;h3&gt;Social Networks &lt;/h3&gt; &lt;p&gt;We look at what interests people have &lt;/p&gt; &lt;pre&gt;sparql select ?o ?cnt where { { select ?o count (*) as ?cnt where { ?s foaf:interest ?o } group by ?o } filter (?cnt &amp;gt; 100) } order by desc 2 limit 100 ; &lt;/pre&gt; &lt;p&gt;Now the same for the Harry Potter fans &lt;/p&gt; &lt;pre&gt;sparql select ?i2 count (*) where { ?p foaf:interest &amp;lt;&lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0xba0b390&quot;&gt;http&lt;/a&gt;://www.livejournal.com/interests.bml?int=harry+potter&amp;gt; . ?p foaf:interest ?i2 } group by ?i2 order by desc 2 limit 20 ; &lt;/pre&gt; &lt;p&gt;We see whether knows relations are symmmetrical. We return the top n people that others claim to know without being reciprocally known.&lt;/p&gt; &lt;pre&gt;sparql select ?celeb, count (*) where { ?claimant foaf:knows ?celeb . filter (!bif:exists ((select (1) where { ?celeb foaf:knows ?claimant }))) } group by ?celeb order by desc 2 limit 10 ; &lt;/pre&gt; &lt;p&gt;We look for a well connected person to start from.&lt;/p&gt; &lt;pre&gt;sparql select ?p count (*) where { ?p foaf:knows ?k } group by ?p order by desc 2 limit 50 ; &lt;/pre&gt; &lt;p&gt;We look for the most connected of the many online identities of Stefan Decker.&lt;/p&gt; &lt;pre&gt;sparql select ?sd count (distinct ?xx) where { ?sd a foaf:Person . ?sd ?name ?ns . filter (bif:contains (?ns, &amp;quot;&amp;#39;Stefan Decker&amp;#39;&amp;quot;)) . ?sd foaf:knows ?xx } group by ?sd order by desc 2 ; &lt;/pre&gt; &lt;p&gt;We count the transitive closure of Stefan Decker&amp;#39;s connections &lt;/p&gt; &lt;pre&gt;sparql select count (*) where { { select * where { ?s foaf:knows ?o } } option (transitive, t_distinct, t_in(?s), t_out(?o)) . filter (?s = &amp;lt;mailto:stefan.decker@deri.org&amp;gt;) } ; &lt;/pre&gt; &lt;p&gt;Now we do the same while following owl:sameAs links.&lt;/p&gt; &lt;pre&gt;sparql define input:same-as &amp;quot;yes&amp;quot; select count (*) where { { select * where { ?s foaf:knows ?o } } option (transitive, t_distinct, t_in(?s), t_out(?o)) . filter (?s = &amp;lt;mailto:stefan.decker@deri.org&amp;gt;) } ; &lt;/pre&gt; &lt;h2&gt;Demo System&lt;/h2&gt; &lt;p&gt;The system runs on Virtuoso 6 Cluster Edition. The database is partitioned into 12 partitions, each served by a distinct server process. The system demonstrated hosts these 12 servers on 2 machines, each with 2 xXeon 5345 and 16GB memory and 4 SATA disks. For scaling, the processes and corresponding partitions can be spread over a larger number of machines. If each ran on its own server with 16GB RAM, the whole data set could be served from memory. This is desirable for search engine or fast analytics applications. Most of the demonstrated queries run in memory on second invocation. The timing difference between first and second run is easily an order of magnitude. &lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>OpenLink Software&#39;s Virtuoso Submission to the Billion Triples Challenge</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-09-30#1445</atom:id>
  <atom:published>2008-09-30T15:39:26Z</atom:published>
  <atom:updated>2008-10-03T06:20:43.000002-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;h2&gt;Introduction&lt;/h2&gt; &lt;p&gt;We use &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xa278560&quot;&gt;Virtuoso&lt;/a&gt; 6 Cluster Edition to demonstrate the following:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Text and structured &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0xb3a4490&quot;&gt;information&lt;/a&gt; based lookups&lt;/li&gt; &lt;li&gt;Analytics queries&lt;/li&gt; &lt;li&gt;Analysis of co-occurrence of features like interests and tags.&lt;/li&gt; &lt;li&gt;Dealing with identity of multiple IRI&amp;#39;s (&lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0xa904bd8&quot;&gt;owl&lt;/a&gt;:sameAs)&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;The demo is based on a set of canned &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xac185d0&quot;&gt;SPARQL&lt;/a&gt; queries that can be invoked using the &lt;a href=&quot;http://ode.openlinksw.com/&quot; id=&quot;link-id0xb8efe28&quot;&gt;OpenLink Data Explorer&lt;/a&gt; (&lt;a href=&quot;http://ode.openlinksw.com/&quot; id=&quot;link-id0xb341808&quot;&gt;ODE&lt;/a&gt;) Firefox extension.&lt;/p&gt; &lt;p&gt;The demo queries can also be run directly against the SPARQL end point.&lt;/p&gt; &lt;p&gt;The demo is being worked on at the time of submission and may be shown online by appointment.&lt;/p&gt; &lt;p&gt;Automatic annotation of the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xa2fcc88&quot;&gt;data&lt;/a&gt; based on &lt;a href=&quot;http://dbpedia.org/resource/Named_entity_recognition&quot; id=&quot;link-id0xc085440&quot;&gt;named entity extraction&lt;/a&gt; is being worked on at the time of this submission. By the time of ISWC 2008 the set of sample queries will be enhanced with queries based on extracted &lt;a href=&quot;http://dbpedia.org/resource/Named_entity_recognition&quot; id=&quot;link-id0xa92b3e0&quot;&gt;named entities&lt;/a&gt; and their relationships in the &lt;a href=&quot;http://umbel.org/about/&quot; id=&quot;link-id0xa1c7c38&quot;&gt;UMBEL&lt;/a&gt; and Open CYC ontologies. &lt;/p&gt; &lt;p&gt;Also examples involving owl:sameAs are being added, likewise with similarity metrics and search hit scores.&lt;/p&gt; &lt;h2&gt;The Data&lt;/h2&gt; &lt;p&gt;The database consists of the billion triples data sets and some additions like Umbel. Also the Freebase extract is newer than the challenge original.&lt;/p&gt; &lt;p&gt;The triple count is 1115 million.&lt;/p&gt; &lt;p&gt;In the case of web harvested resources, the data is loaded in one graph per resource.&lt;/p&gt; &lt;p&gt;In the case of larger data sets like &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0xa949850&quot;&gt;Dbpedia&lt;/a&gt; or the US census, all triples of the provenance share a data set specific graph.&lt;/p&gt; &lt;p&gt;All string literals are additionally indexed in a full text index. No stop words are used.&lt;/p&gt; &lt;p&gt;Most queries do not specify a graph. Thus they are evaluated against the union of all the graphs in the database. The indexing scheme is SPOG, GPOS, POGS, OPGS. All indices ending in S are bitmap indices. &lt;/p&gt; &lt;h2&gt;The Queries &lt;/h2&gt; &lt;p&gt;The demo uses Virtuoso SPARQL extensions in most queries. These extensions consist on one hand of well known &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0xc116190&quot;&gt;SQL&lt;/a&gt; features like aggregation with grouping and existence and value subqueries and on the other of &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xa9047f0&quot;&gt;RDF&lt;/a&gt; specific features. The latter include run time RDFS and OWL inferencing support and backward chaining subclasses and transitivity. &lt;/p&gt; &lt;h3&gt;Simple Lookups&lt;/h3&gt; &lt;pre&gt;sparql select ?s ?p (bif:search_excerpt (bif:vector (&amp;#39;&lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0xbe38070&quot;&gt;semantic&amp;#39;, &amp;#39;web&lt;/a&gt;&amp;#39;), ?o)) where { ?s ?p ?o . filter (bif:contains (?o, &amp;quot;&amp;#39;semantic web&amp;#39;&amp;quot;)) } limit 10 ; &lt;/pre&gt; &lt;p&gt;This looks up triples with semantic web in the object and makes a search hit summary of the literal, highlighting the search terms. &lt;/p&gt; &lt;pre&gt;sparql select ?tp count(*) where { ?s ?p2 ?o2 . ?o2 a ?tp . ?s foaf:nick ?o . filter (bif:contains (?o, &amp;quot;plaid_skirt&amp;quot;)) } group by ?tp order by desc 2 limit 40 ; &lt;/pre&gt; &lt;p&gt;This looks at what sorts of things are referenced by the properties of the foaf handle plaid_skirt.&lt;/p&gt; &lt;p&gt;What are these things called?&lt;/p&gt; &lt;pre&gt;sparql select ?lbl count(*) where { ?s ?p2 ?o2 . ?o2 rdfs:label ?lbl . ?s foaf:nick ?o . filter (bif:contains (?o, &amp;quot;plaid_skirt&amp;quot;)) } group by ?lbl order by desc 2 ; &lt;/pre&gt; &lt;p&gt;Many of these things do not have a rdfs:label. Let us use a more general concept of lable which groups dc:title, foaf:name and other name-like properties together. The subproperties are resolved at run time, there is no materialization. &lt;/p&gt; &lt;pre&gt;sparql define input:inference &amp;#39;b3s&amp;#39; select ?lbl count(*) where { ?s ?p2 ?o2 . ?o2 b3s:label ?lbl . ?s foaf:nick ?o . filter (bif:contains (?o, &amp;quot;plaid_skirt&amp;quot;)) } group by ?lbl order by desc 2 ; &lt;/pre&gt; &lt;p&gt;We can list sources by the topics they contain. Below we look for graphs that mention terrorist bombing. &lt;/p&gt; &lt;pre&gt;sparql select ?g count(*) where { graph ?g { ?s ?p ?o . filter (bif:contains (?o, &amp;quot;&amp;#39;terrorist bombing&amp;#39;&amp;quot;)) } } group by ?g order by desc 2 ; &lt;/pre&gt; &lt;p&gt;Now some web 2.0 tagging of search results. The &lt;a href=&quot;http://dbpedia.org/resource/Tag&quot; id=&quot;link-id0xa366510&quot;&gt;tag&lt;/a&gt; cloud of &amp;quot;computer&amp;quot;&lt;/p&gt; &lt;pre&gt;sparql select ?lbl count (*) where { ?s ?p ?o . ?o bif:contains &amp;quot;computer&amp;quot; . ?s sioc:topic ?tg . optional { ?tg rdfs:label ?lbl } } group by ?lbl order by desc 2 limit 40 ; &lt;/pre&gt; &lt;p&gt;This query will find the posters who talk the most about sex.&lt;/p&gt; &lt;pre&gt;sparql select ?auth count (*) where { ?d dc:creator ?auth . ?d ?p ?o filter (bif:contains (?o, &amp;quot;sex&amp;quot;)) } group by ?auth order by desc 2 ; &lt;/pre&gt; &lt;h3&gt;Analytics &lt;/h3&gt; &lt;p&gt;We look for people who are joined by having relatively uncommon interests but do not know each other.&lt;/p&gt; &lt;pre&gt;sparql select ?i ?cnt ?n1 ?n2 ?p1 ?p2 where { { select ?i count (*) as ?cnt where { ?p foaf:interest ?i } group by ?i } filter ( ?cnt &amp;gt; 1 &amp;amp;&amp;amp; ?cnt &amp;lt; 10) . ?p1 foaf:interest ?i . ?p2 foaf:interest ?i . filter (?p1 != ?p2 &amp;amp;&amp;amp; !bif:exists ((select (1) where {?p1 foaf:knows ?p2 })) &amp;amp;&amp;amp; !bif:exists ((select (1) where {?p2 foaf:knows ?p1 }))) . ?p1 foaf:nick ?n1 . ?p2 foaf:nick ?n2 . } order by ?cnt limit 50 ; &lt;/pre&gt; &lt;p&gt;The query takes a fairly long time, mostly spent counting the interested in 25M interest triples. It then takes people that share the interest and checks that neither claims to know the other. It then sorts the results rarest interest first. The query can be written more efficently but is here just to show that database-wide scans of the population are possible ad hoc. &lt;/p&gt; &lt;p&gt;Now we go to SQL to make a tag co-occurrence matrix. This can be used for showing a Technorati-style related tags line at the bottom of a search result page. This showcases the use of SQL together with SPARQL. The half-matrix of tags t1, t2 with the co-occurrence count at the intersection is much more efficiently done in SQL, specially since it gets updated as the data changes. This is an example of materialized intermediate results based on warehoused RDF. &lt;/p&gt; &lt;pre&gt;create table tag_count (tcn_tag iri_id_8, tcn_count int, primary key (tcn_tag)); alter index tag_count on tag_count partition (tcn_tag int (0hexffff00)); create table tag_coincidence (tc_t1 iri_id_8, tc_t2 iri_id_8, tc_count int, tc_t1_count int, tc_t2_count int, primary key (tc_t1, tc_t2)) alter index tag_coincidence on tag_coincidence partition (tc_t1 int (0hexffff00)); create index tc2 on tag_coincidence (tc_t2, tc_t1) partition (tc_t2 int (0hexffff00)); &lt;/pre&gt; &lt;p&gt;How many times each topic is mentioned?&lt;/p&gt; &lt;pre&gt; insert into tag_count select * from (sparql define output:valmode &amp;quot;LONG&amp;quot; select ?t count (*) as ?cnt where { ?s sioc:topic ?t } group by ?t) xx option (quietcast); &lt;/pre&gt; &lt;p&gt;Take all t1, t2 where t1 and t2 are tags of the same subject, store only the permutation where the internal id of t1 &amp;lt; that of t2.&lt;/p&gt; &lt;pre&gt;insert into tag_coincidence (tc_t1, tc_t2, tc_count) select &amp;quot;t1&amp;quot;, &amp;quot;t2&amp;quot;, cnt from (select &amp;quot;t1&amp;quot;, &amp;quot;t2&amp;quot;, count (*) as cnt from (sparql define output:valmode &amp;quot;LONG&amp;quot; select ?t1 ?t2 where { ?s sioc:topic ?t1 . ?s sioc:topic ?t2 }) tags where &amp;quot;t1&amp;quot; &amp;lt; &amp;quot;t2&amp;quot; group by &amp;quot;t1&amp;quot;, &amp;quot;t2&amp;quot;) xx where isiri_id (&amp;quot;t1&amp;quot;) and isiri_id (&amp;quot;t2&amp;quot;) option (quietcast); &lt;/pre&gt; &lt;p&gt;Now put the individual occurrence counts into the same table with the co-occurrence. This denormalization makes the related tags lookup faster. &lt;/p&gt; &lt;pre&gt;update tag_coincidence set tc_t1_count = (select tcn_count from tag_count where tcn_tag = tc_t1), tc_t2_count = (select tcn_count from tag_count where tcn_tag = tc_t2); &lt;/pre&gt; &lt;p&gt;Now each tag_coincidence row has the joint occurrence count and individual occurrence counts. A single select will return a Technorati-style related tags listing. &lt;/p&gt; &lt;p&gt;To show the &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id0xaf355c8&quot;&gt;URI&lt;/a&gt;&amp;#39;s of the tags: &lt;/p&gt; &lt;pre&gt;select top 10 id_to_iri (tc_T1), id_to_iri (tc_t2), tc_count from tag_coincidence order by tc_count desc; &lt;/pre&gt; &lt;h3&gt;Social Networks &lt;/h3&gt; &lt;p&gt;We look at what interests people have &lt;/p&gt; &lt;pre&gt;sparql select ?o ?cnt where { { select ?o count (*) as ?cnt where { ?s foaf:interest ?o } group by ?o } filter (?cnt &amp;gt; 100) } order by desc 2 limit 100 ; &lt;/pre&gt; &lt;p&gt;Now the same for the Harry Potter fans &lt;/p&gt; &lt;pre&gt;sparql select ?i2 count (*) where { ?p foaf:interest &amp;lt;&lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0xa274410&quot;&gt;http&lt;/a&gt;://www.livejournal.com/interests.bml?int=harry+potter&amp;gt; . ?p foaf:interest ?i2 } group by ?i2 order by desc 2 limit 20 ; &lt;/pre&gt; &lt;p&gt;We see whether knows relations are symmmetrical. We return the top n people that others claim to know without being reciprocally known.&lt;/p&gt; &lt;pre&gt;sparql select ?celeb, count (*) where { ?claimant foaf:knows ?celeb . filter (!bif:exists ((select (1) where { ?celeb foaf:knows ?claimant }))) } group by ?celeb order by desc 2 limit 10 ; &lt;/pre&gt; &lt;p&gt;We look for a well connected person to start from.&lt;/p&gt; &lt;pre&gt;sparql select ?p count (*) where { ?p foaf:knows ?k } group by ?p order by desc 2 limit 50 ; &lt;/pre&gt; &lt;p&gt;We look for the most connected of the many online identities of Stefan Decker.&lt;/p&gt; &lt;pre&gt;sparql select ?sd count (distinct ?xx) where { ?sd a foaf:Person . ?sd ?name ?ns . filter (bif:contains (?ns, &amp;quot;&amp;#39;Stefan Decker&amp;#39;&amp;quot;)) . ?sd foaf:knows ?xx } group by ?sd order by desc 2 ; &lt;/pre&gt; &lt;p&gt;We count the transitive closure of Stefan Decker&amp;#39;s connections &lt;/p&gt; &lt;pre&gt;sparql select count (*) where { { select * where { ?s foaf:knows ?o } } option (transitive, t_distinct, t_in(?s), t_out(?o)) . filter (?s = &amp;lt;mailto:stefan.decker@deri.org&amp;gt;) } ; &lt;/pre&gt; &lt;p&gt;Now we do the same while following owl:sameAs links.&lt;/p&gt; &lt;pre&gt;sparql define input:same-as &amp;quot;yes&amp;quot; select count (*) where { { select * where { ?s foaf:knows ?o } } option (transitive, t_distinct, t_in(?s), t_out(?o)) . filter (?s = &amp;lt;mailto:stefan.decker@deri.org&amp;gt;) } ; &lt;/pre&gt; &lt;h2&gt;Demo System&lt;/h2&gt; &lt;p&gt;The system runs on Virtuoso 6 Cluster Edition. The database is partitioned into 12 partitions, each served by a distinct server process. The system demonstrated hosts these 12 servers on 2 machines, each with 2 xXeon 5345 and 16GB memory and 4 SATA disks. For scaling, the processes and corresponding partitions can be spread over a larger number of machines. If each ran on its own server with 16GB RAM, the whole data set could be served from memory. This is desirable for search engine or fast analytics applications. Most of the demonstrated queries run in memory on second invocation. The timing difference between first and second run is easily an order of magnitude. &lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Requirements for Relational-to-RDF Mapping</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-09-08#1436</atom:id>
  <atom:published>2008-09-08T09:41:25Z</atom:published>
  <atom:updated>2008-09-08T15:03:09-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Requirements for Relational-to-RDF Mapping&lt;/div&gt; &lt;p&gt;Many of you will know about the W3C relational-to-&lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1e1be0a8&quot;&gt;RDF&lt;/a&gt; mapping incubator activity. The group is planning to suggest forming a working group for drawing up a specification for relational-to-RDF mapping.&lt;/p&gt; &lt;p&gt;To this effect, I recently summarized the group discussions and some of our own experiences around the topic at &amp;lt;&lt;a href=&quot;http://esw.w3.org/topic/Rdb2RdfXG/ReqForMappingByOErling&quot; id=&quot;link-id146030e8&quot;&gt;http://esw.w3.org/topic/Rdb2RdfXG/ReqForMappingByOErling&lt;/a&gt;&amp;gt;.&lt;/p&gt; &lt;p&gt;I will here discuss this less formally and more in the light of our own experience. A working group goal statement must be neutral vis Ã  vis the following points, even if any working group will unavoidably encounter these issues on the way. A &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0x1e6b3950&quot;&gt;blog&lt;/a&gt; post on the other hand can be more specific.&lt;/p&gt; &lt;p&gt;I gave a talk to the &lt;a href=&quot;http://www.w3.org/2005/Incubator/rdb2rdf/&quot; id=&quot;link-id0xa0932c68&quot;&gt;RDB2RDF XG&lt;/a&gt; this spring, with these &lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VirtPresentations/Relational2RDF.ppt&quot; id=&quot;link-id14572540&quot;&gt;slides&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The main point is that people would really like to map on-the-fly, if they only could. Making an RDF warehouse is not of value in itself, but it is true that in some cases this cannot be avoided.&lt;/p&gt; &lt;p&gt;At first sight, one would think that a mapping specification could be neutral as regards whether one stores the mapped triples as triples or makes them on demand. There is almost no comparison between the complexity of doing non-trivial mappings on-the-fly versus mapping as ETL. Some of this complexity spills over into the requirements for a mapping language. &lt;/p&gt; &lt;h2&gt;Eliminating JOINs&lt;/h2&gt; &lt;p&gt;We expect to have a situation where one virtual triple can have many possible sources. The mapping is a union of mapped databases. Any integration scenario will have this feature. In such a situation, if we are &lt;code&gt;JOIN&lt;/code&gt;ing using such triples, we end up with &lt;code&gt;UNION&lt;/code&gt;s of all databases that could produce the triples in question. This is generally not desired. Therefore, in the on-demand mapping case, there must be a lot of type inference logic that is not relevant in the ETL scenario.&lt;/p&gt; &lt;p&gt;To make the point clearer, suppose a query like &amp;quot;list the organizations whose representatives have published about &lt;i&gt;xx&lt;/i&gt;.&amp;quot; Suppose that there are three databases mapped, all of which have a table of organizations, a table of persons with affiliation to organizations, a table of publications by these persons, and finally a table of tags for the publications. Now, we want the laboratories that have published with articles with &lt;a href=&quot;http://dbpedia.org/resource/Tag&quot; id=&quot;link-id0xa0977bf0&quot;&gt;tag&lt;/a&gt; &lt;i&gt;XX&lt;/i&gt;. It is a matter of common sense in this scenario that a publication will have the author and the author&amp;#39;s affiliation in the same database. However, the RDB-to-RDF mapping does not necessarily know this, if all that it is told is that a table makes IRIs of publications by applying a certain pattern to the primary key of the publications table. To infer what needs to be inferred, the system must realize that IRIs from one mapping are disjoint from IRIs from another: A paper in database &lt;i&gt;X&lt;/i&gt; will usually not have an author in database &lt;i&gt;Y&lt;/i&gt;. The IDs in database &lt;i&gt;Y&lt;/i&gt;, even if perchance equal to the IDs in &lt;i&gt;X&lt;/i&gt;, do not mean the same thing, and there is no point joining across databases by them.&lt;/p&gt; &lt;p&gt;This entire question is a non-issue in the ETL scenario, but is absolutely vital in the real-time mapping. This is also something that must be stated, at least implicitly, in any mapping. If a mapping translates keys of one place to IRIs with one pattern, and keys from another using another pattern, it must be inferable from the patterns whether the sets of IRIs will be disjoint.&lt;/p&gt; &lt;p&gt;This is critical. Otherwise we will be joining everything to everything else, and there will be orders of magnitude of penalty compared to hand-crafted &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0xa09490f8&quot;&gt;SQL&lt;/a&gt; over the same &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xa095efd0&quot;&gt;data&lt;/a&gt; sources.&lt;/p&gt; &lt;h2&gt;Expectations and Limitations on Queries&lt;/h2&gt; &lt;p&gt; &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1e360230&quot;&gt;SPARQL&lt;/a&gt; queries translate quite well to SQL when there is only one table that can produce a triple with a subject of a given class, when there are few columns that can map to a given predicate, and when classes and predicates are literals in the query.&lt;/p&gt; &lt;p&gt; &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1f5edb30&quot;&gt;Virtuoso&lt;/a&gt; has some SQL extensions for dealing with breaking a wide table into a row per column. This facilitates dealing with predicates that are not known at query compile time. If the table in question is not managed by Virtuoso, Virtuoso&amp;#39;s SQL virtualization/federation takes care of the matter. If a mapping system goes directly to third-party SQL, no such tricks can be used.&lt;/p&gt; &lt;p&gt;The above example suggests that for supporting on-the-fly mapping without relying on owning the SQL underneath, some subsets of SPARQL may have to be defined. For example, one will probably have to require that all predicates be literals. The alternative is prohibitive run-time cost and complexity.&lt;/p&gt; &lt;p&gt;But we must not lose the baby with the bath-water. Aside from offering global identifiers, RDF&amp;#39;s attractions include subclasses and sub-predicates. In relational terms, these translate to &lt;code&gt;UNION&lt;/code&gt;s and do involve some added cost. A mapping system just has to have means of dealing with this cost, and of recognizing cases where this cost is prohibitive. Some further work is likely to be required for defining well-behaved subsets of SPARQL and mappings.&lt;/p&gt; &lt;h2&gt;ETL Ou Ne Pas ETL?&lt;/h2&gt; &lt;p&gt;Whether to warehouse or not? If one has hundreds of sources, of which some are not even relational, some ETL would seem necessary. Kashiup Vipul gave a position paper at last year&amp;#39;s RDB-to-RDF mapping workshop in Cambridge, Massachusetts, about a system of relational mapping and on-demand RDF-izers of diverse semi-structured biomedical data, e.g., spreadsheets. The issue certainly exists, and any mapping work will likely encounter integration scenarios where one part is fairly neatly mapped from relational stores, and another part comes from a less structured repository of ETLed physical triples.&lt;/p&gt; &lt;p&gt;Our take is that if something is a large or very large relational store, then map; else, ETL. With Virtuoso, we can mix mapped and local triples, but this is not a generally available feature of triple stores and standardization will likely have to wait until there are more implementations.&lt;/p&gt; &lt;h2&gt;Conclusions&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;If you map on demand, watch out for an explosion of &lt;code&gt;UNION&lt;/code&gt;s when integrating sources that talk of similar things.&lt;/li&gt; &lt;li&gt;If you integrate lots of sources, some ETL is likely unavoidable. Look for ways of dealing with part ETL, part mapping. ETLing everything is not always best or even possible.&lt;/li&gt; &lt;li&gt;If you map a single fairly-clean RDB to RDF, mapping will work well, potentially much faster than triple storage. Higher storage density and more data per index lookup on the relational side.&lt;/li&gt; &lt;li&gt;If you map on demand, some restrictions to SPARQL may be practically necessary. These have to do with variables in predicate position, variables in class position, etc. Individual implementations may support these, but standardization will likely have to put limits on them.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;This was a quick summary, by no means comprehensive, on what an eventual RDB2RDF working group would come across. This is a sort of addendum to the requirements I outlined on the ESW wiki.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Transitivity and Graphs for SQL</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-09-08#1435</atom:id>
  <atom:published>2008-09-08T09:41:24Z</atom:published>
  <atom:updated>2008-09-08T15:43:07-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Transitivity and Graphs for SQL&lt;/div&gt; &lt;h2&gt;Background&lt;/h2&gt; &lt;p&gt;I have mentioned on a couple of prior occasions that basic graph operations ought to be integrated into the &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0xa1a18c58&quot;&gt;SQL&lt;/a&gt; query language.&lt;/p&gt; &lt;p&gt;The history of databases is by and large about moving from specialized applications toward a generic platform. The introduction of the DBMS itself is the archetypal example. It is all about extracting the common features of applications and making these the features of a platform instead.&lt;/p&gt; &lt;p&gt;It is now time to apply this principle to graph traversal.&lt;/p&gt; &lt;p&gt;The rationale is that graph operations are somewhat tedious to write in a parallelize-able, latency-tolerant manner. Writing them as one would for memory-based &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xaf8c730&quot;&gt;data&lt;/a&gt; structures is easier but totally unscalable as soon as there is any latency involved, i.e., disk reads or messages between cluster peers.&lt;/p&gt; &lt;p&gt;The ad-hoc nature and very large volume of &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xae41ef0&quot;&gt;RDF&lt;/a&gt; data makes this a timely question. Up until now, the answer to this question has been to materialize any implied facts in RDF stores. If &lt;i&gt;a&lt;/i&gt; was part of &lt;i&gt;b&lt;/i&gt;, and &lt;i&gt;b&lt;/i&gt; part of &lt;i&gt;&lt;a href=&quot;http://dbpedia.org/resource/C_(programming_language)&quot; id=&quot;link-id0xac9d8790&quot;&gt;c&lt;/a&gt;&lt;/i&gt;, the implied fact that &lt;i&gt;a&lt;/i&gt; is part of &lt;i&gt;c&lt;/i&gt; would be inserted explicitly into the database as a pre-query step.&lt;/p&gt; &lt;p&gt;This is simple and often efficient, but tends to have the downside that one makes a specialized warehouse for each new type of query. The activity becomes less ad-hoc.&lt;/p&gt; &lt;p&gt;Also, this becomes next to impossible when the scale approaches web scale, or if some of the data is liable to be on-and-off included-into or excluded-from the set being analyzed. This is why with &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xb68f9d0&quot;&gt;Virtuoso&lt;/a&gt; we have tended to favor inference on demand (&amp;quot;backward chaining&amp;quot;) and mapping of relational data into RDF without copying.&lt;/p&gt; &lt;p&gt;The SQL world has taken steps towards dealing with recursion with the &lt;code&gt;WITH - UNION&lt;/code&gt; construct which allows definition of recursive views. The idea there is to define, for example, a tree walk as a &lt;code&gt;UNION&lt;/code&gt; of the data of the starting node plus the recursive walk of the starting node&amp;#39;s immediate children.&lt;/p&gt; &lt;p&gt;The main problem with this is that I do not very well see how a SQL optimizer could effectively rearrange queries involving &lt;code&gt;JOIN&lt;/code&gt;s between such recursive views. This model of recursion seems to lose SQL&amp;#39;s non-procedural nature. One can no longer easily rearrange &lt;code&gt;JOIN&lt;/code&gt;s based on what data is given and what is to be retrieved. If the recursion is written from root to leaf, it is not obvious how to do this from leaf to root. At any rate, queries written in this way are so complex to write, let alone optimize, that I decided to take another approach.&lt;/p&gt; &lt;p&gt;Take a question like &amp;quot;list the parts of products of category &lt;i&gt;C&lt;/i&gt; which have materials that are classified as toxic.&amp;quot; Suppose that the product categories are a tree, the product parts are a tree, and the materials classification is a tree taxonomy where &amp;quot;toxic&amp;quot; has a multilevel substructure.&lt;/p&gt; &lt;p&gt;Depending on the count of products and materials, the query can be evaluated as either going from products to parts to materials and then climbing up the materials tree to see if the material is toxic. Or one could do it in reverse, starting with the different toxic materials, looking up the parts containing these, going to the part tree to the product, and up the product hierarchy to see if the product is in the right category. One should be able to evaluate the identical query either way depending on what indices exist, what the cardinalities of the relations are, and so forth â regular cost based optimization.&lt;/p&gt; &lt;p&gt;Especially with RDF, there are many problems of this type. In regular SQL, it is a long-standing cultural practice to flatten hierarchies, but this is not the case with RDF.&lt;/p&gt; &lt;p&gt;In Virtuoso, we see &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xb3bdcc0&quot;&gt;SPARQL&lt;/a&gt; as reducing to SQL. Any RDF-oriented database-engine or query-optimization feature is accessed via SQL. Thus, if we address run-time-recursion in the Virtuoso query engine, this becomes, &lt;i&gt;ipso facto&lt;/i&gt;, an SQL feature. Besides, we remember that SQL is a much more mature and expressive language than the current SPARQL recommendation.&lt;/p&gt; &lt;h2&gt; SQL and Transitivity &lt;/h2&gt; &lt;p&gt;We will here look at some simple social network queries. A later article will show how to do more general graph operations. We extend the SQL derived table construct, i.e., &lt;code&gt;SELECT&lt;/code&gt; in another &lt;code&gt;SELECT&lt;/code&gt;&amp;#39;s &lt;code&gt;FROM&lt;/code&gt; clause, with a &lt;code&gt;TRANSITIVE&lt;/code&gt; clause.&lt;/p&gt; &lt;p&gt;Consider the data:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt;CREATE TABLE &amp;quot;knows&amp;quot; (&amp;quot;p1&amp;quot; INT, &amp;quot;p2&amp;quot; INT, PRIMARY KEY (&amp;quot;p1&amp;quot;, &amp;quot;p2&amp;quot;) ); ALTER INDEX &amp;quot;knows&amp;quot; ON &amp;quot;knows&amp;quot; PARTITION (&amp;quot;p1&amp;quot; INT); CREATE INDEX &amp;quot;knows2&amp;quot; ON &amp;quot;knows&amp;quot; (&amp;quot;p2&amp;quot;, &amp;quot;p1&amp;quot;) PARTITION (&amp;quot;p2&amp;quot; INT); &lt;/code&gt; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;We represent a social network with the many-to-many relation &amp;quot;knows&amp;quot;. The persons are identified by integers.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt;INSERT INTO &amp;quot;knows&amp;quot; VALUES (1, 2); INSERT INTO &amp;quot;knows&amp;quot; VALUES (1, 3); INSERT INTO &amp;quot;knows&amp;quot; VALUES (2, 4);&lt;/code&gt; &lt;/pre&gt; &lt;pre&gt;&lt;code&gt;SELECT * FROM (SELECT TRANSITIVE T_IN (1) T_OUT (2) T_DISTINCT &amp;quot;p1&amp;quot;, &amp;quot;p2&amp;quot; FROM &amp;quot;knows&amp;quot; ) &amp;quot;k&amp;quot; WHERE &amp;quot;k&amp;quot;.&amp;quot;p1&amp;quot; = 1;&lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;We obtain the result:&lt;/p&gt; &lt;blockquote&gt; &lt;table width=&quot;100&quot;&gt; &lt;tr&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p1&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p2&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;3&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;2&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/blockquote&gt; &lt;p&gt;The operation is reversible:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt;SELECT * FROM (SELECT TRANSITIVE T_IN (1) T_OUT (2) T_DISTINCT &amp;quot;p1&amp;quot;, &amp;quot;p2&amp;quot; FROM &amp;quot;knows&amp;quot; ) &amp;quot;k&amp;quot; WHERE &amp;quot;k&amp;quot;.&amp;quot;p2&amp;quot; = 4; &lt;/code&gt; &lt;/pre&gt; &lt;table width=&quot;100&quot;&gt; &lt;tr&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p1&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p2&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;2&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/blockquote&gt; &lt;p&gt;Since now we give &lt;i&gt;p2&lt;/i&gt;, we traverse from &lt;i&gt;p2&lt;/i&gt; towards &lt;i&gt;p1&lt;/i&gt;. The result set states that 4 is known by 2 and 2 is known by 1.&lt;/p&gt; &lt;p&gt;To see what would happen if &lt;i&gt;x&lt;/i&gt; knowing &lt;i&gt;y&lt;/i&gt; also meant &lt;i&gt;y&lt;/i&gt; knowing &lt;i&gt;x&lt;/i&gt;, one could write:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt;SELECT * FROM (SELECT TRANSITIVE T_IN (1) T_OUT (2) T_DISTINCT &amp;quot;p1&amp;quot;, &amp;quot;p2&amp;quot; FROM (SELECT &amp;quot;p1&amp;quot;, &amp;quot;p2&amp;quot; FROM &amp;quot;knows&amp;quot; UNION ALL SELECT &amp;quot;p2&amp;quot;, &amp;quot;p1&amp;quot; FROM &amp;quot;knows&amp;quot; ) &amp;quot;k2&amp;quot; ) &amp;quot;k&amp;quot; WHERE &amp;quot;k&amp;quot;.&amp;quot;p2&amp;quot; = 4;&lt;/code&gt; &lt;/pre&gt; &lt;table width=&quot;100&quot;&gt; &lt;tr&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p1&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p2&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;2&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;3&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/blockquote&gt; &lt;p&gt;Now, since we know that 1 and 4 are related, we can ask how they are related.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt;SELECT * FROM (SELECT TRANSITIVE T_IN (1) T_OUT (2) T_DISTINCT &amp;quot;p1&amp;quot;, &amp;quot;p2&amp;quot;, T_STEP (1) AS &amp;quot;via&amp;quot;, T_STEP (&amp;#39;step_no&amp;#39;) AS &amp;quot;step&amp;quot;, T_STEP (&amp;#39;path_id&amp;#39;) AS &amp;quot;path&amp;quot; FROM &amp;quot;knows&amp;quot; ) &amp;quot;k&amp;quot; WHERE &amp;quot;p1&amp;quot; = 1 AND &amp;quot;p2&amp;quot; = 4;&lt;/code&gt; &lt;/pre&gt; &lt;table width=&quot;250&quot;&gt; &lt;tr&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p1&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p2&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;via&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;step&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;path&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;2&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;2&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/blockquote&gt; &lt;p&gt;The two first columns are the ends of the path. The next column is the person that is a step on the path. The next one is the number of the step, counting from 0, so that the end of the path that corresponds to the end condition on the column designated as input, i.e., &lt;i&gt;p1&lt;/i&gt;, has number 0. Since there can be multiple solutions, the last column is a sequence number allowing distinguishing multiple alternative paths from each other.&lt;/p&gt; &lt;p&gt;For LinkedIn users, the friends ordered by distance and descending friend count query, which is at the basis of most LinkedIn search result views can be written as: &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt;SELECT p2, dist, (SELECT COUNT (*) FROM &amp;quot;knows&amp;quot; &amp;quot;c&amp;quot; WHERE &amp;quot;c&amp;quot;.&amp;quot;p1&amp;quot; = &amp;quot;k&amp;quot;.&amp;quot;p2&amp;quot; ) FROM (SELECT TRANSITIVE t_in (1) t_out (2) t_distinct &amp;quot;p1&amp;quot;, &amp;quot;p2&amp;quot;, t_step (&amp;#39;step_no&amp;#39;) AS &amp;quot;dist&amp;quot; FROM &amp;quot;knows&amp;quot; ) &amp;quot;k&amp;quot; WHERE &amp;quot;p1&amp;quot; = 1 ORDER BY &amp;quot;dist&amp;quot;, 3 DESC;&lt;/code&gt; &lt;/pre&gt; &lt;table width=&quot;150&quot;&gt; &lt;tr&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p2&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;dist&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;aggregate&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;2&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;3&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;2&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/blockquote&gt; &lt;h2&gt;How?&lt;/h2&gt; &lt;p&gt;The queries shown above work on Virtuoso v6. When running in cluster mode, several thousand graph traversal steps may be proceeding at the same time, meaning that all database access is parallelized and that the algorithm is internally latency-tolerant. By default, all results are produced in a deterministic order, permitting predictable slicing of result sets.&lt;/p&gt; &lt;p&gt;Furthermore, for queries where both ends of a path are given, the optimizer may decide to attack the path from both ends simultaneously. So, supposing that every member of a social network has an average of 30 contacts, and we need to find a path between two users that are no more than 6 steps apart, we begin at both ends, expanding each up to 3 levels, and we stop when we find the first intersection. Thus, we reach 2 * 30^3 = 54,000 nodes, and not 30^6 = 729,000,000 nodes.&lt;/p&gt; &lt;p&gt;Writing a generic database driven graph traversal framework on the application side, say in Java over &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id0xa8a9ef8&quot;&gt;JDBC&lt;/a&gt;, would easily be over a thousand lines. This is much more work than can be justified just for a one-off, ad-hoc query. Besides, the traversal order in such a case could not be optimized by the DBMS.&lt;/p&gt; &lt;h2&gt;Next&lt;/h2&gt; &lt;p&gt;In a future &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0xb526a40&quot;&gt;blog&lt;/a&gt; post I will show how this feature can be used for common graph tasks like critical path, itinerary planning, traveling salesman, the 8 queens chess problem, etc. There are lots of switches for controlling different parameters of the traversal. This is just the beginning. I will also give examples of the use of this in SPARQL.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Requirements for Relational-to-RDF Mapping</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-09-08#1434</atom:id>
  <atom:published>2008-09-08T09:40:06Z</atom:published>
  <atom:updated>2008-09-08T15:03:06.000009-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;Many of you will know about the W3C relational-to-&lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1d61a948&quot;&gt;RDF&lt;/a&gt; mapping incubator activity. The group is planning to suggest forming a working group for drawing up a specification for relational-to-RDF mapping.&lt;/p&gt; &lt;p&gt;To this effect, I recently summarized the group discussions and some of our own experiences around the topic at &amp;lt;&lt;a href=&quot;http://esw.w3.org/topic/Rdb2RdfXG/ReqForMappingByOErling&quot; id=&quot;link-id146030e8&quot;&gt;http://esw.w3.org/topic/Rdb2RdfXG/ReqForMappingByOErling&lt;/a&gt;&amp;gt;.&lt;/p&gt; &lt;p&gt;I will here discuss this less formally and more in the light of our own experience. A working group goal statement must be neutral vis Ã  vis the following points, even if any working group will unavoidably encounter these issues on the way. A &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0x21334340&quot;&gt;blog&lt;/a&gt; post on the other hand can be more specific.&lt;/p&gt; &lt;p&gt;I gave a talk to the &lt;a href=&quot;http://www.w3.org/2005/Incubator/rdb2rdf/&quot; id=&quot;link-id0x1ef85f58&quot;&gt;RDB2RDF XG&lt;/a&gt; this spring, with these &lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VirtPresentations/Relational2RDF.ppt&quot; id=&quot;link-id14572540&quot;&gt;slides&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The main point is that people would really like to map on-the-fly, if they only could. Making an RDF warehouse is not of value in itself, but it is true that in some cases this cannot be avoided.&lt;/p&gt; &lt;p&gt;At first sight, one would think that a mapping specification could be neutral as regards whether one stores the mapped triples as triples or makes them on demand. There is almost no comparison between the complexity of doing non-trivial mappings on-the-fly versus mapping as ETL. Some of this complexity spills over into the requirements for a mapping language. &lt;/p&gt; &lt;h2&gt;Eliminating JOINs&lt;/h2&gt; &lt;p&gt;We expect to have a situation where one virtual triple can have many possible sources. The mapping is a union of mapped databases. Any integration scenario will have this feature. In such a situation, if we are &lt;code&gt;JOIN&lt;/code&gt;ing using such triples, we end up with &lt;code&gt;UNION&lt;/code&gt;s of all databases that could produce the triples in question. This is generally not desired. Therefore, in the on-demand mapping case, there must be a lot of type inference logic that is not relevant in the ETL scenario.&lt;/p&gt; &lt;p&gt;To make the point clearer, suppose a query like &amp;quot;list the organizations whose representatives have published about &lt;i&gt;xx&lt;/i&gt;.&amp;quot; Suppose that there are three databases mapped, all of which have a table of organizations, a table of persons with affiliation to organizations, a table of publications by these persons, and finally a table of tags for the publications. Now, we want the laboratories that have published with articles with &lt;a href=&quot;http://dbpedia.org/resource/Tag&quot; id=&quot;link-id0x1d8270d0&quot;&gt;tag&lt;/a&gt; &lt;i&gt;XX&lt;/i&gt;. It is a matter of common sense in this scenario that a publication will have the author and the author&amp;#39;s affiliation in the same database. However, the RDB-to-RDF mapping does not necessarily know this, if all that it is told is that a table makes IRIs of publications by applying a certain pattern to the primary key of the publications table. To infer what needs to be inferred, the system must realize that IRIs from one mapping are disjoint from IRIs from another: A paper in database &lt;i&gt;X&lt;/i&gt; will usually not have an author in database &lt;i&gt;Y&lt;/i&gt;. The IDs in database &lt;i&gt;Y&lt;/i&gt;, even if perchance equal to the IDs in &lt;i&gt;X&lt;/i&gt;, do not mean the same thing, and there is no point joining across databases by them.&lt;/p&gt; &lt;p&gt;This entire question is a non-issue in the ETL scenario, but is absolutely vital in the real-time mapping. This is also something that must be stated, at least implicitly, in any mapping. If a mapping translates keys of one place to IRIs with one pattern, and keys from another using another pattern, it must be inferable from the patterns whether the sets of IRIs will be disjoint.&lt;/p&gt; &lt;p&gt;This is critical. Otherwise we will be joining everything to everything else, and there will be orders of magnitude of penalty compared to hand-crafted &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1d8b0b40&quot;&gt;SQL&lt;/a&gt; over the same &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1ee63530&quot;&gt;data&lt;/a&gt; sources.&lt;/p&gt; &lt;h2&gt;Expectations and Limitations on Queries&lt;/h2&gt; &lt;p&gt; &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1dcfd7b0&quot;&gt;SPARQL&lt;/a&gt; queries translate quite well to SQL when there is only one table that can produce a triple with a subject of a given class, when there are few columns that can map to a given predicate, and when classes and predicates are literals in the query.&lt;/p&gt; &lt;p&gt; &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x2006b798&quot;&gt;Virtuoso&lt;/a&gt; has some SQL extensions for dealing with breaking a wide table into a row per column. This facilitates dealing with predicates that are not known at query compile time. If the table in question is not managed by Virtuoso, Virtuoso&amp;#39;s SQL virtualization/federation takes care of the matter. If a mapping system goes directly to third-party SQL, no such tricks can be used.&lt;/p&gt; &lt;p&gt;The above example suggests that for supporting on-the-fly mapping without relying on owning the SQL underneath, some subsets of SPARQL may have to be defined. For example, one will probably have to require that all predicates be literals. The alternative is prohibitive run-time cost and complexity.&lt;/p&gt; &lt;p&gt;But we must not lose the baby with the bath-water. Aside from offering global identifiers, RDF&amp;#39;s attractions include subclasses and sub-predicates. In relational terms, these translate to &lt;code&gt;UNION&lt;/code&gt;s and do involve some added cost. A mapping system just has to have means of dealing with this cost, and of recognizing cases where this cost is prohibitive. Some further work is likely to be required for defining well-behaved subsets of SPARQL and mappings.&lt;/p&gt; &lt;h2&gt;ETL Ou Ne Pas ETL?&lt;/h2&gt; &lt;p&gt;Whether to warehouse or not? If one has hundreds of sources, of which some are not even relational, some ETL would seem necessary. Kashiup Vipul gave a position paper at last year&amp;#39;s RDB-to-RDF mapping workshop in Cambridge, Massachusetts, about a system of relational mapping and on-demand RDF-izers of diverse semi-structured biomedical data, e.g., spreadsheets. The issue certainly exists, and any mapping work will likely encounter integration scenarios where one part is fairly neatly mapped from relational stores, and another part comes from a less structured repository of ETLed physical triples.&lt;/p&gt; &lt;p&gt;Our take is that if something is a large or very large relational store, then map; else, ETL. With Virtuoso, we can mix mapped and local triples, but this is not a generally available feature of triple stores and standardization will likely have to wait until there are more implementations.&lt;/p&gt; &lt;h2&gt;Conclusions&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;If you map on demand, watch out for an explosion of &lt;code&gt;UNION&lt;/code&gt;s when integrating sources that talk of similar things.&lt;/li&gt; &lt;li&gt;If you integrate lots of sources, some ETL is likely unavoidable. Look for ways of dealing with part ETL, part mapping. ETLing everything is not always best or even possible.&lt;/li&gt; &lt;li&gt;If you map a single fairly-clean RDB to RDF, mapping will work well, potentially much faster than triple storage. Higher storage density and more data per index lookup on the relational side.&lt;/li&gt; &lt;li&gt;If you map on demand, some restrictions to SPARQL may be practically necessary. These have to do with variables in predicate position, variables in class position, etc. Individual implementations may support these, but standardization will likely have to put limits on them.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;This was a quick summary, by no means comprehensive, on what an eventual RDB2RDF working group would come across. This is a sort of addendum to the requirements I outlined on the ESW wiki.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Transitivity and Graphs for SQL</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-09-08#1433</atom:id>
  <atom:published>2008-09-08T09:20:11Z</atom:published>
  <atom:updated>2008-09-08T15:43:04.000006-04:00</atom:updated>
  <atom:content type="html">&lt;h2&gt;Background&lt;/h2&gt; &lt;p&gt;I have mentioned on a couple of prior occasions that basic graph operations ought to be integrated into the &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0xb1fe830&quot;&gt;SQL&lt;/a&gt; query language.&lt;/p&gt; &lt;p&gt;The history of databases is by and large about moving from specialized applications toward a generic platform. The introduction of the DBMS itself is the archetypal example. It is all about extracting the common features of applications and making these the features of a platform instead.&lt;/p&gt; &lt;p&gt;It is now time to apply this principle to graph traversal.&lt;/p&gt; &lt;p&gt;The rationale is that graph operations are somewhat tedious to write in a parallelize-able, latency-tolerant manner. Writing them as one would for memory-based &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1cb37218&quot;&gt;data&lt;/a&gt; structures is easier but totally unscalable as soon as there is any latency involved, i.e., disk reads or messages between cluster peers.&lt;/p&gt; &lt;p&gt;The ad-hoc nature and very large volume of &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1e1850a0&quot;&gt;RDF&lt;/a&gt; data makes this a timely question. Up until now, the answer to this question has been to materialize any implied facts in RDF stores. If &lt;i&gt;a&lt;/i&gt; was part of &lt;i&gt;b&lt;/i&gt;, and &lt;i&gt;b&lt;/i&gt; part of &lt;i&gt;&lt;a href=&quot;http://dbpedia.org/resource/C_(programming_language)&quot; id=&quot;link-id0xa1a08d38&quot;&gt;c&lt;/a&gt;&lt;/i&gt;, the implied fact that &lt;i&gt;a&lt;/i&gt; is part of &lt;i&gt;c&lt;/i&gt; would be inserted explicitly into the database as a pre-query step.&lt;/p&gt; &lt;p&gt;This is simple and often efficient, but tends to have the downside that one makes a specialized warehouse for each new type of query. The activity becomes less ad-hoc.&lt;/p&gt; &lt;p&gt;Also, this becomes next to impossible when the scale approaches web scale, or if some of the data is liable to be on-and-off included-into or excluded-from the set being analyzed. This is why with &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xa51bd10&quot;&gt;Virtuoso&lt;/a&gt; we have tended to favor inference on demand (&amp;quot;backward chaining&amp;quot;) and mapping of relational data into RDF without copying.&lt;/p&gt; &lt;p&gt;The SQL world has taken steps towards dealing with recursion with the &lt;code&gt;WITH - UNION&lt;/code&gt; construct which allows definition of recursive views. The idea there is to define, for example, a tree walk as a &lt;code&gt;UNION&lt;/code&gt; of the data of the starting node plus the recursive walk of the starting node&amp;#39;s immediate children.&lt;/p&gt; &lt;p&gt;The main problem with this is that I do not very well see how a SQL optimizer could effectively rearrange queries involving &lt;code&gt;JOIN&lt;/code&gt;s between such recursive views. This model of recursion seems to lose SQL&amp;#39;s non-procedural nature. One can no longer easily rearrange &lt;code&gt;JOIN&lt;/code&gt;s based on what data is given and what is to be retrieved. If the recursion is written from root to leaf, it is not obvious how to do this from leaf to root. At any rate, queries written in this way are so complex to write, let alone optimize, that I decided to take another approach.&lt;/p&gt; &lt;p&gt;Take a question like &amp;quot;list the parts of products of category &lt;i&gt;C&lt;/i&gt; which have materials that are classified as toxic.&amp;quot; Suppose that the product categories are a tree, the product parts are a tree, and the materials classification is a tree taxonomy where &amp;quot;toxic&amp;quot; has a multilevel substructure.&lt;/p&gt; &lt;p&gt;Depending on the count of products and materials, the query can be evaluated as either going from products to parts to materials and then climbing up the materials tree to see if the material is toxic. Or one could do it in reverse, starting with the different toxic materials, looking up the parts containing these, going to the part tree to the product, and up the product hierarchy to see if the product is in the right category. One should be able to evaluate the identical query either way depending on what indices exist, what the cardinalities of the relations are, and so forth â regular cost based optimization.&lt;/p&gt; &lt;p&gt;Especially with RDF, there are many problems of this type. In regular SQL, it is a long-standing cultural practice to flatten hierarchies, but this is not the case with RDF.&lt;/p&gt; &lt;p&gt;In Virtuoso, we see &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xb4b3ce8&quot;&gt;SPARQL&lt;/a&gt; as reducing to SQL. Any RDF-oriented database-engine or query-optimization feature is accessed via SQL. Thus, if we address run-time-recursion in the Virtuoso query engine, this becomes, &lt;i&gt;ipso facto&lt;/i&gt;, an SQL feature. Besides, we remember that SQL is a much more mature and expressive language than the current SPARQL recommendation.&lt;/p&gt; &lt;h2&gt; SQL and Transitivity &lt;/h2&gt; &lt;p&gt;We will here look at some simple social network queries. A later article will show how to do more general graph operations. We extend the SQL derived table construct, i.e., &lt;code&gt;SELECT&lt;/code&gt; in another &lt;code&gt;SELECT&lt;/code&gt;&amp;#39;s &lt;code&gt;FROM&lt;/code&gt; clause, with a &lt;code&gt;TRANSITIVE&lt;/code&gt; clause.&lt;/p&gt; &lt;p&gt;Consider the data:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt;CREATE TABLE &amp;quot;knows&amp;quot; (&amp;quot;p1&amp;quot; INT, &amp;quot;p2&amp;quot; INT, PRIMARY KEY (&amp;quot;p1&amp;quot;, &amp;quot;p2&amp;quot;) ); ALTER INDEX &amp;quot;knows&amp;quot; ON &amp;quot;knows&amp;quot; PARTITION (&amp;quot;p1&amp;quot; INT); CREATE INDEX &amp;quot;knows2&amp;quot; ON &amp;quot;knows&amp;quot; (&amp;quot;p2&amp;quot;, &amp;quot;p1&amp;quot;) PARTITION (&amp;quot;p2&amp;quot; INT); &lt;/code&gt; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;We represent a social network with the many-to-many relation &amp;quot;knows&amp;quot;. The persons are identified by integers.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt;INSERT INTO &amp;quot;knows&amp;quot; VALUES (1, 2); INSERT INTO &amp;quot;knows&amp;quot; VALUES (1, 3); INSERT INTO &amp;quot;knows&amp;quot; VALUES (2, 4);&lt;/code&gt; &lt;/pre&gt; &lt;pre&gt;&lt;code&gt;SELECT * FROM (SELECT TRANSITIVE T_IN (1) T_OUT (2) T_DISTINCT &amp;quot;p1&amp;quot;, &amp;quot;p2&amp;quot; FROM &amp;quot;knows&amp;quot; ) &amp;quot;k&amp;quot; WHERE &amp;quot;k&amp;quot;.&amp;quot;p1&amp;quot; = 1;&lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;We obtain the result:&lt;/p&gt; &lt;blockquote&gt; &lt;table width=&quot;100&quot;&gt; &lt;tr&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p1&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p2&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;3&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;2&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/blockquote&gt; &lt;p&gt;The operation is reversible:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt;SELECT * FROM (SELECT TRANSITIVE T_IN (1) T_OUT (2) T_DISTINCT &amp;quot;p1&amp;quot;, &amp;quot;p2&amp;quot; FROM &amp;quot;knows&amp;quot; ) &amp;quot;k&amp;quot; WHERE &amp;quot;k&amp;quot;.&amp;quot;p2&amp;quot; = 4; &lt;/code&gt; &lt;/pre&gt; &lt;table width=&quot;100&quot;&gt; &lt;tr&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p1&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p2&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;2&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/blockquote&gt; &lt;p&gt;Since now we give &lt;i&gt;p2&lt;/i&gt;, we traverse from &lt;i&gt;p2&lt;/i&gt; towards &lt;i&gt;p1&lt;/i&gt;. The result set states that 4 is known by 2 and 2 is known by 1.&lt;/p&gt; &lt;p&gt;To see what would happen if &lt;i&gt;x&lt;/i&gt; knowing &lt;i&gt;y&lt;/i&gt; also meant &lt;i&gt;y&lt;/i&gt; knowing &lt;i&gt;x&lt;/i&gt;, one could write:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt;SELECT * FROM (SELECT TRANSITIVE T_IN (1) T_OUT (2) T_DISTINCT &amp;quot;p1&amp;quot;, &amp;quot;p2&amp;quot; FROM (SELECT &amp;quot;p1&amp;quot;, &amp;quot;p2&amp;quot; FROM &amp;quot;knows&amp;quot; UNION ALL SELECT &amp;quot;p2&amp;quot;, &amp;quot;p1&amp;quot; FROM &amp;quot;knows&amp;quot; ) &amp;quot;k2&amp;quot; ) &amp;quot;k&amp;quot; WHERE &amp;quot;k&amp;quot;.&amp;quot;p2&amp;quot; = 4;&lt;/code&gt; &lt;/pre&gt; &lt;table width=&quot;100&quot;&gt; &lt;tr&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p1&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p2&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;2&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;3&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/blockquote&gt; &lt;p&gt;Now, since we know that 1 and 4 are related, we can ask how they are related.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt;SELECT * FROM (SELECT TRANSITIVE T_IN (1) T_OUT (2) T_DISTINCT &amp;quot;p1&amp;quot;, &amp;quot;p2&amp;quot;, T_STEP (1) AS &amp;quot;via&amp;quot;, T_STEP (&amp;#39;step_no&amp;#39;) AS &amp;quot;step&amp;quot;, T_STEP (&amp;#39;path_id&amp;#39;) AS &amp;quot;path&amp;quot; FROM &amp;quot;knows&amp;quot; ) &amp;quot;k&amp;quot; WHERE &amp;quot;p1&amp;quot; = 1 AND &amp;quot;p2&amp;quot; = 4;&lt;/code&gt; &lt;/pre&gt; &lt;table width=&quot;250&quot;&gt; &lt;tr&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p1&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p2&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;via&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;step&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;path&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;2&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;2&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/blockquote&gt; &lt;p&gt;The two first columns are the ends of the path. The next column is the person that is a step on the path. The next one is the number of the step, counting from 0, so that the end of the path that corresponds to the end condition on the column designated as input, i.e., &lt;i&gt;p1&lt;/i&gt;, has number 0. Since there can be multiple solutions, the last column is a sequence number allowing distinguishing multiple alternative paths from each other.&lt;/p&gt; &lt;p&gt;For LinkedIn users, the friends ordered by distance and descending friend count query, which is at the basis of most LinkedIn search result views can be written as: &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;&lt;code&gt;SELECT p2, dist, (SELECT COUNT (*) FROM &amp;quot;knows&amp;quot; &amp;quot;c&amp;quot; WHERE &amp;quot;c&amp;quot;.&amp;quot;p1&amp;quot; = &amp;quot;k&amp;quot;.&amp;quot;p2&amp;quot; ) FROM (SELECT TRANSITIVE t_in (1) t_out (2) t_distinct &amp;quot;p1&amp;quot;, &amp;quot;p2&amp;quot;, t_step (&amp;#39;step_no&amp;#39;) AS &amp;quot;dist&amp;quot; FROM &amp;quot;knows&amp;quot; ) &amp;quot;k&amp;quot; WHERE &amp;quot;p1&amp;quot; = 1 ORDER BY &amp;quot;dist&amp;quot;, 3 DESC;&lt;/code&gt; &lt;/pre&gt; &lt;table width=&quot;150&quot;&gt; &lt;tr&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;p2&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;dist&lt;/th&gt; &lt;th align=&quot;center&quot; width=&quot;50&quot;&gt;aggregate&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;2&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;3&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;center&quot;&gt;4&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;2&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/blockquote&gt; &lt;h2&gt;How?&lt;/h2&gt; &lt;p&gt;The queries shown above work on Virtuoso v6. When running in cluster mode, several thousand graph traversal steps may be proceeding at the same time, meaning that all database access is parallelized and that the algorithm is internally latency-tolerant. By default, all results are produced in a deterministic order, permitting predictable slicing of result sets.&lt;/p&gt; &lt;p&gt;Furthermore, for queries where both ends of a path are given, the optimizer may decide to attack the path from both ends simultaneously. So, supposing that every member of a social network has an average of 30 contacts, and we need to find a path between two users that are no more than 6 steps apart, we begin at both ends, expanding each up to 3 levels, and we stop when we find the first intersection. Thus, we reach 2 * 30^3 = 54,000 nodes, and not 30^6 = 729,000,000 nodes.&lt;/p&gt; &lt;p&gt;Writing a generic database driven graph traversal framework on the application side, say in Java over &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id0xb595050&quot;&gt;JDBC&lt;/a&gt;, would easily be over a thousand lines. This is much more work than can be justified just for a one-off, ad-hoc query. Besides, the traversal order in such a case could not be optimized by the DBMS.&lt;/p&gt; &lt;h2&gt;Next&lt;/h2&gt; &lt;p&gt;In a future &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0x1e4d4f18&quot;&gt;blog&lt;/a&gt; post I will show how this feature can be used for common graph tasks like critical path, itinerary planning, traveling salesman, the 8 queens chess problem, etc. There are lots of switches for controlling different parameters of the traversal. This is just the beginning. I will also give examples of the use of this in SPARQL.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Epistemology of the Sponger, or How Virtuoso Drives a Web Query</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-09-05#1432</atom:id>
  <atom:published>2008-09-05T09:20:56Z</atom:published>
  <atom:updated>2008-09-05T16:04:28-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Epistemology of the Sponger, or How Virtuoso Drives a Web Query&lt;/div&gt; &lt;p&gt; &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1ed6cf28&quot;&gt;Virtuoso&lt;/a&gt; has an extensive collection of &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1f8d1f78&quot;&gt;RDF&lt;/a&gt;-izers called Sponger Cartridges. These take a web resource in one of 30+ formats (so far) and extract RDF from it. The Virtuoso &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/VirtSpongerWhitePaper.html&quot; id=&quot;link-id0x1edc90e8&quot;&gt;Sponger&lt;/a&gt; is a device which evaluates a query and along the way, finds dereferenceable links, dereferences them, and iteratively re-evaluates the query, until either nothing new is found or some limit is reached.&lt;/p&gt; &lt;p&gt;We could call this &lt;i&gt;query-driven crawling&lt;/i&gt;. The idea is intuitive â what one looks for, determines what one finds.&lt;/p&gt; &lt;p&gt;This does however raise certain questions pertaining to the nature and ultimate possibility of &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x1f836b68&quot;&gt;knowledge&lt;/a&gt;, i.e., epistemology.&lt;/p&gt; &lt;p&gt;The process of querying could be said to go from the few to the many, just like the process of harvesting &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1edb1648&quot;&gt;data&lt;/a&gt; from the web, the way any search engine does. One follows links or makes joins and thereby increases one&amp;#39;s reach.&lt;/p&gt; &lt;p&gt;The difference is that a query has no &lt;i&gt;a priori&lt;/i&gt; direction. If I ask for the phone numbers of my friends and there are no phone numbers in the database, then it is valid to give an empty result without looking at my friends at all. &lt;a href=&quot;http://dbpedia.org/resource/Closed_world_assumption&quot; id=&quot;link-id0x1edf1f30&quot;&gt;Closed world&lt;/a&gt;, as it is said. Never mind that the friends would have had a &amp;quot;see also&amp;quot; link to a retrievable document that did have a phone number.&lt;/p&gt; &lt;p&gt;The problem is that a query execution plan determines what possible dereferenceable material the query will encounter during its execution. What is worse, a query plan tends toward the minimal, i.e., toward minimizing the chances of encountering something dereferenceable along the way. Where query and crawl appeared to have a similarity, in fact they have two opposite goals.&lt;/p&gt; &lt;p&gt;The user generally has no idea of the execution plan. In the general case, the user &lt;i&gt;cannot&lt;/i&gt; have an idea of this plan. There are valid, over 40 year old reasons for leaving the query planning to the database. In exceptional situations the user can read or direct these, but this is really quite tedious and requires understanding that is basically never present.&lt;/p&gt; &lt;p&gt;So, given a query, how do we find data that will match it, short of having a pre-loaded database of absolutely everything? This is certainly a desirable goal, and all in the &lt;a href=&quot;http://dbpedia.org/resource/Open_world_assumption&quot; id=&quot;link-id0x1eb46548&quot;&gt;open world&lt;/a&gt;, distributed spirit of the web.&lt;/p&gt; &lt;p&gt;Let us limit ourselves to queries that have some literals in the object or subject positions. A &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1ed293f8&quot;&gt;SPARQL&lt;/a&gt; query is basically a graph. Its vertices are variables and literals, and its edges are triple patterns. An edge is labeled by a predicate. For now, we will consider the predicate to always be a literal. From each literal, we can draw a tree, following each edge starting at this literal and descending until we find another literal. Each tree is not always a spanning tree of the graph, but all the trees collectively span the graph.&lt;/p&gt; &lt;p&gt;Consider the query &lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;{ &amp;lt;john&amp;gt; knows ?x . &amp;lt;mary&amp;gt; knows ?x . ?x label ?l }.&lt;/code&gt; &lt;/blockquote&gt; The starting points are the literals &lt;code&gt;john&lt;/code&gt; and &lt;code&gt;mary&lt;/code&gt;. The &lt;code&gt;john&lt;/code&gt; tree has one child, &lt;code&gt;?x&lt;/code&gt;, which has the children &lt;code&gt;mary&lt;/code&gt; and &lt;code&gt;?l&lt;/code&gt;. One could notate it as &lt;blockquote&gt; &lt;code&gt;{ &amp;lt;john&amp;gt; knows ?x . {{ &amp;lt;mary&amp;gt; knows ?x} UNION {?x label ?l}}}&lt;/code&gt; &lt;/blockquote&gt; That is, the head first, and if it has more than one child, a union listing them, recursively. &lt;p&gt;If one composed such queries for each literal in the original pattern and evaluated each as a breadth first walk of the tree, no query optimization tricks, and for each binding of each variable, recorded whether there was something to dereference, one would in a finite time have reached all the directly reachable data. Then one could evaluate the original query, using whatever plan was preferred.&lt;/p&gt; &lt;p&gt;The check for dereferenceable data applied to each IRI-valued binding formed in the above evaluation, would consist of looking for &amp;quot;see also&amp;quot;, &amp;quot;same as&amp;quot;, and other such properties of the IRI. It could also consult text based search engines. Since the evaluation is breadth first, it generates a large number of parallel tasks and is fairly latency tolerant, i.e., it will not die if it must retrieve a few pages from remote sources. We will leave the exact rewrite rules for unions, optionals, aggregates, subqueries, and so on, as an exercise; the general idea should be clear enough.&lt;/p&gt; &lt;p&gt;We have here shown a way of transforming SPARQL queries in such a way as to guarantee dereferencing of findable links, without requiring the end user to either explicitly specify or understand query plans.&lt;/p&gt; &lt;p&gt;The present Sponger does not work exactly in this manner but it will be developed in this direction. Fortunately, the algorithms outlined above are nothing complicated.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Epistemology of the Sponger, or How Virtuoso Drives a Web Query</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-09-05#1431</atom:id>
  <atom:published>2008-09-05T09:16:20Z</atom:published>
  <atom:updated>2008-09-05T16:04:26-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt; &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1fabb368&quot;&gt;Virtuoso&lt;/a&gt; has an extensive collection of &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1f8625b8&quot;&gt;RDF&lt;/a&gt;-izers called Sponger Cartridges. These take a web resource in one of 30+ formats (so far) and extract RDF from it. The Virtuoso &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/VirtSpongerWhitePaper.html&quot; id=&quot;link-id0x1f841060&quot;&gt;Sponger&lt;/a&gt; is a device which evaluates a query and along the way, finds dereferenceable links, dereferences them, and iteratively re-evaluates the query, until either nothing new is found or some limit is reached.&lt;/p&gt; &lt;p&gt;We could call this &lt;i&gt;query-driven crawling&lt;/i&gt;. The idea is intuitive â what one looks for, determines what one finds.&lt;/p&gt; &lt;p&gt;This does however raise certain questions pertaining to the nature and ultimate possibility of &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x1f895b08&quot;&gt;knowledge&lt;/a&gt;, i.e., epistemology.&lt;/p&gt; &lt;p&gt;The process of querying could be said to go from the few to the many, just like the process of harvesting &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1f879410&quot;&gt;data&lt;/a&gt; from the web, the way any search engine does. One follows links or makes joins and thereby increases one&amp;#39;s reach.&lt;/p&gt; &lt;p&gt;The difference is that a query has no &lt;i&gt;a priori&lt;/i&gt; direction. If I ask for the phone numbers of my friends and there are no phone numbers in the database, then it is valid to give an empty result without looking at my friends at all. &lt;a href=&quot;http://dbpedia.org/resource/Closed_world_assumption&quot; id=&quot;link-id0x1f8b0658&quot;&gt;Closed world&lt;/a&gt;, as it is said. Never mind that the friends would have had a &amp;quot;see also&amp;quot; link to a retrievable document that did have a phone number.&lt;/p&gt; &lt;p&gt;The problem is that a query execution plan determines what possible dereferenceable material the query will encounter during its execution. What is worse, a query plan tends toward the minimal, i.e., toward minimizing the chances of encountering something dereferenceable along the way. Where query and crawl appeared to have a similarity, in fact they have two opposite goals.&lt;/p&gt; &lt;p&gt;The user generally has no idea of the execution plan. In the general case, the user &lt;i&gt;cannot&lt;/i&gt; have an idea of this plan. There are valid, over 40 year old reasons for leaving the query planning to the database. In exceptional situations the user can read or direct these, but this is really quite tedious and requires understanding that is basically never present.&lt;/p&gt; &lt;p&gt;So, given a query, how do we find data that will match it, short of having a pre-loaded database of absolutely everything? This is certainly a desirable goal, and all in the &lt;a href=&quot;http://dbpedia.org/resource/Open_world_assumption&quot; id=&quot;link-id0x1f845188&quot;&gt;open world&lt;/a&gt;, distributed spirit of the web.&lt;/p&gt; &lt;p&gt;Let us limit ourselves to queries that have some literals in the object or subject positions. A &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1f84f348&quot;&gt;SPARQL&lt;/a&gt; query is basically a graph. Its vertices are variables and literals, and its edges are triple patterns. An edge is labeled by a predicate. For now, we will consider the predicate to always be a literal. From each literal, we can draw a tree, following each edge starting at this literal and descending until we find another literal. Each tree is not always a spanning tree of the graph, but all the trees collectively span the graph.&lt;/p&gt; &lt;p&gt;Consider the query &lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;{ &amp;lt;john&amp;gt; knows ?x . &amp;lt;mary&amp;gt; knows ?x . ?x label ?l }.&lt;/code&gt; &lt;/blockquote&gt; The starting points are the literals &lt;code&gt;john&lt;/code&gt; and &lt;code&gt;mary&lt;/code&gt;. The &lt;code&gt;john&lt;/code&gt; tree has one child, &lt;code&gt;?x&lt;/code&gt;, which has the children &lt;code&gt;mary&lt;/code&gt; and &lt;code&gt;?l&lt;/code&gt;. One could notate it as &lt;blockquote&gt; &lt;code&gt;{ &amp;lt;john&amp;gt; knows ?x . {{ &amp;lt;mary&amp;gt; knows ?x} UNION {?x label ?l}}}&lt;/code&gt; &lt;/blockquote&gt; That is, the head first, and if it has more than one child, a union listing them, recursively. &lt;p&gt;If one composed such queries for each literal in the original pattern and evaluated each as a breadth first walk of the tree, no query optimization tricks, and for each binding of each variable, recorded whether there was something to dereference, one would in a finite time have reached all the directly reachable data. Then one could evaluate the original query, using whatever plan was preferred.&lt;/p&gt; &lt;p&gt;The check for dereferenceable data applied to each IRI-valued binding formed in the above evaluation, would consist of looking for &amp;quot;see also&amp;quot;, &amp;quot;same as&amp;quot;, and other such properties of the IRI. It could also consult text based search engines. Since the evaluation is breadth first, it generates a large number of parallel tasks and is fairly latency tolerant, i.e., it will not die if it must retrieve a few pages from remote sources. We will leave the exact rewrite rules for unions, optionals, aggregates, subqueries, and so on, as an exercise; the general idea should be clear enough.&lt;/p&gt; &lt;p&gt;We have here shown a way of transforming SPARQL queries in such a way as to guarantee dereferencing of findable links, without requiring the end user to either explicitly specify or understand query plans.&lt;/p&gt; &lt;p&gt;The present Sponger does not work exactly in this manner but it will be developed in this direction. Fortunately, the algorithms outlined above are nothing complicated.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>A quick look at SP2B, the SPARQL Performance Benchmark</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-08-27#1423</atom:id>
  <atom:published>2008-08-27T16:03:40Z</atom:published>
  <atom:updated>2008-09-02T09:49:57-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;A quick look at SP2B, the SPARQL Performance Benchmark&lt;/div&gt; &lt;p&gt;I finally got around to running the &lt;a href=&quot;http://dbis.informatik.uni-freiburg.de/index.php?project=SP2B&quot; id=&quot;link-id17bac628&quot;&gt;SP&lt;sup&gt;2&lt;/sup&gt;B SPARQL Performance Benchmark&lt;/a&gt; on the current &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1dcaaa48&quot;&gt;Virtuoso&lt;/a&gt; Open Source Edition, v5.0.8.&lt;/p&gt; &lt;p&gt;I ran it with the 5M triples scale, which is the highest scale for which the authors give numbers.&lt;/p&gt; &lt;p&gt;I got a run time of 25 minutes for the 12 queries, giving an arithmetic mean of the query time of 125 seconds. This is better than the 800 or so seconds that the authors had measured. Also, Q6 of the set had failed for the authors, but we have since fixed this; the fix is in the v5.0.8 cut.&lt;/p&gt; &lt;p&gt;I also tried it with a scale of 25M, but this became I/O bound and took a bit longer. I will try this with v6 and v7 cluster later, which are vastly better at anything I/O bound.&lt;/p&gt; &lt;p&gt;The machine was a 2GHz Xeon with 8G RAM. The query text was the one from the authors, with an explicit &lt;code&gt;FROM&lt;/code&gt; clause added; the client was the command line Interactive &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1be2c808&quot;&gt;SQL&lt;/a&gt; (iSQL).&lt;/p&gt; &lt;p&gt;If one does the test with the default index layout without specifying a graph, things will not work very well. Also, returning the million-row results of these queries over the &lt;a href=&quot;http://www.w3.org/TR/rdf-sparql-protocol/&quot; id=&quot;link-id0x1d7ac018&quot;&gt;SPARQL protocol&lt;/a&gt; is not practical.&lt;/p&gt; &lt;p&gt;I will say something more about SP&lt;sup&gt;2&lt;/sup&gt;B when I get to have a closer look.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>A quick look at SP2B, the SPARQL Performance Benchmark</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-08-27#1422</atom:id>
  <atom:published>2008-08-27T16:00:07Z</atom:published>
  <atom:updated>2008-09-02T09:49:55-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;I finally got around to running the &lt;a href=&quot;http://dbis.informatik.uni-freiburg.de/index.php?project=SP2B&quot; id=&quot;link-id17bac628&quot;&gt;SP&lt;sup&gt;2&lt;/sup&gt;B SPARQL Performance Benchmark&lt;/a&gt; on the current &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1d2a6838&quot;&gt;Virtuoso&lt;/a&gt; Open Source Edition, v5.0.8.&lt;/p&gt; &lt;p&gt;I ran it with the 5M triples scale, which is the highest scale for which the authors give numbers.&lt;/p&gt; &lt;p&gt;I got a run time of 25 minutes for the 12 queries, giving an arithmetic mean of the query time of 125 seconds. This is better than the 800 or so seconds that the authors had measured. Also, Q6 of the set had failed for the authors, but we have since fixed this; the fix is in the v5.0.8 cut.&lt;/p&gt; &lt;p&gt;I also tried it with a scale of 25M, but this became I/O bound and took a bit longer. I will try this with v6 and v7 cluster later, which are vastly better at anything I/O bound.&lt;/p&gt; &lt;p&gt;The machine was a 2GHz Xeon with 8G RAM. The query text was the one from the authors, with an explicit &lt;code&gt;FROM&lt;/code&gt; clause added; the client was the command line Interactive &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x19e74ce0&quot;&gt;SQL&lt;/a&gt; (iSQL).&lt;/p&gt; &lt;p&gt;If one does the test with the default index layout without specifying a graph, things will not work very well. Also, returning the million-row results of these queries over the &lt;a href=&quot;http://www.w3.org/TR/rdf-sparql-protocol/&quot; id=&quot;link-id0x1c4231a0&quot;&gt;SPARQL protocol&lt;/a&gt; is not practical.&lt;/p&gt; &lt;p&gt;I will say something more about SP&lt;sup&gt;2&lt;/sup&gt;B when I get to have a closer look.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Configuring Virtuoso for Benchmarking</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-08-25#1419</atom:id>
  <atom:published>2008-08-25T14:06:11Z</atom:published>
  <atom:updated>2008-08-25T15:29:06.000036-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Configuring Virtuoso for Benchmarking&lt;/div&gt; &lt;p&gt;I will here summarize what should be known about running benchmarks with &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xc152cf0&quot;&gt;Virtuoso&lt;/a&gt;.&lt;/p&gt; &lt;h2&gt;Physical Memory&lt;/h2&gt; &lt;p&gt;For 8G RAM, in the &lt;code&gt;[Parameters]&lt;/code&gt; stanza of &lt;code&gt;virtuoso.ini&lt;/code&gt;, set â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; [Parameters]&lt;br /&gt; ...&lt;br /&gt; NumberOfBuffers = 550000 &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;For 16G RAM, double thisâ&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; [Parameters]&lt;br /&gt; ...&lt;br /&gt; NumberOfBuffers = 1100000 &lt;/code&gt; &lt;/blockquote&gt; &lt;h2&gt;Transaction Isolation&lt;/h2&gt; &lt;p&gt;For most cases, certainly all &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xb7ba270&quot;&gt;RDF&lt;/a&gt; cases, &lt;i&gt;Read Committed&lt;/i&gt; should be the default transaction isolation. In the &lt;code&gt;[Parameters]&lt;/code&gt; stanza of &lt;code&gt;virtuoso.ini&lt;/code&gt;, set â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; [Parameters]&lt;br /&gt; ...&lt;br /&gt; DefaultIsolation = 2 &lt;/code&gt; &lt;/blockquote&gt; &lt;h2&gt;Multiuser Workload&lt;/h2&gt; &lt;p&gt;If &lt;a href=&quot;http://dbpedia.org/resource/Open_Database_Connectivity&quot; id=&quot;link-id0x1a40f308&quot;&gt;ODBC&lt;/a&gt;, &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id0x1e003cf8&quot;&gt;JDBC&lt;/a&gt;, or similarly connected client applications are used, there must be more &lt;code&gt;ServerThreads&lt;/code&gt; available than there will be client connections. In the &lt;code&gt;[Parameters]&lt;/code&gt; stanza of &lt;code&gt;virtuoso.ini&lt;/code&gt;, set â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; [Parameters]&lt;br /&gt; ...&lt;br /&gt; ServerThreads = 100 &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;With web clients (unlike ODBC, JDBC, or similar clients), it may be justified to have fewer &lt;code&gt;ServerThreads&lt;/code&gt; than there are concurrent clients. The &lt;code&gt;MaxKeepAlives&lt;/code&gt; should be the maximum number of expected web clients. This can be more than the &lt;code&gt;ServerThreads&lt;/code&gt; count. In the &lt;code&gt;[HTTPServer]&lt;/code&gt; stanza of &lt;code&gt;virtuoso.ini&lt;/code&gt;, set â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; [HTTPServer]&lt;br /&gt; ...&lt;br /&gt; ServerThreads = 100 &lt;br /&gt; MaxKeepAlives = 1000 &lt;br /&gt; KeepAliveTimeout = 10 &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt; &lt;i&gt;&lt;b&gt;Note&lt;/b&gt; â The &lt;code&gt;[HTTPServer] ServerThreads&lt;/code&gt; are taken from the total pool made available by the &lt;code&gt;[Parameters] ServerThreads&lt;/code&gt;. Thus, the &lt;code&gt;[Parameters] ServerThreads&lt;/code&gt; should always be at least as large as (and is best set greater than) the &lt;code&gt;[HTTPServer] ServerThreads&lt;/code&gt;, and if using the closed-source Commercial Version, should not exceed the licensed thread count.&lt;/i&gt; &lt;/p&gt; &lt;h2&gt;Disk Use&lt;/h2&gt; &lt;p&gt;The basic rule is to use one stripe (file) per distinct physical device (not per file system), using no RAID. For example, one might stripe a database over 6 files (6 physical disks), with an initial size of 60000 pages (the files will grow as needed). &lt;/p&gt; &lt;p&gt;For the above described example, in the &lt;code&gt;[Database]&lt;/code&gt; stanza of &lt;code&gt;virtuoso.ini&lt;/code&gt;, set â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; [Database]&lt;br /&gt; ...&lt;br /&gt; Striping = 1&lt;br /&gt; MaxCheckpointRemap = 2000000 &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;â and in the &lt;code&gt;[Striping]&lt;/code&gt; stanza, on one line per &lt;code&gt;SegmentName&lt;/code&gt;, set â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; [Striping]&lt;br /&gt; ...&lt;br /&gt; Segment1 = 60000 , /virtdev/db/virt-seg1.db = q1 , /data1/db/virt-seg1-str2.db = q2 , /data2/db/virt-seg1-str3.db = q3 , /data3/db/virt-seg1-str4.db = q4 , /data4/db/virt-seg1-str5.db = q5 , /data5/db/virt-seg1-str6.db = q6&lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;As can be seen here, each file gets a background IO thread (the &lt;code&gt;= q&lt;i&gt;xxx&lt;/i&gt;&lt;/code&gt; clause). It should be noted that all files on the same physical device should have the same &lt;code&gt;q&lt;i&gt;xxx&lt;/i&gt;&lt;/code&gt; value. This is not directly relevant to the benchmarking scenario above, because we have only one file per device, and thus only one file per IO queue.&lt;/p&gt; &lt;h2&gt; &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0xc8b97c0&quot;&gt;SQL&lt;/a&gt; Optimization&lt;/h2&gt; &lt;p&gt;If queries have lots of joins but access little &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x193b2fa8&quot;&gt;data&lt;/a&gt;, as with the &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0x1b283ca0&quot;&gt;Berlin SPARQL Benchmark&lt;/a&gt;, the SQL compiler must be told not to look for better plans if the best plan so far is quicker than the compilation time expended so far. Thus, in the &lt;code&gt;[Parameters]&lt;/code&gt; stanza of &lt;code&gt;virtuoso.ini&lt;/code&gt;, set â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; [Parameters]&lt;br /&gt; ...&lt;br /&gt; StopCompilerWhenXOverRunTime = 1 &lt;/code&gt; &lt;/blockquote&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Configuring Virtuoso for Benchmarking</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-08-25#1418</atom:id>
  <atom:published>2008-08-25T14:05:46Z</atom:published>
  <atom:updated>2008-08-25T15:29:04-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;I will here summarize what should be known about running benchmarks with &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xc53af18&quot;&gt;Virtuoso&lt;/a&gt;.&lt;/p&gt; &lt;h2&gt;Physical Memory&lt;/h2&gt; &lt;p&gt;For 8G RAM, in the &lt;code&gt;[Parameters]&lt;/code&gt; stanza of &lt;code&gt;virtuoso.ini&lt;/code&gt;, set â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; [Parameters]&lt;br /&gt; ...&lt;br /&gt; NumberOfBuffers = 550000 &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;For 16G RAM, double thisâ&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; [Parameters]&lt;br /&gt; ...&lt;br /&gt; NumberOfBuffers = 1100000 &lt;/code&gt; &lt;/blockquote&gt; &lt;h2&gt;Transaction Isolation&lt;/h2&gt; &lt;p&gt;For most cases, certainly all &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xc2f07a0&quot;&gt;RDF&lt;/a&gt; cases, &lt;i&gt;Read Committed&lt;/i&gt; should be the default transaction isolation. In the &lt;code&gt;[Parameters]&lt;/code&gt; stanza of &lt;code&gt;virtuoso.ini&lt;/code&gt;, set â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; [Parameters]&lt;br /&gt; ...&lt;br /&gt; DefaultIsolation = 2 &lt;/code&gt; &lt;/blockquote&gt; &lt;h2&gt;Multiuser Workload&lt;/h2&gt; &lt;p&gt;If &lt;a href=&quot;http://dbpedia.org/resource/Open_Database_Connectivity&quot; id=&quot;link-id0xc1c7178&quot;&gt;ODBC&lt;/a&gt;, &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id0xd16fb40&quot;&gt;JDBC&lt;/a&gt;, or similarly connected client applications are used, there must be more &lt;code&gt;ServerThreads&lt;/code&gt; available than there will be client connections. In the &lt;code&gt;[Parameters]&lt;/code&gt; stanza of &lt;code&gt;virtuoso.ini&lt;/code&gt;, set â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; [Parameters]&lt;br /&gt; ...&lt;br /&gt; ServerThreads = 100 &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;With web clients (unlike ODBC, JDBC, or similar clients), it may be justified to have fewer &lt;code&gt;ServerThreads&lt;/code&gt; than there are concurrent clients. The &lt;code&gt;MaxKeepAlives&lt;/code&gt; should be the maximum number of expected web clients. This can be more than the &lt;code&gt;ServerThreads&lt;/code&gt; count. In the &lt;code&gt;[HTTPServer]&lt;/code&gt; stanza of &lt;code&gt;virtuoso.ini&lt;/code&gt;, set â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; [HTTPServer]&lt;br /&gt; ...&lt;br /&gt; ServerThreads = 100 &lt;br /&gt; MaxKeepAlives = 1000 &lt;br /&gt; KeepAliveTimeout = 10 &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt; &lt;i&gt;&lt;b&gt;Note&lt;/b&gt; â The &lt;code&gt;[HTTPServer] ServerThreads&lt;/code&gt; are taken from the total pool made available by the &lt;code&gt;[Parameters] ServerThreads&lt;/code&gt;. Thus, the &lt;code&gt;[Parameters] ServerThreads&lt;/code&gt; should always be at least as large as (and is best set greater than) the &lt;code&gt;[HTTPServer] ServerThreads&lt;/code&gt;, and if using the closed-source Commercial Version, should not exceed the licensed thread count.&lt;/i&gt; &lt;/p&gt; &lt;h2&gt;Disk Use&lt;/h2&gt; &lt;p&gt;The basic rule is to use one stripe (file) per distinct physical device (not per file system), using no RAID. For example, one might stripe a database over 6 files (6 physical disks), with an initial size of 60000 pages (the files will grow as needed). &lt;/p&gt; &lt;p&gt;For the above described example, in the &lt;code&gt;[Database]&lt;/code&gt; stanza of &lt;code&gt;virtuoso.ini&lt;/code&gt;, set â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; [Database]&lt;br /&gt; ...&lt;br /&gt; Striping = 1&lt;br /&gt; MaxCheckpointRemap = 2000000 &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;â and in the &lt;code&gt;[Striping]&lt;/code&gt; stanza, on one line per &lt;code&gt;SegmentName&lt;/code&gt;, set â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; [Striping]&lt;br /&gt; ...&lt;br /&gt; Segment1 = 60000 , /virtdev/db/virt-seg1.db = q1 , /data1/db/virt-seg1-str2.db = q2 , /data2/db/virt-seg1-str3.db = q3 , /data3/db/virt-seg1-str4.db = q4 , /data4/db/virt-seg1-str5.db = q5 , /data5/db/virt-seg1-str6.db = q6&lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;As can be seen here, each file gets a background IO thread (the &lt;code&gt;= q&lt;i&gt;xxx&lt;/i&gt;&lt;/code&gt; clause). It should be noted that all files on the same physical device should have the same &lt;code&gt;q&lt;i&gt;xxx&lt;/i&gt;&lt;/code&gt; value. This is not directly relevant to the benchmarking scenario above, because we have only one file per device, and thus only one file per IO queue.&lt;/p&gt; &lt;h2&gt; &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0xc9fa298&quot;&gt;SQL&lt;/a&gt; Optimization&lt;/h2&gt; &lt;p&gt;If queries have lots of joins but access little &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xb4e0aa0&quot;&gt;data&lt;/a&gt;, as with the &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0xb2de990&quot;&gt;Berlin SPARQL Benchmark&lt;/a&gt;, the SQL compiler must be told not to look for better plans if the best plan so far is quicker than the compilation time expended so far. Thus, in the &lt;code&gt;[Parameters]&lt;/code&gt; stanza of &lt;code&gt;virtuoso.ini&lt;/code&gt;, set â&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; [Parameters]&lt;br /&gt; ...&lt;br /&gt; StopCompilerWhenXOverRunTime = 1 &lt;/code&gt; &lt;/blockquote&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>BSBM With Triples and Mapped Relational Data</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-08-06#1410</atom:id>
  <atom:published>2008-08-06T19:41:50Z</atom:published>
  <atom:updated>2008-08-06T16:29:44.000003-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;BSBM With Triples and Mapped Relational Data&lt;/div&gt; &lt;p&gt;The special contribution of the &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id10039db0&quot;&gt;Berlin SPARQL Benchmark&lt;/a&gt; (&lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id106b2538&quot;&gt;BSBM&lt;/a&gt;) to the &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id101a75f8&quot;&gt;RDF&lt;/a&gt; world is to raise the question of doing OLTP with &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xae54170&quot;&gt;RDF&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Of course, here we immediately hit the question of comparisons with relational databases. To this effect, &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0x1e847b08&quot;&gt;BSBM&lt;/a&gt; also specifies a relational schema and can generate the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id1206c378&quot;&gt;data&lt;/a&gt; as either triples or &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id1667f040&quot;&gt;SQL&lt;/a&gt; inserts.&lt;/p&gt; &lt;p&gt;The benchmark effectively simulates the case of exposing an existing &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id10a93518&quot;&gt;RDBMS&lt;/a&gt; as RDF. &lt;a href=&quot;http://www.openlinksw.com/dataspace/organization/openlink#this&quot; id=&quot;link-id13e46d80&quot;&gt;OpenLink Software&lt;/a&gt; calls this &lt;i&gt;RDF Views&lt;/i&gt;. &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id12027578&quot;&gt;Oracle&lt;/a&gt; is beginning to call this &lt;i&gt;semantic covers&lt;/i&gt;. The &lt;a href=&quot;http://www.w3.org/2005/Incubator/rdb2rdf/&quot; id=&quot;link-id161dc678&quot;&gt;RDB2RDF XG&lt;/a&gt;, a W3C incubator group, has been active in this area since Spring, 2008.&lt;/p&gt; &lt;h3&gt;But why an OLTP workload with RDF to begin with?&lt;/h3&gt; &lt;p&gt;We believe this is relevant because RDF promises to be the interoperability factor between potentially all of traditional IS. If &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1e7119d8&quot;&gt;data&lt;/a&gt; is online for human consumption, it may be online via a &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id106a8908&quot;&gt;SPARQL&lt;/a&gt; end-point as well. The economic justification will come from discoverability and from applications integrating multi-source structured data. Online shopping is a fine use case.&lt;/p&gt; &lt;p&gt;Warehousing all the world&amp;#39;s publishable data as RDF is not our first preference, nor would it be the publisher&amp;#39;s. Considerations of duplicate infrastructure and maintenance are reason enough. Consequently, we need to show that mapping can outperform an RDF warehouse, which is what we&amp;#39;ll do here.&lt;/p&gt; &lt;h3&gt;What We Got &lt;/h3&gt; &lt;p&gt;First, we found that &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1400&quot; id=&quot;link-id150ea748&quot;&gt;making the query plan took much too long&lt;/a&gt; in proportion to the run time. With BSBM this is an issue because the queries have lots of joins but access relatively little data. So we made a faster compiler and along the way retouched the cost model a bit.&lt;/p&gt; &lt;p&gt;But the really interesting part with BSBM is mapping relational data to RDF. For us, BSBM is a great way of showing that mapping can outperform even the best triple store. A relational row store is as good as unbeatable with the query mix. And when there is a clear mapping, there is no reason the &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xae5aff0&quot;&gt;SPARQL&lt;/a&gt; could not be directly translated.&lt;/p&gt; &lt;p&gt;If Chris Bizer et al launched the mapping ship, we will be the ones to pilot it to harbor!&lt;/p&gt; &lt;p&gt;We filled two &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id12dbdc70&quot;&gt;Virtuoso&lt;/a&gt; instances with a BSBM200000 data set, for 100M triples. One was filled with physical triples; the other was filled with the equivalent relational data plus mapping to triples. Performance figures are given in &amp;quot;query mixes per hour&amp;quot;. (An update or follow-on to this post will provide elapsed times for each test run.)&lt;/p&gt; &lt;p&gt;With the unmodified benchmark we got:&lt;/p&gt; &lt;blockquote&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;&lt;i&gt;Physical Triples:&lt;/i&gt; &lt;/td&gt; &lt;td&gt;Â  Â &lt;/td&gt; &lt;td&gt;1297 qmph&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;i&gt;Mapped Triples:&lt;/i&gt; &lt;/td&gt; &lt;td&gt;Â  Â &lt;/td&gt; &lt;td&gt;&lt;b&gt;3144 qmph&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/blockquote&gt; &lt;p&gt;In both cases, most of the time was spent on Q6, which looks for products with one of three words in the label. We altered Q6 to use text index for the mapping, and altered the databases accordingly. (There is no such thing as an e-commerce site without a text index, so we are amply justified in making this change.)&lt;/p&gt; &lt;p&gt;The following were measured on the second run of a 100 query mix series, single test driver, warm cache.&lt;/p&gt; &lt;blockquote&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;&lt;i&gt;Physical Triples:&lt;/i&gt; &lt;/td&gt; &lt;td&gt;Â  Â &lt;/td&gt; &lt;td&gt; 5746 qmph&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;i&gt;Mapped Triples:&lt;/i&gt; &lt;/td&gt; &lt;td&gt;Â  Â &lt;/td&gt; &lt;td&gt; &lt;b&gt;7525 qmph&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/blockquote&gt; &lt;p&gt;We then ran the same with 4 concurrent instances of the test driver. The qmph here is 400 / the longest run time.&lt;/p&gt; &lt;blockquote&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;&lt;i&gt;Physical Triples:&lt;/i&gt; &lt;/td&gt; &lt;td&gt;Â  Â &lt;/td&gt; &lt;td&gt; 19459 qmph&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;i&gt;Mapped Triples:&lt;/i&gt; &lt;/td&gt; &lt;td&gt;Â  Â &lt;/td&gt; &lt;td&gt; &lt;b&gt;24531 qmph&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/blockquote&gt; &lt;p&gt;The system used was 64-bit Linux, 2GHz dual-Xeon 5130 (8 cores) with 8G RAM. The concurrent throughputs are a little under 4 times the single thread throughput, which is normal for SMP due to memory contention. The numbers do not evidence significant overhead from thread synchronization.&lt;/p&gt; &lt;p&gt;The query compilation represents about 1/3 of total server side CPU. In an actual online application of this type, queries would be parameterized, so the throughputs would be accordingly higher. We used the &lt;code&gt;StopCompilerWhenXOverRunTime = 1&lt;/code&gt; option here to cut needless compiler overhead, the queries being straightforward enough.&lt;/p&gt; &lt;p&gt;We also see that the advantage of mapping can be further increased by more compiler optimizations, so we expect in the end mapping will lead RDF warehousing by a factor of 4 or so.&lt;/p&gt; &lt;h3&gt;Suggestions for BSBM&lt;/h3&gt; &lt;ul&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Reporting Rules.&lt;/b&gt; The benchmark spec should specify a form for disclosure of test run data, TPC style. This includes things like configuration parameters and exact text of queries. There should be accepted variants of query text, as with the TPC.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Multiuser operation.&lt;/b&gt; The test driver should get a stream number as parameter, so that each client makes a different query sequence. Also, disk performance in this type of benchmark can only be reasonably assessed with a naturally parallel multiuser workload.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Add business intelligence.&lt;/b&gt; SPARQL has aggregates now, at least with &lt;a href=&quot;http://jena.sourceforge.net/&quot; id=&quot;link-id11a25ac0&quot;&gt;Jena&lt;/a&gt; and &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xb003180&quot;&gt;Virtuoso&lt;/a&gt;, so let&amp;#39;s use these. The BSBM business intelligence metric should be a separate metric off the same data. Adding synthetic sales figures would make more interesting queries possible. For example, producing recommendations like &amp;quot;customers who bought this also bought xxx.&amp;quot;&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;For the SPARQL community&lt;/b&gt;, BSBM sends the message that one ought to support parameterized queries and stored procedures. This would be a &lt;a href=&quot;http://www.w3.org/TR/rdf-sparql-protocol/&quot; id=&quot;link-id109e2448&quot;&gt;SPARQL protocol&lt;/a&gt; extension; the SPARUL syntax should also have a way of calling a procedure. Something like &lt;code&gt;select proc (??, ??)&lt;/code&gt; would be enough, where &lt;code&gt;??&lt;/code&gt; is a parameter marker, like &lt;code&gt;?&lt;/code&gt; in &lt;a href=&quot;http://dbpedia.org/resource/Open_Database_Connectivity&quot; id=&quot;link-id13febf48&quot;&gt;ODBC&lt;/a&gt;/&lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id120416a8&quot;&gt;JDBC&lt;/a&gt;.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Add transactions.&lt;/b&gt;Especially if we are contrasting mapping vs. storing triples, having an update flow is relevant. In practice, this could be done by having the test driver send web service requests for order entry and the SUT could implement these as updates to the triples or a mapped relational store. This could use stored procedures or logic in an app server.&lt;/p&gt; &lt;/li&gt; &lt;/ul&gt; &lt;h3&gt;Comments on Query Mix&lt;/h3&gt; &lt;p&gt;The time of most queries is less than linear to the scale factor. Q6 is an exception if it is not implemented using a text index. Without the text index, Q6 will inevitably come to dominate query time as the scale is increased, and thus will make the benchmark less relevant at larger scales.&lt;/p&gt; &lt;h2&gt;Next&lt;/h2&gt; &lt;p&gt;We include the sources of our RDF view definitions and other material for running BSBM with our forthcoming Virtuoso Open Source 5.0.8 release. This also includes all the query optimization work done for BSBM. This will be available in the coming days.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>BSBM With Triples and Mapped Relational Data</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-08-06#1409</atom:id>
  <atom:published>2008-08-06T19:35:27Z</atom:published>
  <atom:updated>2008-08-06T16:29:40-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;The special contribution of the &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id10039db0&quot;&gt;Berlin SPARQL Benchmark&lt;/a&gt; (&lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id106b2538&quot;&gt;BSBM&lt;/a&gt;) to the &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id101a75f8&quot;&gt;RDF&lt;/a&gt; world is to raise the question of doing OLTP with &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xb230eb0&quot;&gt;RDF&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Of course, here we immediately hit the question of comparisons with relational databases. To this effect, &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0xa832da8&quot;&gt;BSBM&lt;/a&gt; also specifies a relational schema and can generate the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id1206c378&quot;&gt;data&lt;/a&gt; as either triples or &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id1667f040&quot;&gt;SQL&lt;/a&gt; inserts.&lt;/p&gt; &lt;p&gt;The benchmark effectively simulates the case of exposing an existing &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id10a93518&quot;&gt;RDBMS&lt;/a&gt; as RDF. &lt;a href=&quot;http://www.openlinksw.com/dataspace/organization/openlink#this&quot; id=&quot;link-id13e46d80&quot;&gt;OpenLink Software&lt;/a&gt; calls this &lt;i&gt;RDF Views&lt;/i&gt;. &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id12027578&quot;&gt;Oracle&lt;/a&gt; is beginning to call this &lt;i&gt;semantic covers&lt;/i&gt;. The &lt;a href=&quot;http://www.w3.org/2005/Incubator/rdb2rdf/&quot; id=&quot;link-id161dc678&quot;&gt;RDB2RDF XG&lt;/a&gt;, a W3C incubator group, has been active in this area since Spring, 2008.&lt;/p&gt; &lt;h3&gt;But why an OLTP workload with RDF to begin with?&lt;/h3&gt; &lt;p&gt;We believe this is relevant because RDF promises to be the interoperability factor between potentially all of traditional IS. If &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xabe48a0&quot;&gt;data&lt;/a&gt; is online for human consumption, it may be online via a &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id106a8908&quot;&gt;SPARQL&lt;/a&gt; end-point as well. The economic justification will come from discoverability and from applications integrating multi-source structured data. Online shopping is a fine use case.&lt;/p&gt; &lt;p&gt;Warehousing all the world&amp;#39;s publishable data as RDF is not our first preference, nor would it be the publisher&amp;#39;s. Considerations of duplicate infrastructure and maintenance are reason enough. Consequently, we need to show that mapping can outperform an RDF warehouse, which is what we&amp;#39;ll do here.&lt;/p&gt; &lt;h3&gt;What We Got &lt;/h3&gt; &lt;p&gt;First, we found that &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1400&quot; id=&quot;link-id150ea748&quot;&gt;making the query plan took much too long&lt;/a&gt; in proportion to the run time. With BSBM this is an issue because the queries have lots of joins but access relatively little data. So we made a faster compiler and along the way retouched the cost model a bit.&lt;/p&gt; &lt;p&gt;But the really interesting part with BSBM is mapping relational data to RDF. For us, BSBM is a great way of showing that mapping can outperform even the best triple store. A relational row store is as good as unbeatable with the query mix. And when there is a clear mapping, there is no reason the &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x96bb5e0&quot;&gt;SPARQL&lt;/a&gt; could not be directly translated.&lt;/p&gt; &lt;p&gt;If Chris Bizer et al launched the mapping ship, we will be the ones to pilot it to harbor!&lt;/p&gt; &lt;p&gt;We filled two &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id12dbdc70&quot;&gt;Virtuoso&lt;/a&gt; instances with a BSBM200000 data set, for 100M triples. One was filled with physical triples; the other was filled with the equivalent relational data plus mapping to triples. Performance figures are given in &amp;quot;query mixes per hour&amp;quot;. (An update or follow-on to this post will provide elapsed times for each test run.)&lt;/p&gt; &lt;p&gt;With the unmodified benchmark we got:&lt;/p&gt; &lt;blockquote&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;&lt;i&gt;Physical Triples:&lt;/i&gt; &lt;/td&gt; &lt;td&gt;Â  Â &lt;/td&gt; &lt;td&gt;1297 qmph&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;i&gt;Mapped Triples:&lt;/i&gt; &lt;/td&gt; &lt;td&gt;Â  Â &lt;/td&gt; &lt;td&gt;&lt;b&gt;3144 qmph&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/blockquote&gt; &lt;p&gt;In both cases, most of the time was spent on Q6, which looks for products with one of three words in the label. We altered Q6 to use text index for the mapping, and altered the databases accordingly. (There is no such thing as an e-commerce site without a text index, so we are amply justified in making this change.)&lt;/p&gt; &lt;p&gt;The following were measured on the second run of a 100 query mix series, single test driver, warm cache.&lt;/p&gt; &lt;blockquote&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;&lt;i&gt;Physical Triples:&lt;/i&gt; &lt;/td&gt; &lt;td&gt;Â  Â &lt;/td&gt; &lt;td&gt; 5746 qmph&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;i&gt;Mapped Triples:&lt;/i&gt; &lt;/td&gt; &lt;td&gt;Â  Â &lt;/td&gt; &lt;td&gt; &lt;b&gt;7525 qmph&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/blockquote&gt; &lt;p&gt;We then ran the same with 4 concurrent instances of the test driver. The qmph here is 400 / the longest run time.&lt;/p&gt; &lt;blockquote&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;&lt;i&gt;Physical Triples:&lt;/i&gt; &lt;/td&gt; &lt;td&gt;Â  Â &lt;/td&gt; &lt;td&gt; 19459 qmph&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;i&gt;Mapped Triples:&lt;/i&gt; &lt;/td&gt; &lt;td&gt;Â  Â &lt;/td&gt; &lt;td&gt; &lt;b&gt;24531 qmph&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/blockquote&gt; &lt;p&gt;The system used was 64-bit Linux, 2GHz dual-Xeon 5130 (8 cores) with 8G RAM. The concurrent throughputs are a little under 4 times the single thread throughput, which is normal for SMP due to memory contention. The numbers do not evidence significant overhead from thread synchronization.&lt;/p&gt; &lt;p&gt;The query compilation represents about 1/3 of total server side CPU. In an actual online application of this type, queries would be parameterized, so the throughputs would be accordingly higher. We used the &lt;code&gt;StopCompilerWhenXOverRunTime = 1&lt;/code&gt; option here to cut needless compiler overhead, the queries being straightforward enough.&lt;/p&gt; &lt;p&gt;We also see that the advantage of mapping can be further increased by more compiler optimizations, so we expect in the end mapping will lead RDF warehousing by a factor of 4 or so.&lt;/p&gt; &lt;h3&gt;Suggestions for BSBM&lt;/h3&gt; &lt;ul&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Reporting Rules.&lt;/b&gt; The benchmark spec should specify a form for disclosure of test run data, TPC style. This includes things like configuration parameters and exact text of queries. There should be accepted variants of query text, as with the TPC.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Multiuser operation.&lt;/b&gt; The test driver should get a stream number as parameter, so that each client makes a different query sequence. Also, disk performance in this type of benchmark can only be reasonably assessed with a naturally parallel multiuser workload.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Add business intelligence.&lt;/b&gt; SPARQL has aggregates now, at least with &lt;a href=&quot;http://jena.sourceforge.net/&quot; id=&quot;link-id11a25ac0&quot;&gt;Jena&lt;/a&gt; and &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xa83f490&quot;&gt;Virtuoso&lt;/a&gt;, so let&amp;#39;s use these. The BSBM business intelligence metric should be a separate metric off the same data. Adding synthetic sales figures would make more interesting queries possible. For example, producing recommendations like &amp;quot;customers who bought this also bought xxx.&amp;quot;&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;For the SPARQL community&lt;/b&gt;, BSBM sends the message that one ought to support parameterized queries and stored procedures. This would be a &lt;a href=&quot;http://www.w3.org/TR/rdf-sparql-protocol/&quot; id=&quot;link-id109e2448&quot;&gt;SPARQL protocol&lt;/a&gt; extension; the SPARUL syntax should also have a way of calling a procedure. Something like &lt;code&gt;select proc (??, ??)&lt;/code&gt; would be enough, where &lt;code&gt;??&lt;/code&gt; is a parameter marker, like &lt;code&gt;?&lt;/code&gt; in &lt;a href=&quot;http://dbpedia.org/resource/Open_Database_Connectivity&quot; id=&quot;link-id13febf48&quot;&gt;ODBC&lt;/a&gt;/&lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id120416a8&quot;&gt;JDBC&lt;/a&gt;.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Add transactions.&lt;/b&gt;Especially if we are contrasting mapping vs. storing triples, having an update flow is relevant. In practice, this could be done by having the test driver send web service requests for order entry and the SUT could implement these as updates to the triples or a mapped relational store. This could use stored procedures or logic in an app server.&lt;/p&gt; &lt;/li&gt; &lt;/ul&gt; &lt;h3&gt;Comments on Query Mix&lt;/h3&gt; &lt;p&gt;The time of most queries is less than linear to the scale factor. Q6 is an exception if it is not implemented using a text index. Without the text index, Q6 will inevitably come to dominate query time as the scale is increased, and thus will make the benchmark less relevant at larger scales.&lt;/p&gt; &lt;h2&gt;Next&lt;/h2&gt; &lt;p&gt;We include the sources of our RDF view definitions and other material for running BSBM with our forthcoming Virtuoso Open Source 5.0.8 release. This also includes all the query optimization work done for BSBM. This will be available in the coming days.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Optimizations for the Berlin SPARQL Benchmark</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-07-30#1401</atom:id>
  <atom:published>2008-07-30T18:52:11Z</atom:published>
  <atom:updated>2008-08-06T16:29:42-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Virtuoso Optimizations for the Berlin SPARQL Benchmark &lt;/div&gt; &lt;p&gt;We had a look at Chris Bizer&amp;#39;s initial results with the &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id105c9f78&quot;&gt;Berlin SPARQL Benchmark&lt;/a&gt; (&lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id102d62b0&quot;&gt;BSBM&lt;/a&gt;) on &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id13eb9780&quot;&gt;Virtuoso&lt;/a&gt;. The first results were rather bad, as nearly all of the run time was spent optimizing the &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id14a51258&quot;&gt;SPARQL&lt;/a&gt; statements and under 10% actually running them.&lt;/p&gt; &lt;p&gt;So I spent a couple of days on the &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xaad28d0&quot;&gt;SPARQL&lt;/a&gt;/&lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id108745b0&quot;&gt;SQL&lt;/a&gt; compiler, to the effect of making it do a better guess of initial execution plan and streamlining some operations. In fact, many of the queries in &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0xaa230b8&quot;&gt;BSBM&lt;/a&gt; are not particularly sensitive to execution plan, as they access a very small portion of the database. So to close the matter, I put in a flag that makes the &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1e9e8e28&quot;&gt;SQL&lt;/a&gt; compiler give up on devising new plans if the time of the best plan so far is less than the time spent compiling so far.&lt;/p&gt; &lt;p&gt;With these changes, available now as a diff on top of 5.0.7, we run quite well, several times better than initially. With the compiler time cut-off in place (ini parameter &lt;code&gt;StopCompilerWhenXOverRunTime = 1&lt;/code&gt;), we get the following times, output from the BSBM test driver:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt; Starting test... 0: 1031.22 ms, total: 1151 ms 1: 982.89 ms, total: 1040 ms 2: 923.27 ms, total: 968 ms 3: 898.37 ms, total: 932 ms 4: 855.70 ms, total: 865 ms Scale factor: 10000 Number of query mix runs: 5 times min/max Query mix runtime: 0.8557 s / 1.0312 s Total runtime: 4.691 seconds QMpH: 3836.77 query mixes per hour CQET: 0.93829 seconds average runtime of query mix CQET (geom.): 0.93625 seconds geometric mean runtime of query mix Metrics for Query 1: Count: 5 times executed in whole run AQET: 0.012212 seconds (arithmetic mean) AQET(geom.): 0.009934 seconds (geometric mean) QPS: 81.89 Queries per second minQET/maxQET: 0.00684000s / 0.03115700s Average result count: 7.0 min/max result count: 3 / 10 Metrics for Query 2: Count: 35 times executed in whole run AQET: 0.030490 seconds (arithmetic mean) AQET(geom.): 0.029776 seconds (geometric mean) QPS: 32.80 Queries per second minQET/maxQET: 0.02467300s / 0.06753000s Average result count: 22.5 min/max result count: 15 / 30 Metrics for Query 3: Count: 5 times executed in whole run AQET: 0.006947 seconds (arithmetic mean) AQET(geom.): 0.006905 seconds (geometric mean) QPS: 143.95 Queries per second minQET/maxQET: 0.00580000s / 0.00795100s Average result count: 4.0 min/max result count: 0 / 10 Metrics for Query 4: Count: 5 times executed in whole run AQET: 0.008858 seconds (arithmetic mean) AQET(geom.): 0.008829 seconds (geometric mean) QPS: 112.89 Queries per second minQET/maxQET: 0.00804400s / 0.01019500s Average result count: 3.4 min/max result count: 0 / 10 Metrics for Query 5: Count: 5 times executed in whole run AQET: 0.087542 seconds (arithmetic mean) AQET(geom.): 0.087327 seconds (geometric mean) QPS: 11.42 Queries per second minQET/maxQET: 0.08165600s / 0.09889200s Average result count: 5.0 min/max result count: 5 / 5 Metrics for Query 6: Count: 5 times executed in whole run AQET: 0.131222 seconds (arithmetic mean) AQET(geom.): 0.131216 seconds (geometric mean) QPS: 7.62 Queries per second minQET/maxQET: 0.12924200s / 0.13298200s Average result count: 3.6 min/max result count: 3 / 5 Metrics for Query 7: Count: 20 times executed in whole run AQET: 0.043601 seconds (arithmetic mean) AQET(geom.): 0.040890 seconds (geometric mean) QPS: 22.94 Queries per second minQET/maxQET: 0.01984400s / 0.06012600s Average result count: 26.4 min/max result count: 5 / 96 Metrics for Query 8: Count: 10 times executed in whole run AQET: 0.018168 seconds (arithmetic mean) AQET(geom.): 0.016205 seconds (geometric mean) QPS: 55.04 Queries per second minQET/maxQET: 0.01097600s / 0.05066900s Average result count: 12.8 min/max result count: 6 / 20 Metrics for Query 9: Count: 20 times executed in whole run AQET: 0.043813 seconds (arithmetic mean) AQET(geom.): 0.043807 seconds (geometric mean) QPS: 22.82 Queries per second minQET/maxQET: 0.04274900s / 0.04504100s Average result count: 0.0 min/max result count: 0 / 0 Metrics for Query 10: Count: 15 times executed in whole run AQET: 0.030697 seconds (arithmetic mean) AQET(geom.): 0.029651 seconds (geometric mean) QPS: 32.58 Queries per second minQET/maxQET: 0.02072000s / 0.03975700s Average result count: 1.1 min/max result count: 0 / 4 real 0 m 5.485 s user 0 m 2.233 s sys 0 m 0.170 s &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Of the approximately 5.5 seconds of running five query mixes, the test driver spends 2.2 s. The server side processing time is 3.1 s, of which SQL compilation is 1.35 s. The rest is miscellaneous system time. The measurement is on 64-bit Linux, 2GHz dual-Xeon 5130 (8 cores) with 8G RAM. &lt;/p&gt; &lt;p&gt;We note that this type of workload would be done with stored procedures or prepared, parameterized queries in the SQL world.&lt;/p&gt; &lt;p&gt;There will be some further tuning still but this addresses the bulk of the matter. There will be a separate message about the patch containing these improvements.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Optimizations for the Berlin SPARQL Benchmark</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-07-30#1400</atom:id>
  <atom:published>2008-07-30T18:17:54Z</atom:published>
  <atom:updated>2008-08-06T16:29:37.000003-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We had a look at Chris Bizer&amp;#39;s initial results with the &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id105c9f78&quot;&gt;Berlin SPARQL Benchmark&lt;/a&gt; (&lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id102d62b0&quot;&gt;BSBM&lt;/a&gt;) on &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id13eb9780&quot;&gt;Virtuoso&lt;/a&gt;. The first results were rather bad, as nearly all of the run time was spent optimizing the &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id14a51258&quot;&gt;SPARQL&lt;/a&gt; statements and under 10% actually running them.&lt;/p&gt; &lt;p&gt;So I spent a couple of days on the &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xa5a8d0e8&quot;&gt;SPARQL&lt;/a&gt;/&lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id108745b0&quot;&gt;SQL&lt;/a&gt; compiler, to the effect of making it do a better guess of initial execution plan and streamlining some operations. In fact, many of the queries in &lt;a href=&quot;http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/spec/index.html&quot; id=&quot;link-id0xaf04af8&quot;&gt;BSBM&lt;/a&gt; are not particularly sensitive to execution plan, as they access a very small portion of the database. So to close the matter, I put in a flag that makes the &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1e8d2360&quot;&gt;SQL&lt;/a&gt; compiler give up on devising new plans if the time of the best plan so far is less than the time spent compiling so far.&lt;/p&gt; &lt;p&gt;With these changes, available now as a diff on top of 5.0.7, we run quite well, several times better than initially. With the compiler time cut-off in place (ini parameter &lt;code&gt;StopCompilerWhenXOverRunTime = 1&lt;/code&gt;), we get the following times, output from the BSBM test driver:&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt; Starting test... 0: 1031.22 ms, total: 1151 ms 1: 982.89 ms, total: 1040 ms 2: 923.27 ms, total: 968 ms 3: 898.37 ms, total: 932 ms 4: 855.70 ms, total: 865 ms Scale factor: 10000 Number of query mix runs: 5 times min/max Query mix runtime: 0.8557 s / 1.0312 s Total runtime: 4.691 seconds QMpH: 3836.77 query mixes per hour CQET: 0.93829 seconds average runtime of query mix CQET (geom.): 0.93625 seconds geometric mean runtime of query mix Metrics for Query 1: Count: 5 times executed in whole run AQET: 0.012212 seconds (arithmetic mean) AQET(geom.): 0.009934 seconds (geometric mean) QPS: 81.89 Queries per second minQET/maxQET: 0.00684000s / 0.03115700s Average result count: 7.0 min/max result count: 3 / 10 Metrics for Query 2: Count: 35 times executed in whole run AQET: 0.030490 seconds (arithmetic mean) AQET(geom.): 0.029776 seconds (geometric mean) QPS: 32.80 Queries per second minQET/maxQET: 0.02467300s / 0.06753000s Average result count: 22.5 min/max result count: 15 / 30 Metrics for Query 3: Count: 5 times executed in whole run AQET: 0.006947 seconds (arithmetic mean) AQET(geom.): 0.006905 seconds (geometric mean) QPS: 143.95 Queries per second minQET/maxQET: 0.00580000s / 0.00795100s Average result count: 4.0 min/max result count: 0 / 10 Metrics for Query 4: Count: 5 times executed in whole run AQET: 0.008858 seconds (arithmetic mean) AQET(geom.): 0.008829 seconds (geometric mean) QPS: 112.89 Queries per second minQET/maxQET: 0.00804400s / 0.01019500s Average result count: 3.4 min/max result count: 0 / 10 Metrics for Query 5: Count: 5 times executed in whole run AQET: 0.087542 seconds (arithmetic mean) AQET(geom.): 0.087327 seconds (geometric mean) QPS: 11.42 Queries per second minQET/maxQET: 0.08165600s / 0.09889200s Average result count: 5.0 min/max result count: 5 / 5 Metrics for Query 6: Count: 5 times executed in whole run AQET: 0.131222 seconds (arithmetic mean) AQET(geom.): 0.131216 seconds (geometric mean) QPS: 7.62 Queries per second minQET/maxQET: 0.12924200s / 0.13298200s Average result count: 3.6 min/max result count: 3 / 5 Metrics for Query 7: Count: 20 times executed in whole run AQET: 0.043601 seconds (arithmetic mean) AQET(geom.): 0.040890 seconds (geometric mean) QPS: 22.94 Queries per second minQET/maxQET: 0.01984400s / 0.06012600s Average result count: 26.4 min/max result count: 5 / 96 Metrics for Query 8: Count: 10 times executed in whole run AQET: 0.018168 seconds (arithmetic mean) AQET(geom.): 0.016205 seconds (geometric mean) QPS: 55.04 Queries per second minQET/maxQET: 0.01097600s / 0.05066900s Average result count: 12.8 min/max result count: 6 / 20 Metrics for Query 9: Count: 20 times executed in whole run AQET: 0.043813 seconds (arithmetic mean) AQET(geom.): 0.043807 seconds (geometric mean) QPS: 22.82 Queries per second minQET/maxQET: 0.04274900s / 0.04504100s Average result count: 0.0 min/max result count: 0 / 0 Metrics for Query 10: Count: 15 times executed in whole run AQET: 0.030697 seconds (arithmetic mean) AQET(geom.): 0.029651 seconds (geometric mean) QPS: 32.58 Queries per second minQET/maxQET: 0.02072000s / 0.03975700s Average result count: 1.1 min/max result count: 0 / 4 real 0 m 5.485 s user 0 m 2.233 s sys 0 m 0.170 s &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Of the approximately 5.5 seconds of running five query mixes, the test driver spends 2.2 s. The server side processing time is 3.1 s, of which SQL compilation is 1.35 s. The rest is miscellaneous system time. The measurement is on 64-bit Linux, 2GHz dual-Xeon 5130 (8 cores) with 8G RAM. &lt;/p&gt; &lt;p&gt;We note that this type of workload would be done with stored procedures or prepared, parameterized queries in the SQL world.&lt;/p&gt; &lt;p&gt;There will be some further tuning still but this addresses the bulk of the matter. There will be a separate message about the patch containing these improvements.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso 5.0.7 Release, Now With Jena and Sesame APIs</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-07-17#1393</atom:id>
  <atom:published>2008-07-17T17:18:09Z</atom:published>
  <atom:updated>2008-07-17T15:28:22.000002-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Virtuoso 5.0.7 Release, Now With Jena and Sesame APIs&lt;/div&gt; &lt;h2&gt;Improvements&lt;/h2&gt; &lt;ul&gt; &lt;li&gt; &lt;a href=&quot;http://docs.openlinksw.com:80/virtuoso/rdfnativestorageproviders.html&quot; id=&quot;link-id13e54d98&quot;&gt;Full operation&lt;/a&gt; with &lt;a href=&quot;http://jena.sourceforge.net/&quot; id=&quot;link-id0x11a3d360&quot;&gt;Jena&lt;/a&gt; and &lt;a href=&quot;http://sourceforge.net/projects/sesame/&quot; id=&quot;link-id0x1108d428&quot;&gt;Sesame&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1288aa00&quot;&gt;RDF&lt;/a&gt; Frameworks. This fully replaces any previous attempts at interop, and introduces samples and test suites.&lt;/li&gt; &lt;li&gt;Better support for alternate RDF indexing schemes&lt;/li&gt; &lt;li&gt;Parallel operation of the RDF Sponger, importing multiple sources concurrently.&lt;/li&gt; &lt;li&gt;New &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x128a9810&quot;&gt;data&lt;/a&gt; formats supported for on-demand RDF-ization in the Sponger&lt;/li&gt; &lt;li&gt;More efficient support for inference of subclass and sub-property; now capable of efficiently handling taxonomies of tens of thousands of classes&lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0x6af0678&quot;&gt;OWL&lt;/a&gt; &lt;a href=&quot;http://docs.openlinksw.com:80/virtuoso/rdfsparqlrule.html#rdfsparqlruleintro&quot; id=&quot;link-id104d58d8&quot;&gt;equivalentClass and equivalentProperty&lt;/a&gt; support.&lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://docs.openlinksw.com:80/virtuoso/rdfdatarepresentation.html#rdfdynamiclocal&quot; id=&quot;link-id109606a8&quot;&gt;Dynamic IRI host part&lt;/a&gt; support for mapped data and for metadata of local resources. Renaming the host or using multiple virtual hosts will accept URIs with the right host part and refer to the same thing, no duplicate storage required.&lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x12e0cc38&quot;&gt;SPARQL&lt;/a&gt; optimizations for &lt;code&gt;LIMIT&lt;/code&gt; and &lt;code&gt;OFFSET&lt;/code&gt; &lt;/li&gt; &lt;/ul&gt; &lt;h2&gt;Documentation&lt;/h2&gt; &lt;ul&gt; &lt;li&gt; &lt;a href=&quot;http://docs.openlinksw.com:80/virtuoso/perfdiag.html#perfdiagqueryplans&quot; id=&quot;link-id10a56dd0&quot;&gt;How to read query plans and how to use the key performance meters&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://docs.openlinksw.com:80/virtuoso/rdfperformancetuning.html#rdfperfcost&quot; id=&quot;link-id106cb5c0&quot;&gt;How to diagnose SPARQL queries and how to decide what indexing scheme is right for each RDF use case&lt;/a&gt; &lt;/li&gt; &lt;li&gt;How to debug RDF views&lt;/li&gt; &lt;ul&gt; &lt;li&gt; &lt;a href=&quot;http://docs.openlinksw.com:80/virtuoso/sparqldebug.html&quot; id=&quot;link-id133b4420&quot;&gt;Better documentation of SPARQL extensions and options&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://docs.openlinksw.com:80/virtuoso/rdfviews.html#rdfviewnorthwindexample1&quot; id=&quot;link-id1060fdd8&quot;&gt;A sample of correct RDF view usage with the Northwind demo data&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/ul&gt; &lt;h2&gt;Bug Fixes&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;Generally improved safety of built-in functions, better argument checking.&lt;/li&gt; &lt;li&gt;Verified UTF8 international character support in all RDF use cases, &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x12839fd0&quot;&gt;SQL&lt;/a&gt; client/&lt;a href=&quot;http://www.w3.org/TR/rdf-sparql-protocol/&quot; id=&quot;link-id0x1288f350&quot;&gt;SPARQL protocol&lt;/a&gt;/all data formats.&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso 5.0.7 Release, Now With Jena and Sesame APIs</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-07-17#1392</atom:id>
  <atom:published>2008-07-17T17:16:19Z</atom:published>
  <atom:updated>2008-07-17T15:28:20-04:00</atom:updated>
  <atom:content type="html">&lt;h2&gt;Improvements&lt;/h2&gt; &lt;ul&gt; &lt;li&gt; &lt;a href=&quot;http://docs.openlinksw.com:80/virtuoso/rdfnativestorageproviders.html&quot; id=&quot;link-id13e54d98&quot;&gt;Full operation&lt;/a&gt; with &lt;a href=&quot;http://jena.sourceforge.net/&quot; id=&quot;link-id0x11839970&quot;&gt;Jena&lt;/a&gt; and &lt;a href=&quot;http://sourceforge.net/projects/sesame/&quot; id=&quot;link-id0x118521a0&quot;&gt;Sesame&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x11e14758&quot;&gt;RDF&lt;/a&gt; Frameworks. This fully replaces any previous attempts at interop, and introduces samples and test suites.&lt;/li&gt; &lt;li&gt;Better support for alternate RDF indexing schemes&lt;/li&gt; &lt;li&gt;Parallel operation of the RDF Sponger, importing multiple sources concurrently.&lt;/li&gt; &lt;li&gt;New &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x13661868&quot;&gt;data&lt;/a&gt; formats supported for on-demand RDF-ization in the Sponger&lt;/li&gt; &lt;li&gt;More efficient support for inference of subclass and sub-property; now capable of efficiently handling taxonomies of tens of thousands of classes&lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0x9df079b8&quot;&gt;OWL&lt;/a&gt; &lt;a href=&quot;http://docs.openlinksw.com:80/virtuoso/rdfsparqlrule.html#rdfsparqlruleintro&quot; id=&quot;link-id104d58d8&quot;&gt;equivalentClass and equivalentProperty&lt;/a&gt; support.&lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://docs.openlinksw.com:80/virtuoso/rdfdatarepresentation.html#rdfdynamiclocal&quot; id=&quot;link-id109606a8&quot;&gt;Dynamic IRI host part&lt;/a&gt; support for mapped data and for metadata of local resources. Renaming the host or using multiple virtual hosts will accept URIs with the right host part and refer to the same thing, no duplicate storage required.&lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x110e7688&quot;&gt;SPARQL&lt;/a&gt; optimizations for &lt;code&gt;LIMIT&lt;/code&gt; and &lt;code&gt;OFFSET&lt;/code&gt; &lt;/li&gt; &lt;/ul&gt; &lt;h2&gt;Documentation&lt;/h2&gt; &lt;ul&gt; &lt;li&gt; &lt;a href=&quot;http://docs.openlinksw.com:80/virtuoso/perfdiag.html#perfdiagqueryplans&quot; id=&quot;link-id10a56dd0&quot;&gt;How to read query plans and how to use the key performance meters&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://docs.openlinksw.com:80/virtuoso/rdfperformancetuning.html#rdfperfcost&quot; id=&quot;link-id106cb5c0&quot;&gt;How to diagnose SPARQL queries and how to decide what indexing scheme is right for each RDF use case&lt;/a&gt; &lt;/li&gt; &lt;li&gt;How to debug RDF views&lt;/li&gt; &lt;ul&gt; &lt;li&gt; &lt;a href=&quot;http://docs.openlinksw.com:80/virtuoso/sparqldebug.html&quot; id=&quot;link-id133b4420&quot;&gt;Better documentation of SPARQL extensions and options&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;http://docs.openlinksw.com:80/virtuoso/rdfviews.html#rdfviewnorthwindexample1&quot; id=&quot;link-id1060fdd8&quot;&gt;A sample of correct RDF view usage with the Northwind demo data&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/ul&gt; &lt;h2&gt;Bug Fixes&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;Generally improved safety of built-in functions, better argument checking.&lt;/li&gt; &lt;li&gt;Verified UTF8 international character support in all RDF use cases, &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x11140c28&quot;&gt;SQL&lt;/a&gt; client/&lt;a href=&quot;http://www.w3.org/TR/rdf-sparql-protocol/&quot; id=&quot;link-id0x110947e8&quot;&gt;SPARQL protocol&lt;/a&gt;/all data formats.&lt;/li&gt; &lt;/ul&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>The DARQ Matter of Federation</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-06-09#1381</atom:id>
  <atom:published>2008-06-09T14:02:19Z</atom:published>
  <atom:updated>2008-06-11T15:15:14-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;The DARQ Matter of Federation&lt;/div&gt; &lt;p&gt;Astronomers propose that the universe is held together, so to speak, by the gravity of invisible &amp;quot;dark matter&amp;quot; spread in interstellar and intergalactic space.&lt;/p&gt; &lt;p&gt;For the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x19dbf410&quot;&gt;data&lt;/a&gt; web, it will be held together by federation, also an invisible factor. As in Minkowski space, so in &lt;a href=&quot;http://dbpedia.org/resource/Cyberspace&quot; id=&quot;link-id0x9fc13ff8&quot;&gt;cyberspace&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;To take the astronomical analogy further, putting too much visible stuff in one place makes a black hole, whose chief properties are that it is very heavy, can only get heavier and that nothing comes out.&lt;/p&gt; &lt;p&gt; &lt;a href=&quot;http://darq.sourceforge.net/&quot; id=&quot;link-id0x1d06bd88&quot;&gt;DARQ&lt;/a&gt; is Bastian Quilitz&amp;#39;s federated extension of the &lt;a href=&quot;http://jena.sourceforge.net/&quot; id=&quot;link-id0x1cf28f70&quot;&gt;Jena&lt;/a&gt; &lt;a href=&quot;http://jena.sourceforge.net/ARQ/&quot; id=&quot;link-id0x1cba22c8&quot;&gt;ARQ&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x171c7dc8&quot;&gt;SPARQL&lt;/a&gt; processor. It has existed for a while and was also presented at &lt;a href=&quot;http://www.eswc2008.org/&quot; id=&quot;link-id0x1ed53cd0&quot;&gt;ESWC2008&lt;/a&gt;. There is also SPARQL FED from Andy Seaborne, an explicit means of specifying which end point will process which fragment of a distributed SPARQL query. Still, for federation to deliver in an open, decentralized world, it must be transparent. For a specific application, with a predictable workload, it is of course OK to partition queries explicitly.&lt;/p&gt; &lt;p&gt;Bastian had split &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0x1ce846c0&quot;&gt;DBpedia&lt;/a&gt; among five &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1cad0640&quot;&gt;Virtuoso&lt;/a&gt; servers and was querying this set with DARQ. The end result was that there was a rather frightful cost of federation as opposed to all the data residing in a single Virtuoso. The other result was that if selectivity of predicates was not correctly guessed by the federation engine, the proposition was a non-starter. With correct join order it worked, though.&lt;/p&gt; &lt;p&gt;Yet, we really want federation. Looking further down the road, we simply must make federation work. This is just as necessary as running on a server cluster for mid-size workloads.&lt;/p&gt; &lt;p&gt;Since we are convinced of the cause, let&amp;#39;s talk about the means.&lt;/p&gt; &lt;p&gt;For DARQ as it now stands, there&amp;#39;s probably an order of magnitude or even more to gain from a couple of simple tricks. If going to a SPARQL end point that is not the outermost in the loop join sequence, batch the requests together in one &lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0x19a48280&quot;&gt;HTTP&lt;/a&gt;/1.1 message. So, if the query is &amp;quot;get me my friends living in cities of over a million people,&amp;quot; there will be the fragment &amp;quot;get city where x lives&amp;quot; and later &amp;quot;ask if population of x greater than 1000000&amp;quot;. If I have 100 friends, I send the 100 requests in a batch to each eligible server.&lt;/p&gt; &lt;p&gt;Further, if running against a server of known brand, use a client-server connection and prepared statements with array parameters. This can well improve the processing speed at the remote end point by another order of magnitude. This gain may however not be as great as the latency savings from message batching. We will provide a sample of how to do this with Virtuoso over &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id0x1cf18278&quot;&gt;JDBC&lt;/a&gt; so Bastian can try this if interested.&lt;/p&gt; &lt;p&gt;These simple things will give a lot of mileage and may even decide whether federation is an option in specific applications. For the open web however, these measures will not yet win the day.&lt;/p&gt; &lt;p&gt;When federating &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1cf7d0e8&quot;&gt;SQL&lt;/a&gt;, colocation of data is sort of explicit. If two tables are joined and they are in the same source, then the join can go to the source. For SPARQL this is also so but with a twist:&lt;/p&gt; &lt;p&gt;If a foaf:Person is found on a given server, this does not mean that the Person&amp;#39;s geek code or email hash will be on the same server. Thus &lt;code&gt;{?p name &amp;quot;Johnny&amp;quot; . ?p geekCode ?g . ?p emailHash ?h }&lt;/code&gt; does not necessarily denote a colocated join if many servers serve items of the vocabulary.&lt;/p&gt; &lt;p&gt;However, in most practical cases, for obtaining a rapid answer, treating this as a colocated fragment will be appropriate. Thus, it may be necessary to be able to declare that geek codes will be assumed colocated with names. This will save a lot of message passing and offer decent, if not theoretically total recall. For search style applications, starting with such assumptions will make sense. If nothing is found, then we can partition each join step separately for the unlikely case that there were a server that gave geek codes but not names.&lt;/p&gt; &lt;p&gt;For Virtuoso, we find that a federated query&amp;#39;s asynchronous, parallel evaluation model is not so different from that on a local cluster. So the cluster version could have the option of federated query. The difference is that a cluster is local and tightly coupled and predictably partitioned but a federated setting is none of these.&lt;/p&gt; &lt;p&gt;For description, we would take DARQ&amp;#39;s description model and maybe extend it a little where needed. Also we would enhance the protocol to allow just asking for the query cost estimate given a query with literals specified. We will do this eventually.&lt;/p&gt; &lt;p&gt;We would like to talk to Bastian about large improvements to DARQ, specially when working with Virtuoso. We&amp;#39;ll see.&lt;/p&gt; &lt;p&gt;Of course, one mode of federating is the crawl-as-you-go approach of the Virtuoso &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/VirtSpongerWhitePaper.html&quot; id=&quot;link-id0x1e163140&quot;&gt;Sponger&lt;/a&gt;. This will bring in fragments following seeAlso or sameAs declarations or other references. This will however not have the recall of a warehouse or federation over well described SPARQL end-points. But up to a certain volume it has the speed of local storage.&lt;/p&gt; &lt;p&gt;The emergence of voiD (Vocabulary of Interlinked Data) is a step in the direction of making federation a reality. There is &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1377&quot; id=&quot;link-id1109a4c8&quot;&gt;a separate post&lt;/a&gt; about this.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Aspects of RDF to RDF Mapping</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-06-09#1380</atom:id>
  <atom:published>2008-06-09T14:02:18Z</atom:published>
  <atom:updated>2008-06-11T13:15:39-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Aspects of RDF to RDF Mapping&lt;/div&gt; &lt;p&gt;The W3C has recently launched an &lt;a href=&quot;http://www.w3.org/2005/Incubator/rdb2rdf/&quot; id=&quot;link-idd763f48&quot;&gt;incubator group about mapping relational data to RDF&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;From participating in the group for the few initial sessions, I get the following impressions.&lt;/p&gt; &lt;p&gt;There is a segment of users, for example from the biomedical community, who do heavy duty &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x17f9e6f8&quot;&gt;data&lt;/a&gt; integration and look to &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x17eabf48&quot;&gt;RDF&lt;/a&gt; for managing complexity. Unifying heterogeneous data under OWL ontologies, reasoning, and data integrity, are points of interest.&lt;/p&gt; &lt;p&gt;There is another segment that is concerned with semantifying the document web, which topic includes initiatives such as &lt;a href=&quot;http://triplify.org/&quot; id=&quot;link-id0x1a25cd28&quot;&gt;Triplify&lt;/a&gt; and &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x182c41e8&quot;&gt;semantic web&lt;/a&gt; search such as &lt;a href=&quot;http://sindice.org/&quot; id=&quot;link-id0x1a29c5e8&quot;&gt;Sindice&lt;/a&gt;. The emphasis there is on minimizing entry cost and creating critical mass. The next one to come will clean up the semantics, if these need be cleaned up at all.&lt;/p&gt; &lt;p&gt;(Some cleanup is taking place with &lt;a href=&quot;http://www.mpi-inf.mpg.de/~suchanek/downloads/yago/&quot; id=&quot;link-id0x17fd2b70&quot;&gt;Yago&lt;/a&gt; and &lt;a href=&quot;http://zitgist.com/about/&quot; id=&quot;link-id0x17e6ab88&quot;&gt;Zitgist&lt;/a&gt;, but this is a matter for a different post.)&lt;/p&gt; &lt;p&gt;Thus, technically speaking, the mapping landscape is diverse, but ETL (extract-transform-load) seems to predominate. The biomedical people make data warehouses for answering specific questions. The web people are interested in putting data out in the expectation that the next player will warehouse it and allow running complex meshups against the whole of the RDF-ized web.&lt;/p&gt; &lt;p&gt;As one would expect, these groups see different issues and needs. Roughly speaking, one is about quality and structure and the other is about volume.&lt;/p&gt; &lt;p&gt;Where do we stand?&lt;/p&gt; &lt;p&gt;We are with the research data warehousers in saying that the mapping question is very complex and that it would indeed be nice to bypass ETL and go to the source &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x182acd68&quot;&gt;RDBMS&lt;/a&gt;(s) on demand. Projects in this direction are ongoing.&lt;/p&gt; &lt;p&gt;We are with the web people in building large RDF stores with scalable query answering for arbitrary RDF, for example, hosting a lot of the Linking Open Data sets, and working with Zitgist.&lt;/p&gt; &lt;p&gt;These things are somewhat different.&lt;/p&gt; &lt;p&gt;At present, both the research warehousers and the web scalers predominantly go for ETL.&lt;/p&gt; &lt;p&gt;This is fine by us as we definitely are in the large RDF store race.&lt;/p&gt; &lt;p&gt;Still, mapping has its point. A relational store will perform quite a bit faster than a quad store if it has the right covering indices or application-specific compressed columnar layout. Thus, there is nothing to block us from querying analytics in &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x16c91438&quot;&gt;SPARQL&lt;/a&gt;, once the obviously necessary extensions of sub-query, expressions and aggregation are in place.&lt;/p&gt; &lt;p&gt;To cite an example, the Ordnance Survey of the UK has a GIS system running on &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0x17ee37c8&quot;&gt;Oracle&lt;/a&gt; with an entry pretty much for each mailbox, lamp post, and hedgerow in the country. According to Ordnance Survey, this would be 1 petatriple, 1e15 triples. &amp;quot;Such a big server farm that we&amp;#39;d have to put it on our map,&amp;quot; as Jenny Harding put it at &lt;a href=&quot;http://www.eswc2008.org/&quot; id=&quot;link-id0x1cab6330&quot;&gt;ESWC2008&lt;/a&gt;. I&amp;#39;d add that an even bigger map entry would be the power plant needed to run the 100,000 or so PCs this would take. This is counting 10 gigatriples per PC, which would not even give very good working sets.&lt;/p&gt; &lt;p&gt;So, on-the-fly RDBMS-to-RDF mapping in some cases is simply necessary. Still, the benefits of RDF for integration can be preserved if the translation middleware is smart enough. Specifically, this entails knowing what tables can be joined with what other tables and pushing maximum processing to the RDBMS(s) involved in the query.&lt;/p&gt; &lt;p&gt;You can download the slide set I used for the &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xa1fb7e8&quot;&gt;Virtuoso&lt;/a&gt; presentation for the RDB to RDF mapping incubator group (&lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VirtPresentations/Relational2RDF.ppt&quot; id=&quot;link-id106f9e88&quot;&gt;PPT&lt;/a&gt;; &lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VirtPresentations&quot; id=&quot;link-id10a8dc90&quot;&gt;other formats&lt;/a&gt; coming soon). The main point is that real integration is hard and needs smart query splitting and optimization, as well as real understanding of the databases and subject matter from the &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x17ee38a0&quot;&gt;information&lt;/a&gt; architect. Sometimes in the web space it can suffice to put data out there with trivial RDF translation and hope that a search engine or such will figure out how to join this with something else. For the enterprise, things are not so. Benefits are clear if one can navigate between disjoint silos but making this accurate enough for deriving business conclusions, as well as efficient enough for production, is a soluble and non-trivial question.&lt;/p&gt; &lt;p&gt;We will show the basics of this with the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x1844d718&quot;&gt;TPC-H&lt;/a&gt; mapping, and by joining this with physical triples. We will also make a set of TPC-H format table sets, make mappings between keys in one to keys in the other, and show joins between the two. The SPARQL querying of one such data store is a done deal, including the SPARQL extensions for this. There is even a demo paper, Business Intelligence Extensions for SPARQL (&lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VirtPresentations/RDFAndMapped_BI.pdf&quot; id=&quot;link-id12ea4b18&quot;&gt;PDF&lt;/a&gt;; &lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VirtPresentations&quot; id=&quot;link-id106e1810&quot;&gt;other formats&lt;/a&gt; coming soon), by us on the subject in the ESWC 2008 proceedings. If there is an issue left, it is just the technicality of always producing &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x17fc8d60&quot;&gt;SQL&lt;/a&gt; that looks hand-crafted and hence is better understood by the target RDBMS(s). For example, Oracle works better if one uses an &lt;code&gt;IN&lt;/code&gt; sub-query instead of the equivalent existence test.&lt;/p&gt; &lt;p&gt;Follow this &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0xa9bcef8&quot;&gt;blog&lt;/a&gt; for more on the topic; published papers are always a limited view on the matter.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>ESWC 2008</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-06-09#1379</atom:id>
  <atom:published>2008-06-09T14:02:16Z</atom:published>
  <atom:updated>2008-06-11T13:15:33-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;ESWC 2008&lt;/div&gt; &lt;p&gt;YrjÃ¤nÃ¤ Rankka and I attended &lt;a href=&quot;http://www.eswc2008.org/&quot; id=&quot;link-id10b7a038&quot;&gt;ESWC2008&lt;/a&gt; on behalf of OpenLink.&lt;/p&gt; &lt;p&gt;We were invited at the last minute to give a &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id105df758&quot;&gt;Linked Open Data&lt;/a&gt; talk at Paolo Bouquet&amp;#39;s Identity and Reference workshop. We also had a demo of &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id12eacca0&quot;&gt;SPARQL&lt;/a&gt; BI (&lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VirtPresentations/ESWC2008%20SPARQL%20BI%20OpenLink.ppt&quot; id=&quot;link-id10b43e58&quot;&gt;PPT&lt;/a&gt;); &lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VirtPresentations&quot; id=&quot;link-id1116d8f0&quot;&gt;other formats coming soon&lt;/a&gt;), our business intelligence extensions to &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x16c9bfc8&quot;&gt;SPARQL&lt;/a&gt; as well as joining between relational &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id10badc40&quot;&gt;data&lt;/a&gt; mapped to &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id108edaf8&quot;&gt;RDF&lt;/a&gt; and native &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x181a5ed8&quot;&gt;RDF&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x17e69910&quot;&gt;data&lt;/a&gt;. i was also speaking at the social networks panel chaired by Harry Halpin.&lt;/p&gt; &lt;p&gt;I have gathered a few impressions that I will share in the next few posts (&lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1375&quot; id=&quot;link-id107298e0&quot;&gt;1 - RDF Mapping&lt;/a&gt;, &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1376&quot; id=&quot;link-id10b3a530&quot;&gt;2 - DARQ&lt;/a&gt;, &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1377&quot; id=&quot;link-id107290e0&quot;&gt;3 - voiD&lt;/a&gt;, &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1378&quot; id=&quot;link-id1071a950&quot;&gt;4 - Paradigmata&lt;/a&gt;). &lt;i&gt;Caveat: This is not meant to be complete or impartial press coverage of the event but rather some quick comments on issues of personal/OpenLink interest. The fact that I do not mention something does not mean that it is unimportant.&lt;/i&gt; &lt;/p&gt; &lt;h2&gt;The voiD Graph&lt;/h2&gt; &lt;p&gt; &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x1a87f110&quot;&gt;Linked Open Data&lt;/a&gt; was well represented, with Chris Bizer, Tom Heath, ourselves and many others. The great advance for &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id108f3c48&quot;&gt;LOD&lt;/a&gt; this time around is &lt;a href=&quot;http://community.linkeddata.org/MediaWiki/index.php?MetaLOD#Kick-off_meeting_at_ESWC08&quot; id=&quot;link-id10df9830&quot;&gt;voiD, the Vocabulary of Interlinked Datasets&lt;/a&gt;, a means to describe what in fact is inside the &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x1a089980&quot;&gt;LOD&lt;/a&gt; cloud, how to join it with what and so forth. Big time important if there is to be a &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1377&quot; id=&quot;link-iddf74578&quot;&gt;web of federatable data sources&lt;/a&gt;, feeding directly into what we have been saying for a while about SPARQL end-point self-description and discovery. There is reasonable hope of having something by the date of &lt;a href=&quot;http://www.linkeddataplanet.com/&quot; id=&quot;link-id10dd0848&quot;&gt;Linked Data Planet&lt;/a&gt; in a couple of weeks.&lt;/p&gt; &lt;h2&gt;Federating&lt;/h2&gt; &lt;p&gt;Bastian Quilitz gave a talk about his &lt;a href=&quot;http://darq.sourceforge.net/&quot; id=&quot;link-id108746e8&quot;&gt;DARQ&lt;/a&gt;, a federated version of Jena&amp;#39;s ARQ.&lt;/p&gt; &lt;p&gt;Something like &lt;a href=&quot;http://darq.sourceforge.net/&quot; id=&quot;link-id0x1a2d9860&quot;&gt;DARQ&lt;/a&gt;&amp;#39;s optimization statistics should make their way into the &lt;a href=&quot;http://www.w3.org/TR/rdf-sparql-protocol/&quot; id=&quot;link-id10992348&quot;&gt;SPARQL protocol&lt;/a&gt; as well as the voiD data set description.&lt;/p&gt; &lt;p&gt;We really need federation but more on this in &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1376&quot; id=&quot;link-id1059d688&quot;&gt;a separate post&lt;/a&gt;.&lt;/p&gt; &lt;h2&gt; &lt;a href=&quot;http://xsparql.deri.ie/&quot; id=&quot;link-id10314308&quot;&gt;XSPARQL&lt;/a&gt; &lt;/h2&gt; &lt;p&gt;Axel Polleres et al had a paper about &lt;a href=&quot;http://xsparql.deri.ie/&quot; id=&quot;link-id0x1ad77490&quot;&gt;XSPARQL&lt;/a&gt;, a merge of &lt;a href=&quot;http://dbpedia.org/resource/XQuery&quot; id=&quot;link-id10b98e90&quot;&gt;XQuery&lt;/a&gt; and SPARQL. While visiting DERI a couple of weeks back and again at the conference, we talked about OpenLink implementing the spec. It is evident that the engines must be in the same process and not communicate via the &lt;a href=&quot;http://www.w3.org/TR/rdf-sparql-protocol/&quot; id=&quot;link-id0x17e75190&quot;&gt;SPARQL protocol&lt;/a&gt; for this to be practical. We could do this. We&amp;#39;ll have to see when.&lt;/p&gt; &lt;p&gt;Politically, using &lt;a href=&quot;http://dbpedia.org/resource/XQuery&quot; id=&quot;link-id0x18a9bf10&quot;&gt;XQuery&lt;/a&gt; to give expressions and XML synthesis to SPARQL would be fitting. These things are needed anyhow, as surely as aggregation and sub-queries but the latter would not so readily come from XQuery. Some rapprochement between RDF and XML folks is desirable anyhow.&lt;/p&gt; &lt;h2&gt;Panel: Will the Sem Web Rise to the Challenge of the Social Web?&lt;/h2&gt; &lt;p&gt;The social web panel presented the question of whether the sem web was ready for prime time with data portability.&lt;/p&gt; &lt;p&gt;The main thrust was expressed in Harry Halpin&amp;#39;s rousing closing words: &amp;quot;Men will fight in a battle and lose a battle for a cause they believe in. Even if the battle is lost, the cause may come back and prevail, this time changed and under a different name. Thus, there may well come to be something like our &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id122f4da0&quot;&gt;semantic web&lt;/a&gt;, but it may not be the one we have worked all these years to build if we do not rise to the occasion before us right now.&amp;quot;&lt;/p&gt; &lt;p&gt;So, how to do this? Dan Brickley asked the audience how many supported, or were aware of, the latest Web 2.0 things, such as &lt;a href=&quot;http://dbpedia.org/page/OAuth&quot; id=&quot;link-idf300bc0&quot;&gt;OAuth&lt;/a&gt; and &lt;a href=&quot;http://dbpedia.org/page/OpenID&quot; id=&quot;link-id10ce7a40&quot;&gt;OpenID&lt;/a&gt;. A few were. The general idea was that research (after all, this was a research event) should be more integrated and open to the world at large, not living at the &amp;quot;outdated pace&amp;quot; of a 3 year funding cycle. Stefan Decker of DERI acquiesced in principle. Of course there is impedance mismatch between specialization and interfacing with everything.&lt;/p&gt; &lt;p&gt;I said that triples and vocabularies existed, that OpenLink had &lt;a href=&quot;http://dbpedia.org/resource/OpenLink_Data_Spaces&quot; id=&quot;link-id1210dbf8&quot;&gt;ODS&lt;/a&gt; (&lt;a href=&quot;http://dbpedia.org/resource/OpenLink_Data_Spaces&quot; id=&quot;link-id11076be8&quot;&gt;OpenLink Data Spaces&lt;/a&gt;, &lt;a href=&quot;http://community.linkeddata.org/&quot; id=&quot;link-id10d46710&quot;&gt;Community LinkedData&lt;/a&gt;) for managing one&amp;#39;s data-web presence, but that scale would be the next thing. Rather large scale even, with 100 gigatriples (Gtriples) reached before one even noticed. It takes a lot of PCs to host this, maybe $400K worth at today&amp;#39;s prices, without replication. Count 16G ram and a few cores per Gtriple so that one is not waiting for disk all the time.&lt;/p&gt; &lt;p&gt;The tricks that Web 2.0 silos do with app-specific data structures and app-specific partitioning do not really work for RDF without compromising the whole point of smooth schema evolution and tolerance of ragged data.&lt;/p&gt; &lt;p&gt;So, simple vocabularies, minimal inference, minimal blank nodes. Besides, note that the inference will have to be done at run time, not forward-chained at load time, if only because users will not agree on what sameAs and other declarations they want for their queries. Not to mention spam or malicious sameAs declarations!&lt;/p&gt; &lt;p&gt;As always, there was the question of business models for the open data web and for semantic technologies in general. As we see it, &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id108b7688&quot;&gt;information&lt;/a&gt; overload is the factor driving the demand. Better contextuality will justify semantic technologies. Due to the large volumes and complex processing, a data-as-service model will arise. The data may be open, but its query infrastructure, cleaning, and keeping up-to-date, can be monetized as services.&lt;/p&gt; &lt;h2&gt;Identity and Reference&lt;/h2&gt; &lt;p&gt;For the identity and reference workshop, the ultimate question is metaphysical and has no single universal answer, even though people, ever since the dawn of time and earlier, have occupied themselves with the issue. Consequently, I started with the Genesis quote where Adam called things by &lt;i&gt;nominibus suis&lt;/i&gt;, off-hand implying that things would have some intrinsic ontologically-due names. This would be among the older references to the question, at least in widely known sources.&lt;/p&gt; &lt;p&gt;For present purposes, the consensus seemed to be that what would be considered the same as something else depended entirely on the application. What was similar enough to warrant a sameAs for cooking purposes might not warrant a sameAs for chemistry. In fact, complete and exact sameness for URIs would be very rare. So, instead of making generic weak similarity assertions like similarTo or seeAlso, one would choose a set of strong sameAs assertions and have these in effect for query answering if they were appropriate to the granularity demanded by the application.&lt;/p&gt; &lt;p&gt;Therefore sameAs is our permanent companion, and there will in time be malicious and spam sameAs. So, nothing much should be materialized on the basis of sameAs assertions in an &lt;a href=&quot;http://dbpedia.org/resource/Open_world_assumption&quot; id=&quot;link-id10c4dfd0&quot;&gt;open world&lt;/a&gt;. For an app-specific warehouse, sameAs can be resolved at load time.&lt;/p&gt; &lt;p&gt;There was naturally some apparent tension between the Occam camp of &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id105fd240&quot;&gt;entity&lt;/a&gt; name services and the LOD camp. I would say that the issue is more a perceived polarity than a real one. People will, inevitably, continue giving things names regardless of any centralized authority. Just look at natural language. But having a dictionary that is commonly accepted for established domains of discourse is immensely helpful.&lt;/p&gt; &lt;h2&gt;CYC and NLP&lt;/h2&gt; &lt;p&gt;The semantic search workshop was interesting, especially CYC&amp;#39;s presentation. CYC is, as it were, the grand old man of &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id10568158&quot;&gt;knowledge&lt;/a&gt; representation. Over the long term, I would have support of the CYC inference language inside a database query processor. This would mostly be for repurposing the huge &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x1acff9d0&quot;&gt;knowledge&lt;/a&gt; base for helping in search type queries. If it is for transactions or financial reporting, then queries will be &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id130a0a80&quot;&gt;SQL&lt;/a&gt; and make little or no use of any sort of inference. If it is for summarization or finding things, the opposite holds. For scaling, the issue is just making correct cardinality guesses for query planning, which is harder when inference is involved. We&amp;#39;ll see.&lt;/p&gt; &lt;p&gt;I will also have a closer look at natural language one of these days, quite inevitably, since &lt;a href=&quot;http://zitgist.com/about/&quot; id=&quot;link-id10795828&quot;&gt;Zitgist&lt;/a&gt; (for example) is into &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0x18a12918&quot;&gt;entity&lt;/a&gt; disambiguation.&lt;/p&gt; &lt;h2&gt;Scale&lt;/h2&gt; &lt;p&gt;Garlic gave a talk about their Data Patrol and QDOS. We agree that storing the data for these as triples instead of 1000 or so constantly changing relational tables could well make the difference between next-to-unmanageable and efficiently adaptive.&lt;/p&gt; &lt;p&gt;Garlic probably has the largest triple collection in constant online use to date. We will soon join them with our hosting of the whole LOD cloud and &lt;a href=&quot;http://sindice.org/&quot; id=&quot;link-id0x17f18a38&quot;&gt;Sindice&lt;/a&gt;/&lt;a href=&quot;http://zitgist.com/about/&quot; id=&quot;link-id0x184e9e90&quot;&gt;Zitgist&lt;/a&gt; as triples.&lt;/p&gt; &lt;h2&gt;Conclusions&lt;/h2&gt; &lt;p&gt;There is a mood to deliver applications. Consequently, scale remains a central, even the principal topic. So for now we make bigger centrally-managed databases. At the next turn around the corner we will have to turn to federation. The point here is that a planetary-scale, centrally-managed, online system can be made when the workload is uniform and anticipatable, but if it is free-form queries and complex analysis, we have a problem. So we move in the direction of federating and charging based on usage whenever the workload is more complex than making simple lookups now and then.&lt;/p&gt; &lt;p&gt;For the &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id1026ac28&quot;&gt;Virtuoso&lt;/a&gt; roadmap, this changes little. Next we make data sets available on Amazon EC2, as widely promised at ESWC. With big scale also comes rescaling and repartitioning, so this gets additional weight, as does further parallelizing of single user workloads. As it happens, the same medicine helps for both. At &lt;a href=&quot;http://www.linkeddataplanet.com/&quot; id=&quot;link-id0x17ff5c20&quot;&gt;Linked Data Planet&lt;/a&gt;, we will make more announcements.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>The DARQ Matter of Federation</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-06-09#1376</atom:id>
  <atom:published>2008-06-09T13:57:30Z</atom:published>
  <atom:updated>2008-06-11T15:15:00-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;Astronomers propose that the universe is held together, so to speak, by the gravity of invisible &amp;quot;dark matter&amp;quot; spread in interstellar and intergalactic space.&lt;/p&gt; &lt;p&gt;For the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x19bbd830&quot;&gt;data&lt;/a&gt; web, it will be held together by federation, also an invisible factor. As in Minkowski space, so in &lt;a href=&quot;http://dbpedia.org/resource/Cyberspace&quot; id=&quot;link-id0x19af2488&quot;&gt;cyberspace&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;To take the astronomical analogy further, putting too much visible stuff in one place makes a black hole, whose chief properties are that it is very heavy, can only get heavier and that nothing comes out.&lt;/p&gt; &lt;p&gt; &lt;a href=&quot;http://darq.sourceforge.net/&quot; id=&quot;link-id0x19b7a9c8&quot;&gt;DARQ&lt;/a&gt; is Bastian Quilitz&amp;#39;s federated extension of the &lt;a href=&quot;http://jena.sourceforge.net/&quot; id=&quot;link-id0x19ce3da0&quot;&gt;Jena&lt;/a&gt; &lt;a href=&quot;http://jena.sourceforge.net/ARQ/&quot; id=&quot;link-id0xa569a258&quot;&gt;ARQ&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1a8d2270&quot;&gt;SPARQL&lt;/a&gt; processor. It has existed for a while and was also presented at &lt;a href=&quot;http://www.eswc2008.org/&quot; id=&quot;link-id0x1aad1d00&quot;&gt;ESWC2008&lt;/a&gt;. There is also SPARQL FED from Andy Seaborne, an explicit means of specifying which end point will process which fragment of a distributed SPARQL query. Still, for federation to deliver in an open, decentralized world, it must be transparent. For a specific application, with a predictable workload, it is of course OK to partition queries explicitly.&lt;/p&gt; &lt;p&gt;Bastian had split &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0x1a8ac770&quot;&gt;DBpedia&lt;/a&gt; among five &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x19601d30&quot;&gt;Virtuoso&lt;/a&gt; servers and was querying this set with DARQ. The end result was that there was a rather frightful cost of federation as opposed to all the data residing in a single Virtuoso. The other result was that if selectivity of predicates was not correctly guessed by the federation engine, the proposition was a non-starter. With correct join order it worked, though.&lt;/p&gt; &lt;p&gt;Yet, we really want federation. Looking further down the road, we simply must make federation work. This is just as necessary as running on a server cluster for mid-size workloads.&lt;/p&gt; &lt;p&gt;Since we are convinced of the cause, let&amp;#39;s talk about the means.&lt;/p&gt; &lt;p&gt;For DARQ as it now stands, there&amp;#39;s probably an order of magnitude or even more to gain from a couple of simple tricks. If going to a SPARQL end point that is not the outermost in the loop join sequence, batch the requests together in one &lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0x19b94818&quot;&gt;HTTP&lt;/a&gt;/1.1 message. So, if the query is &amp;quot;get me my friends living in cities of over a million people,&amp;quot; there will be the fragment &amp;quot;get city where x lives&amp;quot; and later &amp;quot;ask if population of x greater than 1000000&amp;quot;. If I have 100 friends, I send the 100 requests in a batch to each eligible server.&lt;/p&gt; &lt;p&gt;Further, if running against a server of known brand, use a client-server connection and prepared statements with array parameters. This can well improve the processing speed at the remote end point by another order of magnitude. This gain may however not be as great as the latency savings from message batching. We will provide a sample of how to do this with Virtuoso over &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id0x17822258&quot;&gt;JDBC&lt;/a&gt; so Bastian can try this if interested.&lt;/p&gt; &lt;p&gt;These simple things will give a lot of mileage and may even decide whether federation is an option in specific applications. For the open web however, these measures will not yet win the day.&lt;/p&gt; &lt;p&gt;When federating &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1a651628&quot;&gt;SQL&lt;/a&gt;, colocation of data is sort of explicit. If two tables are joined and they are in the same source, then the join can go to the source. For SPARQL this is also so but with a twist:&lt;/p&gt; &lt;p&gt;If a foaf:Person is found on a given server, this does not mean that the Person&amp;#39;s geek code or email hash will be on the same server. Thus &lt;code&gt;{?p name &amp;quot;Johnny&amp;quot; . ?p geekCode ?g . ?p emailHash ?h }&lt;/code&gt; does not necessarily denote a colocated join if many servers serve items of the vocabulary.&lt;/p&gt; &lt;p&gt;However, in most practical cases, for obtaining a rapid answer, treating this as a colocated fragment will be appropriate. Thus, it may be necessary to be able to declare that geek codes will be assumed colocated with names. This will save a lot of message passing and offer decent, if not theoretically total recall. For search style applications, starting with such assumptions will make sense. If nothing is found, then we can partition each join step separately for the unlikely case that there were a server that gave geek codes but not names.&lt;/p&gt; &lt;p&gt;For Virtuoso, we find that a federated query&amp;#39;s asynchronous, parallel evaluation model is not so different from that on a local cluster. So the cluster version could have the option of federated query. The difference is that a cluster is local and tightly coupled and predictably partitioned but a federated setting is none of these.&lt;/p&gt; &lt;p&gt;For description, we would take DARQ&amp;#39;s description model and maybe extend it a little where needed. Also we would enhance the protocol to allow just asking for the query cost estimate given a query with literals specified. We will do this eventually.&lt;/p&gt; &lt;p&gt;We would like to talk to Bastian about large improvements to DARQ, specially when working with Virtuoso. We&amp;#39;ll see.&lt;/p&gt; &lt;p&gt;Of course, one mode of federating is the crawl-as-you-go approach of the Virtuoso &lt;a href=&quot;http://virtuoso.openlinksw.com/Whitepapers/html/VirtSpongerWhitePaper.html&quot; id=&quot;link-id0x1dddce48&quot;&gt;Sponger&lt;/a&gt;. This will bring in fragments following seeAlso or sameAs declarations or other references. This will however not have the recall of a warehouse or federation over well described SPARQL end-points. But up to a certain volume it has the speed of local storage.&lt;/p&gt; &lt;p&gt;The emergence of voiD (Vocabulary of Interlinked Data) is a step in the direction of making federation a reality. There is &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1377&quot; id=&quot;link-id1109a4c8&quot;&gt;a separate post&lt;/a&gt; about this.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Aspects of RDF to RDF Mapping</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-06-09#1375</atom:id>
  <atom:published>2008-06-09T13:52:20Z</atom:published>
  <atom:updated>2008-06-11T13:15:19.000010-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;The W3C has recently launched an &lt;a href=&quot;http://www.w3.org/2005/Incubator/rdb2rdf/&quot; id=&quot;link-idd763f48&quot;&gt;incubator group about mapping relational data to RDF&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;From participating in the group for the few initial sessions, I get the following impressions.&lt;/p&gt; &lt;p&gt;There is a segment of users, for example from the biomedical community, who do heavy duty &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1b388bf0&quot;&gt;data&lt;/a&gt; integration and look to &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1a24b198&quot;&gt;RDF&lt;/a&gt; for managing complexity. Unifying heterogeneous data under OWL ontologies, reasoning, and data integrity, are points of interest.&lt;/p&gt; &lt;p&gt;There is another segment that is concerned with semantifying the document web, which topic includes initiatives such as &lt;a href=&quot;http://triplify.org/&quot; id=&quot;link-id0x16cb5c48&quot;&gt;Triplify&lt;/a&gt; and &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x1adcd2b8&quot;&gt;semantic web&lt;/a&gt; search such as &lt;a href=&quot;http://sindice.org/&quot; id=&quot;link-id0x1a462ee0&quot;&gt;Sindice&lt;/a&gt;. The emphasis there is on minimizing entry cost and creating critical mass. The next one to come will clean up the semantics, if these need be cleaned up at all.&lt;/p&gt; &lt;p&gt;(Some cleanup is taking place with &lt;a href=&quot;http://www.mpi-inf.mpg.de/~suchanek/downloads/yago/&quot; id=&quot;link-id0x17faa940&quot;&gt;Yago&lt;/a&gt; and &lt;a href=&quot;http://zitgist.com/about/&quot; id=&quot;link-id0x1acd23f0&quot;&gt;Zitgist&lt;/a&gt;, but this is a matter for a different post.)&lt;/p&gt; &lt;p&gt;Thus, technically speaking, the mapping landscape is diverse, but ETL (extract-transform-load) seems to predominate. The biomedical people make data warehouses for answering specific questions. The web people are interested in putting data out in the expectation that the next player will warehouse it and allow running complex meshups against the whole of the RDF-ized web.&lt;/p&gt; &lt;p&gt;As one would expect, these groups see different issues and needs. Roughly speaking, one is about quality and structure and the other is about volume.&lt;/p&gt; &lt;p&gt;Where do we stand?&lt;/p&gt; &lt;p&gt;We are with the research data warehousers in saying that the mapping question is very complex and that it would indeed be nice to bypass ETL and go to the source &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x17f28d60&quot;&gt;RDBMS&lt;/a&gt;(s) on demand. Projects in this direction are ongoing.&lt;/p&gt; &lt;p&gt;We are with the web people in building large RDF stores with scalable query answering for arbitrary RDF, for example, hosting a lot of the Linking Open Data sets, and working with Zitgist.&lt;/p&gt; &lt;p&gt;These things are somewhat different.&lt;/p&gt; &lt;p&gt;At present, both the research warehousers and the web scalers predominantly go for ETL.&lt;/p&gt; &lt;p&gt;This is fine by us as we definitely are in the large RDF store race.&lt;/p&gt; &lt;p&gt;Still, mapping has its point. A relational store will perform quite a bit faster than a quad store if it has the right covering indices or application-specific compressed columnar layout. Thus, there is nothing to block us from querying analytics in &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1a2c81c8&quot;&gt;SPARQL&lt;/a&gt;, once the obviously necessary extensions of sub-query, expressions and aggregation are in place.&lt;/p&gt; &lt;p&gt;To cite an example, the Ordnance Survey of the UK has a GIS system running on &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0x18a82010&quot;&gt;Oracle&lt;/a&gt; with an entry pretty much for each mailbox, lamp post, and hedgerow in the country. According to Ordnance Survey, this would be 1 petatriple, 1e15 triples. &amp;quot;Such a big server farm that we&amp;#39;d have to put it on our map,&amp;quot; as Jenny Harding put it at &lt;a href=&quot;http://www.eswc2008.org/&quot; id=&quot;link-id0x16533418&quot;&gt;ESWC2008&lt;/a&gt;. I&amp;#39;d add that an even bigger map entry would be the power plant needed to run the 100,000 or so PCs this would take. This is counting 10 gigatriples per PC, which would not even give very good working sets.&lt;/p&gt; &lt;p&gt;So, on-the-fly RDBMS-to-RDF mapping in some cases is simply necessary. Still, the benefits of RDF for integration can be preserved if the translation middleware is smart enough. Specifically, this entails knowing what tables can be joined with what other tables and pushing maximum processing to the RDBMS(s) involved in the query.&lt;/p&gt; &lt;p&gt;You can download the slide set I used for the &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x16c57ed0&quot;&gt;Virtuoso&lt;/a&gt; presentation for the RDB to RDF mapping incubator group (&lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VirtPresentations/Relational2RDF.ppt&quot; id=&quot;link-id106f9e88&quot;&gt;PPT&lt;/a&gt;; &lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VirtPresentations&quot; id=&quot;link-id10a8dc90&quot;&gt;other formats&lt;/a&gt; coming soon). The main point is that real integration is hard and needs smart query splitting and optimization, as well as real understanding of the databases and subject matter from the &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x1b132910&quot;&gt;information&lt;/a&gt; architect. Sometimes in the web space it can suffice to put data out there with trivial RDF translation and hope that a search engine or such will figure out how to join this with something else. For the enterprise, things are not so. Benefits are clear if one can navigate between disjoint silos but making this accurate enough for deriving business conclusions, as well as efficient enough for production, is a soluble and non-trivial question.&lt;/p&gt; &lt;p&gt;We will show the basics of this with the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x17fc7b58&quot;&gt;TPC-H&lt;/a&gt; mapping, and by joining this with physical triples. We will also make a set of TPC-H format table sets, make mappings between keys in one to keys in the other, and show joins between the two. The SPARQL querying of one such data store is a done deal, including the SPARQL extensions for this. There is even a demo paper, Business Intelligence Extensions for SPARQL (&lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VirtPresentations/RDFAndMapped_BI.pdf&quot; id=&quot;link-id12ea4b18&quot;&gt;PDF&lt;/a&gt;; &lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VirtPresentations&quot; id=&quot;link-id106e1810&quot;&gt;other formats&lt;/a&gt; coming soon), by us on the subject in the ESWC 2008 proceedings. If there is an issue left, it is just the technicality of always producing &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x18439b70&quot;&gt;SQL&lt;/a&gt; that looks hand-crafted and hence is better understood by the target RDBMS(s). For example, Oracle works better if one uses an &lt;code&gt;IN&lt;/code&gt; sub-query instead of the equivalent existence test.&lt;/p&gt; &lt;p&gt;Follow this &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0x16c29ea0&quot;&gt;blog&lt;/a&gt; for more on the topic; published papers are always a limited view on the matter.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>ESWC 2008</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-06-09#1374</atom:id>
  <atom:published>2008-06-09T13:49:15Z</atom:published>
  <atom:updated>2008-06-11T13:15:11.000008-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;YrjÃ¤nÃ¤ Rankka and I attended &lt;a href=&quot;http://www.eswc2008.org/&quot; id=&quot;link-id10b7a038&quot;&gt;ESWC2008&lt;/a&gt; on behalf of OpenLink.&lt;/p&gt; &lt;p&gt;We were invited at the last minute to give a &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id105df758&quot;&gt;Linked Open Data&lt;/a&gt; talk at Paolo Bouquet&amp;#39;s Identity and Reference workshop. We also had a demo of &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id12eacca0&quot;&gt;SPARQL&lt;/a&gt; BI (&lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VirtPresentations/ESWC2008%20SPARQL%20BI%20OpenLink.ppt&quot; id=&quot;link-id10b43e58&quot;&gt;PPT&lt;/a&gt;); &lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VirtPresentations&quot; id=&quot;link-id1116d8f0&quot;&gt;other formats coming soon&lt;/a&gt;), our business intelligence extensions to &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1843a368&quot;&gt;SPARQL&lt;/a&gt; as well as joining between relational &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id10badc40&quot;&gt;data&lt;/a&gt; mapped to &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id108edaf8&quot;&gt;RDF&lt;/a&gt; and native &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1843a3b0&quot;&gt;RDF&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1843a3c8&quot;&gt;data&lt;/a&gt;. i was also speaking at the social networks panel chaired by Harry Halpin.&lt;/p&gt; &lt;p&gt;I have gathered a few impressions that I will share in the next few posts (&lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1375&quot; id=&quot;link-id107298e0&quot;&gt;1 - RDF Mapping&lt;/a&gt;, &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1376&quot; id=&quot;link-id10b3a530&quot;&gt;2 - DARQ&lt;/a&gt;, &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1377&quot; id=&quot;link-id107290e0&quot;&gt;3 - voiD&lt;/a&gt;, &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1378&quot; id=&quot;link-id1071a950&quot;&gt;4 - Paradigmata&lt;/a&gt;). &lt;i&gt;Caveat: This is not meant to be complete or impartial press coverage of the event but rather some quick comments on issues of personal/OpenLink interest. The fact that I do not mention something does not mean that it is unimportant.&lt;/i&gt; &lt;/p&gt; &lt;h2&gt;The voiD Graph&lt;/h2&gt; &lt;p&gt; &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x16c781e0&quot;&gt;Linked Open Data&lt;/a&gt; was well represented, with Chris Bizer, Tom Heath, ourselves and many others. The great advance for &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id108f3c48&quot;&gt;LOD&lt;/a&gt; this time around is &lt;a href=&quot;http://community.linkeddata.org/MediaWiki/index.php?MetaLOD#Kick-off_meeting_at_ESWC08&quot; id=&quot;link-id10df9830&quot;&gt;voiD, the Vocabulary of Interlinked Datasets&lt;/a&gt;, a means to describe what in fact is inside the &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x16c78228&quot;&gt;LOD&lt;/a&gt; cloud, how to join it with what and so forth. Big time important if there is to be a &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1377&quot; id=&quot;link-iddf74578&quot;&gt;web of federatable data sources&lt;/a&gt;, feeding directly into what we have been saying for a while about SPARQL end-point self-description and discovery. There is reasonable hope of having something by the date of &lt;a href=&quot;http://www.linkeddataplanet.com/&quot; id=&quot;link-id10dd0848&quot;&gt;Linked Data Planet&lt;/a&gt; in a couple of weeks.&lt;/p&gt; &lt;h2&gt;Federating&lt;/h2&gt; &lt;p&gt;Bastian Quilitz gave a talk about his &lt;a href=&quot;http://darq.sourceforge.net/&quot; id=&quot;link-id108746e8&quot;&gt;DARQ&lt;/a&gt;, a federated version of Jena&amp;#39;s ARQ.&lt;/p&gt; &lt;p&gt;Something like &lt;a href=&quot;http://darq.sourceforge.net/&quot; id=&quot;link-id0x16c782e8&quot;&gt;DARQ&lt;/a&gt;&amp;#39;s optimization statistics should make their way into the &lt;a href=&quot;http://www.w3.org/TR/rdf-sparql-protocol/&quot; id=&quot;link-id10992348&quot;&gt;SPARQL protocol&lt;/a&gt; as well as the voiD data set description.&lt;/p&gt; &lt;p&gt;We really need federation but more on this in &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1376&quot; id=&quot;link-id1059d688&quot;&gt;a separate post&lt;/a&gt;.&lt;/p&gt; &lt;h2&gt; &lt;a href=&quot;http://xsparql.deri.ie/&quot; id=&quot;link-id10314308&quot;&gt;XSPARQL&lt;/a&gt; &lt;/h2&gt; &lt;p&gt;Axel Polleres et al had a paper about &lt;a href=&quot;http://xsparql.deri.ie/&quot; id=&quot;link-id0x1a2d8458&quot;&gt;XSPARQL&lt;/a&gt;, a merge of &lt;a href=&quot;http://dbpedia.org/resource/XQuery&quot; id=&quot;link-id10b98e90&quot;&gt;XQuery&lt;/a&gt; and SPARQL. While visiting DERI a couple of weeks back and again at the conference, we talked about OpenLink implementing the spec. It is evident that the engines must be in the same process and not communicate via the &lt;a href=&quot;http://www.w3.org/TR/rdf-sparql-protocol/&quot; id=&quot;link-id0x1d99c1d0&quot;&gt;SPARQL protocol&lt;/a&gt; for this to be practical. We could do this. We&amp;#39;ll have to see when.&lt;/p&gt; &lt;p&gt;Politically, using &lt;a href=&quot;http://dbpedia.org/resource/XQuery&quot; id=&quot;link-id0x1acae1f0&quot;&gt;XQuery&lt;/a&gt; to give expressions and XML synthesis to SPARQL would be fitting. These things are needed anyhow, as surely as aggregation and sub-queries but the latter would not so readily come from XQuery. Some rapprochement between RDF and XML folks is desirable anyhow.&lt;/p&gt; &lt;h2&gt;Panel: Will the Sem Web Rise to the Challenge of the Social Web?&lt;/h2&gt; &lt;p&gt;The social web panel presented the question of whether the sem web was ready for prime time with data portability.&lt;/p&gt; &lt;p&gt;The main thrust was expressed in Harry Halpin&amp;#39;s rousing closing words: &amp;quot;Men will fight in a battle and lose a battle for a cause they believe in. Even if the battle is lost, the cause may come back and prevail, this time changed and under a different name. Thus, there may well come to be something like our &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id122f4da0&quot;&gt;semantic web&lt;/a&gt;, but it may not be the one we have worked all these years to build if we do not rise to the occasion before us right now.&amp;quot;&lt;/p&gt; &lt;p&gt;So, how to do this? Dan Brickley asked the audience how many supported, or were aware of, the latest Web 2.0 things, such as &lt;a href=&quot;http://dbpedia.org/page/OAuth&quot; id=&quot;link-idf300bc0&quot;&gt;OAuth&lt;/a&gt; and &lt;a href=&quot;http://dbpedia.org/page/OpenID&quot; id=&quot;link-id10ce7a40&quot;&gt;OpenID&lt;/a&gt;. A few were. The general idea was that research (after all, this was a research event) should be more integrated and open to the world at large, not living at the &amp;quot;outdated pace&amp;quot; of a 3 year funding cycle. Stefan Decker of DERI acquiesced in principle. Of course there is impedance mismatch between specialization and interfacing with everything.&lt;/p&gt; &lt;p&gt;I said that triples and vocabularies existed, that OpenLink had &lt;a href=&quot;http://dbpedia.org/resource/OpenLink_Data_Spaces&quot; id=&quot;link-id1210dbf8&quot;&gt;ODS&lt;/a&gt; (&lt;a href=&quot;http://dbpedia.org/resource/OpenLink_Data_Spaces&quot; id=&quot;link-id11076be8&quot;&gt;OpenLink Data Spaces&lt;/a&gt;, &lt;a href=&quot;http://community.linkeddata.org/&quot; id=&quot;link-id10d46710&quot;&gt;Community LinkedData&lt;/a&gt;) for managing one&amp;#39;s data-web presence, but that scale would be the next thing. Rather large scale even, with 100 gigatriples (Gtriples) reached before one even noticed. It takes a lot of PCs to host this, maybe $400K worth at today&amp;#39;s prices, without replication. Count 16G ram and a few cores per Gtriple so that one is not waiting for disk all the time.&lt;/p&gt; &lt;p&gt;The tricks that Web 2.0 silos do with app-specific data structures and app-specific partitioning do not really work for RDF without compromising the whole point of smooth schema evolution and tolerance of ragged data.&lt;/p&gt; &lt;p&gt;So, simple vocabularies, minimal inference, minimal blank nodes. Besides, note that the inference will have to be done at run time, not forward-chained at load time, if only because users will not agree on what sameAs and other declarations they want for their queries. Not to mention spam or malicious sameAs declarations!&lt;/p&gt; &lt;p&gt;As always, there was the question of business models for the open data web and for semantic technologies in general. As we see it, &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id108b7688&quot;&gt;information&lt;/a&gt; overload is the factor driving the demand. Better contextuality will justify semantic technologies. Due to the large volumes and complex processing, a data-as-service model will arise. The data may be open, but its query infrastructure, cleaning, and keeping up-to-date, can be monetized as services.&lt;/p&gt; &lt;h2&gt;Identity and Reference&lt;/h2&gt; &lt;p&gt;For the identity and reference workshop, the ultimate question is metaphysical and has no single universal answer, even though people, ever since the dawn of time and earlier, have occupied themselves with the issue. Consequently, I started with the Genesis quote where Adam called things by &lt;i&gt;nominibus suis&lt;/i&gt;, off-hand implying that things would have some intrinsic ontologically-due names. This would be among the older references to the question, at least in widely known sources.&lt;/p&gt; &lt;p&gt;For present purposes, the consensus seemed to be that what would be considered the same as something else depended entirely on the application. What was similar enough to warrant a sameAs for cooking purposes might not warrant a sameAs for chemistry. In fact, complete and exact sameness for URIs would be very rare. So, instead of making generic weak similarity assertions like similarTo or seeAlso, one would choose a set of strong sameAs assertions and have these in effect for query answering if they were appropriate to the granularity demanded by the application.&lt;/p&gt; &lt;p&gt;Therefore sameAs is our permanent companion, and there will in time be malicious and spam sameAs. So, nothing much should be materialized on the basis of sameAs assertions in an &lt;a href=&quot;http://dbpedia.org/resource/Open_world_assumption&quot; id=&quot;link-id10c4dfd0&quot;&gt;open world&lt;/a&gt;. For an app-specific warehouse, sameAs can be resolved at load time.&lt;/p&gt; &lt;p&gt;There was naturally some apparent tension between the Occam camp of &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id105fd240&quot;&gt;entity&lt;/a&gt; name services and the LOD camp. I would say that the issue is more a perceived polarity than a real one. People will, inevitably, continue giving things names regardless of any centralized authority. Just look at natural language. But having a dictionary that is commonly accepted for established domains of discourse is immensely helpful.&lt;/p&gt; &lt;h2&gt;CYC and NLP&lt;/h2&gt; &lt;p&gt;The semantic search workshop was interesting, especially CYC&amp;#39;s presentation. CYC is, as it were, the grand old man of &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id10568158&quot;&gt;knowledge&lt;/a&gt; representation. Over the long term, I would have support of the CYC inference language inside a database query processor. This would mostly be for repurposing the huge &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x17f7dd40&quot;&gt;knowledge&lt;/a&gt; base for helping in search type queries. If it is for transactions or financial reporting, then queries will be &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id130a0a80&quot;&gt;SQL&lt;/a&gt; and make little or no use of any sort of inference. If it is for summarization or finding things, the opposite holds. For scaling, the issue is just making correct cardinality guesses for query planning, which is harder when inference is involved. We&amp;#39;ll see.&lt;/p&gt; &lt;p&gt;I will also have a closer look at natural language one of these days, quite inevitably, since &lt;a href=&quot;http://zitgist.com/about/&quot; id=&quot;link-id10795828&quot;&gt;Zitgist&lt;/a&gt; (for example) is into &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0x1a2c8bd0&quot;&gt;entity&lt;/a&gt; disambiguation.&lt;/p&gt; &lt;h2&gt;Scale&lt;/h2&gt; &lt;p&gt;Garlic gave a talk about their Data Patrol and QDOS. We agree that storing the data for these as triples instead of 1000 or so constantly changing relational tables could well make the difference between next-to-unmanageable and efficiently adaptive.&lt;/p&gt; &lt;p&gt;Garlic probably has the largest triple collection in constant online use to date. We will soon join them with our hosting of the whole LOD cloud and &lt;a href=&quot;http://sindice.org/&quot; id=&quot;link-id0x1b383720&quot;&gt;Sindice&lt;/a&gt;/&lt;a href=&quot;http://zitgist.com/about/&quot; id=&quot;link-id0x1b383738&quot;&gt;Zitgist&lt;/a&gt; as triples.&lt;/p&gt; &lt;h2&gt;Conclusions&lt;/h2&gt; &lt;p&gt;There is a mood to deliver applications. Consequently, scale remains a central, even the principal topic. So for now we make bigger centrally-managed databases. At the next turn around the corner we will have to turn to federation. The point here is that a planetary-scale, centrally-managed, online system can be made when the workload is uniform and anticipatable, but if it is free-form queries and complex analysis, we have a problem. So we move in the direction of federating and charging based on usage whenever the workload is more complex than making simple lookups now and then.&lt;/p&gt; &lt;p&gt;For the &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id1026ac28&quot;&gt;Virtuoso&lt;/a&gt; roadmap, this changes little. Next we make data sets available on Amazon EC2, as widely promised at ESWC. With big scale also comes rescaling and repartitioning, so this gets additional weight, as does further parallelizing of single user workloads. As it happens, the same medicine helps for both. At &lt;a href=&quot;http://www.linkeddataplanet.com/&quot; id=&quot;link-id0x1a2c7eb0&quot;&gt;Linked Data Planet&lt;/a&gt;, we will make more announcements.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Cluster Paper</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-05-30#1369</atom:id>
  <atom:published>2008-05-30T10:02:04Z</atom:published>
  <atom:updated>2008-05-30T06:02:05-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Virtuoso Cluster Paper&lt;/div&gt; &lt;div&gt; &lt;div&gt;We have a new article on &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id10424890&quot;&gt;Virtuoso&lt;/a&gt; cluster, submitted to ISWC 2008.&lt;/div&gt; &lt;div&gt; Right now we are working on hosting the billion triples challenge &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id1077f800&quot;&gt;data&lt;/a&gt; set at Amazon EC2 using &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id102117f0&quot;&gt;Virtuoso&lt;/a&gt; Cluster. This will be the first publicly available instance of &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x20387e80&quot;&gt;Virtuoso&lt;/a&gt; Cluster and all interested may then instantiate their own copy on the EC2 infrastructure. &lt;/div&gt; &lt;br /&gt; &lt;div&gt; &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/2008iswc_webscale_rdf.pdf&quot; id=&quot;link-id10af2f30&quot;&gt;Towards Web Scale RDF&lt;/a&gt; &lt;br /&gt; &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/RDFAndMapped_BI.pdf&quot; id=&quot;link-idfedf9f0&quot;&gt;Integrating Open Sources and Relational Data with SPARQL&lt;/a&gt; &lt;br /&gt; &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/bisparql2.pdf&quot; id=&quot;link-id106e5418&quot;&gt;Business Intelligence Extensions for SPARQL&lt;/a&gt; &lt;br /&gt; &lt;/div&gt; &lt;br /&gt; &lt;div&gt; Look for a separate announcement in the near future. &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Cluster Paper</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-05-30#1368</atom:id>
  <atom:published>2008-05-30T09:57:47Z</atom:published>
  <atom:updated>2008-05-30T10:36:31-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We have a new article on &lt;a href=&quot;http://virtuoso.openlinksw.com&quot;&gt;Virtuoso&lt;/a&gt; Cluster, submitted to ISWC 2008.&lt;/p&gt; &lt;p&gt;Right now we are working on hosting the billion triples challenge &lt;a href=&quot;http://dbpedia.org/resource/Data&quot;&gt;data&lt;/a&gt; set on Amazon EC2 using Virtuoso Cluster. This will be the first publicly available instance of Virtuoso Cluster and all interested may then instantiate their own copy on the EC2 infrastructure.&lt;/p&gt; &lt;ul&gt; &lt;li&gt; &lt;p&gt; &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/2008iswc_webscale_rdf.pdf&quot; id=&quot;link-id1062bc98&quot;&gt;Towards Web Scale RDF&lt;/a&gt; (PDF)&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/RDFAndMapped_BI.pdf&quot; id=&quot;link-id1063efa8&quot;&gt;Integrating Open Sources and Relational Data with SPARQL&lt;/a&gt; (PDF)&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/bisparql2.pdf&quot; id=&quot;link-id10c37708&quot;&gt;Business Intelligence Extensions for SPARQL&lt;/a&gt; (PDF)&lt;/p&gt; &lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Look for a separate announcement in the near future.&lt;/p&gt;&lt;a href=&quot;index.vspx?tag=database&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;database&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=databases&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;databases&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=rdf&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;rdf&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=semanticweb&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;semanticweb&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=sparql&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;sparql&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=virtuoso&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;virtuoso&lt;/a&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>DBpedia Benchmark Revisited</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-05-09#1359</atom:id>
  <atom:published>2008-05-09T19:33:42Z</atom:published>
  <atom:updated>2008-05-12T11:24:43-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;DBpedia Benchmark Revisited&lt;/div&gt; &lt;p&gt;We ran the &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0x1cd6d0c8&quot;&gt;DBpedia&lt;/a&gt; benchmark queries again with different configurations of &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1bf01048&quot;&gt;Virtuoso&lt;/a&gt;. I had not studied the details of the matter previously but now did have a closer look at the queries.&lt;/p&gt; &lt;p&gt;Comparing numbers given by different parties is a constant problem. In the case reported here, we loaded the full DBpedia 3, all languages, with about 198M triples, onto Virtuoso v5 and Virtuoso Cluster v6, all on the same 4 core 2GHz Xeon with 8G RAM. All databases were striped on 6 disks. The Cluster configuration was with 4 processes in the same box.&lt;/p&gt; &lt;p&gt;We ran the queries in two variants:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;With graph specified in the &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1b9d3ca0&quot;&gt;SPARQL&lt;/a&gt; &lt;code&gt;FROM&lt;/code&gt; clause, using the default indices.&lt;/li&gt; &lt;li&gt;With no graph specified anywhere, using an alternate indexing scheme.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;The times below are for the sequence of 5 queries; individual query times are not reported. I did not do a line-by-line review of the execution plans since they seem to run well enough. We could get some extra mileage from cost model tweaks, especially for the numeric range conditions, but we will do this when somebody comes up with better times.&lt;/p&gt; &lt;p&gt;First, about Virtuoso v5: Because there is a query in the set that specifies no condition on S or O and only P, this simply cannot be done with the default indices. With Virtuoso Cluster v6 it sort-of can, because v6 is more space efficient.&lt;/p&gt; &lt;p&gt;So we added the index:&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; create bitmap index &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1c364a58&quot;&gt;rdf&lt;/a&gt;_quad_pogs on rdf_quad (p, o, g, s); &lt;/code&gt; &lt;/blockquote&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;Â &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;b&gt;Virtuoso v5 with&lt;br /&gt; gspo, ogps, pogs&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;b&gt;Virtuoso Cluster v6 with &lt;br /&gt;gspo, ogps&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;b&gt;Virtuoso Cluster v6 with &lt;br /&gt;gspo, ogps, pogs&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;b&gt;cold&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;210 s&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;136 s&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;33.4 s&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;b&gt;warm&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0.600 s&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4.01 s&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0.628 s&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;p&gt;OK, so now let us do it without a graph being specified. For all platforms, we drop any existing indices, and --&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; create table r2 (g iri_id_8, s, iri_id_8, p iri_id_8, o any, primary key (s, p, o, g)) &lt;br /&gt; alter index R2 on R2 partition (s int (0hexffff00)); &lt;br /&gt; &lt;br /&gt; log_enable (2); &lt;br /&gt; insert into r2 (g, s, p, o) select g, s, p, o from rdf_quad; &lt;br /&gt; &lt;br /&gt; drop table rdf_quad; &lt;br /&gt; alter table r2 rename RDF_QUAD; &lt;br /&gt; create bitmap index rdf_quad_opgs on rdf_quad (o, p, g, s) partition (o varchar (-1, 0hexffff)); &lt;br /&gt; create bitmap index rdf_quad_pogs on rdf_quad (p, o, g, s) partition (o varchar (-1, 0hexffff)); &lt;br /&gt; create bitmap index rdf_quad_gpos on rdf_quad (g, p, o, s) partition (o varchar (-1, 0hexffff)); &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;The code is identical for v5 and v6, except that with v5 we use &lt;code&gt;iri_id (32 bit)&lt;/code&gt; for the type, not &lt;code&gt;iri_id_8 (64 bit)&lt;/code&gt;. We note that we run out of IDs with v5 around a few billion triples, so with v6 we have double the ID length and still manage to be vastly more space efficient.&lt;/p&gt; &lt;p&gt;With the above 4 indices, we can query the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1bae4cd8&quot;&gt;data&lt;/a&gt; pretty much in any combination without hitting a full scan of any index. We note that all indices that do not begin with s end with s as a bitmap. This takes about 60% of the space of a non-bitmap index for data such as DBpedia.&lt;/p&gt; &lt;p&gt;If you intend to do completely arbitrary RDF queries in Virtuoso, then chances are you are best off with the above index scheme.&lt;/p&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;Â &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;b&gt; Virtuoso v5 with&lt;br /&gt; gspo, ogps, pogs&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;b&gt; Virtuoso Cluster v6 with &lt;br /&gt; spog, pogs, opgs, gpos &lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;b&gt;warm&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0.595 s&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0.617 s&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;p&gt;The cold times were about the same as above, so not reproduced.&lt;/p&gt; &lt;h3&gt;Graph or No Graph?&lt;/h3&gt; &lt;p&gt;It is in the SPARQL spirit to specify a graph and for pretty much any application, there are entirely sensible ways of keeping the data in graphs and specifying which ones are concerned by queries. This is why Virtuoso is set up for this by default.&lt;/p&gt; &lt;p&gt;On the other hand, for the open web scenario, dealing with an unknown large number of graphs, enumerating graphs is not possible and questions like which graph of which source asserts x become relevant. We have two distinct use cases which warrant different setups of the database, simple as that.&lt;/p&gt; &lt;p&gt;The latter use case is not really within the SPARQL spec, so implementations may or may not support this. For example &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0x1cd2db78&quot;&gt;Oracle&lt;/a&gt; or Vertica would not do this well since they partition data according to graph or predicate, respectively. On the other hand, stores that work with one quad table, which is most of the ones out there, should do it maybe with some configuring, as shown above.&lt;/p&gt; &lt;p&gt;Frameworks like Jena are not to my &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x1b300390&quot;&gt;knowledge&lt;/a&gt; geared towards having a wildcard for graph, although I would suppose this can be arranged by adding some &amp;quot;super-graph&amp;quot; object, a graph of all graphs. I don&amp;#39;t think this is directly supported and besides most apps would not need it.&lt;/p&gt; &lt;p&gt;Once the indices are right, there is no difference between specifying a graph and not specifying a graph with the queries considered. With more complex queries, specifying a graph or set of graphs does allow some optimizations that cannot be done with no graph specified. For example, bitmap intersections are possible only when all leading key parts are given.&lt;/p&gt; &lt;h3&gt;Conclusions&lt;/h3&gt; &lt;p&gt;The best warm cache time is with v5; the five queries run under 600 ms after the first go. This is noted to show that all-in-memory with a single thread of execution is hard to beat.&lt;/p&gt; &lt;p&gt;Cluster v6 performs the same queries in 623 ms. What is gained in parallelism is lost in latency if all operations complete in microseconds. On the other hand, Cluster v6 leaves v5 in the dust in any situation that has less than 100% hit rate. This is due to actual benefit from parallelism if operations take longer than a few microseconds, such as in the case of disk reads. Cluster v6 has substantially better data layout on disk, as well as fewer pages to load for the same content.&lt;/p&gt; &lt;p&gt;This makes it possible to run the queries without the pogs index on Cluster v6 even when v5 takes prohibitively long.&lt;/p&gt; &lt;p&gt;The morale of the story is to have a lot of RAM and space-efficient data representation.&lt;/p&gt; &lt;p&gt;The DBpedia benchmark does not specify any random access pattern that would give a measure of sustained throughput under load, so we are left with the extremes of cold and warm cache of which neither is quite realistic.&lt;/p&gt; &lt;p&gt;Chris Bizer and I have talked on and off about benchmarks and I have made suggestions that we will see incorporated into the Berlin SPARQL benchmark, which will, I believe, be much more informative.&lt;/p&gt; &lt;h3&gt;Appendix: Query Text&lt;/h3&gt; &lt;p&gt;For reference, the query texts specifying the graph are below. To run without specifying the graph, just drop the &lt;code&gt;FROM &amp;lt;&lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0x1c371db0&quot;&gt;http&lt;/a&gt;://dbpedia.org&amp;gt;&lt;/code&gt; from each query. The returned row counts are indicated below each query&amp;#39;s text.&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;&lt;pre&gt; sparql SELECT ?p ?o FROM &amp;lt;http://dbpedia.org&amp;gt; WHERE { &amp;lt;http://dbpedia.org/resource/Metropolitan_Museum_of_Art&amp;gt; ?p ?o }; -- 1337 rows sparql PREFIX p: &amp;lt;http://dbpedia.org/property/&amp;gt; SELECT ?film1 ?actor1 ?film2 ?actor2 FROM &amp;lt;http://dbpedia.org&amp;gt; WHERE { ?film1 p:starring &amp;lt;http://dbpedia.org/resource/Kevin_Bacon&amp;gt; . ?film1 p:starring ?actor1 . ?film2 p:starring ?actor1 . ?film2 p:starring ?actor2 . }; -- 23910 rows sparql PREFIX p: &amp;lt;http://dbpedia.org/property/&amp;gt; SELECT ?artist ?artwork ?museum ?director FROM &amp;lt;http://dbpedia.org&amp;gt; WHERE { ?artwork p:artist ?artist . ?artwork p:museum ?museum . ?museum p:director ?director }; -- 303 rows sparql PREFIX geo: &amp;lt;http://www.w3.org/2003/01/geo/wgs84_pos#&amp;gt; PREFIX foaf: &amp;lt;http://xmlns.com/foaf/0.1/&amp;gt; PREFIX xsd: &amp;lt;http://www.w3.org/2001/XMLSchema#&amp;gt; SELECT ?s ?homepage FROM &amp;lt;http://dbpedia.org&amp;gt; WHERE { &amp;lt;http://dbpedia.org/resource/Berlin&amp;gt; geo:lat ?berlinLat . &amp;lt;http://dbpedia.org/resource/Berlin&amp;gt; geo:long ?berlinLong . ?s geo:lat ?lat . ?s geo:long ?long . ?s foaf:homepage ?homepage . FILTER ( ?lat &amp;lt;= ?berlinLat + 0.03190235436 &amp;amp;&amp;amp; ?long &amp;gt;= ?berlinLong - 0.08679199218 &amp;amp;&amp;amp; ?lat &amp;gt;= ?berlinLat - 0.03190235436 &amp;amp;&amp;amp; ?long &amp;lt;= ?berlinLong + 0.08679199218) }; -- 56 rows sparql PREFIX geo: &amp;lt;http://www.w3.org/2003/01/geo/wgs84_pos#&amp;gt; PREFIX foaf: &amp;lt;http://xmlns.com/foaf/0.1/&amp;gt; PREFIX xsd: &amp;lt;http://www.w3.org/2001/XMLSchema#&amp;gt; PREFIX p: &amp;lt;http://dbpedia.org/property/&amp;gt; SELECT ?s ?a ?homepage FROM &amp;lt;http://dbpedia.org&amp;gt; WHERE { &amp;lt;http://dbpedia.org/resource/New_York_City&amp;gt; geo:lat ?nyLat . &amp;lt;http://dbpedia.org/resource/New_York_City&amp;gt; geo:long ?nyLong . ?s geo:lat ?lat . ?s geo:long ?long . ?s p:architect ?a . ?a foaf:homepage ?homepage . FILTER ( ?lat &amp;lt;= ?nyLat + 0.3190235436 &amp;amp;&amp;amp; ?long &amp;gt;= ?nyLong - 0.8679199218 &amp;amp;&amp;amp; ?lat &amp;gt;= ?nyLat - 0.3190235436 &amp;amp;&amp;amp; ?long &amp;lt;= ?nyLong + 0.8679199218) }; -- 13 rows &lt;/pre&gt; &lt;/code&gt; &lt;/blockquote&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>DBpedia Benchmark Revisited</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-05-09#1358</atom:id>
  <atom:published>2008-05-09T19:27:00Z</atom:published>
  <atom:updated>2008-05-12T11:24:36-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We ran the &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0x1b7f9688&quot;&gt;DBpedia&lt;/a&gt; benchmark queries again with different configurations of &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1cca2e00&quot;&gt;Virtuoso&lt;/a&gt;. I had not studied the details of the matter previously but now did have a closer look at the queries.&lt;/p&gt; &lt;p&gt;Comparing numbers given by different parties is a constant problem. In the case reported here, we loaded the full DBpedia 3, all languages, with about 198M triples, onto Virtuoso v5 and Virtuoso Cluster v6, all on the same 4 core 2GHz Xeon with 8G RAM. All databases were striped on 6 disks. The Cluster configuration was with 4 processes in the same box.&lt;/p&gt; &lt;p&gt;We ran the queries in two variants:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;With graph specified in the &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1b77f758&quot;&gt;SPARQL&lt;/a&gt; &lt;code&gt;FROM&lt;/code&gt; clause, using the default indices.&lt;/li&gt; &lt;li&gt;With no graph specified anywhere, using an alternate indexing scheme.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;The times below are for the sequence of 5 queries; individual query times are not reported. I did not do a line-by-line review of the execution plans since they seem to run well enough. We could get some extra mileage from cost model tweaks, especially for the numeric range conditions, but we will do this when somebody comes up with better times.&lt;/p&gt; &lt;p&gt;First, about Virtuoso v5: Because there is a query in the set that specifies no condition on S or O and only P, this simply cannot be done with the default indices. With Virtuoso Cluster v6 it sort-of can, because v6 is more space efficient.&lt;/p&gt; &lt;p&gt;So we added the index:&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; create bitmap index &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1cb0b180&quot;&gt;rdf&lt;/a&gt;_quad_pogs on rdf_quad (p, o, g, s); &lt;/code&gt; &lt;/blockquote&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;Â &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;b&gt;Virtuoso v5 with&lt;br /&gt; gspo, ogps, pogs&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;b&gt;Virtuoso Cluster v6 with &lt;br /&gt;gspo, ogps&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;b&gt;Virtuoso Cluster v6 with &lt;br /&gt;gspo, ogps, pogs&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;b&gt;cold&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;210 s&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;136 s&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;33.4 s&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;b&gt;warm&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0.600 s&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;4.01 s&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0.628 s&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;p&gt;OK, so now let us do it without a graph being specified. For all platforms, we drop any existing indices, and --&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt; create table r2 (g iri_id_8, s, iri_id_8, p iri_id_8, o any, primary key (s, p, o, g)) &lt;br /&gt; alter index R2 on R2 partition (s int (0hexffff00)); &lt;br /&gt; &lt;br /&gt; log_enable (2); &lt;br /&gt; insert into r2 (g, s, p, o) select g, s, p, o from rdf_quad; &lt;br /&gt; &lt;br /&gt; drop table rdf_quad; &lt;br /&gt; alter table r2 rename RDF_QUAD; &lt;br /&gt; create bitmap index rdf_quad_opgs on rdf_quad (o, p, g, s) partition (o varchar (-1, 0hexffff)); &lt;br /&gt; create bitmap index rdf_quad_pogs on rdf_quad (p, o, g, s) partition (o varchar (-1, 0hexffff)); &lt;br /&gt; create bitmap index rdf_quad_gpos on rdf_quad (g, p, o, s) partition (o varchar (-1, 0hexffff)); &lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;The code is identical for v5 and v6, except that with v5 we use &lt;code&gt;iri_id (32 bit)&lt;/code&gt; for the type, not &lt;code&gt;iri_id_8 (64 bit)&lt;/code&gt;. We note that we run out of IDs with v5 around a few billion triples, so with v6 we have double the ID length and still manage to be vastly more space efficient.&lt;/p&gt; &lt;p&gt;With the above 4 indices, we can query the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x6339b80&quot;&gt;data&lt;/a&gt; pretty much in any combination without hitting a full scan of any index. We note that all indices that do not begin with s end with s as a bitmap. This takes about 60% of the space of a non-bitmap index for data such as DBpedia.&lt;/p&gt; &lt;p&gt;If you intend to do completely arbitrary RDF queries in Virtuoso, then chances are you are best off with the above index scheme.&lt;/p&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;Â &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;b&gt; Virtuoso v5 with&lt;br /&gt; gspo, ogps, pogs&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;b&gt; Virtuoso Cluster v6 with &lt;br /&gt; spog, pogs, opgs, gpos &lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;b&gt;warm&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0.595 s&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;0.617 s&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;p&gt;The cold times were about the same as above, so not reproduced.&lt;/p&gt; &lt;h3&gt;Graph or No Graph?&lt;/h3&gt; &lt;p&gt;It is in the SPARQL spirit to specify a graph and for pretty much any application, there are entirely sensible ways of keeping the data in graphs and specifying which ones are concerned by queries. This is why Virtuoso is set up for this by default.&lt;/p&gt; &lt;p&gt;On the other hand, for the open web scenario, dealing with an unknown large number of graphs, enumerating graphs is not possible and questions like which graph of which source asserts x become relevant. We have two distinct use cases which warrant different setups of the database, simple as that.&lt;/p&gt; &lt;p&gt;The latter use case is not really within the SPARQL spec, so implementations may or may not support this. For example &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0x11ed7028&quot;&gt;Oracle&lt;/a&gt; or Vertica would not do this well since they partition data according to graph or predicate, respectively. On the other hand, stores that work with one quad table, which is most of the ones out there, should do it maybe with some configuring, as shown above.&lt;/p&gt; &lt;p&gt;Frameworks like Jena are not to my &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x1a49ded0&quot;&gt;knowledge&lt;/a&gt; geared towards having a wildcard for graph, although I would suppose this can be arranged by adding some &amp;quot;super-graph&amp;quot; object, a graph of all graphs. I don&amp;#39;t think this is directly supported and besides most apps would not need it.&lt;/p&gt; &lt;p&gt;Once the indices are right, there is no difference between specifying a graph and not specifying a graph with the queries considered. With more complex queries, specifying a graph or set of graphs does allow some optimizations that cannot be done with no graph specified. For example, bitmap intersections are possible only when all leading key parts are given.&lt;/p&gt; &lt;h3&gt;Conclusions&lt;/h3&gt; &lt;p&gt;The best warm cache time is with v5; the five queries run under 600 ms after the first go. This is noted to show that all-in-memory with a single thread of execution is hard to beat.&lt;/p&gt; &lt;p&gt;Cluster v6 performs the same queries in 623 ms. What is gained in parallelism is lost in latency if all operations complete in microseconds. On the other hand, Cluster v6 leaves v5 in the dust in any situation that has less than 100% hit rate. This is due to actual benefit from parallelism if operations take longer than a few microseconds, such as in the case of disk reads. Cluster v6 has substantially better data layout on disk, as well as fewer pages to load for the same content.&lt;/p&gt; &lt;p&gt;This makes it possible to run the queries without the pogs index on Cluster v6 even when v5 takes prohibitively long.&lt;/p&gt; &lt;p&gt;The morale of the story is to have a lot of RAM and space-efficient data representation.&lt;/p&gt; &lt;p&gt;The DBpedia benchmark does not specify any random access pattern that would give a measure of sustained throughput under load, so we are left with the extremes of cold and warm cache of which neither is quite realistic.&lt;/p&gt; &lt;p&gt;Chris Bizer and I have talked on and off about benchmarks and I have made suggestions that we will see incorporated into the Berlin SPARQL benchmark, which will, I believe, be much more informative.&lt;/p&gt; &lt;h3&gt;Appendix: Query Text&lt;/h3&gt; &lt;p&gt;For reference, the query texts specifying the graph are below. To run without specifying the graph, just drop the &lt;code&gt;FROM &amp;lt;&lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0x1905bfd0&quot;&gt;http&lt;/a&gt;://dbpedia.org&amp;gt;&lt;/code&gt; from each query. The returned row counts are indicated below each query&amp;#39;s text.&lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;&lt;pre&gt; sparql SELECT ?p ?o FROM &amp;lt;http://dbpedia.org&amp;gt; WHERE { &amp;lt;http://dbpedia.org/resource/Metropolitan_Museum_of_Art&amp;gt; ?p ?o }; -- 1337 rows sparql PREFIX p: &amp;lt;http://dbpedia.org/property/&amp;gt; SELECT ?film1 ?actor1 ?film2 ?actor2 FROM &amp;lt;http://dbpedia.org&amp;gt; WHERE { ?film1 p:starring &amp;lt;http://dbpedia.org/resource/Kevin_Bacon&amp;gt; . ?film1 p:starring ?actor1 . ?film2 p:starring ?actor1 . ?film2 p:starring ?actor2 . }; -- 23910 rows sparql PREFIX p: &amp;lt;http://dbpedia.org/property/&amp;gt; SELECT ?artist ?artwork ?museum ?director FROM &amp;lt;http://dbpedia.org&amp;gt; WHERE { ?artwork p:artist ?artist . ?artwork p:museum ?museum . ?museum p:director ?director }; -- 303 rows sparql PREFIX geo: &amp;lt;http://www.w3.org/2003/01/geo/wgs84_pos#&amp;gt; PREFIX foaf: &amp;lt;http://xmlns.com/foaf/0.1/&amp;gt; PREFIX xsd: &amp;lt;http://www.w3.org/2001/XMLSchema#&amp;gt; SELECT ?s ?homepage FROM &amp;lt;http://dbpedia.org&amp;gt; WHERE { &amp;lt;http://dbpedia.org/resource/Berlin&amp;gt; geo:lat ?berlinLat . &amp;lt;http://dbpedia.org/resource/Berlin&amp;gt; geo:long ?berlinLong . ?s geo:lat ?lat . ?s geo:long ?long . ?s foaf:homepage ?homepage . FILTER ( ?lat &amp;lt;= ?berlinLat + 0.03190235436 &amp;amp;&amp;amp; ?long &amp;gt;= ?berlinLong - 0.08679199218 &amp;amp;&amp;amp; ?lat &amp;gt;= ?berlinLat - 0.03190235436 &amp;amp;&amp;amp; ?long &amp;lt;= ?berlinLong + 0.08679199218) }; -- 56 rows sparql PREFIX geo: &amp;lt;http://www.w3.org/2003/01/geo/wgs84_pos#&amp;gt; PREFIX foaf: &amp;lt;http://xmlns.com/foaf/0.1/&amp;gt; PREFIX xsd: &amp;lt;http://www.w3.org/2001/XMLSchema#&amp;gt; PREFIX p: &amp;lt;http://dbpedia.org/property/&amp;gt; SELECT ?s ?a ?homepage FROM &amp;lt;http://dbpedia.org&amp;gt; WHERE { &amp;lt;http://dbpedia.org/resource/New_York_City&amp;gt; geo:lat ?nyLat . &amp;lt;http://dbpedia.org/resource/New_York_City&amp;gt; geo:long ?nyLong . ?s geo:lat ?lat . ?s geo:long ?long . ?s p:architect ?a . ?a foaf:homepage ?homepage . FILTER ( ?lat &amp;lt;= ?nyLat + 0.3190235436 &amp;amp;&amp;amp; ?long &amp;gt;= ?nyLong - 0.8679199218 &amp;amp;&amp;amp; ?lat &amp;gt;= ?nyLat - 0.3190235436 &amp;amp;&amp;amp; ?long &amp;lt;= ?nyLong + 0.8679199218) }; -- 13 rows &lt;/pre&gt; &lt;/code&gt; &lt;/blockquote&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>SPARQL at WWW 2008</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-04-30#1354</atom:id>
  <atom:published>2008-04-30T16:28:10Z</atom:published>
  <atom:updated>2008-08-28T11:26:06.000004-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;SPARQL at WWW 2008&lt;/div&gt; &lt;p&gt;Andy Seaborne and Eric Prud&amp;#39;hommeaux, editors of the &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x183b13a8&quot;&gt;SPARQL&lt;/a&gt; recommendation, convened a SPARQL birds of a feather session at &lt;a href=&quot;http://www2008.org/&quot; id=&quot;link-id0xd31c2d0&quot;&gt;WWW 2008&lt;/a&gt;. The administrative outcome was that implementors could now experiment with extensions, hopefully keeping each other current about their efforts and that towards the end of 2008, a new W3C working group might begin formalizing the experiences into a new SPARQL spec.&lt;/p&gt; &lt;p&gt;The session drew a good crowd, including many users and developers. The wishes were largely as expected, with a few new ones added. Many of the wishes already had diverse implementations, however most often without interop. I will below give some comments on the main issues discussed.&lt;/p&gt; &lt;/div&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;SPARQL Update&lt;/b&gt; - This is likely the most universally agreed upon extension. Implementations exist, largely along the lines of Andy Seaborne&amp;#39;s SPARUL spec, which is also likely material for a W3C member submission. The issue is without much controversy; transactions fall outside the scope, which is reasonable enough. With triple stores, we can define things as combinations of inserts and deletes, and isolation we just leave aside. If anything, operating on a transactional platform such as &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1d442cd8&quot;&gt;Virtuoso&lt;/a&gt;, one wishes to disable transactions for any operations such as bulk loads and long-running inserts and deletes. Transactionality has pretty much no overhead for a few hundred rows, but for a few hundred million rows the cost of locking and rollback is prohibitive. With Virtuoso, we have a row auto-commit mode which we recommend for use with &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xec62c58&quot;&gt;RDF&lt;/a&gt;: It commits by itself now and then, optionally keeping a roll forward log, and is transactional enough not to leave half triples around, i.e., inserted in one index but not another.&lt;/p&gt; &lt;p&gt;As far as we are concerned, updating physical triples along the SPARUL lines is pretty much a done deal.&lt;/p&gt; &lt;p&gt;The matter of updating relational &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x19f995c8&quot;&gt;data&lt;/a&gt; mapped to RDF is a whole other kettle of fish. On this, I should say that RDF has no special virtues for expressing transactions but rather has a special genius for integration. Updating is best left to web service interfaces that use &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x125b2b98&quot;&gt;SQL&lt;/a&gt; on the inside. Anyway, updating union views, which most mappings will be, is complicated. Besides, for transactions, one usually knows exactly what one wishes to update.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Full Text&lt;/b&gt; - Many people expressed a desire for full text access. Here we run into a deplorable confusion with regexps. The closest SPARQL has to full text in its native form is regexps, but these are not really mappable to full text except in rare special cases and I would despair of explaining to an end user what exactly these cases are. So, in principle, some regexps are equivalent to full text but in practice I find it much preferable to keep these entirely separate.&lt;/p&gt; &lt;p&gt;It was noted that what the users want is a text box for search words. This is a front end to the CONTAINS predicate of most SQL implementations. Ours is MS SQL Server compatible and has a SPARQL version called &lt;code&gt;bif:contains&lt;/code&gt;. One must still declare which triples one wants indexed for full text, though. This admin overhead seems inevitable, as text indexing is a large overhead and not needed by all applications.&lt;/p&gt; &lt;p&gt;Also, text hits are not boolean; usually they come with a hit score. Thus, a SPARQL extension for this could look like &lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;select * where { ?thing has_description ?d . ?d ftcontains &amp;quot;gizmo&amp;quot; ftand &amp;quot;widget&amp;quot; score ?score . }&lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;This would return all the subjects, descriptions, and scores, from subjects with a has_description property containing widget and gizmo. Extending the basic pattern is better than having the match in a filter, since the match binds a variable.&lt;/p&gt; &lt;p&gt;The &lt;a href=&quot;http://dbpedia.org/resource/XQuery&quot; id=&quot;link-id0xfec6788&quot;&gt;XQuery&lt;/a&gt;/&lt;a href=&quot;http://dbpedia.org/resource/XPath&quot; id=&quot;link-id0x1a789e38&quot;&gt;XPath&lt;/a&gt; groups have recently come up with a full-text spec, so I used their style of syntax above. We already have a full-text extension, as do some others. but for standardization, it is probably most appropriate to take the XQuery work as a basis. The XQuery full-text spec is quite complex, but I would expect most uses to get by with a small subset, and the structure seems better thought out, at first glance, than the more ad-hoc implementations in diverse SQLs.&lt;/p&gt; &lt;p&gt;Again, declaring any text index to support the search, as well as its timeliness or transactionality, are best left to implementations.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Federation&lt;/b&gt; - This is a tricky matter. &lt;a href=&quot;http://jena.sourceforge.net/ARQ/&quot; id=&quot;link-id0xba487f0&quot;&gt;ARQ&lt;/a&gt; has a SPARQL extension for sending a nested set of triple patterns to a specific end-point. The &lt;a href=&quot;http://darq.sourceforge.net/&quot; id=&quot;link-id0xf8a5ab0&quot;&gt;DARQ&lt;/a&gt; project has something more, including a selectivity model for SPARQL.&lt;/p&gt; &lt;p&gt;With federated SQL, life is simpler since after the views are expanded, we have a query where each table is at a known server and has more or less known statistics. Generally, execution plans where as much work as possible is pushed to the remote servers are preferred, and modeling the latencies is not overly hard. With SPARQL, each triple pattern could in principle come from any of the federated servers. Associating a specific end-point to a fragment of the query just passes the problem to the user. It is my guess that this is the best we can do without getting very elaborate, and possibly buggy, end-point content descriptions for routing federated queries.&lt;/p&gt; &lt;p&gt;Having said this, there remains the problem of join order. I suggested that we enhance the protocol by allowing asking an end-point for the query cost for a given SPARQL query. Since they all must have a cost model for optimization, this should not be an impossible request. A time cost and estimated cardinality would be enough. Making statistics available &lt;i&gt;Ã  la&lt;/i&gt; DARQ was also discussed. Being able to declare cardinalities expected of a remote end-point is probably necessary anyway, since not all will implement the cost model interface. For standardization, agreeing on what is a proper description of content and cardinality and how fine grained this must be will be so difficult that I would not wait for it. A cost model interface would nicely hide this within the end-point itself.&lt;/p&gt; &lt;p&gt;With Virtuoso, we do not have a federated SPARQL scheme but we could have the ARQ-like service construct. We&amp;#39;d use our own cost model with explicit declarations of cardinalities of the remote data for guessing a join order. Still, this is a bit of work. We&amp;#39;ll see.&lt;/p&gt; &lt;p&gt;For practicality, the service construct coupled with join order hints is the best short term bet. Making this pretty enough for standardization is not self-evident, as it requires end-point description and/or cost model hooks for things to stay declarative.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;End-point description&lt;/b&gt; - This question has been around for a while; I have &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1085&quot; id=&quot;link-id101d3440&quot;&gt;blogged about it earlier&lt;/a&gt;, but we are not really at a point where there would be even rough consensus about an end-point ontology. We should probably do something on our own to demonstrate some application of this, as we host lots of &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x162d0de8&quot;&gt;linked open data&lt;/a&gt; sets.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;SQL equivalence&lt;/b&gt; - There were many requests for aggregation, some for subqueries and nesting, expressions in select, negation, existence and so on. I would call these all SQL equivalence. One use case was taking all the teams in the database and for all with over 5 members, add the big_team class and a property for member count.&lt;/p&gt; &lt;p&gt;With Virtuoso, we could write this as -- &lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;construct { ?team a big_team . ?team member_count ?ct } from ... where {?team a team . { select ?team2 count (*) as ?ct where { ?m member_of ?team2 } . filter (?team = ?team2 and ? ct &amp;gt; 5) }}&lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;We have pretty much all the SQL equivalence features, as we have been working for some time at translating the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x11c870c8&quot;&gt;TPC-H&lt;/a&gt; workload into SPARQL.&lt;/p&gt; &lt;p&gt;The usefulness of these things is uncontested but standardization could be hard as there are subtle questions about variable scope and the like.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Inference&lt;/b&gt; - The SPARQL spec does not deal with transitivity or such matters because it is assumed that these are handled by an underlying inference layer. This is however most often not so. There was interest in more fine grained control of inference, for example declaring that just one property in a query would be transitive or that subclasses should be taken into account in only one triple pattern. As far as I am concerned, this is very reasonable, and we even offer extensions for this sort of thing in Virtuoso&amp;#39;s SPARQL. This however only makes sense if the inference is done at query time and pattern by pattern. For instance, if forward chaining is used, this no longer makes sense. Specifying that some forward chaining ought to be done at query time is impractical, as the operation can be very large and time consuming and it is the DBA&amp;#39;s task to determine what should be stored and for how long, how changes should be propagated, and so on. All these are application dependent and standardizing will be difficult.&lt;/p&gt; &lt;p&gt;Support for RDF features like lists and bags would all fall into the functions an underlying inference layer should perform. These things are of special interest when querying &lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0x156f3830&quot;&gt;OWL&lt;/a&gt; models, for example.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Path expressions&lt;/b&gt; - Path expressions were requested by a few people. We have implemented some, as in &lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;?product+?has_supplier+&amp;gt;s_name = &amp;quot;Gizmos, Inc.&amp;quot;.&lt;/code&gt; &lt;/blockquote&gt; This means that one supplier of product has name &amp;quot;Gizmo, Inc.&amp;quot;. This is a nice shorthand but we run into problems if we start supporting repetitive steps, optional steps, and the like.&lt;/li&gt; &lt;p&gt;In conclusion, update, full text, and basic counting and grouping would seem straightforward at this point. Nesting queries, value subqueries, views, and the like should not be too hard if an agreement is reached on scope rules. Inference and federation will probably need more experimentation but a lot can be had already with very simple fine grained control of backward chaining, if such applies, or with explicit end-point references and explicit join order. These are practical but not pretty enough for committee consensus, would be my guess. Anyway, it will be a few months before anything formal will happen.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>SPARQL at WWW 2008</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-04-30#1353</atom:id>
  <atom:published>2008-04-30T15:59:15Z</atom:published>
  <atom:updated>2008-08-28T11:26:00-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;Andy Seaborne and Eric Prud&amp;#39;hommeaux, editors of the &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xddcd418&quot;&gt;SPARQL&lt;/a&gt; recommendation, convened a SPARQL birds of a feather session at &lt;a href=&quot;http://www2008.org/&quot; id=&quot;link-id0xf6c0510&quot;&gt;WWW 2008&lt;/a&gt;. The administrative outcome was that implementors could now experiment with extensions, hopefully keeping each other current about their efforts and that towards the end of 2008, a new W3C working group might begin formalizing the experiences into a new SPARQL spec.&lt;/p&gt; &lt;p&gt;The session drew a good crowd, including many users and developers. The wishes were largely as expected, with a few new ones added. Many of the wishes already had diverse implementations, however most often without interop. I will below give some comments on the main issues discussed.&lt;/p&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;SPARQL Update&lt;/b&gt; - This is likely the most universally agreed upon extension. Implementations exist, largely along the lines of Andy Seaborne&amp;#39;s SPARUL spec, which is also likely material for a W3C member submission. The issue is without much controversy; transactions fall outside the scope, which is reasonable enough. With triple stores, we can define things as combinations of inserts and deletes, and isolation we just leave aside. If anything, operating on a transactional platform such as &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xf9e8d18&quot;&gt;Virtuoso&lt;/a&gt;, one wishes to disable transactions for any operations such as bulk loads and long-running inserts and deletes. Transactionality has pretty much no overhead for a few hundred rows, but for a few hundred million rows the cost of locking and rollback is prohibitive. With Virtuoso, we have a row auto-commit mode which we recommend for use with &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xe098028&quot;&gt;RDF&lt;/a&gt;: It commits by itself now and then, optionally keeping a roll forward log, and is transactional enough not to leave half triples around, i.e., inserted in one index but not another.&lt;/p&gt; &lt;p&gt;As far as we are concerned, updating physical triples along the SPARUL lines is pretty much a done deal.&lt;/p&gt; &lt;p&gt;The matter of updating relational &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xf55ec50&quot;&gt;data&lt;/a&gt; mapped to RDF is a whole other kettle of fish. On this, I should say that RDF has no special virtues for expressing transactions but rather has a special genius for integration. Updating is best left to web service interfaces that use &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0xff00f38&quot;&gt;SQL&lt;/a&gt; on the inside. Anyway, updating union views, which most mappings will be, is complicated. Besides, for transactions, one usually knows exactly what one wishes to update.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Full Text&lt;/b&gt; - Many people expressed a desire for full text access. Here we run into a deplorable confusion with regexps. The closest SPARQL has to full text in its native form is regexps, but these are not really mappable to full text except in rare special cases and I would despair of explaining to an end user what exactly these cases are. So, in principle, some regexps are equivalent to full text but in practice I find it much preferable to keep these entirely separate.&lt;/p&gt; &lt;p&gt;It was noted that what the users want is a text box for search words. This is a front end to the CONTAINS predicate of most SQL implementations. Ours is MS SQL Server compatible and has a SPARQL version called &lt;code&gt;bif:contains&lt;/code&gt;. One must still declare which triples one wants indexed for full text, though. This admin overhead seems inevitable, as text indexing is a large overhead and not needed by all applications.&lt;/p&gt; &lt;p&gt;Also, text hits are not boolean; usually they come with a hit score. Thus, a SPARQL extension for this could look like &lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;select * where { ?thing has_description ?d . ?d ftcontains &amp;quot;gizmo&amp;quot; ftand &amp;quot;widget&amp;quot; score ?score . }&lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;This would return all the subjects, descriptions, and scores, from subjects with a has_description property containing widget and gizmo. Extending the basic pattern is better than having the match in a filter, since the match binds a variable.&lt;/p&gt; &lt;p&gt;The &lt;a href=&quot;http://dbpedia.org/resource/XQuery&quot; id=&quot;link-id0xee42f50&quot;&gt;XQuery&lt;/a&gt;/&lt;a href=&quot;http://dbpedia.org/resource/XPath&quot; id=&quot;link-id0xd169630&quot;&gt;XPath&lt;/a&gt; groups have recently come up with a full-text spec, so I used their style of syntax above. We already have a full-text extension, as do some others. but for standardization, it is probably most appropriate to take the XQuery work as a basis. The XQuery full-text spec is quite complex, but I would expect most uses to get by with a small subset, and the structure seems better thought out, at first glance, than the more ad-hoc implementations in diverse SQLs.&lt;/p&gt; &lt;p&gt;Again, declaring any text index to support the search, as well as its timeliness or transactionality, are best left to implementations.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Federation&lt;/b&gt; - This is a tricky matter. &lt;a href=&quot;http://jena.sourceforge.net/ARQ/&quot; id=&quot;link-id0xcbe1e18&quot;&gt;ARQ&lt;/a&gt; has a SPARQL extension for sending a nested set of triple patterns to a specific end-point. The &lt;a href=&quot;http://darq.sourceforge.net/&quot; id=&quot;link-id0xe7c0088&quot;&gt;DARQ&lt;/a&gt; project has something more, including a selectivity model for SPARQL.&lt;/p&gt; &lt;p&gt;With federated SQL, life is simpler since after the views are expanded, we have a query where each table is at a known server and has more or less known statistics. Generally, execution plans where as much work as possible is pushed to the remote servers are preferred, and modeling the latencies is not overly hard. With SPARQL, each triple pattern could in principle come from any of the federated servers. Associating a specific end-point to a fragment of the query just passes the problem to the user. It is my guess that this is the best we can do without getting very elaborate, and possibly buggy, end-point content descriptions for routing federated queries.&lt;/p&gt; &lt;p&gt;Having said this, there remains the problem of join order. I suggested that we enhance the protocol by allowing asking an end-point for the query cost for a given SPARQL query. Since they all must have a cost model for optimization, this should not be an impossible request. A time cost and estimated cardinality would be enough. Making statistics available &lt;i&gt;Ã  la&lt;/i&gt; DARQ was also discussed. Being able to declare cardinalities expected of a remote end-point is probably necessary anyway, since not all will implement the cost model interface. For standardization, agreeing on what is a proper description of content and cardinality and how fine grained this must be will be so difficult that I would not wait for it. A cost model interface would nicely hide this within the end-point itself.&lt;/p&gt; &lt;p&gt;With Virtuoso, we do not have a federated SPARQL scheme but we could have the ARQ-like service construct. We&amp;#39;d use our own cost model with explicit declarations of cardinalities of the remote data for guessing a join order. Still, this is a bit of work. We&amp;#39;ll see.&lt;/p&gt; &lt;p&gt;For practicality, the service construct coupled with join order hints is the best short term bet. Making this pretty enough for standardization is not self-evident, as it requires end-point description and/or cost model hooks for things to stay declarative.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;End-point description&lt;/b&gt; - This question has been around for a while; I have &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1085&quot; id=&quot;link-id101d3440&quot;&gt;blogged about it earlier&lt;/a&gt;, but we are not really at a point where there would be even rough consensus about an end-point ontology. We should probably do something on our own to demonstrate some application of this, as we host lots of &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0xfaec780&quot;&gt;linked open data&lt;/a&gt; sets.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;SQL equivalence&lt;/b&gt; - There were many requests for aggregation, some for subqueries and nesting, expressions in select, negation, existence and so on. I would call these all SQL equivalence. One use case was taking all the teams in the database and for all with over 5 members, add the big_team class and a property for member count.&lt;/p&gt; &lt;p&gt;With Virtuoso, we could write this as -- &lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;construct { ?team a big_team . ?team member_count ?ct } from ... where {?team a team . { select ?team2 count (*) as ?ct where { ?m member_of ?team2 } . filter (?team = ?team2 and ? ct &amp;gt; 5) }}&lt;/code&gt; &lt;/blockquote&gt; &lt;p&gt;We have pretty much all the SQL equivalence features, as we have been working for some time at translating the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0xe2392e8&quot;&gt;TPC-H&lt;/a&gt; workload into SPARQL.&lt;/p&gt; &lt;p&gt;The usefulness of these things is uncontested but standardization could be hard as there are subtle questions about variable scope and the like.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Inference&lt;/b&gt; - The SPARQL spec does not deal with transitivity or such matters because it is assumed that these are handled by an underlying inference layer. This is however most often not so. There was interest in more fine grained control of inference, for example declaring that just one property in a query would be transitive or that subclasses should be taken into account in only one triple pattern. As far as I am concerned, this is very reasonable, and we even offer extensions for this sort of thing in Virtuoso&amp;#39;s SPARQL. This however only makes sense if the inference is done at query time and pattern by pattern. For instance, if forward chaining is used, this no longer makes sense. Specifying that some forward chaining ought to be done at query time is impractical, as the operation can be very large and time consuming and it is the DBA&amp;#39;s task to determine what should be stored and for how long, how changes should be propagated, and so on. All these are application dependent and standardizing will be difficult.&lt;/p&gt; &lt;p&gt;Support for RDF features like lists and bags would all fall into the functions an underlying inference layer should perform. These things are of special interest when querying &lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0xfd87f78&quot;&gt;OWL&lt;/a&gt; models, for example.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;b&gt;Path expressions&lt;/b&gt; - Path expressions were requested by a few people. We have implemented some, as in &lt;/p&gt; &lt;blockquote&gt; &lt;code&gt;?product+?has_supplier+&amp;gt;s_name = &amp;quot;Gizmos, Inc.&amp;quot;.&lt;/code&gt; &lt;/blockquote&gt; This means that one supplier of product has name &amp;quot;Gizmo, Inc.&amp;quot;. This is a nice shorthand but we run into problems if we start supporting repetitive steps, optional steps, and the like.&lt;/li&gt; &lt;p&gt;In conclusion, update, full text, and basic counting and grouping would seem straightforward at this point. Nesting queries, value subqueries, views, and the like should not be too hard if an agreement is reached on scope rules. Inference and federation will probably need more experimentation but a lot can be had already with very simple fine grained control of backward chaining, if such applies, or with explicit end-point references and explicit join order. These are practical but not pretty enough for committee consensus, would be my guess. Anyway, it will be a few months before anything formal will happen.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Linked Data and Information Architecture</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-04-29#1350</atom:id>
  <atom:published>2008-04-29T14:37:22Z</atom:published>
  <atom:updated>2008-04-29T17:18:21.000048-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Linked Data and Information Architecture&lt;/div&gt; &lt;p&gt;We had a workshop on &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x1437ac70&quot;&gt;Linked Open Data&lt;/a&gt; (&lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x1315f788&quot;&gt;LOD&lt;/a&gt;) last week in &lt;a href=&quot;http://www2008.org/&quot; id=&quot;link-id0x13737468&quot;&gt;Beijing&lt;/a&gt;. You can see the papers in &lt;a href=&quot;http://events.linkeddata.org/ldow2008/#program&quot; id=&quot;link-id10651ab8&quot;&gt;the program&lt;/a&gt;. The event was a success with plenty of good talks and animated conversation. I will not go into every paper here but will comment a little on the conversation and draw some technology requirements going forward.&lt;/p&gt; &lt;p&gt;Tim Berners-Lee showed a read-write version of &lt;a href=&quot;http://dig.csail.mit.edu/2005/ajar/release/tabulator/0.8/tab.html&quot; id=&quot;link-id0x15633520&quot;&gt;Tabulator&lt;/a&gt;. This raises the question of updating on the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1350a178&quot;&gt;Data&lt;/a&gt; Web. The consensus was that one could assert what one wanted in one&amp;#39;s own space but that others&amp;#39; spaces would be read-only. What spaces one considered relevant would be the user&amp;#39;s or developer&amp;#39;s business, as in the document web.&lt;/p&gt; &lt;p&gt;It seems to me that a significant use case of LOD is an open-web situation where the user picks a broad read-only &amp;quot;data wallpaper&amp;quot; or backdrop of assertions, and then uses this combined with a much smaller, local, writable data set. This is certainly the case when editing data for publishing, as in Tim&amp;#39;s demo. This will also be the case when developing mesh-ups combining multiple distinct data sets bound together by sets of SameAs assertions, for example. Questions like, &amp;quot;What is the minimum subset of n data sets needed for deriving the result?&amp;quot; will be common. This will also be the case in applications using proprietary data combined with open data.&lt;/p&gt; &lt;p&gt;This means that databases will have to deal with queries that specify large lists of included graphs, all graphs in the store or all graphs with an exclusion list. All this is quite possible but again should be considered when architecting systems for an open &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0xa27bae8&quot;&gt;linked data&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Giant_Global_Graph&quot; id=&quot;link-id0x155c3f18&quot;&gt;web&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;&amp;quot;There is data but what can we really do with it? How far can we trust it, and what can we confidently decide based on it?&amp;quot;&lt;/p&gt; &lt;p&gt;As an answer to this question, &lt;a href=&quot;http://zitgist.com/about/&quot; id=&quot;link-id0xd447580&quot;&gt;Zitgist&lt;/a&gt; has compiled the &lt;a href=&quot;http://umbel.org/about/&quot; id=&quot;link-id0x14735008&quot;&gt;UMBEL&lt;/a&gt; taxonomy using &lt;a href=&quot;http://dbpedia.org/resource/SKOS&quot; id=&quot;link-id0x15ab1c48&quot;&gt;SKOS&lt;/a&gt;. This draws on Wikipedia, Open CYC, Wordnet, and &lt;a href=&quot;http://www.mpi-inf.mpg.de/~suchanek/downloads/yago/&quot; id=&quot;link-id0x15d5aa88&quot;&gt;YAGO&lt;/a&gt;, hence the acronym WOWY. UMBEL is both a taxononmy and a set of instance data, containing a large set of &lt;a href=&quot;http://dbpedia.org/resource/Named_entity_recognition&quot; id=&quot;link-id0x9fe45d98&quot;&gt;named entities&lt;/a&gt;, including persons, organizations, geopolitical entities, and so forth. By extracting references to this set of named entities from documents and correlating this to the taxonomy, one gets a good idea of what a document (or part thereof) is about.&lt;/p&gt; &lt;p&gt;Kingsley presented this in the Zitgist demo. This is our answer to the criticism about &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0xa1920800&quot;&gt;DBpedia&lt;/a&gt; having errors in classification. DBpedia, as a bootstrap stage, is about giving names to all things. Subsequent efforts like UMBEL are about refining the relationships.&lt;/p&gt; &lt;p&gt;&amp;quot;Should there be a global &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id0x12cd5290&quot;&gt;URI&lt;/a&gt; dictionary?&amp;quot;&lt;/p&gt; &lt;p&gt;There was a talk by Paolo Bouquet about &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0x12d03400&quot;&gt;Entity&lt;/a&gt; Name System, a a sort of data DNS, with the purpose of associating some description and rough classification to URIs. This would allow discovering URIs for reuse. I&amp;#39;d say that this is good if it can cut down on the SameAs proliferation and if this can be widely distributed and replicated for resilience, &lt;i&gt;Ã  la&lt;/i&gt; DNS. On the other hand, it was pointed out that this was not quite in the LOD spirit, where parties would mint their own dereferenceable URIs, in their own domains. We&amp;#39;ll see.&lt;/p&gt; &lt;p&gt;&amp;quot;What to do when identity expires?&amp;quot;&lt;/p&gt; &lt;p&gt;Giovanni of Sindice said that a document should be removed from search if it was no longer available. Kingsley pointed out that resilience of reference requires some way to recover data. The data web cannot be less resilient than the document web, and there is a point to having access to history. He recommended hooking up with the &lt;a href=&quot;http://dbpedia.org/resource/Internet&quot; id=&quot;link-id0x143e4130&quot;&gt;Internet&lt;/a&gt; Archive, since they make long term persistence their business. In this way, if an application depends on data, and the URIs on which it depends are no longer dereferenceable or or provide content from a new owner of the domain, those who need the old version can still get it and host it themselves.&lt;/p&gt; &lt;p&gt;It is increasingly clear that OWL SameAs is both the blessing and bane of linked data. We can easily have tens of URIs for the same thing, especially with people. Still, these should be considered the same.&lt;/p&gt; &lt;p&gt;Returning every synonym in a query answer hardly makes sense but accepting them as input seems almost necessary. This is what we do with &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x15a2a930&quot;&gt;Virtuoso&lt;/a&gt;&amp;#39;s SameAs support. Even so, this can easily double query times even when there are no synonyms.&lt;/p&gt; &lt;p&gt;Be that as it may, SameAs is here to stay; just consider the mapping of DBpedia to Geonames, for example.&lt;/p&gt; &lt;p&gt;Also, making aberrant SameAs statements can completely poison a data set and lead to absurd query results. Hence choosing which SameAs assertions from which source will be considered seems necessary. In an open web scenario, this leads inevitably to multi-graph queries that can be complex to write with regular &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x12bb8ce8&quot;&gt;SPARQL&lt;/a&gt;. By extension, it seems that a good query would also include the graphs actually used for deriving each result row. This is of course possible but has some implications on how databases should be organized.&lt;/p&gt; &lt;p&gt;Yves Raymond gave a talk about deriving identity between Musicbrainz and Jamendo. I see the issue as a core question of linked data in general. The algorithm Yves presented started with attribute value similarities and then followed related entities. Artists would be the same if they had similar names and similar names of albums with similar song titles, for example. We can find the same basic question in any analysis, for example, looking at how news reporting differs between media, supposing there is adequate entity extraction.&lt;/p&gt; &lt;p&gt;There is basic graph diffing in &lt;a href=&quot;http://data.semanticweb.org/conference/iswc-aswc/2007/tracks/research/papers/533/html&quot; id=&quot;link-id0x153c1fa8&quot;&gt;RDFSync&lt;/a&gt;, for example. But here we are expanding the context significantly. We will traverse references to some depth, allow similarity matches, SameAs, and so forth. Having presumed identity of two URIs, we can then look at the difference in their environment to produce a human readable summary. This could then be evaluated for purposes of analysis or of combining content.&lt;/p&gt; &lt;p&gt;At first sight, these algorithms seem well parallelizable, as long as all threads have access to all data. For scaling, this means a probably message-bound distributed algorithm. This is something to look into for the next stage of linked data.&lt;/p&gt; &lt;p&gt;Some inference is needed, but if everybody has their own choice of data sets to query, then everybody would also have their own entailed triples. This will make for an explosion of entailed graphs if forward chaining is used. Forward chaining is very nice because it keeps queries simple and easy to optimize. With Virtuoso, we still favor backward chaining since we expect a great diversity of graph combinations and near infinite volume in the open web scenario. With private repositories of slowly changing data put together for a special application, the situation is different.&lt;/p&gt; &lt;p&gt;In conclusion, we have a real LOD movement with actual momentum and a good idea of what to do next. The next step is promoting this to the broader community, starting with &lt;a href=&quot;http://www.linkeddataplanet.com/&quot; id=&quot;link-id0x155d1d00&quot;&gt;Linked Data Planet&lt;/a&gt; in New York in June.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>On Sem Web Search</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-04-29#1349</atom:id>
  <atom:published>2008-04-29T14:37:21Z</atom:published>
  <atom:updated>2008-10-02T11:37:12.000008-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;On Sem Web Search&lt;/div&gt; &lt;p&gt; &lt;i&gt;&amp;quot;I give the search keywords and you give me a &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1a603f18&quot;&gt;SPARQL&lt;/a&gt; end-point and a query that will get the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1bda5c00&quot;&gt;data&lt;/a&gt;.&amp;quot;&lt;/i&gt; &lt;/p&gt; &lt;p&gt;Thus did one SPARQL user describe the task of a semantic/data web search engine.&lt;/p&gt; &lt;p&gt;In &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1336&quot; id=&quot;link-idff98750&quot;&gt;a previous post&lt;/a&gt;, I suggested that if the data web were the size of the document web, we&amp;#39;d be looking at two orders of magnitude more search complexity. It just might be so.&lt;/p&gt; &lt;p&gt;In the conversation, I pointed out that a search engine might have a copy of everything and even a capability to do SPARQL and full text on it all, yet still the users would be better off doing the queries against the SPARQL end-points of the data publishers. It is a bit like the fact that not all web browsing runs off Google&amp;#39;s cache. With the data web, the point is even more pronounced, as serving a hit from Google&amp;#39;s cache is a small operation but a complex query might be a very large one.&lt;/p&gt; &lt;p&gt;Yet, the data web is about ad-hoc joining between data sets of different origins. Thus a search engine of the data web ought to be capable of joining also, even if large queries ought to be run against individual publishers&amp;#39; end-points or the user&amp;#39;s own data warehouse.&lt;/p&gt; &lt;p&gt;For ranking, the general consensus was that no single hit-ranking would be good for the data web. Thus word frequency-based hit-scores are OK for text hits but more is not obvious. I would think that some link analysis could apply but this will take some more experimentation.&lt;/p&gt; &lt;p&gt;For search summaries, if we have splitting of data sets into small fragments &lt;i&gt;Ã  la&lt;/i&gt; &lt;a href=&quot;http://sindice.com/&quot; id=&quot;link-id0x1d2b7288&quot;&gt;Sindice&lt;/a&gt;, search summaries are pretty much the same as with just text search. If we store triples, then we can give text style summaries of text hits in literals and Fresnel lens views of the structured data around the literal. For showing a page of hits, the lenses must abbreviate heavily but this is still feasible. The engine would know about the most common ontologies and summarize instance data accordingly.&lt;/p&gt; &lt;p&gt;Chris Bizer pointed out that trust and provenance are critical, especially if an answer is arrived at by joining multiple data sets. The trust of the conclusion is no greater than that of the weakest participating document. Different users will have different trusted sources.&lt;/p&gt; &lt;p&gt;A mature data web search engine would combine a provenance/trust specification, a search condition consisting of SPARQL or full text or both, and a specification for hit rank. Again, most searches would use defaults, but these three components should in principle be orthogonally specifiable.&lt;/p&gt; &lt;p&gt;Many places may host the same data set either for download or SPARQL access. The &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id0x1b2317d0&quot;&gt;URI&lt;/a&gt; of the data set is not its &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Locator&quot; id=&quot;link-id0x1c55dd68&quot;&gt;URL&lt;/a&gt;. Different places may further host multiple data sets on one end-point. Thus the search engine ought to return all end-points where the set is to be found. The end-points themselves ought to be able to say what data sets they contain, under what graph IRIs. Since there is no consensus about end-point self description, this too would be left to the search engine. In practice, this could be accomplished by extending Sindice&amp;#39;s semantic site map specification. A possible query would be to find an end-point containing a set of named data sets. If none were found, the search engine itself could run a query joining all the sets since it at least would hold them all.&lt;/p&gt; &lt;p&gt;Since many places will host sets like Wordnet or Uniprot, indexing these once for each copy hardly makes sense. Thus a site should identify its data by the data set&amp;#39;s URI and not the copy&amp;#39;s URL.&lt;/p&gt; &lt;p&gt;It came up in the discussion that search engines should share a ping format so that a single message format would be enough to notify any engine about data being updated. This is already partly the case with Sindice and &lt;a href=&quot;http://www.pingthesemanticweb.com/&quot; id=&quot;link-id0xa405ebd0&quot;&gt;PTSW&lt;/a&gt; (&lt;a href=&quot;http://www.pingthesemanticweb.com/&quot; id=&quot;link-id0x1c051a00&quot;&gt;PingTheSemanticWeb&lt;/a&gt;) sharing a ping format. &lt;/p&gt; &lt;p&gt;Further, since it is no trouble to publish a copy of the 45G Uniprot file but a fair amount of work to index it, search engines should be smart about processing requests to index things, since these can amount to a denial of service attack. &lt;/p&gt; &lt;p&gt;Probably very large data sets should be indexed only in the form supplied by their publisher, and others hosting copies would just state that they hold a copy. If the claim to the copy proved false, users could complain and the search engine administrator would remove the listing. It seems that some manual curating cannot be avoided here. &lt;/p&gt; &lt;h2&gt;On Data Web Search Business Model&lt;/h2&gt; &lt;p&gt;It seems there can be an overlap between the data web search and the data web hosting businesses. For example, Talis rents space for hosting &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1a60c7e0&quot;&gt;RDF&lt;/a&gt; data with SPARQL access. A search engine should offer basic indexing of everything for free, but could charge either data publishers or end users for running SPARQL queries across data sets. These do not have the nicely anticipatable and fairly uniform resource consumption of text lookups. In this manner, a search provider could cost-justify the capacity for allowing arbitrary queries. &lt;/p&gt; &lt;p&gt;The value of the data web consists of unexpected joining. Such joining takes place most efficiently if the sources are at least in some proximity, for example in the same data center. Thus the search provider could monetize functioning as the database provider for mesh-ups. In the document web, publishing pages is very simple and there is no great benefit from co-locating search and pages, rather the opposite. For the data web, the hosting with SPARQL and all is more complex and resembles providing search. Thus providing search can combine with providing SPARQL hosting, once we accept in principle that search should have arbitrary inter-document joining, even if it is at an extra premium.&lt;/p&gt; &lt;p&gt;The present search business model is advertising. If the data web is to be accessed by automated agents such as mesh-up code, display of ads is not self-evident. This is quite separate from the fact that semantics can lead to better ad targeting.&lt;/p&gt; &lt;p&gt;One model would be to do text lookups for free from a regular web page but show ads, just a la Google search ads. Using the service via web services for text or SPARQL would have a cost paid by the searching or publishing party and would not be financed by advertising.&lt;/p&gt; &lt;p&gt;In the case of data used in value-add data products (mesh-ups) that have financial value to their users, the original publisher of the data could even be paid for keeping the data up-to-date. This would hold for any time-sensitive feeds like news or financial feeds. Thus the hosting/search provider would be a broker of data-use fees and the data producer would be in the position of an AdSense inventory owner, i.e., a web site which shows AdSense ads. Organizing this under a hub providing back-office functions similar to an ad network could make sense even if the actual processing were divided among many sites.&lt;/p&gt; &lt;p&gt;Kingsley has repeatedly formulated the core value proposition of the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x3728a2f8&quot;&gt;semantic web&lt;/a&gt; in terms of dealing with &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x1bbcbeb8&quot;&gt;information&lt;/a&gt; overload: There is the real-time enterprise and the real-time individual and both are beasts of perception. Their image is won and lost in the &lt;a href=&quot;http://dbpedia.org/resource/Internet&quot; id=&quot;link-id0x1843b020&quot;&gt;Internet&lt;/a&gt; online conversation space. We know that allegations, even if later proven false, will stick if left unchallenged. The function of semantics on the web is to allow one to track and manage where one stands. In fact, Garlik has made a business of just this, but now from a privacy and security angle. The &lt;a href=&quot;http://www.garlik.com/&quot; id=&quot;link-id0x1aa76ab0&quot;&gt;Garlik DataPatrol&lt;/a&gt; harvests data from diverse sources and allows assessing vulnerability to identity theft, for example.&lt;/p&gt; &lt;p&gt;If one is in the business of collating all the structured data in the world, as a data web search engine is, then providing custom alerts for both security or public image management is quite natural. This can be a very valuable service if it works well.&lt;/p&gt; &lt;p&gt;At OpenLink, we will now experiment with the Sindice/&lt;a href=&quot;http://zitgist.com/about/&quot; id=&quot;link-id0x18800228&quot;&gt;Zitgist&lt;/a&gt;/PingTheSemanticWeb content. This is a regular part of the productization of &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1adf39c8&quot;&gt;Virtuoso&lt;/a&gt;&amp;#39;s cluster edition. We expect to release some results in the next 4 weeks.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>WWW 2008</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-04-29#1348</atom:id>
  <atom:published>2008-04-29T14:37:20Z</atom:published>
  <atom:updated>2008-04-29T13:35:23-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;WWW 2008&lt;/div&gt; &lt;p&gt;Following my return from WWW 2008 in &lt;a href=&quot;http://www2008.org/&quot; id=&quot;link-id0x9ff7d5d0&quot;&gt;Beijing&lt;/a&gt;, I will write a series of &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0x9e4a7650&quot;&gt;blog&lt;/a&gt; posts discussing diverse topics that were brought up in presentations and conversations during the week.&lt;/p&gt; &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x9e7ae398&quot;&gt;Linked data&lt;/a&gt; was our main interest in the conference and there was a one day workshop on this, unfortunately overlapping with a day of W3C Advisory Committee meetings. Hence Tim Berners-Lee, one of the chairs of the workshop, could not attend for most of the day. Still, he was present to say that &amp;quot;&lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0xa287d38&quot;&gt;Linked open data&lt;/a&gt; is the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x15372940&quot;&gt;semantic web&lt;/a&gt; and the web done as it ought to be done.&amp;quot; &lt;p&gt;For my part, I will draw some architecture conclusions from the different talks and extrapolate about the requirements on database platforms for linked data.&lt;/p&gt; &lt;p&gt;Chris Bizer predicted that 2008 would be the year of &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xa1454c58&quot;&gt;data&lt;/a&gt; web search, if 2007 was the year of &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xa0f73c50&quot;&gt;SPARQL&lt;/a&gt;. This may be the case, as linked data is now pretty much a reality and the questions of discovery become prevalent. There was a birds-of-a-feather session on this and I will make some comments on what we intend to explore in bridging between the text index based semantic web search engines and SPARQL.&lt;/p&gt; &lt;p&gt;Andy Seaborne convened a birds-of-a-feather session on the future of SPARQL. Many of the already anticipated and implemented requirements were confirmed and a few were introduced. A separate blog post will discuss these further.&lt;/p&gt; &lt;p&gt;From the various discussions held throughout the conference, we conclude that plug-and-play operation with the major semantic web frameworks of Jena, Sesame, and Redland, is our major immediate-term deliverable. Our efforts in this direction thus far are insufficient and we will next have these done with the right supervision and proper interop testing. The issues are fortunately simple but doing things totally right require some small server side support and some &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id0xa5d4d5b8&quot;&gt;JDBC&lt;/a&gt;/&lt;a href=&quot;http://dbpedia.org/resource/Open_Database_Connectivity&quot; id=&quot;link-id0x9dc28d10&quot;&gt;ODBC&lt;/a&gt; tweaks, so to the interested, we advise to wait for an update to be published on this blog.&lt;/p&gt; &lt;p&gt;I further had a conversation with Andy Seaborne about using Jena reasoning capabilities with &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xa2754050&quot;&gt;Virtuoso&lt;/a&gt; and generally the issues of &amp;quot;impedance mismatch&amp;quot; between reasoning and typical database workloads. More on this later. &lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Linked Data and Information Architecture</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-04-29#1347</atom:id>
  <atom:published>2008-04-29T12:08:24Z</atom:published>
  <atom:updated>2008-04-29T17:18:15.000009-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We had a workshop on &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x9e7e5098&quot;&gt;Linked Open Data&lt;/a&gt; (&lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0xb9e86c8&quot;&gt;LOD&lt;/a&gt;) last week in &lt;a href=&quot;http://www2008.org/&quot; id=&quot;link-id0x131a72a0&quot;&gt;Beijing&lt;/a&gt;. You can see the papers in &lt;a href=&quot;http://events.linkeddata.org/ldow2008/#program&quot; id=&quot;link-id10651ab8&quot;&gt;the program&lt;/a&gt;. The event was a success with plenty of good talks and animated conversation. I will not go into every paper here but will comment a little on the conversation and draw some technology requirements going forward.&lt;/p&gt; &lt;p&gt;Tim Berners-Lee showed a read-write version of &lt;a href=&quot;http://dig.csail.mit.edu/2005/ajar/release/tabulator/0.8/tab.html&quot; id=&quot;link-id0x9da015a0&quot;&gt;Tabulator&lt;/a&gt;. This raises the question of updating on the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x14813578&quot;&gt;Data&lt;/a&gt; Web. The consensus was that one could assert what one wanted in one&amp;#39;s own space but that others&amp;#39; spaces would be read-only. What spaces one considered relevant would be the user&amp;#39;s or developer&amp;#39;s business, as in the document web.&lt;/p&gt; &lt;p&gt;It seems to me that a significant use case of LOD is an open-web situation where the user picks a broad read-only &amp;quot;data wallpaper&amp;quot; or backdrop of assertions, and then uses this combined with a much smaller, local, writable data set. This is certainly the case when editing data for publishing, as in Tim&amp;#39;s demo. This will also be the case when developing mesh-ups combining multiple distinct data sets bound together by sets of SameAs assertions, for example. Questions like, &amp;quot;What is the minimum subset of n data sets needed for deriving the result?&amp;quot; will be common. This will also be the case in applications using proprietary data combined with open data.&lt;/p&gt; &lt;p&gt;This means that databases will have to deal with queries that specify large lists of included graphs, all graphs in the store or all graphs with an exclusion list. All this is quite possible but again should be considered when architecting systems for an open &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x9f1a1d8&quot;&gt;linked data&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Giant_Global_Graph&quot; id=&quot;link-id0xa5a3e1b0&quot;&gt;web&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;&amp;quot;There is data but what can we really do with it? How far can we trust it, and what can we confidently decide based on it?&amp;quot;&lt;/p&gt; &lt;p&gt;As an answer to this question, &lt;a href=&quot;http://zitgist.com/about/&quot; id=&quot;link-id0xad44dc0&quot;&gt;Zitgist&lt;/a&gt; has compiled the &lt;a href=&quot;http://umbel.org/about/&quot; id=&quot;link-id0x9ebde358&quot;&gt;UMBEL&lt;/a&gt; taxonomy using &lt;a href=&quot;http://dbpedia.org/resource/SKOS&quot; id=&quot;link-id0xa04a85c0&quot;&gt;SKOS&lt;/a&gt;. This draws on Wikipedia, Open CYC, Wordnet, and &lt;a href=&quot;http://www.mpi-inf.mpg.de/~suchanek/downloads/yago/&quot; id=&quot;link-id0x9fdd9018&quot;&gt;YAGO&lt;/a&gt;, hence the acronym WOWY. UMBEL is both a taxononmy and a set of instance data, containing a large set of &lt;a href=&quot;http://dbpedia.org/resource/Named_entity_recognition&quot; id=&quot;link-id0xa0b9cb70&quot;&gt;named entities&lt;/a&gt;, including persons, organizations, geopolitical entities, and so forth. By extracting references to this set of named entities from documents and correlating this to the taxonomy, one gets a good idea of what a document (or part thereof) is about.&lt;/p&gt; &lt;p&gt;Kingsley presented this in the Zitgist demo. This is our answer to the criticism about &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0xdc5d940&quot;&gt;DBpedia&lt;/a&gt; having errors in classification. DBpedia, as a bootstrap stage, is about giving names to all things. Subsequent efforts like UMBEL are about refining the relationships.&lt;/p&gt; &lt;p&gt;&amp;quot;Should there be a global &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id0xa0aa2cc0&quot;&gt;URI&lt;/a&gt; dictionary?&amp;quot;&lt;/p&gt; &lt;p&gt;There was a talk by Paolo Bouquet about &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id0x9e6f4b28&quot;&gt;Entity&lt;/a&gt; Name System, a a sort of data DNS, with the purpose of associating some description and rough classification to URIs. This would allow discovering URIs for reuse. I&amp;#39;d say that this is good if it can cut down on the SameAs proliferation and if this can be widely distributed and replicated for resilience, &lt;i&gt;Ã  la&lt;/i&gt; DNS. On the other hand, it was pointed out that this was not quite in the LOD spirit, where parties would mint their own dereferenceable URIs, in their own domains. We&amp;#39;ll see.&lt;/p&gt; &lt;p&gt;&amp;quot;What to do when identity expires?&amp;quot;&lt;/p&gt; &lt;p&gt;Giovanni of Sindice said that a document should be removed from search if it was no longer available. Kingsley pointed out that resilience of reference requires some way to recover data. The data web cannot be less resilient than the document web, and there is a point to having access to history. He recommended hooking up with the &lt;a href=&quot;http://dbpedia.org/resource/Internet&quot; id=&quot;link-id0xcc203f8&quot;&gt;Internet&lt;/a&gt; Archive, since they make long term persistence their business. In this way, if an application depends on data, and the URIs on which it depends are no longer dereferenceable or or provide content from a new owner of the domain, those who need the old version can still get it and host it themselves.&lt;/p&gt; &lt;p&gt;It is increasingly clear that OWL SameAs is both the blessing and bane of linked data. We can easily have tens of URIs for the same thing, especially with people. Still, these should be considered the same.&lt;/p&gt; &lt;p&gt;Returning every synonym in a query answer hardly makes sense but accepting them as input seems almost necessary. This is what we do with &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xa0d28c98&quot;&gt;Virtuoso&lt;/a&gt;&amp;#39;s SameAs support. Even so, this can easily double query times even when there are no synonyms.&lt;/p&gt; &lt;p&gt;Be that as it may, SameAs is here to stay; just consider the mapping of DBpedia to Geonames, for example.&lt;/p&gt; &lt;p&gt;Also, making aberrant SameAs statements can completely poison a data set and lead to absurd query results. Hence choosing which SameAs assertions from which source will be considered seems necessary. In an open web scenario, this leads inevitably to multi-graph queries that can be complex to write with regular &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xc89a768&quot;&gt;SPARQL&lt;/a&gt;. By extension, it seems that a good query would also include the graphs actually used for deriving each result row. This is of course possible but has some implications on how databases should be organized.&lt;/p&gt; &lt;p&gt;Yves Raymond gave a talk about deriving identity between Musicbrainz and Jamendo. I see the issue as a core question of linked data in general. The algorithm Yves presented started with attribute value similarities and then followed related entities. Artists would be the same if they had similar names and similar names of albums with similar song titles, for example. We can find the same basic question in any analysis, for example, looking at how news reporting differs between media, supposing there is adequate entity extraction.&lt;/p&gt; &lt;p&gt;There is basic graph diffing in &lt;a href=&quot;http://data.semanticweb.org/conference/iswc-aswc/2007/tracks/research/papers/533/html&quot; id=&quot;link-id0x9fe62620&quot;&gt;RDFSync&lt;/a&gt;, for example. But here we are expanding the context significantly. We will traverse references to some depth, allow similarity matches, SameAs, and so forth. Having presumed identity of two URIs, we can then look at the difference in their environment to produce a human readable summary. This could then be evaluated for purposes of analysis or of combining content.&lt;/p&gt; &lt;p&gt;At first sight, these algorithms seem well parallelizable, as long as all threads have access to all data. For scaling, this means a probably message-bound distributed algorithm. This is something to look into for the next stage of linked data.&lt;/p&gt; &lt;p&gt;Some inference is needed, but if everybody has their own choice of data sets to query, then everybody would also have their own entailed triples. This will make for an explosion of entailed graphs if forward chaining is used. Forward chaining is very nice because it keeps queries simple and easy to optimize. With Virtuoso, we still favor backward chaining since we expect a great diversity of graph combinations and near infinite volume in the open web scenario. With private repositories of slowly changing data put together for a special application, the situation is different.&lt;/p&gt; &lt;p&gt;In conclusion, we have a real LOD movement with actual momentum and a good idea of what to do next. The next step is promoting this to the broader community, starting with &lt;a href=&quot;http://www.linkeddataplanet.com/&quot; id=&quot;link-id0xa16319a8&quot;&gt;Linked Data Planet&lt;/a&gt; in New York in June.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>On Sem Web Search</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-04-29#1346</atom:id>
  <atom:published>2008-04-29T12:03:47Z</atom:published>
  <atom:updated>2008-10-02T11:37:07.000002-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt; &lt;i&gt;&amp;quot;I give the search keywords and you give me a &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1a474e80&quot;&gt;SPARQL&lt;/a&gt; end-point and a query that will get the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x18e93100&quot;&gt;data&lt;/a&gt;.&amp;quot;&lt;/i&gt; &lt;/p&gt; &lt;p&gt;Thus did one SPARQL user describe the task of a semantic/data web search engine.&lt;/p&gt; &lt;p&gt;In &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1336&quot; id=&quot;link-idff98750&quot;&gt;a previous post&lt;/a&gt;, I suggested that if the data web were the size of the document web, we&amp;#39;d be looking at two orders of magnitude more search complexity. It just might be so.&lt;/p&gt; &lt;p&gt;In the conversation, I pointed out that a search engine might have a copy of everything and even a capability to do SPARQL and full text on it all, yet still the users would be better off doing the queries against the SPARQL end-points of the data publishers. It is a bit like the fact that not all web browsing runs off Google&amp;#39;s cache. With the data web, the point is even more pronounced, as serving a hit from Google&amp;#39;s cache is a small operation but a complex query might be a very large one.&lt;/p&gt; &lt;p&gt;Yet, the data web is about ad-hoc joining between data sets of different origins. Thus a search engine of the data web ought to be capable of joining also, even if large queries ought to be run against individual publishers&amp;#39; end-points or the user&amp;#39;s own data warehouse.&lt;/p&gt; &lt;p&gt;For ranking, the general consensus was that no single hit-ranking would be good for the data web. Thus word frequency-based hit-scores are OK for text hits but more is not obvious. I would think that some link analysis could apply but this will take some more experimentation.&lt;/p&gt; &lt;p&gt;For search summaries, if we have splitting of data sets into small fragments &lt;i&gt;Ã  la&lt;/i&gt; &lt;a href=&quot;http://sindice.com/&quot; id=&quot;link-id0x19f64110&quot;&gt;Sindice&lt;/a&gt;, search summaries are pretty much the same as with just text search. If we store triples, then we can give text style summaries of text hits in literals and Fresnel lens views of the structured data around the literal. For showing a page of hits, the lenses must abbreviate heavily but this is still feasible. The engine would know about the most common ontologies and summarize instance data accordingly.&lt;/p&gt; &lt;p&gt;Chris Bizer pointed out that trust and provenance are critical, especially if an answer is arrived at by joining multiple data sets. The trust of the conclusion is no greater than that of the weakest participating document. Different users will have different trusted sources.&lt;/p&gt; &lt;p&gt;A mature data web search engine would combine a provenance/trust specification, a search condition consisting of SPARQL or full text or both, and a specification for hit rank. Again, most searches would use defaults, but these three components should in principle be orthogonally specifiable.&lt;/p&gt; &lt;p&gt;Many places may host the same data set either for download or SPARQL access. The &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id0x19f34660&quot;&gt;URI&lt;/a&gt; of the data set is not its &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Locator&quot; id=&quot;link-id0x1afbb680&quot;&gt;URL&lt;/a&gt;. Different places may further host multiple data sets on one end-point. Thus the search engine ought to return all end-points where the set is to be found. The end-points themselves ought to be able to say what data sets they contain, under what graph IRIs. Since there is no consensus about end-point self description, this too would be left to the search engine. In practice, this could be accomplished by extending Sindice&amp;#39;s semantic site map specification. A possible query would be to find an end-point containing a set of named data sets. If none were found, the search engine itself could run a query joining all the sets since it at least would hold them all.&lt;/p&gt; &lt;p&gt;Since many places will host sets like Wordnet or Uniprot, indexing these once for each copy hardly makes sense. Thus a site should identify its data by the data set&amp;#39;s URI and not the copy&amp;#39;s URL.&lt;/p&gt; &lt;p&gt;It came up in the discussion that search engines should share a ping format so that a single message format would be enough to notify any engine about data being updated. This is already partly the case with Sindice and &lt;a href=&quot;http://www.pingthesemanticweb.com/&quot; id=&quot;link-id0x17e36628&quot;&gt;PTSW&lt;/a&gt; (&lt;a href=&quot;http://www.pingthesemanticweb.com/&quot; id=&quot;link-id0x1a2a9060&quot;&gt;PingTheSemanticWeb&lt;/a&gt;) sharing a ping format. &lt;/p&gt; &lt;p&gt;Further, since it is no trouble to publish a copy of the 45G Uniprot file but a fair amount of work to index it, search engines should be smart about processing requests to index things, since these can amount to a denial of service attack. &lt;/p&gt; &lt;p&gt;Probably very large data sets should be indexed only in the form supplied by their publisher, and others hosting copies would just state that they hold a copy. If the claim to the copy proved false, users could complain and the search engine administrator would remove the listing. It seems that some manual curating cannot be avoided here. &lt;/p&gt; &lt;h2&gt;On Data Web Search Business Model&lt;/h2&gt; &lt;p&gt;It seems there can be an overlap between the data web search and the data web hosting businesses. For example, Talis rents space for hosting &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x192732f8&quot;&gt;RDF&lt;/a&gt; data with SPARQL access. A search engine should offer basic indexing of everything for free, but could charge either data publishers or end users for running SPARQL queries across data sets. These do not have the nicely anticipatable and fairly uniform resource consumption of text lookups. In this manner, a search provider could cost-justify the capacity for allowing arbitrary queries. &lt;/p&gt; &lt;p&gt;The value of the data web consists of unexpected joining. Such joining takes place most efficiently if the sources are at least in some proximity, for example in the same data center. Thus the search provider could monetize functioning as the database provider for mesh-ups. In the document web, publishing pages is very simple and there is no great benefit from co-locating search and pages, rather the opposite. For the data web, the hosting with SPARQL and all is more complex and resembles providing search. Thus providing search can combine with providing SPARQL hosting, once we accept in principle that search should have arbitrary inter-document joining, even if it is at an extra premium.&lt;/p&gt; &lt;p&gt;The present search business model is advertising. If the data web is to be accessed by automated agents such as mesh-up code, display of ads is not self-evident. This is quite separate from the fact that semantics can lead to better ad targeting.&lt;/p&gt; &lt;p&gt;One model would be to do text lookups for free from a regular web page but show ads, just a la Google search ads. Using the service via web services for text or SPARQL would have a cost paid by the searching or publishing party and would not be financed by advertising.&lt;/p&gt; &lt;p&gt;In the case of data used in value-add data products (mesh-ups) that have financial value to their users, the original publisher of the data could even be paid for keeping the data up-to-date. This would hold for any time-sensitive feeds like news or financial feeds. Thus the hosting/search provider would be a broker of data-use fees and the data producer would be in the position of an AdSense inventory owner, i.e., a web site which shows AdSense ads. Organizing this under a hub providing back-office functions similar to an ad network could make sense even if the actual processing were divided among many sites.&lt;/p&gt; &lt;p&gt;Kingsley has repeatedly formulated the core value proposition of the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x192611e0&quot;&gt;semantic web&lt;/a&gt; in terms of dealing with &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x1b0abcf0&quot;&gt;information&lt;/a&gt; overload: There is the real-time enterprise and the real-time individual and both are beasts of perception. Their image is won and lost in the &lt;a href=&quot;http://dbpedia.org/resource/Internet&quot; id=&quot;link-id0x1b2d4078&quot;&gt;Internet&lt;/a&gt; online conversation space. We know that allegations, even if later proven false, will stick if left unchallenged. The function of semantics on the web is to allow one to track and manage where one stands. In fact, Garlik has made a business of just this, but now from a privacy and security angle. The &lt;a href=&quot;http://www.garlik.com/&quot; id=&quot;link-id0x1a563b50&quot;&gt;Garlik DataPatrol&lt;/a&gt; harvests data from diverse sources and allows assessing vulnerability to identity theft, for example.&lt;/p&gt; &lt;p&gt;If one is in the business of collating all the structured data in the world, as a data web search engine is, then providing custom alerts for both security or public image management is quite natural. This can be a very valuable service if it works well.&lt;/p&gt; &lt;p&gt;At OpenLink, we will now experiment with the Sindice/&lt;a href=&quot;http://zitgist.com/about/&quot; id=&quot;link-id0x1bb17320&quot;&gt;Zitgist&lt;/a&gt;/PingTheSemanticWeb content. This is a regular part of the productization of &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1b20cfc8&quot;&gt;Virtuoso&lt;/a&gt;&amp;#39;s cluster edition. We expect to release some results in the next 4 weeks.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>WWW 2008</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-04-29#1345</atom:id>
  <atom:published>2008-04-29T11:59:16Z</atom:published>
  <atom:updated>2008-04-29T13:35:17-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;Following my return from WWW 2008 in &lt;a href=&quot;http://www2008.org/&quot; id=&quot;link-id0xa1901330&quot;&gt;Beijing&lt;/a&gt;, I will write a series of &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0xd356660&quot;&gt;blog&lt;/a&gt; posts discussing diverse topics that were brought up in presentations and conversations during the week.&lt;/p&gt; &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x1290cb78&quot;&gt;Linked data&lt;/a&gt; was our main interest in the conference and there was a one day workshop on this, unfortunately overlapping with a day of W3C Advisory Committee meetings. Hence Tim Berners-Lee, one of the chairs of the workshop, could not attend for most of the day. Still, he was present to say that &amp;quot;&lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0xa2754050&quot;&gt;Linked open data&lt;/a&gt; is the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0xa099dea8&quot;&gt;semantic web&lt;/a&gt; and the web done as it ought to be done.&amp;quot; &lt;p&gt;For my part, I will draw some architecture conclusions from the different talks and extrapolate about the requirements on database platforms for linked data.&lt;/p&gt; &lt;p&gt;Chris Bizer predicted that 2008 would be the year of &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x9e0f0a98&quot;&gt;data&lt;/a&gt; web search, if 2007 was the year of &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xd9e64a0&quot;&gt;SPARQL&lt;/a&gt;. This may be the case, as linked data is now pretty much a reality and the questions of discovery become prevalent. There was a birds-of-a-feather session on this and I will make some comments on what we intend to explore in bridging between the text index based semantic web search engines and SPARQL.&lt;/p&gt; &lt;p&gt;Andy Seaborne convened a birds-of-a-feather session on the future of SPARQL. Many of the already anticipated and implemented requirements were confirmed and a few were introduced. A separate blog post will discuss these further.&lt;/p&gt; &lt;p&gt;From the various discussions held throughout the conference, we conclude that plug-and-play operation with the major semantic web frameworks of Jena, Sesame, and Redland, is our major immediate-term deliverable. Our efforts in this direction thus far are insufficient and we will next have these done with the right supervision and proper interop testing. The issues are fortunately simple but doing things totally right require some small server side support and some &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id0xacc8c7e8&quot;&gt;JDBC&lt;/a&gt;/&lt;a href=&quot;http://dbpedia.org/resource/Open_Database_Connectivity&quot; id=&quot;link-id0x9e48d258&quot;&gt;ODBC&lt;/a&gt; tweaks, so to the interested, we advise to wait for an update to be published on this blog.&lt;/p&gt; &lt;p&gt;I further had a conversation with Andy Seaborne about using Jena reasoning capabilities with &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x134b8e98&quot;&gt;Virtuoso&lt;/a&gt; and generally the issues of &amp;quot;impedance mismatch&amp;quot; between reasoning and typical database workloads. More on this later. &lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Partitioning and Cluster Config</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-04-14#1340</atom:id>
  <atom:published>2008-04-14T09:41:43Z</atom:published>
  <atom:updated>2008-04-14T16:32:43-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Partitioning and Cluster Config&lt;/div&gt; &lt;p&gt;Now that it is time to nail down the final database format and configuration steps for &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0x1c278550&quot;&gt;Virtuoso&lt;/a&gt; Cluster, we have to make a couple of small choices.&lt;/p&gt; &lt;h3&gt;Design Objective&lt;/h3&gt; &lt;p&gt;While fixed partitioning is good for testing, it is impractical even for measuring scalability, let alone deployment. So fixed partitioning is really a no-go. The best would be entirely dynamic partitioning where the data file split after reaching a certain size and where data files migrated between any number of heterogeneous boxes, so as to equalize pressure, like a liquid fills a container. It would have to be a sluggish cool liquid with a high surface tension, else we would get &amp;quot;Brownian motion&amp;quot; in trying to equalize the pressure too often. But a liquid still.&lt;/p&gt; &lt;p&gt;Sure. Now go implement this with generic RDBMS ACID semantics and the works. Feasible. But while I am a fair-to-good geek, I don&amp;#39;t have time for this right now.&lt;/p&gt; &lt;p&gt;So something in between, then. The auto-migrating files are really a problem for keeping locks, keeping tractable roll forward, special cases in message routing etc. The papers by Google and Amazon allude to this and they stop far short of serializable transaction semantics.&lt;/p&gt; &lt;p&gt;So what is the design target? In practice, running a few hundred database nodes with fault tolerance. The nodes must be allowed to be of different sizes since a one time replace of hundreds of PC&amp;#39;s fits ill with the economy.&lt;/p&gt; &lt;p&gt;Addition and removal of nodes must be without global downtime but putting some partitions in read only mode for restricted periods is OK. Assigning the percentages of the data mass to the nodes can be a DBA task with a utility making suggestions based on measured disk cache hit rates and the like. Partitions and the makeup of the cluster must be maintainable from a single place, no copying of config files or such, nobody can get this right and the screw ups from having cluster nodes disagree about some part of the partition map are so untractable you don&amp;#39;t even want to go there.&lt;/p&gt; &lt;p&gt;So, how is this done? Divide the space of partitioning hashes into say 1K slices. For each slice, give the node numbers that hold this slice of the partitioning space. If there are more nodes, just divide the space in more slices. When a node comes new to the cluster, it manages no slices. Slices from other nodes can be offloaded to the new one by copying their contents. The slice holders put the slice in read only mode and the new node just does an insert-select of the partitions it is meant to take over, no logs or locks needed and all comes in order so insert is 100% in processor cache. When the copy is complete, the slice comes back in read write mode in its new location and the old holders of the slices delete theirs in the background. This is not as quick as shifting database files around but takes far less programming.&lt;/p&gt; &lt;p&gt;To remove a node, reassign its slices and have the assignees read the data, as above. When the copy is done, the node can go off line.&lt;/p&gt; &lt;p&gt;A slight modification of this is for cases where a slice always has more than one holder. Now, if we allocate slices to nodes on the go, keeping would-be replicas on different machines but otherwise equalizing load, we run into a problem with redundancy when we perform an operation that has no specific recipient: Suppose we count a table&amp;#39;s rows, we should send the count request once per every slice. Now, the slice is not the recipient of the request, the cluster node hosting the slice is. We should either qualify the request with what slices it pertains to, which means extra reading and filtering or have it so that no matter the choice of replicas for any operation, there is no overlap between their contents, yet the contents cover every slice. The only simple way to enforce the latter is to have cluster nodes pair-wise as each others&amp;#39; replicas. Nodes will be adding nodes in pairs or threes or whatever number of replicas there will be. Google&amp;#39;s GFS, the file system redundancy layer under Bigtable or Dynamo do not have this problem since they do not deal with generic DBMS semantics. The downside is that if a pair has two different types of boxes, the sizing should go according to the smaller one. No big deal.&lt;/p&gt; &lt;p&gt;If replicas are assigned box by box instead of slice by slice, life is also simpler in terms of roll forward and reconstituting lost nodes.&lt;/p&gt; &lt;p&gt;The complete list of cluster nodes and their slice allocations are kept on a master node. Each node also knows which slices it holds. With the loss of the master the situation can be reconstructed from the others. For normal boot, the nodes get the cluster layout, slice allocation and some config parameters from the master, so that if network addresses change they do not have to be written to each node. These are remembered by each node though, for the event of master failure.&lt;/p&gt; &lt;p&gt;When a Virtuoso 6 database is made, the system objects are partitioned from the get-go. On a single process this has no effect. But since all the data structures exist, the transition from a single process to cluster and back is smooth.&lt;/p&gt; &lt;p&gt;At any time, a database, whether single or cluster, is a self-contained unit. One server process serves one database. It is one-to-many from database to server process. A server process will not mount multiple databases. This could be done but then this would be more changes than fit in the time available so this will not be supported. One can always have multiple server processes and attached tables for genuinely inter-database operations. This said, a single database holds arbitrarily many catalogs and schemas and application objects of all sorts.&lt;/p&gt; &lt;p&gt;In terms of schedule, we do the single copy per partition right now. Duplicate and triplicate copies of partitions are needed as we do some of our web scale things in the pipeline. So a degree of this supported even now but without seamless recovery, so when a replica is offline, the remaining copy is read only. Making this read-write is a matter of a little programming. DDL operations will continue to require all nodes to be online.&lt;/p&gt; &lt;p&gt;As of this writing, we are making the regular test suite run on a cluster with the above described partitioning, a single copy per partition. After this, the database layout will stay constant. The first deployments will go out without replicated partitions. Replicated partitions will follow shortly, together with some of the optimizations mentioned in previous posts.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Architectures for Infinity</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-04-14#1339</atom:id>
  <atom:published>2008-04-14T09:41:42Z</atom:published>
  <atom:updated>2008-04-14T13:19:58.000010-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Architectures for Infinity&lt;/div&gt; &lt;p&gt;A while back, a friend suggested he and I go check out the &lt;a href=&quot;http://www.kurzweilai.net/&quot; id=&quot;link-idfed3e58&quot;&gt;Singularity Summit&lt;/a&gt;, a conference where they talk of strong AI. Well, I am not a singularist. But since singularists are so brazenly provocative, I looked a little to see if there is anything there, engineering-wise.&lt;/p&gt; &lt;p&gt;So, for a change, we&amp;#39;ll be visionary. Read on, I also mention &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id109a58e8&quot;&gt;RDF&lt;/a&gt; at the end.&lt;/p&gt; &lt;p&gt;I will not even begin with arguments about indefinitely continuing a trend. I will just say that nature has continuous and discontinuous features. Computing is at a qualitative bend and things are not as simple as they are blithely cracked up to be. Read HEC, the high end crusader; he has good commentary on architecture. Having absorbed and understood this, you can talk again about a billion-fold increase in computing price/performance.&lt;/p&gt; &lt;p&gt;When I looked further, about uploading, i.e., the sci-fi process of scanning a brain and having it continue its function inside a computer simulation, I actually found some serious work. &lt;a href=&quot;http://p9.hostingprod.com/@modha.org/&quot; id=&quot;link-id10bf26d0&quot;&gt;Dharmendra Modha&lt;/a&gt; at IBM had made a rat-scale cortical simulator running on a 32K node IBM BlueGene, with a 9x slowdown from real time. This is real stuff and in no way meant to be associated with singularism by being mentioned in the same paragraph. Anyway, I was intrigued.&lt;/p&gt; &lt;p&gt;So I asked myself if I could do better. I gave it a fair try, as fair as can be without an actual experiment. The end result is that latency rules. To have deterministic semantics, one must sync across tens of thousands of processors and one cannot entirely eliminate multi-hop messages on the interconnect fabric. If one optimistically precalculates and spreads optimistic results over the cluster, rolling them back will be expensive. Local optimistic computation may have little point since most data points will directly depend on non local data. One needs two sets of wiring, a 3D torus for predominantly close range bulk and a tree for sync, just like the BlueGene has. Making the same from newer hardware makes it more economical but there&amp;#39;s another 8 or so orders of magnitude to go before energy efficiency parity with biology. Anyway, a many-times-over qualitative gap. Human scale in real time might be just there somewhere in reach with the stuff now in pre-release if there were no bounds on cost or power consumption. We&amp;#39;d be talking billions at least and even then it is iffy. But this is of little relevance as long as the rat scale is at the level of a systems test for the platform and not actually simulating a plausible organism in some sort of virtual environment. Anyway, of biology I cannot judge and for the computer science, Modha et al have it figured out about as well as can.&lt;/p&gt; &lt;p&gt;Simulation workloads are not the same as database. Database is easier in a way since any global sync is very rare. 2PC seldom touches every partition and if it does, the time to update was anyway greater than the time to commit. Databases are generally multi-user, with a low level of sync between users and a lot of asynchrony. On the other hand, the general case of database does not have predictable cluster locality. Well, if one has an OLTP app with a controlled set of transactions and reports, then one can partition just for that and have almost 100% affinity between the host serving the connection and the data. With &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id10c92378&quot;&gt;RDF&lt;/a&gt; for example, such is not generally possible or would require such acrobatics of data layout that a DBA would not even begin.&lt;/p&gt; &lt;p&gt;So, for database, there is a pretty much even probability for any connection between the node running the query and any other. True, function shipping can make the messages large and fairly async and latency tolerant.&lt;/p&gt; &lt;p&gt;On the simulation side, it would seem that the wiring can mimic locality of the simulated process. Messages to neighbors are more likely than messages to remote nodes. So a 3D torus works well there, complemented by a tree for control messages, like sending all nodes the count of messages to expect. Of course, the control wiring (reduce tree) must have far less latency than a long path through the torus wiring and steps with long message deliveries on the torus must be rare for this to bring any profit. Also, long distance messages can go through the tree wiring if the volume is not excessive, else the tree top gets congested.&lt;/p&gt; &lt;p&gt;So, looking past the multicore/multithread and a single level switched interconnect, what would the architecture of the total knowledge machine be? For the neural simulation, the above-described is the best I can come up with and IBM already has come up with it anyway. But here I am more concerned with a database/symbol processing workload than about physical simulation. For the record, I&amp;#39;ll say that I expect no strong AI to emerge from these pursuits but that they will still be useful, basically as a support for a linked data &amp;quot;planetary datasphere.&amp;quot; Like Google, except it supports arbitrary queries joining arbitrary data at web scale. This would be a couple of orders of magnitude above the text index of same. Now, in practice, most queries will be rather trivial, so it is not that the 2 orders of magnitude are always realized. This would also involve a bit more updating than the equivalent text index since reports would now and then include private materialized inference results. As a general rule, backward chaining would be nicer, since this is read only but some private workspaces for distilling data cannot be avoided.&lt;/p&gt; &lt;p&gt;So, given this general spec, where should architecture go? We can talk of processors, networks and software in turn.&lt;/p&gt; &lt;h3&gt;Processors &lt;/h3&gt; &lt;p&gt;For evaluating processors, the archetypal task is doing a single random lookup out of a big index. Whether it is a B tree or hash is not really essential since both will have to be built of fixed size pages and will have more than one level. Both need some serialization for checking if things are in memory and for pinning them in cache for the duration of processing. This is eternally true as long as updates are permitted, even if RAM were the bottom of the hierarchy. And if not, then there is the checking of whether a page is in memory and the logic for pinning it.&lt;/p&gt; &lt;p&gt;This means critical sections on shared data structures with small memory writes inside. This is anathema, yet true. So, what the processor needs is shared memory for threads and if possible an instruction for entry into a read-write lock. If the lock is busy, there should be a settable interval before the thread is removed from the core. With a multithread core, this should be just like a memory cache miss. Only if this were really prolonged would there be an interrupt to run the OS scheduler to vacate the thread and load something else, and not even this if the number of executable threads were less or equal the number of threads on the cores. &lt;/p&gt; &lt;p&gt;For thread sync structures, the transactional memory ideas on the SPARC ROC might be going in this direction. For on-core threading, I have not tried how well SPARC T2 does but with the right OS support, it might be in the ballpark. The X86_64 chips have nice thread speed but the OS, whether Solaris or Linux, is a disaster if a mutex is busy. Don&amp;#39;t know why but so it is.&lt;/p&gt; &lt;p&gt;Things like IBM Cell, with multiple integrated distributed memory processors on a chip might be workable if they had hardware for global critical sections and if sub-microsecond tasks could be profitably dispatched to the specialized cores (synergistic unit in Cell terminology). If an index lookup, about 2-4 microseconds of real time, could be profitably carried out on a synergistic core without sinking it all in sync delays on the main core, there might be some gain to this. Still, operations like cache lookups tend to be pointer chasing and latency of small memory reads and sometimes writes is a big factor. I have not measured Cell for this but it is not advertised for this sort of workload. It might do nicely for the neuron simulator but not for generic database, I would guess.&lt;/p&gt; &lt;h3&gt;Networks and Data Center &lt;/h3&gt; &lt;p&gt;The point at which distributed memory wins over shared determines the size of the single compute node. Problems of threads and critical sections fall off but are replaced by network and the troubles of scheduling and serializing and de-serializing messages. There are really huge shared memory systems (by Cray, for example) but even there, hitting the wrong address sends a high latency message over an internal switched fabric, a bit like a network page fault. Well, if one has millions of threads runnable for catching the slack of memory access over interconnect, this might not be so bad, but this is not really the architecture for a general purpose database. So, at some point, we have clearly demarcated distributed memory with affinity of data to processor, simple as that.&lt;/p&gt; &lt;p&gt;For now, the high end clustered database benchmarks run off 1 Gbit ethernet fabrics with some 30 compute nodes on a single switch. This is for shared nothing systems. For shared disk, cache fusion systems like Oracle RAC, we have more heavy duty networking like Infiniband, as one would expect. I have discussed the merits of cache fusion vs shared nothing partitioning on in a previous post.&lt;/p&gt; &lt;p&gt;As long as we are at a scale that fits on a single switch with even port to port latency, we are set. For an &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x1c4a5de8&quot;&gt;RDF&lt;/a&gt; workload, throughput is not really the issue but latency can be. With today&amp;#39;s technology, nodes with 4-8 cores and 16G RAM are practical and their number is most often not really large. Adding two orders of magnitude, we get more questions. Let&amp;#39;s say that 2 billion triples fit with relative comfort but not without disk on a 16G RAM node. This would make 500 nodes for a trillion triples. &lt;/p&gt; &lt;p&gt;This is an entirely relevant and reasonable scale, considering that loading all public biomedical sets plus a pharma company&amp;#39;s in house data could approach this ballpark. Let alone anything on the scale of the social web, i.e., the online conversation space.&lt;/p&gt; &lt;p&gt;So how to manage clusters like this? The current cluster gear is oriented toward switch trees and is fairly expensive, about $1000 per node. To make this easy, we would need a wiring free, modular architecture. Picture a shelf with SATA drive size bays, each would get a compute node of 8 cores and 16G plus interconnect. To simplify the network, the module would have a laser on each side, for a cube network topology, the enclosure could connect the edges with fiber optics for the 3D torus. Mass storage would be in the same form factor, as disks or flashes to be interspersed in the proper ratio with compute nodes. All would have the same communication chip, something like a Cray SeaStar with 6 or 7 external ports. A seventh port could be used for a reduce tree. The rack would provide cooling on the shelves by circulating a coolant fluid. Reconfiguring and scaling would be a matter of adding shelves to the cabinet and laying out Lego bricks, blue for compute and red for storage. The network could achieve a latency for an arbitrary point to point message of no more than 10-20 microseconds by the right mix of cube and tree. This in a box of thousands of nodes.&lt;/p&gt; &lt;p&gt;This type of layout would accommodate web scale without needing rows and rows of rack cabinets.&lt;/p&gt; &lt;p&gt;The external interfaces for web requests and replies are no big deal after this, since the intra-cluster traffic is orders of magnitude higher than the result set traffic. After all, the end user does not want dumps of the database but highly refined and ranked results.&lt;/p&gt; &lt;h3&gt;Software &lt;/h3&gt; &lt;p&gt;We have previously talked about dynamic partitions a la Google Bigtable or Amazon Dynamo. These techniques are entirely fine and will serve for the universal knowledge store. &lt;/p&gt; &lt;p&gt;But what about query logic? OK, having a consistent map of partitions shared over tens of thousands of nodes is entirely possible. So is replication and logic for using a spatially closer partition when multiple copies are know to exist. These things take some programming but there is nothing really new about them. These are a direct straightforward extension of what we do for clustering right now. &lt;/p&gt; &lt;p&gt;But look to windward. How to run complex queries and inference on the platform outlined above? There are some features of RDF querying like same-as that can be easily parallelized, backward-chaining style: Just proceed with the value at hand and initiate the lookup of synonyms and let them get processed when they become available. Same for subclass and sub-property. We already do this, but could do it with more parallelism.&lt;/p&gt; &lt;p&gt;No matter what advances in architecture take place, I do not see a world where every user materializes the entailment of their own same-as-es and rules over a web scale data set. So, backward chaining approaches to inference must develop. Luckily, what most queries need is simple. A rule-oriented language, like Prolog without cut will parallelize well enough. Some degree of memoization may be appropriate for cutting down on re-proving the same thing over and over. Memoization over a cluster is a problem though, since this involves messages. I should say that one should not go looking for pre-proven things beyond the node at hand and that computation should not spread too quickly or too promiscuously so as not to make long message paths. We must remember that a totally even round trip time on a large cluster just will not happen.&lt;/p&gt; &lt;p&gt;Query planning on any system critically depends on correct ballpark guesses on cardinality. If predicates are amplified with transitivity and same-as at run time, the cardinality guessing becomes harder. This can kill any plan no matter the hardware. Probably, an executing query must be annotated with the underlying cardinality assumptions. If these prove radically false, the execution may abort and a new plan be made to better match what was found out. This bears some looking into. &lt;/p&gt; &lt;p&gt;There are some network algorithms like shortest path, traveling salesman and similar that probably deserve a special operator in the query language. These can benefit from parallelization and a sequential implementation running on a cluster with latency will be a disaster. Expressing the message flow in a rule language is not really simple and pretty much no programmer will either appreciate the necessity or go to the trouble. Therefore such things should likely be offered by the platform and made by the few people who understand such matters.&lt;/p&gt; &lt;p&gt;For forward chaining, it seems that any results should generally go into their own graph so as not to pollute the base data. This graph, supposing it is small enough, can have different partitioning from the large base data set. If the data comes from far and wide but results are local, there is better usage of a RETE like algorithm for triggering inference when data comes in. RETE will parallelize well enough, also for clusters,results just have to be broadcast to the nodes that may have a use for them.&lt;/p&gt; &lt;p&gt;The programming model will typically be using a set of local overlays on a large shared data set. Queries will most often not be against a single graph. Strict transactionality will be the exception rather than the rule. At the database node level, there must be real transactionality even if the whole system most often did not run with strict ACID semantics. This is due to ACID requirements of some internal ops, e.g., some bitmap index operations, log checkpoints, DDL changes, etc.&lt;/p&gt; &lt;p&gt;For procedural tasks, map-reduce is OK. We have it even &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1270&quot; id=&quot;link-id10b7ac00&quot;&gt;in our SQL&lt;/a&gt;. Map-reduce is not the basis for making a DBMS but it is a nice feature for some parts of query evaluation and application logic.&lt;/p&gt; &lt;p&gt;We have not talked about linking the data itself, but there is a whole workshop on this next week in &lt;a href=&quot;http://www2008.org/&quot; id=&quot;link-id14a5aa00&quot;&gt;Beijing&lt;/a&gt;; I will write about it separately. Let this just serve to state that we are serious about the platform for this, present and future.&lt;/p&gt; &lt;h3&gt;Conclusion &lt;/h3&gt; &lt;p&gt;The web scale database, the Google with arbitrary joining and inference, is one generation away, talking of economical implementation. Today, a price tag of $100K will buy some 50-100 billion triples worth with reasonable query response. Unlimited budget will take this a bit further, like one order of magnitude. and then, returns might be decreasing.&lt;/p&gt; &lt;p&gt;Of course, this is worth nothing if the software isn&amp;#39;t there. &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-idfdcf058&quot;&gt;Virtuoso&lt;/a&gt; with its cluster edition will allow one to use unlimited RAM and processors. The frontier is now at getting just the right parallelism for each task, including inference ones.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Cluster Update</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-04-14#1338</atom:id>
  <atom:published>2008-04-14T09:41:41Z</atom:published>
  <atom:updated>2008-04-14T12:42:22.000006-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Virtuoso Cluster Update&lt;/div&gt; &lt;p&gt;We now have &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id10beda60&quot;&gt;Virtuoso&lt;/a&gt; 6 running most of its test suite in single process and cluster modes. It is now time to finalize how it is to be configured and deployed. A bit more on this later.&lt;/p&gt; &lt;p&gt;We would have been done in about half time if we had not also redone the database physical layout with key compression. Still, if we get 3x more data in the same memory, using 64 bit ids for everything, the effort is justified. For any size above 2 billion triples, this means 3x less cost.&lt;/p&gt; &lt;p&gt;A good amount of the time and effort goes into everything except the core. Of course, we first do the optimizations we find appropriate and measure them. After all, the rest has no point if these do not run in the desired ballpark.&lt;/p&gt; &lt;p&gt;For delivering something, the requirements are quite the opposite: For example, when when defining a unique index, what to do when the billionth key turns out not to be unique? And then what if one of the processes is killed during the operation? Does it all come out right also when played from the roll forward log? See what I mean? There is no end of such.&lt;/p&gt; &lt;p&gt;So, well after we are done with the basic functionality, we have to deal with this sort of thing. Even if we limited ourselves to &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0xa1c2a768&quot;&gt;RDF&lt;/a&gt; workloads only in the first cut, we still would need to do this since maintaining this would simply not be possible without some generic DBMS functionality. So we get the full feature generic clustered RDBMS in the same cut, no splitting the deliverable.&lt;/p&gt; &lt;p&gt;The basic cluster execution model is described &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/clusterprogrammingsqlexmod.html&quot; id=&quot;link-id14a5cab0&quot;&gt;here&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;There are some further optimizations that we will do at and around the time of first public cut.&lt;/p&gt; &lt;p&gt;These have to do mostly with execution scheduling. For example, a bitmap intersection join must be done differently from a single server when there is latency in getting the next chunk of bits. Value sub-queries, derived tables and existences must be started as batches, just like joined tables.&lt;/p&gt; &lt;p&gt;Having too many threads on an index is no good. But having a large batch of random lookups to work with, even when each of them does not have its own thread, gives some possibilities for IO optimization. When one would block for disk, start the disk asynchronously, like with a read ahead and do the next index lookup from the batch. This is specially so in cluster situations where the index lookups naturally come in &amp;quot;pre-vectored&amp;quot; batches. You could say that the loop join is rolled out. This is done anyhow for message latency reasons.&lt;/p&gt; &lt;p&gt;Do we optimize for the right stuff? Well, looking into the future, it does not look like regular RAM will be the bottom of the storage hierarchy, no matter how you look at it. With solid state disks, locality may not be so important but latency is there to stay. With everything now growing sideways, as in number of cores and core multithreading, we are just looking to deepening our already warm and intimate relationship with the Moira which cuts the thread, Atropos, Lady Latency. The attention of the best minds of the industry is devoted to thee. pouring forth of the effort of the best minds in the industry.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Partitioning and Cluster Config</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-04-14#1337</atom:id>
  <atom:published>2008-04-14T09:37:29Z</atom:published>
  <atom:updated>2008-04-14T16:32:38-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;Now that it is time to nail down the final database format and configuration steps for &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0x16952828&quot;&gt;Virtuoso&lt;/a&gt; Cluster, we have to make a couple of small choices.&lt;/p&gt; &lt;h3&gt;Design Objective&lt;/h3&gt; &lt;p&gt;While fixed partitioning is good for testing, it is impractical even for measuring scalability, let alone deployment. So fixed partitioning is really a no-go. The best would be entirely dynamic partitioning where the data file split after reaching a certain size and where data files migrated between any number of heterogeneous boxes, so as to equalize pressure, like a liquid fills a container. It would have to be a sluggish cool liquid with a high surface tension, else we would get &amp;quot;Brownian motion&amp;quot; in trying to equalize the pressure too often. But a liquid still.&lt;/p&gt; &lt;p&gt;Sure. Now go implement this with generic RDBMS ACID semantics and the works. Feasible. But while I am a fair-to-good geek, I don&amp;#39;t have time for this right now.&lt;/p&gt; &lt;p&gt;So something in between, then. The auto-migrating files are really a problem for keeping locks, keeping tractable roll forward, special cases in message routing etc. The papers by Google and Amazon allude to this and they stop far short of serializable transaction semantics.&lt;/p&gt; &lt;p&gt;So what is the design target? In practice, running a few hundred database nodes with fault tolerance. The nodes must be allowed to be of different sizes since a one time replace of hundreds of PC&amp;#39;s fits ill with the economy.&lt;/p&gt; &lt;p&gt;Addition and removal of nodes must be without global downtime but putting some partitions in read only mode for restricted periods is OK. Assigning the percentages of the data mass to the nodes can be a DBA task with a utility making suggestions based on measured disk cache hit rates and the like. Partitions and the makeup of the cluster must be maintainable from a single place, no copying of config files or such, nobody can get this right and the screw ups from having cluster nodes disagree about some part of the partition map are so untractable you don&amp;#39;t even want to go there.&lt;/p&gt; &lt;p&gt;So, how is this done? Divide the space of partitioning hashes into say 1K slices. For each slice, give the node numbers that hold this slice of the partitioning space. If there are more nodes, just divide the space in more slices. When a node comes new to the cluster, it manages no slices. Slices from other nodes can be offloaded to the new one by copying their contents. The slice holders put the slice in read only mode and the new node just does an insert-select of the partitions it is meant to take over, no logs or locks needed and all comes in order so insert is 100% in processor cache. When the copy is complete, the slice comes back in read write mode in its new location and the old holders of the slices delete theirs in the background. This is not as quick as shifting database files around but takes far less programming.&lt;/p&gt; &lt;p&gt;To remove a node, reassign its slices and have the assignees read the data, as above. When the copy is done, the node can go off line.&lt;/p&gt; &lt;p&gt;A slight modification of this is for cases where a slice always has more than one holder. Now, if we allocate slices to nodes on the go, keeping would-be replicas on different machines but otherwise equalizing load, we run into a problem with redundancy when we perform an operation that has no specific recipient: Suppose we count a table&amp;#39;s rows, we should send the count request once per every slice. Now, the slice is not the recipient of the request, the cluster node hosting the slice is. We should either qualify the request with what slices it pertains to, which means extra reading and filtering or have it so that no matter the choice of replicas for any operation, there is no overlap between their contents, yet the contents cover every slice. The only simple way to enforce the latter is to have cluster nodes pair-wise as each others&amp;#39; replicas. Nodes will be adding nodes in pairs or threes or whatever number of replicas there will be. Google&amp;#39;s GFS, the file system redundancy layer under Bigtable or Dynamo do not have this problem since they do not deal with generic DBMS semantics. The downside is that if a pair has two different types of boxes, the sizing should go according to the smaller one. No big deal.&lt;/p&gt; &lt;p&gt;If replicas are assigned box by box instead of slice by slice, life is also simpler in terms of roll forward and reconstituting lost nodes.&lt;/p&gt; &lt;p&gt;The complete list of cluster nodes and their slice allocations are kept on a master node. Each node also knows which slices it holds. With the loss of the master the situation can be reconstructed from the others. For normal boot, the nodes get the cluster layout, slice allocation and some config parameters from the master, so that if network addresses change they do not have to be written to each node. These are remembered by each node though, for the event of master failure.&lt;/p&gt; &lt;p&gt;When a Virtuoso 6 database is made, the system objects are partitioned from the get-go. On a single process this has no effect. But since all the data structures exist, the transition from a single process to cluster and back is smooth.&lt;/p&gt; &lt;p&gt;At any time, a database, whether single or cluster, is a self-contained unit. One server process serves one database. It is one-to-many from database to server process. A server process will not mount multiple databases. This could be done but then this would be more changes than fit in the time available so this will not be supported. One can always have multiple server processes and attached tables for genuinely inter-database operations. This said, a single database holds arbitrarily many catalogs and schemas and application objects of all sorts.&lt;/p&gt; &lt;p&gt;In terms of schedule, we do the single copy per partition right now. Duplicate and triplicate copies of partitions are needed as we do some of our web scale things in the pipeline. So a degree of this supported even now but without seamless recovery, so when a replica is offline, the remaining copy is read only. Making this read-write is a matter of a little programming. DDL operations will continue to require all nodes to be online.&lt;/p&gt; &lt;p&gt;As of this writing, we are making the regular test suite run on a cluster with the above described partitioning, a single copy per partition. After this, the database layout will stay constant. The first deployments will go out without replicated partitions. Replicated partitions will follow shortly, together with some of the optimizations mentioned in previous posts.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Architectures for Infinity</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-04-14#1336</atom:id>
  <atom:published>2008-04-14T09:32:40Z</atom:published>
  <atom:updated>2008-04-14T13:19:56-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;A while back, a friend suggested he and I go check out the &lt;a href=&quot;http://www.kurzweilai.net/&quot; id=&quot;link-idfed3e58&quot;&gt;Singularity Summit&lt;/a&gt;, a conference where they talk of strong AI. Well, I am not a singularist. But since singularists are so brazenly provocative, I looked a little to see if there is anything there, engineering-wise.&lt;/p&gt; &lt;p&gt;So, for a change, we&amp;#39;ll be visionary. Read on, I also mention &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id109a58e8&quot;&gt;RDF&lt;/a&gt; at the end.&lt;/p&gt; &lt;p&gt;I will not even begin with arguments about indefinitely continuing a trend. I will just say that nature has continuous and discontinuous features. Computing is at a qualitative bend and things are not as simple as they are blithely cracked up to be. Read HEC, the high end crusader; he has good commentary on architecture. Having absorbed and understood this, you can talk again about a billion-fold increase in computing price/performance.&lt;/p&gt; &lt;p&gt;When I looked further, about uploading, i.e., the sci-fi process of scanning a brain and having it continue its function inside a computer simulation, I actually found some serious work. &lt;a href=&quot;http://p9.hostingprod.com/@modha.org/&quot; id=&quot;link-id10bf26d0&quot;&gt;Dharmendra Modha&lt;/a&gt; at IBM had made a rat-scale cortical simulator running on a 32K node IBM BlueGene, with a 9x slowdown from real time. This is real stuff and in no way meant to be associated with singularism by being mentioned in the same paragraph. Anyway, I was intrigued.&lt;/p&gt; &lt;p&gt;So I asked myself if I could do better. I gave it a fair try, as fair as can be without an actual experiment. The end result is that latency rules. To have deterministic semantics, one must sync across tens of thousands of processors and one cannot entirely eliminate multi-hop messages on the interconnect fabric. If one optimistically precalculates and spreads optimistic results over the cluster, rolling them back will be expensive. Local optimistic computation may have little point since most data points will directly depend on non local data. One needs two sets of wiring, a 3D torus for predominantly close range bulk and a tree for sync, just like the BlueGene has. Making the same from newer hardware makes it more economical but there&amp;#39;s another 8 or so orders of magnitude to go before energy efficiency parity with biology. Anyway, a many-times-over qualitative gap. Human scale in real time might be just there somewhere in reach with the stuff now in pre-release if there were no bounds on cost or power consumption. We&amp;#39;d be talking billions at least and even then it is iffy. But this is of little relevance as long as the rat scale is at the level of a systems test for the platform and not actually simulating a plausible organism in some sort of virtual environment. Anyway, of biology I cannot judge and for the computer science, Modha et al have it figured out about as well as can.&lt;/p&gt; &lt;p&gt;Simulation workloads are not the same as database. Database is easier in a way since any global sync is very rare. 2PC seldom touches every partition and if it does, the time to update was anyway greater than the time to commit. Databases are generally multi-user, with a low level of sync between users and a lot of asynchrony. On the other hand, the general case of database does not have predictable cluster locality. Well, if one has an OLTP app with a controlled set of transactions and reports, then one can partition just for that and have almost 100% affinity between the host serving the connection and the data. With &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id10c92378&quot;&gt;RDF&lt;/a&gt; for example, such is not generally possible or would require such acrobatics of data layout that a DBA would not even begin.&lt;/p&gt; &lt;p&gt;So, for database, there is a pretty much even probability for any connection between the node running the query and any other. True, function shipping can make the messages large and fairly async and latency tolerant.&lt;/p&gt; &lt;p&gt;On the simulation side, it would seem that the wiring can mimic locality of the simulated process. Messages to neighbors are more likely than messages to remote nodes. So a 3D torus works well there, complemented by a tree for control messages, like sending all nodes the count of messages to expect. Of course, the control wiring (reduce tree) must have far less latency than a long path through the torus wiring and steps with long message deliveries on the torus must be rare for this to bring any profit. Also, long distance messages can go through the tree wiring if the volume is not excessive, else the tree top gets congested.&lt;/p&gt; &lt;p&gt;So, looking past the multicore/multithread and a single level switched interconnect, what would the architecture of the total knowledge machine be? For the neural simulation, the above-described is the best I can come up with and IBM already has come up with it anyway. But here I am more concerned with a database/symbol processing workload than about physical simulation. For the record, I&amp;#39;ll say that I expect no strong AI to emerge from these pursuits but that they will still be useful, basically as a support for a linked data &amp;quot;planetary datasphere.&amp;quot; Like Google, except it supports arbitrary queries joining arbitrary data at web scale. This would be a couple of orders of magnitude above the text index of same. Now, in practice, most queries will be rather trivial, so it is not that the 2 orders of magnitude are always realized. This would also involve a bit more updating than the equivalent text index since reports would now and then include private materialized inference results. As a general rule, backward chaining would be nicer, since this is read only but some private workspaces for distilling data cannot be avoided.&lt;/p&gt; &lt;p&gt;So, given this general spec, where should architecture go? We can talk of processors, networks and software in turn.&lt;/p&gt; &lt;h3&gt;Processors &lt;/h3&gt; &lt;p&gt;For evaluating processors, the archetypal task is doing a single random lookup out of a big index. Whether it is a B tree or hash is not really essential since both will have to be built of fixed size pages and will have more than one level. Both need some serialization for checking if things are in memory and for pinning them in cache for the duration of processing. This is eternally true as long as updates are permitted, even if RAM were the bottom of the hierarchy. And if not, then there is the checking of whether a page is in memory and the logic for pinning it.&lt;/p&gt; &lt;p&gt;This means critical sections on shared data structures with small memory writes inside. This is anathema, yet true. So, what the processor needs is shared memory for threads and if possible an instruction for entry into a read-write lock. If the lock is busy, there should be a settable interval before the thread is removed from the core. With a multithread core, this should be just like a memory cache miss. Only if this were really prolonged would there be an interrupt to run the OS scheduler to vacate the thread and load something else, and not even this if the number of executable threads were less or equal the number of threads on the cores. &lt;/p&gt; &lt;p&gt;For thread sync structures, the transactional memory ideas on the SPARC ROC might be going in this direction. For on-core threading, I have not tried how well SPARC T2 does but with the right OS support, it might be in the ballpark. The X86_64 chips have nice thread speed but the OS, whether Solaris or Linux, is a disaster if a mutex is busy. Don&amp;#39;t know why but so it is.&lt;/p&gt; &lt;p&gt;Things like IBM Cell, with multiple integrated distributed memory processors on a chip might be workable if they had hardware for global critical sections and if sub-microsecond tasks could be profitably dispatched to the specialized cores (synergistic unit in Cell terminology). If an index lookup, about 2-4 microseconds of real time, could be profitably carried out on a synergistic core without sinking it all in sync delays on the main core, there might be some gain to this. Still, operations like cache lookups tend to be pointer chasing and latency of small memory reads and sometimes writes is a big factor. I have not measured Cell for this but it is not advertised for this sort of workload. It might do nicely for the neuron simulator but not for generic database, I would guess.&lt;/p&gt; &lt;h3&gt;Networks and Data Center &lt;/h3&gt; &lt;p&gt;The point at which distributed memory wins over shared determines the size of the single compute node. Problems of threads and critical sections fall off but are replaced by network and the troubles of scheduling and serializing and de-serializing messages. There are really huge shared memory systems (by Cray, for example) but even there, hitting the wrong address sends a high latency message over an internal switched fabric, a bit like a network page fault. Well, if one has millions of threads runnable for catching the slack of memory access over interconnect, this might not be so bad, but this is not really the architecture for a general purpose database. So, at some point, we have clearly demarcated distributed memory with affinity of data to processor, simple as that.&lt;/p&gt; &lt;p&gt;For now, the high end clustered database benchmarks run off 1 Gbit ethernet fabrics with some 30 compute nodes on a single switch. This is for shared nothing systems. For shared disk, cache fusion systems like Oracle RAC, we have more heavy duty networking like Infiniband, as one would expect. I have discussed the merits of cache fusion vs shared nothing partitioning on in a previous post.&lt;/p&gt; &lt;p&gt;As long as we are at a scale that fits on a single switch with even port to port latency, we are set. For an &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x1830ce48&quot;&gt;RDF&lt;/a&gt; workload, throughput is not really the issue but latency can be. With today&amp;#39;s technology, nodes with 4-8 cores and 16G RAM are practical and their number is most often not really large. Adding two orders of magnitude, we get more questions. Let&amp;#39;s say that 2 billion triples fit with relative comfort but not without disk on a 16G RAM node. This would make 500 nodes for a trillion triples. &lt;/p&gt; &lt;p&gt;This is an entirely relevant and reasonable scale, considering that loading all public biomedical sets plus a pharma company&amp;#39;s in house data could approach this ballpark. Let alone anything on the scale of the social web, i.e., the online conversation space.&lt;/p&gt; &lt;p&gt;So how to manage clusters like this? The current cluster gear is oriented toward switch trees and is fairly expensive, about $1000 per node. To make this easy, we would need a wiring free, modular architecture. Picture a shelf with SATA drive size bays, each would get a compute node of 8 cores and 16G plus interconnect. To simplify the network, the module would have a laser on each side, for a cube network topology, the enclosure could connect the edges with fiber optics for the 3D torus. Mass storage would be in the same form factor, as disks or flashes to be interspersed in the proper ratio with compute nodes. All would have the same communication chip, something like a Cray SeaStar with 6 or 7 external ports. A seventh port could be used for a reduce tree. The rack would provide cooling on the shelves by circulating a coolant fluid. Reconfiguring and scaling would be a matter of adding shelves to the cabinet and laying out Lego bricks, blue for compute and red for storage. The network could achieve a latency for an arbitrary point to point message of no more than 10-20 microseconds by the right mix of cube and tree. This in a box of thousands of nodes.&lt;/p&gt; &lt;p&gt;This type of layout would accommodate web scale without needing rows and rows of rack cabinets.&lt;/p&gt; &lt;p&gt;The external interfaces for web requests and replies are no big deal after this, since the intra-cluster traffic is orders of magnitude higher than the result set traffic. After all, the end user does not want dumps of the database but highly refined and ranked results.&lt;/p&gt; &lt;h3&gt;Software &lt;/h3&gt; &lt;p&gt;We have previously talked about dynamic partitions a la Google Bigtable or Amazon Dynamo. These techniques are entirely fine and will serve for the universal knowledge store. &lt;/p&gt; &lt;p&gt;But what about query logic? OK, having a consistent map of partitions shared over tens of thousands of nodes is entirely possible. So is replication and logic for using a spatially closer partition when multiple copies are know to exist. These things take some programming but there is nothing really new about them. These are a direct straightforward extension of what we do for clustering right now. &lt;/p&gt; &lt;p&gt;But look to windward. How to run complex queries and inference on the platform outlined above? There are some features of RDF querying like same-as that can be easily parallelized, backward-chaining style: Just proceed with the value at hand and initiate the lookup of synonyms and let them get processed when they become available. Same for subclass and sub-property. We already do this, but could do it with more parallelism.&lt;/p&gt; &lt;p&gt;No matter what advances in architecture take place, I do not see a world where every user materializes the entailment of their own same-as-es and rules over a web scale data set. So, backward chaining approaches to inference must develop. Luckily, what most queries need is simple. A rule-oriented language, like Prolog without cut will parallelize well enough. Some degree of memoization may be appropriate for cutting down on re-proving the same thing over and over. Memoization over a cluster is a problem though, since this involves messages. I should say that one should not go looking for pre-proven things beyond the node at hand and that computation should not spread too quickly or too promiscuously so as not to make long message paths. We must remember that a totally even round trip time on a large cluster just will not happen.&lt;/p&gt; &lt;p&gt;Query planning on any system critically depends on correct ballpark guesses on cardinality. If predicates are amplified with transitivity and same-as at run time, the cardinality guessing becomes harder. This can kill any plan no matter the hardware. Probably, an executing query must be annotated with the underlying cardinality assumptions. If these prove radically false, the execution may abort and a new plan be made to better match what was found out. This bears some looking into. &lt;/p&gt; &lt;p&gt;There are some network algorithms like shortest path, traveling salesman and similar that probably deserve a special operator in the query language. These can benefit from parallelization and a sequential implementation running on a cluster with latency will be a disaster. Expressing the message flow in a rule language is not really simple and pretty much no programmer will either appreciate the necessity or go to the trouble. Therefore such things should likely be offered by the platform and made by the few people who understand such matters.&lt;/p&gt; &lt;p&gt;For forward chaining, it seems that any results should generally go into their own graph so as not to pollute the base data. This graph, supposing it is small enough, can have different partitioning from the large base data set. If the data comes from far and wide but results are local, there is better usage of a RETE like algorithm for triggering inference when data comes in. RETE will parallelize well enough, also for clusters,results just have to be broadcast to the nodes that may have a use for them.&lt;/p&gt; &lt;p&gt;The programming model will typically be using a set of local overlays on a large shared data set. Queries will most often not be against a single graph. Strict transactionality will be the exception rather than the rule. At the database node level, there must be real transactionality even if the whole system most often did not run with strict ACID semantics. This is due to ACID requirements of some internal ops, e.g., some bitmap index operations, log checkpoints, DDL changes, etc.&lt;/p&gt; &lt;p&gt;For procedural tasks, map-reduce is OK. We have it even &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1270&quot; id=&quot;link-id10b7ac00&quot;&gt;in our SQL&lt;/a&gt;. Map-reduce is not the basis for making a DBMS but it is a nice feature for some parts of query evaluation and application logic.&lt;/p&gt; &lt;p&gt;We have not talked about linking the data itself, but there is a whole workshop on this next week in &lt;a href=&quot;http://www2008.org/&quot; id=&quot;link-id14a5aa00&quot;&gt;Beijing&lt;/a&gt;; I will write about it separately. Let this just serve to state that we are serious about the platform for this, present and future.&lt;/p&gt; &lt;h3&gt;Conclusion &lt;/h3&gt; &lt;p&gt;The web scale database, the Google with arbitrary joining and inference, is one generation away, talking of economical implementation. Today, a price tag of $100K will buy some 50-100 billion triples worth with reasonable query response. Unlimited budget will take this a bit further, like one order of magnitude. and then, returns might be decreasing.&lt;/p&gt; &lt;p&gt;Of course, this is worth nothing if the software isn&amp;#39;t there. &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-idfdcf058&quot;&gt;Virtuoso&lt;/a&gt; with its cluster edition will allow one to use unlimited RAM and processors. The frontier is now at getting just the right parallelism for each task, including inference ones.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Cluster Update</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-04-14#1335</atom:id>
  <atom:published>2008-04-14T09:26:00Z</atom:published>
  <atom:updated>2008-04-14T12:42:20.000001-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We now have &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id10beda60&quot;&gt;Virtuoso&lt;/a&gt; 6 running most of its test suite in single process and cluster modes. It is now time to finalize how it is to be configured and deployed. A bit more on this later.&lt;/p&gt; &lt;p&gt;We would have been done in about half time if we had not also redone the database physical layout with key compression. Still, if we get 3x more data in the same memory, using 64 bit ids for everything, the effort is justified. For any size above 2 billion triples, this means 3x less cost.&lt;/p&gt; &lt;p&gt;A good amount of the time and effort goes into everything except the core. Of course, we first do the optimizations we find appropriate and measure them. After all, the rest has no point if these do not run in the desired ballpark.&lt;/p&gt; &lt;p&gt;For delivering something, the requirements are quite the opposite: For example, when when defining a unique index, what to do when the billionth key turns out not to be unique? And then what if one of the processes is killed during the operation? Does it all come out right also when played from the roll forward log? See what I mean? There is no end of such.&lt;/p&gt; &lt;p&gt;So, well after we are done with the basic functionality, we have to deal with this sort of thing. Even if we limited ourselves to &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x1b4d3580&quot;&gt;RDF&lt;/a&gt; workloads only in the first cut, we still would need to do this since maintaining this would simply not be possible without some generic DBMS functionality. So we get the full feature generic clustered RDBMS in the same cut, no splitting the deliverable.&lt;/p&gt; &lt;p&gt;The basic cluster execution model is described &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/clusterprogrammingsqlexmod.html&quot; id=&quot;link-id14a5cab0&quot;&gt;here&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;There are some further optimizations that we will do at and around the time of first public cut.&lt;/p&gt; &lt;p&gt;These have to do mostly with execution scheduling. For example, a bitmap intersection join must be done differently from a single server when there is latency in getting the next chunk of bits. Value sub-queries, derived tables and existences must be started as batches, just like joined tables.&lt;/p&gt; &lt;p&gt;Having too many threads on an index is no good. But having a large batch of random lookups to work with, even when each of them does not have its own thread, gives some possibilities for IO optimization. When one would block for disk, start the disk asynchronously, like with a read ahead and do the next index lookup from the batch. This is specially so in cluster situations where the index lookups naturally come in &amp;quot;pre-vectored&amp;quot; batches. You could say that the loop join is rolled out. This is done anyhow for message latency reasons.&lt;/p&gt; &lt;p&gt;Do we optimize for the right stuff? Well, looking into the future, it does not look like regular RAM will be the bottom of the storage hierarchy, no matter how you look at it. With solid state disks, locality may not be so important but latency is there to stay. With everything now growing sideways, as in number of cores and core multithreading, we are just looking to deepening our already warm and intimate relationship with the Moira which cuts the thread, Atropos, Lady Latency. The attention of the best minds of the industry is devoted to thee. pouring forth of the effort of the best minds in the industry.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso 5.0.6 Updates</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-03-25#1327</atom:id>
  <atom:published>2008-03-25T17:23:24Z</atom:published>
  <atom:updated>2008-04-14T14:02:55-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Virtuoso 5.0.6 Updates&lt;/div&gt; &lt;p&gt;I will here summarize the developments since the last &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0x17765540&quot;&gt;Virtuoso&lt;/a&gt; 5 Open Source release.&lt;/p&gt; &lt;p&gt;On the &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x1d8eb970&quot;&gt;RDF&lt;/a&gt; side, the bitmap intersection join has been improved quite a bit so that it is now almost always more than 2x more efficient than the equivalent nested loop join.&lt;/p&gt; &lt;p&gt;XML trees in the object position in RDF quads were in some cases incorrectly indexed, leading to failure to retrieve quads.  This is fixed and should problems occur in existing databases, they can be corrected by simply dropping and re-creating an index.&lt;/p&gt; &lt;p&gt;Also the cost model has been further tuned.  We have run the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x17508ee8&quot;&gt;TPC-H&lt;/a&gt; queries with larger databases and have profiled it extensively.  There are improvements to locking, especially for concurrency of transactions with large shared lock sets, as is the case in the TPC-H queries.  The rules stipulate that these have to be run with repeatable read.  There are also optimizations for decimal floating point.&lt;/p&gt; &lt;p&gt;A sampling of TPC-H queries translated into &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x18365440&quot;&gt;SPARQL&lt;/a&gt; comes with the new demo database.  These show a live sample of the TPC-H schema translated into linked data, complete with SPARQL translations of the original queries.  Some work is still ongoing there but the relational to RDF mapping is mature enough for real business intelligence applications now.&lt;/p&gt; &lt;p&gt;On the closed source side, we have some adjustments to the virtual database.  When using Virtuoso as a front end to Oracle, using the TPC-H queries as a metric, the virtual database overhead is minimal.  Previously, we had some overhead because some queries were rewritten in a way that Oracle would not optimize as well as the original TPC-H text.  Specifically, turning an IN sub-query predicate into an equivalent EXISTS did not sit well with Oracle.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso 5.0.6 Updates</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-03-25#1326</atom:id>
  <atom:published>2008-03-25T16:59:08Z</atom:published>
  <atom:updated>2008-03-26T11:59:02-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;I will here summarize the developments since the last &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id15843368&quot;&gt;Virtuoso&lt;/a&gt; 5 Open Source release.&lt;/p&gt; &lt;p&gt;On the &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id101cae58&quot;&gt;RDF&lt;/a&gt; side, the bitmap intersection join has been improved quite a bit so that it is now almost always more than 2x more efficient than the equivalent nested loop join.&lt;/p&gt; &lt;p&gt;XML trees in the object position in &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id1172c108&quot;&gt;RDF&lt;/a&gt; quads were in some cases incorrectly indexed, leading to failure to retrieve quads.  This is fixed and should problems occur in existing databases, they can be corrected by simply dropping and re-creating an index.&lt;/p&gt; &lt;p&gt;Also the cost model has been further tuned.  We have run the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-idd65a998&quot;&gt;TPC&lt;/a&gt;-&lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id11a2bf48&quot;&gt;H&lt;/a&gt; queries with larger databases and have profiled it extensively.  There are improvements to locking, especially for concurrency of transactions with large shared lock sets, as is the case in the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id12cfd690&quot;&gt;TPC&lt;/a&gt;-&lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id15891ae0&quot;&gt;H&lt;/a&gt; queries.  The rules stipulate that these have to be run with repeatable read.  There are also optimizations for decimal floating point.&lt;/p&gt; &lt;p&gt;A sampling of &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id15b12eb0&quot;&gt;TPC&lt;/a&gt;-&lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id1172c740&quot;&gt;H&lt;/a&gt; queries translated into &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id15533aa8&quot;&gt;SPARQL&lt;/a&gt; comes with the new demo database.  These show a live sample of the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id15b82cd8&quot;&gt;TPC&lt;/a&gt;-&lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id15521d50&quot;&gt;H&lt;/a&gt; schema translated into linked data, complete with &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id15ae14d8&quot;&gt;SPARQL&lt;/a&gt; translations of the original queries.  Some work is still ongoing there but the relational to &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id101b1240&quot;&gt;RDF&lt;/a&gt; mapping is mature enough for real business intelligence applications now.&lt;/p&gt; &lt;p&gt;On the closed source side, we have some adjustments to the virtual database.  When using &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id10888df0&quot;&gt;Virtuoso&lt;/a&gt; as a front end to Oracle, using the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id134a9378&quot;&gt;TPC&lt;/a&gt;-&lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id10366320&quot;&gt;H&lt;/a&gt; queries as a metric, the virtual database overhead is minimal.  Previously, we had some overhead because some queries were rewritten in a way that Oracle would not optimize as well as the original &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id15536320&quot;&gt;TPC&lt;/a&gt;-&lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-idfd4e278&quot;&gt;H&lt;/a&gt; text.  Specifically, turning an IN sub-query predicate into an equivalent EXISTS did not sit well with Oracle.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>TPC H as Linked Data (Updated 2)</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-03-06#1322</atom:id>
  <atom:published>2008-03-06T16:34:12Z</atom:published>
  <atom:updated>2008-08-28T11:26:03.000004-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;TPC H as Linked Data (Updated 2)&lt;/div&gt; &lt;p&gt;We have a new demo online at &lt;a href=&quot;http://demo.openlinksw.com/tpc-h&quot; id=&quot;link-id1829c9a0&quot;&gt;http://demo.openlinksw.com/tpc-h&lt;/a&gt;. This takes the industry standard &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0xf0fff10&quot;&gt;TPC-H&lt;/a&gt; benchmark &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1387cd90&quot;&gt;data&lt;/a&gt; and presents it as &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x152407c0&quot;&gt;linked data&lt;/a&gt; with a &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x11657940&quot;&gt;SPARQL&lt;/a&gt; end point and dereferenceable URIs. &lt;/p&gt; &lt;p&gt;This is an example of using &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xe560628&quot;&gt;Virtuoso&lt;/a&gt;&amp;#39;s relational-to-&lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xa07e2588&quot;&gt;RDF&lt;/a&gt; mapping for publishing business data, for browsing using the linked data principles and opening it to analytics queries in SPARQL.&lt;/p&gt; &lt;p&gt; As noted before, we have extended SPARQL with aggregation and nested queries, thus making it a viable &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0xa3666b00&quot;&gt;SQL&lt;/a&gt; substitute for decision support queries. &lt;/p&gt; &lt;p&gt;The article at &lt;a href=&quot;http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VOSTPCHLinkedData&quot; id=&quot;link-id10799d10&quot;&gt;http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VOSTPCHLinkedData&lt;/a&gt; gives details and the source code for the implementation.&lt;/p&gt; &lt;p&gt; We are still working on some aspects of the more complex TPC-H queries, thus the demo is not complete with all the 22 queries. This is however enough to see a representative sample of how analytics queries work with SPARQL and Virtuoso&amp;#39;s SQL-to-RDF mapping. The demo will be part of the next Virtuoso Open Source download, probably out next week.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>TPC H as Linked Data (Updated 2)</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-03-06#1321</atom:id>
  <atom:published>2008-03-06T16:22:03Z</atom:published>
  <atom:updated>2008-08-28T11:25:55-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We have a new demo online at &lt;a href=&quot;http://demo.openlinksw.com/tpc-h&quot; id=&quot;link-id1829c9a0&quot;&gt;http://demo.openlinksw.com/tpc-h&lt;/a&gt;. This takes the industry standard &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0xeb7e460&quot;&gt;TPC-H&lt;/a&gt; benchmark &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xb40fcb8&quot;&gt;data&lt;/a&gt; and presents it as &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x9edbd128&quot;&gt;linked data&lt;/a&gt; with a &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xf566a50&quot;&gt;SPARQL&lt;/a&gt; end point and dereferenceable URIs. &lt;/p&gt; &lt;p&gt;This is an example of using &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x11e59f80&quot;&gt;Virtuoso&lt;/a&gt;&amp;#39;s relational-to-&lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xfc93c70&quot;&gt;RDF&lt;/a&gt; mapping for publishing business data, for browsing using the linked data principles and opening it to analytics queries in SPARQL.&lt;/p&gt; &lt;p&gt; As noted before, we have extended SPARQL with aggregation and nested queries, thus making it a viable &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0xffe4520&quot;&gt;SQL&lt;/a&gt; substitute for decision support queries. &lt;/p&gt; &lt;p&gt;The article at &lt;a href=&quot;http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VOSTPCHLinkedData&quot; id=&quot;link-id10799d10&quot;&gt;http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VOSTPCHLinkedData&lt;/a&gt; gives details and the source code for the implementation.&lt;/p&gt; &lt;p&gt; We are still working on some aspects of the more complex TPC-H queries, thus the demo is not complete with all the 22 queries. This is however enough to see a representative sample of how analytics queries work with SPARQL and Virtuoso&amp;#39;s SQL-to-RDF mapping. The demo will be part of the next Virtuoso Open Source download, probably out next week.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>LUBM results with Virtuoso 6.0</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-02-04#1309</atom:id>
  <atom:published>2008-02-04T10:26:17Z</atom:published>
  <atom:updated>2008-08-28T12:06:11-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;LUBM results with Virtuoso 6.0&lt;/div&gt; &lt;p&gt;We have now run the LUBM benchmark on &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1c2197e8&quot;&gt;Virtuoso&lt;/a&gt; v6, with the same configuration &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1302&quot; id=&quot;link-id107f0238&quot;&gt;as discussed last Friday&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;We had a database of 8000 universities, and we ran 8 clients on slices of 100, 1000 and 8000 universities — same &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x7d0e498&quot;&gt;data&lt;/a&gt; but different sizes of working set.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt; 100 universities: 35.3 qps 1000 universities: 26.3 qps 8000 universities: 13.1 qps&lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;The 100 universities slice is about the same as with v5.0.5 (35.3 vs 33.1 qps). &lt;br /&gt;The 8000 universities set is almost 3x better (13.1 vs. 4.8 qps).&lt;/p&gt; &lt;p&gt;This comes from the fact that the v6 database takes half of the space of the v5.0.5 one.  Further, this is with 64-bit IDs for everything.  If the 5.5 database were with 64-bit IDs, we&amp;#39;d have a difference of over 3x.  This is worth something if it lets you get by with only 1 terabyte of RAM for the 100 billion  triple application, instead of 3 TB.&lt;/p&gt; &lt;p&gt; &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1358&quot; id=&quot;link-id15fb4d38&quot;&gt;In a few more days&lt;/a&gt;, we&amp;#39;ll give the results for Virtuoso v6 Cluster.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>LUBM results with Virtuoso 6.0</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-02-04#1308</atom:id>
  <atom:published>2008-02-04T09:58:03Z</atom:published>
  <atom:updated>2008-08-28T12:06:04-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We have now run the LUBM benchmark on &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1a6cb3c8&quot;&gt;Virtuoso&lt;/a&gt; v6, with the same configuration &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1302&quot; id=&quot;link-id107f0238&quot;&gt;as discussed last Friday&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;We had a database of 8000 universities, and we ran 8 clients on slices of 100, 1000 and 8000 universities — same &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x12ac6cc8&quot;&gt;data&lt;/a&gt; but different sizes of working set.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt; 100 universities: 35.3 qps 1000 universities: 26.3 qps 8000 universities: 13.1 qps&lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;The 100 universities slice is about the same as with v5.0.5 (35.3 vs 33.1 qps). &lt;br /&gt;The 8000 universities set is almost 3x better (13.1 vs. 4.8 qps).&lt;/p&gt; &lt;p&gt;This comes from the fact that the v6 database takes half of the space of the v5.0.5 one.  Further, this is with 64-bit IDs for everything.  If the 5.5 database were with 64-bit IDs, we&amp;#39;d have a difference of over 3x.  This is worth something if it lets you get by with only 1 terabyte of RAM for the 100 billion  triple application, instead of 3 TB.&lt;/p&gt; &lt;p&gt; &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1358&quot; id=&quot;link-id15fb4d38&quot;&gt;In a few more days&lt;/a&gt;, we&amp;#39;ll give the results for Virtuoso v6 Cluster.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Latest LUBM Benchmark results for Virtuoso</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-02-01#1305</atom:id>
  <atom:published>2008-02-01T15:16:59Z</atom:published>
  <atom:updated>2008-08-28T12:06:08-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Latest LUBM Benchmark results for Virtuoso&lt;/div&gt; &lt;p&gt;We have now taken a close look at the query side of the LUBM benchmark, &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1296&quot; id=&quot;link-id10a98120&quot;&gt;as promised a couple of blog posts ago.&lt;/a&gt; &lt;/p&gt; &lt;p&gt;We load 8000 universities and run a query mix consisting of the 14 LUBM queries with different numbers of clients against different portions of the database.&lt;/p&gt; &lt;p&gt;When it is all in memory, we get 33 queries per second with 8 concurrent clients; when it is so I/O bound that 7.7 of 8 threads wait for disk, we get 5 qps. This was run in 8G RAM with 2 Xeon 5130.&lt;/p&gt; &lt;p&gt;We adapted some of the queries so that they do not run over the whole database. In terms of retrieving triples per second, this would be about 330000 for the rate of 33 qps, with 4 cores at 2GHz. This is a combination of random access and linear scans and bitmap merge intersections; lookups for non-found triples are not counted. The rate of random lookups alone based on known G, S, P, O, without any query logic, is about 250000 random lookups per core per second.&lt;/p&gt; &lt;p&gt;The article &lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VOSArticleLUBMBenchmark&quot; id=&quot;link-id10237708&quot;&gt;LUBM and Virtuoso&lt;/a&gt; gives the details.&lt;/p&gt; &lt;p&gt;In the process of going through the workload we made some cost model adjustments and optimized the bitmap intersection join. In this way we can quickly determine which subjects are, for example, professors holding a degree from a given university. So the benchmark served us well in that it provided an incentive to further optimize some things.&lt;/p&gt; &lt;p&gt;Now, what has been said about &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x12cba3d8&quot;&gt;RDF&lt;/a&gt; benchmarking previously still holds. What does it mean to do so many LUBM queries per second? What does this say about the capacity to run an online site off RDF &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x9e043f38&quot;&gt;data&lt;/a&gt;? Or about &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x10c1a4f8&quot;&gt;information&lt;/a&gt; integration? Not very much. But then this was not the aim of the authors either.&lt;/p&gt; &lt;p&gt;So we still need to make a benchmark for online queries and search, and another for E-science and business intelligence. But we are getting there.&lt;/p&gt; &lt;p&gt;In the immediate future, we have the general availability of &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x9ec5e620&quot;&gt;Virtuoso&lt;/a&gt; Open Source 5.0.5 early next week. This comes with a LUBM test driver and a test suite running against the LUBM qualification database.&lt;/p&gt; &lt;p&gt;After this we will give some numbers for the cluster edition with LUBM and &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0xcd7ec48&quot;&gt;TPC-H&lt;/a&gt;.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Latest LUBM Benchmark results for Virtuoso</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-02-01#1304</atom:id>
  <atom:published>2008-02-01T14:39:04Z</atom:published>
  <atom:updated>2008-08-28T12:06:01-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We have now taken a close look at the query side of the LUBM benchmark, &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1296&quot; id=&quot;link-id10a98120&quot;&gt;as promised a couple of blog posts ago.&lt;/a&gt; &lt;/p&gt; &lt;p&gt;We load 8000 universities and run a query mix consisting of the 14 LUBM queries with different numbers of clients against different portions of the database.&lt;/p&gt; &lt;p&gt;When it is all in memory, we get 33 queries per second with 8 concurrent clients; when it is so I/O bound that 7.7 of 8 threads wait for disk, we get 5 qps. This was run in 8G RAM with 2 Xeon 5130.&lt;/p&gt; &lt;p&gt;We adapted some of the queries so that they do not run over the whole database. In terms of retrieving triples per second, this would be about 330000 for the rate of 33 qps, with 4 cores at 2GHz. This is a combination of random access and linear scans and bitmap merge intersections; lookups for non-found triples are not counted. The rate of random lookups alone based on known G, S, P, O, without any query logic, is about 250000 random lookups per core per second.&lt;/p&gt; &lt;p&gt;The article &lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VOSArticleLUBMBenchmark&quot; id=&quot;link-id10237708&quot;&gt;LUBM and Virtuoso&lt;/a&gt; gives the details.&lt;/p&gt; &lt;p&gt;In the process of going through the workload we made some cost model adjustments and optimized the bitmap intersection join. In this way we can quickly determine which subjects are, for example, professors holding a degree from a given university. So the benchmark served us well in that it provided an incentive to further optimize some things.&lt;/p&gt; &lt;p&gt;Now, what has been said about &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x104257c0&quot;&gt;RDF&lt;/a&gt; benchmarking previously still holds. What does it mean to do so many LUBM queries per second? What does this say about the capacity to run an online site off RDF &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x7376478&quot;&gt;data&lt;/a&gt;? Or about &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x13fd3f30&quot;&gt;information&lt;/a&gt; integration? Not very much. But then this was not the aim of the authors either.&lt;/p&gt; &lt;p&gt;So we still need to make a benchmark for online queries and search, and another for E-science and business intelligence. But we are getting there.&lt;/p&gt; &lt;p&gt;In the immediate future, we have the general availability of &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x193509e8&quot;&gt;Virtuoso&lt;/a&gt; Open Source 5.0.5 early next week. This comes with a LUBM test driver and a test suite running against the LUBM qualification database.&lt;/p&gt; &lt;p&gt;After this we will give some numbers for the cluster edition with LUBM and &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x1b8d1348&quot;&gt;TPC-H&lt;/a&gt;.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>LUBM and Virtuoso 5.5</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-02-01#1302</atom:id>
  <atom:published>2008-02-01T12:37:53Z</atom:published>
  <atom:updated>2008-03-25T14:43:30.000004-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We have now taken a close look at the query side of the LUBM benchmark, as promised a couple of blog posts ago.&lt;/p&gt; &lt;p&gt;We load 8000 universities and run a query mix consisting of the 14 LUBM queries with different numbers of clients against different portions of the database.&lt;/p&gt; &lt;p&gt;When it is all in memory, we get 33 queries per second with 8 concurrent clients; when it is so I/O bound that 7.7 of 8 threads wait for disk, we get 5 qps. This was run in 8G RAM with 2 Xeon 5130.&lt;/p&gt; &lt;p&gt;We adapted some of the queries so that they do not run over the whole database. In terms of retrieving triples per second, this would be about 330000 for the rate of 33 qps, with 4 cores at 2GHz. This is a combination of random access and linear scans and bitmap merge intersections; lookups for non-found triples are not counted. The rate of random lookups alone based on known G, S, P, O, without any query logic, is about 250000 random lookups per core per second.&lt;/p&gt; &lt;p&gt;The article &lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VOSArticleLUBMBenchmark&quot; id=&quot;link-id121f54d8&quot;&gt;LUBM and Virtuoso&lt;/a&gt; gives the details.&lt;/p&gt; &lt;p&gt;In the process of going through the workload, we made some cost model adjustments and optimized the bitmap intersection join. In this way we can quickly determine which subjects are, for example, professors holding a degree from a given university. So the benchmark served us well in that it provided an incentive to further optimize some things.&lt;/p&gt; &lt;p&gt;Now, what has been said about &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x186bcec0&quot;&gt;RDF&lt;/a&gt; benchmarking previously still holds. What does it mean to do so many LUBM queries per second? What does this say about the capacity to run an online site off &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0xa1e11918&quot;&gt;RDF&lt;/a&gt; data? Or about information integration? Not very much. But then this was not the aim of the authors either.&lt;/p&gt; &lt;p&gt;So we still need to make a benchmark for online queries and search, and another for E-science and business intelligence. But we are getting there.&lt;/p&gt; &lt;p&gt;In the immediate future, we have the general availability of &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0x189b11b8&quot;&gt;Virtuoso&lt;/a&gt; Open Source 5.0.5 early next week. This comes with a LUBM test driver and a test suite running against the LUBM qualification database.&lt;/p&gt; &lt;p&gt;After this we will give some numbers for the cluster edition with LUBM and &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x1b948dd8&quot;&gt;TPC&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x189e58a8&quot;&gt;H&lt;/a&gt;.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>SPARQL Extensions for Subqueries</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2008-01-16#1297</atom:id>
  <atom:published>2008-01-16T15:47:09Z</atom:published>
  <atom:updated>2008-04-14T14:02:43-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;SPARQL Extensions for Subqueries&lt;/div&gt; &lt;p&gt;Last time I said we had extended &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1c6616d0&quot;&gt;SPARQL&lt;/a&gt; for sub-queries. As a preview of the new functionality, let us look at a query from &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x17ac7450&quot;&gt;TPC-H&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Below is the &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0x1b0ec750&quot;&gt;Virtuoso&lt;/a&gt; SPARQL version of Q2.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt; sparql define sql:signal-void-variables 1 prefix tpcd: &amp;lt;http://www.openlinksw.com/schemas/tpcd#&amp;gt; prefix oplsioc: &amp;lt;http://www.openlinksw.com/schemas/oplsioc#&amp;gt; prefix sioc: &amp;lt;http://rdfs.org/sioc/ns#&amp;gt; prefix foaf: &amp;lt;http://xmlns.com/foaf/0.1/&amp;gt; select ?supp+&amp;gt;tpcd:acctbal, ?supp+&amp;gt;tpcd:name, ?supp+&amp;gt;tpcd:has_nation+&amp;gt;tpcd:name as ?nation_name, ?part+&amp;gt;tpcd:partkey, ?part+&amp;gt;tpcd:mfgr, ?supp+&amp;gt;tpcd:address, ?supp+&amp;gt;tpcd:phone, ?supp+&amp;gt;tpcd:comment from &amp;lt;http://example.com/tpcd&amp;gt; where { ?ps a tpcd:partsupp ; tpcd:has_supplier ?supp ; tpcd:has_part ?part . ?supp+&amp;gt;tpcd:has_nation+&amp;gt;tpcd:has_region tpcd:name &amp;#39;EUROPE&amp;#39; . ?part tpcd:size 15 . ?ps tpcd:supplycost ?minsc . { select ?p min(?ps+&amp;gt;tpcd:supplycost) as ?minsc where { ?ps a tpcd:partsupp ; tpcd:has_part ?p ; tpcd:has_supplier ?ms . ?ms+&amp;gt;tpcd:has_nation+&amp;gt;tpcd:has_region tpcd:name &amp;#39;EUROPE&amp;#39; . } } filter (?part+&amp;gt;tpcd:type like &amp;#39;%BRASS&amp;#39;) } order by desc (?supp+&amp;gt;tpcd:acctbal) ?supp+&amp;gt;tpcd:has_nation+&amp;gt;tpcd:name ?supp+&amp;gt;tpcd:name ?part+&amp;gt;tpcd:partkey ; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Note the pattern &lt;code&gt;{ ?ms+&amp;gt;tpcd:has_nation+&amp;gt;tpcd:has_region tpcd:name &amp;#39;EUROPE&amp;#39; }&lt;/code&gt; which is a shorthand for &lt;code&gt;{ ?ms tpcd:has_nation ?t1 . ?t1 tpcd:has-region ?t2 . ?t2 tpcd:has_region ?t3 . ?t3 tpcd:name &amp;quot;EUROPE&amp;quot; } &lt;/code&gt; &lt;/p&gt; &lt;p&gt;Also note a sub-query is used for determining the lowest supply cost for a part. &lt;/p&gt; &lt;p&gt;The SQL text of the query can be found in the TPC-H benchmark specification, reproduced below: &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;select s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment from part, supplier, partsupp, nation, region where p_partkey = ps_partkey and s_suppkey = ps_suppkey and p_size = 15 and p_type like &amp;#39;%BRASS&amp;#39; and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = &amp;#39;EUROPE&amp;#39; and ps_supplycost = ( select min(ps_supplycost) from partsupp, supplier, nation, region where p_partkey = ps_partkey and s_suppkey = ps_suppkey and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = &amp;#39;EUROPE&amp;#39;) order by s_acctbal desc, n_name, s_name, p_partkey; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt; For brevity we have omitted the declarations for mapping the TPC-H schema to its &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0xd044708&quot;&gt;RDF&lt;/a&gt; equivalent. The mapping is straightforward, with each column mapping to a predicate and each table to a class.&lt;/p&gt; &lt;p&gt; This is now part of the next Virtuoso Open Source cut, due around next week. &lt;/p&gt; &lt;p&gt; As of this writing we are going through the TPC-H query by query and testing with mapping going to Virtuoso and Oracle databases. &lt;/p&gt; &lt;p&gt; Also we have been busy measuring Virtuoso 6. Even after switching from 32-bit to 64-bit IDs for IRIs and objects, the new databases are about half the size of the same Virtuoso 5.0.2 databases. This does not include any stream compression like gzip for disk pages. The load and query speeds are higher because of better working set. For all in memory, they are about even with 5.0.2. So now on an 8G box, we load 1067 million LUBM triples at 39.7 Kt/s instead of 29 Kt/s with 5.0.2. Right now we experimenting with clusters at Amazon EC2. We&amp;#39;ll write about that in a bit. &lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>SPARQL Extensions for Subqueries</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2008-01-16#1296</atom:id>
  <atom:published>2008-01-16T15:11:00Z</atom:published>
  <atom:updated>2008-03-25T14:43:28.000001-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;Last time I said we had extended &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1c668bb0&quot;&gt;SPARQL&lt;/a&gt; for sub-queries. As a preview of the new functionality, let us look at a query from &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0xd469258&quot;&gt;TPC&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x1c68fe58&quot;&gt;H&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Below is the &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0xcabe1f0&quot;&gt;Virtuoso&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1d3ba3d0&quot;&gt;SPARQL&lt;/a&gt; version of Q2.&lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt; &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xd45b8c0&quot;&gt;sparql&lt;/a&gt; define sql:signal-void-variables 1 prefix tpcd: &amp;lt;http://www.openlinksw.com/schemas/tpcd#&amp;gt; prefix oplsioc: &amp;lt;http://www.openlinksw.com/schemas/oplsioc#&amp;gt; prefix sioc: &amp;lt;http://rdfs.org/sioc/ns#&amp;gt; prefix foaf: &amp;lt;http://xmlns.com/foaf/0.1/&amp;gt; select ?supp+&amp;gt;tpcd:acctbal, ?supp+&amp;gt;tpcd:name, ?supp+&amp;gt;tpcd:has_nation+&amp;gt;tpcd:name as ?nation_name, ?part+&amp;gt;tpcd:partkey, ?part+&amp;gt;tpcd:mfgr, ?supp+&amp;gt;tpcd:address, ?supp+&amp;gt;tpcd:phone, ?supp+&amp;gt;tpcd:comment from &amp;lt;http://example.com/tpcd&amp;gt; where { ?ps a tpcd:partsupp ; tpcd:has_supplier ?supp ; tpcd:has_part ?part . ?supp+&amp;gt;tpcd:has_nation+&amp;gt;tpcd:has_region tpcd:name &amp;#39;EUROPE&amp;#39; . ?part tpcd:size 15 . ?ps tpcd:supplycost ?minsc . { select ?p min(?ps+&amp;gt;tpcd:supplycost) as ?minsc where { ?ps a tpcd:partsupp ; tpcd:has_part ?p ; tpcd:has_supplier ?ms . ?ms+&amp;gt;tpcd:has_nation+&amp;gt;tpcd:has_region tpcd:name &amp;#39;EUROPE&amp;#39; . } } filter (?part+&amp;gt;tpcd:type like &amp;#39;%BRASS&amp;#39;) } order by desc (?supp+&amp;gt;tpcd:acctbal) ?supp+&amp;gt;tpcd:has_nation+&amp;gt;tpcd:name ?supp+&amp;gt;tpcd:name ?part+&amp;gt;tpcd:partkey ; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt;Note the pattern &lt;code&gt;{ ?ms+&amp;gt;tpcd:has_nation+&amp;gt;tpcd:has_region tpcd:name &amp;#39;EUROPE&amp;#39; }&lt;/code&gt; which is a shorthand for &lt;code&gt;{ ?ms tpcd:has_nation ?t1 . ?t1 tpcd:has-region ?t2 . ?t2 tpcd:has_region ?t3 . ?t3 tpcd:name &amp;quot;EUROPE&amp;quot; } &lt;/code&gt; &lt;/p&gt; &lt;p&gt;Also note a sub-query is used for determining the lowest supply cost for a part. &lt;/p&gt; &lt;p&gt;The SQL text of the query can be found in the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0xb945ed8&quot;&gt;TPC&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x1c832038&quot;&gt;H&lt;/a&gt; benchmark specification, reproduced below: &lt;/p&gt; &lt;blockquote&gt; &lt;pre&gt;select s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment from part, supplier, partsupp, nation, region where p_partkey = ps_partkey and s_suppkey = ps_suppkey and p_size = 15 and p_type like &amp;#39;%BRASS&amp;#39; and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = &amp;#39;EUROPE&amp;#39; and ps_supplycost = ( select min(ps_supplycost) from partsupp, supplier, nation, region where p_partkey = ps_partkey and s_suppkey = ps_suppkey and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = &amp;#39;EUROPE&amp;#39;) order by s_acctbal desc, n_name, s_name, p_partkey; &lt;/pre&gt;&lt;/blockquote&gt; &lt;p&gt; For brevity we have omitted the declarations for mapping the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x1d365d90&quot;&gt;TPC&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x17b6f668&quot;&gt;H&lt;/a&gt; schema to its &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x1898eaf0&quot;&gt;RDF&lt;/a&gt; equivalent. The mapping is straightforward, with each column mapping to a predicate and each table to a class.&lt;/p&gt; &lt;p&gt; This is now part of the next &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0x1aaaa3f0&quot;&gt;Virtuoso&lt;/a&gt; Open Source cut, due around next week. &lt;/p&gt; &lt;p&gt; As of this writing we are going through the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x1950f1c0&quot;&gt;TPC&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0xd0d8bc0&quot;&gt;H&lt;/a&gt; query by query and testing with mapping going to &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0x18b88f08&quot;&gt;Virtuoso&lt;/a&gt; and Oracle databases. &lt;/p&gt; &lt;p&gt; Also we have been busy measuring &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0x17b3fbb0&quot;&gt;Virtuoso&lt;/a&gt; 6. Even after switching from 32-bit to 64-bit IDs for IRIs and objects, the new databases are about half the size of the same &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0xbe2ec80&quot;&gt;Virtuoso&lt;/a&gt; 5.0.2 databases. This does not include any stream compression like gzip for disk pages. The load and query speeds are higher because of better working set. For all in memory, they are about even with 5.0.2. So now on an 8G box, we load 1067 million LUBM triples at 39.7 Kt/s instead of 29 Kt/s with 5.0.2. Right now we experimenting with clusters at Amazon EC2. We&amp;#39;ll write about that in a bit. &lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Retrospective and Outlook for 2008</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2007-12-18#1287</atom:id>
  <atom:published>2007-12-18T12:22:21Z</atom:published>
  <atom:updated>2007-12-18T07:22:21.000006-05:00</atom:updated>
  <atom:content type="html">&lt;div&gt;&lt;div style=&quot;display:none;&quot;&gt;Retrospective and Outlook for 2008&lt;/div&gt; &lt;p&gt;At this close of the year, I&amp;#39;ll give a little recap over the past year in terms of &lt;a href=&quot;http://virtuoso.openlinksw.com/&quot; id=&quot;link-id103d2cb0&quot;&gt;Virtuoso&lt;/a&gt; development and a look at where we are headed for 2008. Â &lt;/p&gt; &lt;p&gt;A year ago, I was in the middle of redoing the Virtuoso database engine for better SMP performance.Â  We redid the way traversal of index structures and cache buffers was serialized for SMP and generally compared Virtuoso and Oracle engines function by function.Â  We had just returned from the ISWC 2006 in Athens, Georgia and the Virtuoso database was becoming a usable triple store.&lt;/p&gt; &lt;p&gt;Soon thereafter, we comfirmed that all this worked when we put out the first cut of &lt;a href=&quot;http://dbpedia.org/&quot; id=&quot;link-idf8b4728&quot;&gt;Dbpedia&lt;/a&gt; with Chris Bizer et al and were working with Alan Ruttenberg on what would become &lt;a href=&quot;http://esw.w3.org/topic/HCLS/Banff2007Demo&quot; id=&quot;link-id10397930&quot;&gt;the Banff health care and life sciences demo&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The &lt;a href=&quot;http://www2007.org/&quot; id=&quot;link-id10335160&quot;&gt;WWW 2007 conference in Banff&lt;/a&gt;, Canada, was a sort of kick-off for the &lt;a href=&quot;http://esw.w3.org/topic/SweoIG/TaskForces/CommunityProjects/LinkingOpenData&quot; id=&quot;link-id102cc0c8&quot;&gt;Linking Open Data&lt;/a&gt; movement, which started as a community project under &lt;a href=&quot;http://www.w3.org/2001/sw/sweo/&quot; id=&quot;link-idfbe9cb8&quot;&gt;SWEO&lt;/a&gt;, the W3C interest group for Semantic Web Education and Outreach, and has gained a life of its own since.&lt;/p&gt; &lt;p&gt;Right after WWW 2007 the Virtuoso development effort split on two tracks, one for enhancing the then new 5.0 release and one for building a new generation of Virtuoso, notably featuring clustering and double storage density for RDF.&lt;/p&gt; &lt;p&gt;The first track produced constant improvements to the relational to RDF mapping functionality, SPARQL enhancements, Redland, Jena and Sesame compatible client libraries with Virtuoso as as a triple store.Â  These things have been out with testers for a while and are all generally available as of this writing. Â &lt;/p&gt; &lt;p&gt;The second track started with adding key compression to the storage engine, specifically with regard to RDF, even though there are some gains in relational applications as well.Â  With RDF, the space consumption drops to about half, all without recourse to any non-random access compatible compression like gzip.Â  Since the start of August, we turned to clustering and are now code complete, pretty much with all the tricks one would expect, of course full function SQL and taking advantage of colocated joins and doing aggregation and generally all possible processing where the data is.Â  I have covered details of this along the way in previous posts.Â  The key ppoint is that now the thing is written and works with test cases. &lt;/p&gt;Â &lt;p&gt;In late October, we were at the W3C workshop for mapping relational data to RDF.Â  For us, this confirmed the importance of mapping and scalability in general.Â  Ivan Herman proposed forming a W3C incubator group on benchmarking.Â  Also a W3C incubator group of relational to RDF mapping is being formed.Â  &lt;/p&gt; &lt;p&gt;Now, scalability has two sides.Â  One is dealing with volume and the other is dealing with complexity.Â  Volume alone will not help if interesting queries cannot be formulated.Â  Hence we recently extended SPARQL with subqueries so that we can now express at least any SQL workloads, which was previously not the case.Â  It is sort of a contradiction in terms to say that SPARQL is the universal language for information integration while not being able to express for example the &lt;a href=&quot;http://www.tpc.org/tpch/&quot; id=&quot;link-idf7ac7e8&quot;&gt;TPC H&lt;/a&gt; queries.Â  Well, we fixed this.Â  A separate post will jhighlight how.Â  The W3C process will eventually follow, as the necessity of these things is undeniable, on the unimpeachable authority of the whole SQL world.Â  Anyway, for now, SPARQL as it is ought to become a recommendation and extensions can be addressed later.&lt;/p&gt; &lt;p&gt;For now, the only RDF benchmark that seems to be out there is the loading part of the LUBM.Â  We did a couple of enhancements of our own for that just recently but much bigger things are on the way.Â  Also, the billion triples challenge is an interesting initiative in the area.Â  We all recognize that loading any number of triples is a finite problem with known solutions.Â  The challenge is running interesting queries on large volumes.Â  &lt;/p&gt; &lt;p&gt;Our present emphasis is demonstrating both RDF data warehousing and RDF mapping with complex queries and large data.Â  We start with the &lt;a href=&quot;http://www.tpc.org/tpch/&quot; id=&quot;link-idfcf8470&quot;&gt;TPC H&lt;/a&gt; benchmark and doing the queries both through mapping to SQL against any RDBMS, Oracle, DB2, Virtuoso or other, and by querying the physical RDF rendition of the data in Virtuoso.Â  From there, we move to querying a collection of RDBMS&amp;#39;s hosting similar data. &lt;/p&gt; &lt;p&gt;Doing this with performance at the level of direct SQL in the case of mappping and not very much slower with physical triples is an important milestone on the way to real world enterprise data web.Â  Real life has harder and more unexpected issues than a benchmark but at any rate doing the benchmark without breaking a sweat is a step on the way.Â  We sent a paper to ESWC 2008 about that but it was rather incomplete.Â  By the time of the VLDB submissions deadline in March we&amp;#39;ll have more meat.&lt;/p&gt; &lt;p&gt;Another tack soon to start is a rearchitecting of &lt;a href=&quot;http://zitgist.com/&quot; id=&quot;link-id104024b8&quot;&gt;Zitgist&lt;/a&gt; around clustered Virtuoso.Â  Aside matters of scale, we will make a number of qualitatively new things possible.Â  Again, more will be released in the first quarter of 08.&lt;/p&gt; &lt;p&gt;Beyond these short and mid-term goals we have the introduction of entirely dynamic and demand driven partitioning, a la Google Bigtable or Amazon Dynamo.Â  Now, regular partitioning will do for a while yet but this is the future when we move the the vision of linked dataeverywhere.&lt;/p&gt; &lt;p&gt;In conclusion, this year we have built the basis and the next year is about deployment.Â  The bulk of really new development is behind us and now we start applying.Â  Also, the community will find adoption easier due to our recent support of the common RDF API&amp;#39;s. &lt;/p&gt;Â  &lt;a href=&quot;index.vspx?tag=benchmarking&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;benchmarking&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=sparql&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;sparql&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=rdf&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;rdf&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=sem web&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;sem web&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=semantic web&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;semantic web&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=database&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;database&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=databases&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;databases&lt;/a&gt;&lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Retrospective and Outlook for 2008</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2007-12-18#1286</atom:id>
  <atom:published>2007-12-18T10:53:40Z</atom:published>
  <atom:updated>2008-04-14T14:02:31.000004-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;At this close of the year, I&amp;#39;ll give a little recap of the past year in terms of &lt;a href=&quot;http://virtuoso.openlinksw.com/&quot; id=&quot;link-idfe5ba58&quot;&gt;Virtuoso&lt;/a&gt; development, and take a look at where we are headed for 2008.&lt;/p&gt; &lt;p&gt;A year ago, I was in the middle of redoing the &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot;&gt;Virtuoso&lt;/a&gt; database engine for better SMP performance. We redid the way traversal of index structures and cache buffers was serialized for SMP, and generally compared Virtuoso and Oracle engines function by function. We had just returned from the ISWC 2006 in Athens, Georgia, and the Virtuoso database was becoming a usable triple store.&lt;/p&gt; &lt;p&gt;Soon thereafter, we confirmed that all this worked when we put out the first cut of &lt;a href=&quot;http://dbpedia.org/&quot; id=&quot;link-id149dcff8&quot;&gt;Dbpedia&lt;/a&gt; with Chris Bizer, et al, and were working with Alan Ruttenberg on what would become &lt;a href=&quot;http://esw.w3.org/topic/HCLS/Banff2007Demo&quot; id=&quot;link-id10c25b50&quot;&gt;the Banff health care and life sciences demo&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The &lt;a href=&quot;http://www2007.org/&quot; id=&quot;link-idfdbd0e0&quot;&gt;WWW 2007 conference in Banff&lt;/a&gt;, Canada, was a sort of kick-off for the &lt;a href=&quot;http://esw.w3.org/topic/SweoIG/TaskForces/CommunityProjects/LinkingOpenData&quot; id=&quot;link-id10e54940&quot;&gt;Linking Open Data&lt;/a&gt; movement, which started as a community project under &lt;a href=&quot;http://www.w3.org/2001/sw/sweo/&quot; id=&quot;link-idfd99988&quot;&gt;SWEO&lt;/a&gt;, the W3C interest group for Semantic Web Education and Outreach, and has gained a life of its own since.&lt;/p&gt; &lt;p&gt;Right after WWW 2007, the Virtuoso development effort split onto two tracks: one for enhancing the then new 5.0 release; and one for building a new generation of Virtuoso, notably featuring clustering and double storage density for &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot;&gt;RDF&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The first track produced constant improvements to the relational-to-RDF mapping functionality, &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot;&gt;SPARQL&lt;/a&gt; enhancements, and Redland-, Jena- and Sesame-compatible client libraries with Virtuoso as as a triple store. These things have been out with testers for a while and are all generally available as of this writing.&lt;/p&gt; &lt;p&gt;The second track started with adding key compression to the storage engine, specifically with regard to RDF, even though there are some gains in relational applications as well. With RDF, the space consumption drops to about half, all without recourse to any non-random access compatible compression like gzip. Since the start of August, we turned to clustering and are now code complete, pretty much with all the tricks one would expect, of course full function SQL and taking advantage of co-located joins and doing aggregation and generally all possible processing where the data is. I have covered details of this along the way in previous posts. The key point is that now the thing is written and works with test cases. &lt;/p&gt; &lt;p&gt;In late October, we were at the W3C workshop for mapping relational data to RDF. For us, this confirmed the importance of mapping and scalability in general. Ivan Herman proposed forming a W3C incubator group on benchmarking. Also a W3C incubator group of relational to RDF mapping is being formed. &lt;/p&gt; &lt;p&gt;Now, scalability has two sides. One is dealing with volume, and the other is dealing with complexity. Volume alone will not help if interesting queries cannot be formulated. Hence, we recently extended SPARQL with sub-queries so that we can now express at least any SQL workloads, which was previously not the case. It is sort of a contradiction in terms to say that SPARQL is the universal language for information integration while not being able to express, for example, the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot;&gt;TPC-H&lt;/a&gt; queries. Well, we fixed this. A separate post will highlight how. The W3C process will eventually follow, as the necessity of these things is undeniable, on the unimpeachable authority of the whole SQL world. Anyway, for now, SPARQL as it is ought to become a recommendation and extensions can be addressed later.&lt;/p&gt; &lt;p&gt;For now, the only RDF benchmark that seems to be out there is the loading part of the LUBM. We did a couple of enhancements of our own for that just recently, but much bigger things are on the way. Also, the billion triples challenge is an interesting initiative in the area. We all recognize that loading any number of triples is a finite problem with known solutions. The challenge is running interesting queries on large volumes. &lt;/p&gt; &lt;p&gt;Our present emphasis is demonstrating both RDF data warehousing and RDF mapping with complex queries and large data. We start with the TPC-H benchmark and doing the queries both through mapping to SQL against any RDBMS â Oracle, DB2, Virtuoso or other â and by querying the physical RDF rendition of the data in Virtuoso. From there, we move to querying a collection of RDBMS hosting similar data. &lt;/p&gt; &lt;p&gt;Doing this with performance at the level of direct SQL in the case of mapping and not very much slower with physical triples is an important milestone on the way to a real world enterprise data web. Real life has harder and more unexpected issues than a benchmark, but at any rate doing the benchmark without breaking a sweat is a step on the way. We sent a paper to ESWC 2008 about that but it was rather incomplete. By the time of the VLDB submissions deadline in March we&amp;#39;ll have more meat.&lt;/p&gt; &lt;p&gt;Another tack soon to start is a re-architecting of &lt;a href=&quot;http://zitgist.com/&quot; id=&quot;link-id10e8b9f0&quot;&gt;Zitgist&lt;/a&gt; around clustered Virtuoso. Aside matters of scale, we will make a number of qualitatively new things possible. Again, more will be released in the first quarter of 2008.&lt;/p&gt; &lt;p&gt;Beyond these short and mid-term goals we have the introduction of entirely dynamic and demand driven partitioning, &lt;i&gt;a la&lt;/i&gt; Google Bigtable or Amazon Dynamo. Now, regular partitioning will do for a while yet but this is the future when we move the the vision of linked data everywhere.&lt;/p&gt; &lt;p&gt;In conclusion, this year we have built the basis and the next year is about deployment. The bulk of really new development is behind us and now we start applying. Also, the community will find adoption easier due to our recent support of the common RDF APIs. &lt;/p&gt; &lt;a href=&quot;index.vspx?tag=database&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;database&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=databases&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;databases&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=lubm&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;lubm&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=benchmarking&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;benchmarking&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=semanticweb&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;semanticweb&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=sparql&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;sparql&lt;/a&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso LUBM Load Update</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2007-12-07#1285</atom:id>
  <atom:published>2007-12-07T08:45:07Z</atom:published>
  <atom:updated>2008-04-14T14:02:41-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Virtuoso LUBM Load Update&lt;/div&gt; &lt;p&gt;As part of the recent conversation on benchmarking &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x17fd3fd0&quot;&gt;RDF&lt;/a&gt; stores, we re-ran the LUBM 8000 load test (1067 million triples) with the current &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0x1c8a6730&quot;&gt;Virtuoso&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;We did it on two different machines, one with 2 Xeon 5130 2Ghz and 8G RAM and one with 2 Xeon 5330 2GHZ and 16G RAM. Both had 6 x 7800 rpm SATA-2 drives. The load rate on the 16G configuration was 36.8 Ktriples per second. The load rate on the 8G configuration was 29.7 Ktriples per second. Both loads were made using 6 concurrent load streams. Some small changes to the numbers may be released later as a result of changing tuning.&lt;/p&gt; &lt;p&gt;The Virtuoso version was 5.0, in the update to be released on the week of Dec 10, 2007. This is an incremental release of Virtuoso 5.0 and has the same engine as the prior 5.0s, with some optimizations for RDF loading and diverse bug fixes, notably in RDF mapping of relational data. This release will be further described in a separate post.&lt;/p&gt; &lt;p&gt;The load does not include forward chaining but then Virtuoso supports sub-class and sub-property without materializing the entailed triples.&lt;/p&gt; &lt;p&gt;Most of the LUBM entailed triples represent sub-classes and sub-properties. The LUBM query and forward chaining side deserves a separate treatment but this is for another time.&lt;/p&gt; &lt;p&gt;Most recent posts on this blog refer to Virtuoso 6, which is presently under development. We will publish results with the 6.0 engine later. Also, further enhancements to triple store performance will take place on the Virtuoso 6 platform.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso LUBM Load Update</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2007-12-06#1284</atom:id>
  <atom:published>2007-12-06T13:35:21Z</atom:published>
  <atom:updated>2008-04-14T14:02:31-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;As part of the recent conversation on benchmarking &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x17cd8cf8&quot;&gt;RDF&lt;/a&gt; stores, we re-ran the LUBM 8000 load test (1067 million triples) with the current &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0x17581ae0&quot;&gt;Virtuoso&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;We did it on two different machines, one with 2 Xeon 5130 2Ghz and 8G RAM and one with 2 Xeon 5330 2GHZ and 16G RAM. Both had 6 x 7800 rpm SATA-2 drives. The load rate on the 16G configuration was 36.8 Ktriples per second. The load rate on the 8G configuration was 29.7 Ktriples per second. Both loads were made using 6 concurrent load streams. Some small changes to the numbers may be released later as a result of changing tuning.&lt;/p&gt; &lt;p&gt;The Virtuoso version was 5.0, in the update to be released on the week of Dec 10, 2007. This is an incremental release of Virtuoso 5.0 and has the same engine as the prior 5.0s, with some optimizations for RDF loading and diverse bug fixes, notably in RDF mapping of relational data. This release will be further described in a separate post.&lt;/p&gt; &lt;p&gt;The load does not include forward chaining but then Virtuoso supports sub-class and sub-property without materializing the entailed triples.&lt;/p&gt; &lt;p&gt;Most of the LUBM entailed triples represent sub-classes and sub-properties. The LUBM query and forward chaining side deserves a separate treatment but this is for another time.&lt;/p&gt; &lt;p&gt;Most recent posts on this blog refer to Virtuoso 6, which is presently under development. We will publish results with the 6.0 engine later. Also, further enhancements to triple store performance will take place on the Virtuoso 6 platform.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Cluster, RDF, and SQL Map-Reduce</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2007-11-21#1273</atom:id>
  <atom:published>2007-11-21T13:07:05Z</atom:published>
  <atom:updated>2008-04-14T14:42:28.000008-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Virtuoso Cluster, RDF, and SQL Map-Reduce&lt;/div&gt; &lt;p&gt;We have now arrived at the &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x19280810&quot;&gt;RDF&lt;/a&gt; specific parts of the &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0xc70b540&quot;&gt;Virtuoso&lt;/a&gt; cluster effort.&lt;/p&gt; &lt;p&gt;This has to do with special tricks for dealing with the mapping of IRIs and object values and their internal IDs. A quad will refer to the graph, subject, predicate, and object by an internal ID. The object, if short enough, can be inlined so that no join is needed to get its external form in most cases.&lt;/p&gt; &lt;p&gt;Now this is old stuff.&lt;/p&gt; &lt;p&gt;Clustering does not change this, except that now the tables for the mappings between IDs and their external form are partitioned. So more often than not, getting the string for the ID involves an RPC. The most recently used mappings are of course cached outside of the table but still, having a network round trip each time an IRI is returned for the first time in a while is no good.&lt;/p&gt; &lt;p&gt;The solution is the same as always, namely doing one round trip per partition, with all the IDs concerned in a single message. The same applies to reading documents, where strings are translated to IDs and new IDs are made, only now we have a distributed read-write transaction.&lt;/p&gt; &lt;p&gt;In terms of programming model we have a general purpose partitioned pipe. One might think of this in terms of a single control structure combining map and reduce.&lt;/p&gt; &lt;p&gt;Now consider returning results for a text search:&lt;/p&gt; &lt;p&gt; &lt;code&gt;SELECT doc_id, summary (doc_id, &amp;#39;search pattern&amp;#39;) FROM (SELECT TOP 10 doc_id FROM docs WHERE CONTAINS (text, &amp;#39;search pattern&amp;#39;, score) ORDER BY relevance (doc_id, score, &amp;#39;search pattern&amp;#39;) DESC) f;&lt;/code&gt; &lt;/p&gt; &lt;p&gt;The &lt;code&gt;summary&lt;/code&gt; and &lt;code&gt;relevance&lt;/code&gt; are each a function of the &lt;code&gt;doc_id&lt;/code&gt; and &lt;code&gt;search pattern&lt;/code&gt;. The &lt;code&gt;relevance&lt;/code&gt; function would typically access some precomputed site rank and combine this with a hit score that is a function of the word frequencies in the individual hit.&lt;/p&gt; &lt;p&gt;Now we are not specifically in the business of text search but this well known example will serve to make a more general point.&lt;/p&gt; &lt;p&gt;How does a query like this work when everything is partitioned?&lt;/p&gt; &lt;p&gt;The text index (inverted file from word to positions in each document) can be split by word or by document ID or both. In either case, it will produce the hits fairly quickly, partitioning or not. The question is sorting the million hits according to criteria that involve joining with document or site metadata. To produce fast response, this loop must run in parallel but then each score is independent, so no problem. Finally, summaries have to be made only for the items actually returned and again each summary is independent.&lt;/p&gt; &lt;p&gt;A text search engine does not depend on a general purpose query processor for scheduling things in this way.&lt;/p&gt; &lt;p&gt;The case is different with RDF where we must do basically the same things with ad-hoc queries. As it happens, the above sample query will run as described if only the summary and relevance functions are properly declared.&lt;/p&gt; &lt;p&gt;So we have a special declaration for a partitioned function call. Further, the partitioned function call (in this case summary and relevance) will dispatch according to a given index, thus going to run on a node hosting the actual data. This is like the map part of map-reduce. But this is not all. The functions can return either a final value or a next step. This can be regarded as a second map or in some cases a reduce step. The next step is another partitioned function that gets the output of the previous one as its input and may use the same or different partitioning key.&lt;/p&gt; &lt;p&gt;Now the functions can be large or small, including very small, like a single index lookup, where the RPC delay is an order of magnitude greater than the time to perform the function. The partitioned pipe manages batching these together and overlapping processing on all nodes. Plus the work can be transactional, all bound in a single distributed transaction or it can be each task for itself with error retries etc, as in the usual map-reduce situation where relatively large tasks are sent around.&lt;/p&gt; &lt;p&gt;At present, we have all this implemented and we are running tests with large RDF data sets on clustered Virtuoso.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>RDBMS to RDF Mapping Workshop, and Benchmarks</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2007-11-21#1271</atom:id>
  <atom:published>2007-11-21T13:07:03Z</atom:published>
  <atom:updated>2008-04-25T16:29:53-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;RDBMS to RDF Mapping Workshop, and Benchmarks&lt;/div&gt; &lt;p&gt;I was recently in Boston for the &lt;a href=&quot;http://www.w3.org/2007/03/RdfRDB/&quot; id=&quot;link-id10f990b0&quot;&gt;Mapping Relational Data to RDF workshop&lt;/a&gt; of the W3C.&lt;/p&gt; &lt;p&gt;The common feeling was that mapping everything to &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1c343278&quot;&gt;RDF&lt;/a&gt; and querying it in terms of a generic domain ontology, mapped on demand into whatever line of business systems, would be very good if it only could be done. However, since this is not so easily done, the next best is to extract the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xb6f01d0&quot;&gt;data&lt;/a&gt; and then warehouse it as RDF.&lt;/p&gt; &lt;p&gt;The obstacles perceived were of the following types:&lt;/p&gt; &lt;ul&gt; &lt;li&gt; &lt;p&gt;Lack of quality in the data. The different line of business systems do not in and of themselves hold enough semantics. If the meaning of data columns in relational tables were really known and explicit, these could be meaningfully used for joining across systems. But this is more complex than just mapping the metal &lt;i&gt;lead&lt;/i&gt; to the chemical symbol &lt;i&gt;Pb&lt;/i&gt; and back.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;Lack of performance in RDF storage. Data sets even in the tens-of-millions of triples do not run very well in some stores. Well, we had the Banff life sciences demo with 450M triples in a small server box running &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1ca1c488&quot;&gt;Virtuoso&lt;/a&gt;, so this is not universal, plus of course we are coming up with a whole different order of magnitude, as often discussed on this &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0xb4dc850&quot;&gt;blog&lt;/a&gt;.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;Lack of functionality in mapping and possibly lack of pushing through enough of the query processing to the underlying data stores.&lt;/p&gt; &lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Personally, I am quite aware of what to do with regard to performance of mapping and storage, and see these as eminently solvable issues. After all, we have a great investment of talent in databases in general and it can be well deployed towards RDF, as we have been doing these past couple of years. So we talk about the promise of a 360-degree view of &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x1ae64448&quot;&gt;information&lt;/a&gt;, with RDF being the top layer. Everybody agrees that this is a nice concept. But this is a nice concept especially when it can do the things that are the most common baseline expectation of any regular DBMS, i.e., aggregation, grouping, sub-queries, VIEWs. Now, I would not go sell a DBMS that has no &lt;code&gt;COUNT&lt;/code&gt; operator to a data warehousing shop.&lt;/p&gt; &lt;p&gt;The fact that OpenLink and &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0x1aa10fd8&quot;&gt;Oracle&lt;/a&gt; allow RDF inside &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0xa26d330&quot;&gt;SQL&lt;/a&gt;, and OpenLink even adds native aggregates and grouping to &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1d81d990&quot;&gt;SPARQL&lt;/a&gt;, fixes the problem with regard to specific products, but leaves the standardization issue open. Of course, any vendor will solve these questions one way or another because a database with no aggregation is a non-starter.&lt;/p&gt; &lt;p&gt;I talked to Lee Feigenbaum, chair of the W3C DAWG, about the question of aggregates and general BI capabilities in SPARQL. He told me that, prior to his time with the DAWG, these were left out because they conflicted with the &lt;a href=&quot;http://dbpedia.org/resource/Open_world_assumption&quot; id=&quot;link-id0x1be3ab98&quot;&gt;open-world&lt;/a&gt; assumption around RDF: You cannot count a set because by definition you do not know that you have all the members, the world being open and all that.&lt;/p&gt; &lt;p&gt;Say what? Talk about the road to hell being paved with good intentions. Now, this is in no way Lee&amp;#39;s or the present day DAWG&amp;#39;s fault; as a member myself, I can attest to the good work and would under no circumstances wish any delays or revisions to SPARQL at this point. I am just pointing out a matter that all implementations should address, as a sort of precondition of entry into the real world IS space. If this can be done interoperably, so much the better.&lt;/p&gt; &lt;p&gt;Now, out of the deliberations at the Boston workshop arose at least two ideas for follow-up activity.&lt;/p&gt; &lt;p&gt;The first was an incubator group for RDF store and mapping benchmarking. This is very appropriate in order to dispel the bad name RDF storage and querying performance has been saddled with. As a first step in this direction, I will outline a &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1269&quot; id=&quot;link-id10306200&quot;&gt;social web oriented benchmark&lt;/a&gt; on this blog.&lt;/p&gt; &lt;p&gt;The second activity was an &lt;a href=&quot;http://www.w3.org/2005/Incubator/rdb2rdf/&quot; id=&quot;link-id10150a58&quot;&gt;incubator group for preparing standardization of mapping methodologies from relational schemas to RDF&lt;/a&gt;. We will be active on this as well.&lt;/p&gt; &lt;p&gt;The two offshoots appear logically separate but are not necessarily so in practice. A benchmark is after all something that is supposed to promote a technology to a user base. The user base seems to wish to put all online systems and data warehouses under a common top level RDF model and then query away, introducing no further replication of data or performance cost or ETL latencies.&lt;/p&gt; &lt;p&gt;Updating would also be nice but even query only would be very good. Personally, I&amp;#39;d say the RDF strength is all on the query side. Transactions are taken care of well enough by what there already is, RDF stands out in integration and the ad-hoc and discovery side of the matter. Given this, we expect the value to be consumed in a heterogeneous, multi-database, federated environment. Thus a benchmark should measure this aspect of the use-case. With the right mapping and queries, we could probably demonstrate the added cost of RDF to be very low, as long as we could push all queries that can be answered by a single source to the responsible DBMS. For distributed joins, we are back at the question of optimizing distributed queries but this is a familiar one and RDF is not the principal cost factor.&lt;/p&gt; &lt;p&gt;The subject does become quite complex at this point. We would have to take supposedly representative synthetic OLTP and BI data sets (like the ones in TPC-D, TPC-E, and &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0xb576e78&quot;&gt;TPC-H&lt;/a&gt;), and invent queries across them that would both make sense and be implementable in SPARQL extended with aggregates and sub-queries. Reliance on SPARQL extensions is simply unavoidable. Setting up the test systems would be non-trivial, even though there is a lot of industry experience in these matters on the database side.&lt;/p&gt; &lt;p&gt;So, while this is probably the benchmark most relevant to the target audience, we may have to start with a simpler one. I will next &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1269&quot; id=&quot;link-id10fa7a50&quot;&gt;outline something to the effect&lt;/a&gt;.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Cluster, RDF, and SQL Map-Reduce</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2007-11-20#1270</atom:id>
  <atom:published>2007-11-20T17:09:45Z</atom:published>
  <atom:updated>2008-04-14T14:42:26.000002-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;We have now arrived at the &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x189c3778&quot;&gt;RDF&lt;/a&gt; specific parts of the &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0xa20ce710&quot;&gt;Virtuoso&lt;/a&gt; cluster effort.&lt;/p&gt; &lt;p&gt;This has to do with special tricks for dealing with the mapping of IRIs and object values and their internal IDs. A quad will refer to the graph, subject, predicate, and object by an internal ID. The object, if short enough, can be inlined so that no join is needed to get its external form in most cases.&lt;/p&gt; &lt;p&gt;Now this is old stuff.&lt;/p&gt; &lt;p&gt;Clustering does not change this, except that now the tables for the mappings between IDs and their external form are partitioned. So more often than not, getting the string for the ID involves an RPC. The most recently used mappings are of course cached outside of the table but still, having a network round trip each time an IRI is returned for the first time in a while is no good.&lt;/p&gt; &lt;p&gt;The solution is the same as always, namely doing one round trip per partition, with all the IDs concerned in a single message. The same applies to reading documents, where strings are translated to IDs and new IDs are made, only now we have a distributed read-write transaction.&lt;/p&gt; &lt;p&gt;In terms of programming model we have a general purpose partitioned pipe. One might think of this in terms of a single control structure combining map and reduce.&lt;/p&gt; &lt;p&gt;Now consider returning results for a text search:&lt;/p&gt; &lt;p&gt; &lt;code&gt;SELECT doc_id, summary (doc_id, &amp;#39;search pattern&amp;#39;) FROM (SELECT TOP 10 doc_id FROM docs WHERE CONTAINS (text, &amp;#39;search pattern&amp;#39;, score) ORDER BY relevance (doc_id, score, &amp;#39;search pattern&amp;#39;) DESC) f;&lt;/code&gt; &lt;/p&gt; &lt;p&gt;The &lt;code&gt;summary&lt;/code&gt; and &lt;code&gt;relevance&lt;/code&gt; are each a function of the &lt;code&gt;doc_id&lt;/code&gt; and &lt;code&gt;search pattern&lt;/code&gt;. The &lt;code&gt;relevance&lt;/code&gt; function would typically access some precomputed site rank and combine this with a hit score that is a function of the word frequencies in the individual hit.&lt;/p&gt; &lt;p&gt;Now we are not specifically in the business of text search but this well known example will serve to make a more general point.&lt;/p&gt; &lt;p&gt;How does a query like this work when everything is partitioned?&lt;/p&gt; &lt;p&gt;The text index (inverted file from word to positions in each document) can be split by word or by document ID or both. In either case, it will produce the hits fairly quickly, partitioning or not. The question is sorting the million hits according to criteria that involve joining with document or site metadata. To produce fast response, this loop must run in parallel but then each score is independent, so no problem. Finally, summaries have to be made only for the items actually returned and again each summary is independent.&lt;/p&gt; &lt;p&gt;A text search engine does not depend on a general purpose query processor for scheduling things in this way.&lt;/p&gt; &lt;p&gt;The case is different with RDF where we must do basically the same things with ad-hoc queries. As it happens, the above sample query will run as described if only the summary and relevance functions are properly declared.&lt;/p&gt; &lt;p&gt;So we have a special declaration for a partitioned function call. Further, the partitioned function call (in this case summary and relevance) will dispatch according to a given index, thus going to run on a node hosting the actual data. This is like the map part of map-reduce. But this is not all. The functions can return either a final value or a next step. This can be regarded as a second map or in some cases a reduce step. The next step is another partitioned function that gets the output of the previous one as its input and may use the same or different partitioning key.&lt;/p&gt; &lt;p&gt;Now the functions can be large or small, including very small, like a single index lookup, where the RPC delay is an order of magnitude greater than the time to perform the function. The partitioned pipe manages batching these together and overlapping processing on all nodes. Plus the work can be transactional, all bound in a single distributed transaction or it can be each task for itself with error retries etc, as in the usual map-reduce situation where relatively large tasks are sent around.&lt;/p&gt; &lt;p&gt;At present, we have all this implemented and we are running tests with large RDF data sets on clustered Virtuoso.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>RDBMS to RDF Mapping Workshop, and Benchmarks</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2007-11-08#1268</atom:id>
  <atom:published>2007-11-08T12:51:44Z</atom:published>
  <atom:updated>2008-04-25T16:29:42-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;I was recently in Boston for the &lt;a href=&quot;http://www.w3.org/2007/03/RdfRDB/&quot; id=&quot;link-id10f990b0&quot;&gt;Mapping Relational Data to RDF workshop&lt;/a&gt; of the W3C.&lt;/p&gt; &lt;p&gt;The common feeling was that mapping everything to &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xb5de0b8&quot;&gt;RDF&lt;/a&gt; and querying it in terms of a generic domain ontology, mapped on demand into whatever line of business systems, would be very good if it only could be done. However, since this is not so easily done, the next best is to extract the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xa05278e0&quot;&gt;data&lt;/a&gt; and then warehouse it as RDF.&lt;/p&gt; &lt;p&gt;The obstacles perceived were of the following types:&lt;/p&gt; &lt;ul&gt; &lt;li&gt; &lt;p&gt;Lack of quality in the data. The different line of business systems do not in and of themselves hold enough semantics. If the meaning of data columns in relational tables were really known and explicit, these could be meaningfully used for joining across systems. But this is more complex than just mapping the metal &lt;i&gt;lead&lt;/i&gt; to the chemical symbol &lt;i&gt;Pb&lt;/i&gt; and back.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;Lack of performance in RDF storage. Data sets even in the tens-of-millions of triples do not run very well in some stores. Well, we had the Banff life sciences demo with 450M triples in a small server box running &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1b47d218&quot;&gt;Virtuoso&lt;/a&gt;, so this is not universal, plus of course we are coming up with a whole different order of magnitude, as often discussed on this &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0xb6e3410&quot;&gt;blog&lt;/a&gt;.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;Lack of functionality in mapping and possibly lack of pushing through enough of the query processing to the underlying data stores.&lt;/p&gt; &lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Personally, I am quite aware of what to do with regard to performance of mapping and storage, and see these as eminently solvable issues. After all, we have a great investment of talent in databases in general and it can be well deployed towards RDF, as we have been doing these past couple of years. So we talk about the promise of a 360-degree view of &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x1be90ae0&quot;&gt;information&lt;/a&gt;, with RDF being the top layer. Everybody agrees that this is a nice concept. But this is a nice concept especially when it can do the things that are the most common baseline expectation of any regular DBMS, i.e., aggregation, grouping, sub-queries, VIEWs. Now, I would not go sell a DBMS that has no &lt;code&gt;COUNT&lt;/code&gt; operator to a data warehousing shop.&lt;/p&gt; &lt;p&gt;The fact that OpenLink and &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0x1a882490&quot;&gt;Oracle&lt;/a&gt; allow RDF inside &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1c350498&quot;&gt;SQL&lt;/a&gt;, and OpenLink even adds native aggregates and grouping to &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1a82e880&quot;&gt;SPARQL&lt;/a&gt;, fixes the problem with regard to specific products, but leaves the standardization issue open. Of course, any vendor will solve these questions one way or another because a database with no aggregation is a non-starter.&lt;/p&gt; &lt;p&gt;I talked to Lee Feigenbaum, chair of the W3C DAWG, about the question of aggregates and general BI capabilities in SPARQL. He told me that, prior to his time with the DAWG, these were left out because they conflicted with the &lt;a href=&quot;http://dbpedia.org/resource/Open_world_assumption&quot; id=&quot;link-id0x9f7ce7d8&quot;&gt;open-world&lt;/a&gt; assumption around RDF: You cannot count a set because by definition you do not know that you have all the members, the world being open and all that.&lt;/p&gt; &lt;p&gt;Say what? Talk about the road to hell being paved with good intentions. Now, this is in no way Lee&amp;#39;s or the present day DAWG&amp;#39;s fault; as a member myself, I can attest to the good work and would under no circumstances wish any delays or revisions to SPARQL at this point. I am just pointing out a matter that all implementations should address, as a sort of precondition of entry into the real world IS space. If this can be done interoperably, so much the better.&lt;/p&gt; &lt;p&gt;Now, out of the deliberations at the Boston workshop arose at least two ideas for follow-up activity.&lt;/p&gt; &lt;p&gt;The first was an incubator group for RDF store and mapping benchmarking. This is very appropriate in order to dispel the bad name RDF storage and querying performance has been saddled with. As a first step in this direction, I will outline a &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1269&quot; id=&quot;link-id10306200&quot;&gt;social web oriented benchmark&lt;/a&gt; on this blog.&lt;/p&gt; &lt;p&gt;The second activity was an &lt;a href=&quot;http://www.w3.org/2005/Incubator/rdb2rdf/&quot; id=&quot;link-id10150a58&quot;&gt;incubator group for preparing standardization of mapping methodologies from relational schemas to RDF&lt;/a&gt;. We will be active on this as well.&lt;/p&gt; &lt;p&gt;The two offshoots appear logically separate but are not necessarily so in practice. A benchmark is after all something that is supposed to promote a technology to a user base. The user base seems to wish to put all online systems and data warehouses under a common top level RDF model and then query away, introducing no further replication of data or performance cost or ETL latencies.&lt;/p&gt; &lt;p&gt;Updating would also be nice but even query only would be very good. Personally, I&amp;#39;d say the RDF strength is all on the query side. Transactions are taken care of well enough by what there already is, RDF stands out in integration and the ad-hoc and discovery side of the matter. Given this, we expect the value to be consumed in a heterogeneous, multi-database, federated environment. Thus a benchmark should measure this aspect of the use-case. With the right mapping and queries, we could probably demonstrate the added cost of RDF to be very low, as long as we could push all queries that can be answered by a single source to the responsible DBMS. For distributed joins, we are back at the question of optimizing distributed queries but this is a familiar one and RDF is not the principal cost factor.&lt;/p&gt; &lt;p&gt;The subject does become quite complex at this point. We would have to take supposedly representative synthetic OLTP and BI data sets (like the ones in TPC-D, TPC-E, and &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x1de16b90&quot;&gt;TPC-H&lt;/a&gt;), and invent queries across them that would both make sense and be implementable in SPARQL extended with aggregates and sub-queries. Reliance on SPARQL extensions is simply unavoidable. Setting up the test systems would be non-trivial, even though there is a lot of industry experience in these matters on the database side.&lt;/p&gt; &lt;p&gt;So, while this is probably the benchmark most relevant to the target audience, we may have to start with a simpler one. I will next &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1269&quot; id=&quot;link-id10fa7a50&quot;&gt;outline something to the effect&lt;/a&gt;.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Cluster Stage 1</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2007-09-06#1251</atom:id>
  <atom:published>2007-09-06T11:11:52Z</atom:published>
  <atom:updated>2008-04-25T15:57:25-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Virtuoso Cluster Stage 1&lt;/div&gt; &lt;p&gt;I recall a quote from a stock car racing movie.&lt;/p&gt; &lt;p&gt;&amp;quot;What is the necessary prerequisite for winning a race?&amp;quot; asked the racing team boss.&lt;/p&gt; &lt;p&gt;&amp;quot;Being the fastest,&amp;quot; answered the hotshot driver, after yet another wrecked engine.&lt;/p&gt; &lt;p&gt;&amp;quot;No. It is finishing the race.&amp;quot;&lt;/p&gt; &lt;p&gt;In the interest of finishing, we&amp;#39;ll now leave optimizing the cluster traffic and scheduling and move to completing functionality. Our next stop is TPC-D. After this &lt;a href=&quot;http://dbpedia.org/resource/TPC-C&quot; id=&quot;link-id0x1c3d9cb8&quot;&gt;TPC-C&lt;/a&gt;, which adds the requirement of handling distributed deadlocks. After this we add &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x1be00c10&quot;&gt;RDF&lt;/a&gt;-specific optimizations.&lt;/p&gt; &lt;p&gt;This will be &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1f91c098&quot;&gt;Virtuoso&lt;/a&gt; 6 with the first stage of clustering support. This is with fixed partitions, which is just like a single database, except it runs on multiple machines. The stage after this is Virtuoso Cloud, the database with all the space filling properties of foam, expanding and contracting to keep an even &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1e1aeff8&quot;&gt;data&lt;/a&gt; density as load and resource availability change.&lt;/p&gt; &lt;p&gt;Right now, we have a pretty good idea of the final form of evaluating loop joins in a cluster, which after all is the main function of the thing. It makes sense to tune this to a point before going further. You want the pipes and pumps and turbines to have known properties and fittings before building a power plant.&lt;/p&gt; &lt;p&gt;To test this, we took a table of a million short rows and made one copy partitioned over 4 databases and one copy with all rows in one database. We ran all the instances in a 4 core Xeon box. We used Unix sockets for communication.&lt;/p&gt; &lt;p&gt;We joined the table to itself, like &lt;code&gt;&lt;b&gt;SELECT COUNT (*) FROM ct a, ct b WHERE b.row_no = a.row_no + 3&lt;/b&gt;&lt;/code&gt;. The &lt;code&gt;&lt;b&gt;+ 3&lt;/b&gt;&lt;/code&gt; causes the joined rows never to be on the same partition.&lt;/p&gt; &lt;p&gt;With cluster, the single operation takes 3s and with a single process it takes 4s. The overall CPU time for cluster is about 30% higher, some of which is inevitable since it must combine results, serialize them, and so forth. Some real time is gained by doing multiple iterations of the inner loop (getting the row for b) in parallel. This can be further optimized to maybe 2x better with cluster but this can wait a little.&lt;/p&gt; &lt;p&gt;Then we make a stream of 10 such queries. The stream with cluster is 14s; with the single process, it is 22s. Then we run 4 streams in parallel. The time with cluster is 39s and with a single process 36s. With 16 streams in parallel, cluster gets 2m51 and single process 3m21.&lt;/p&gt; &lt;p&gt;The conclusion is that clustering overhead is not significant in a CPU-bound situation. Note that all the runs were at 4 cores at 98-100%, except for the first, single-client run, which had one process at 98% and 3 at 32%.&lt;/p&gt; &lt;p&gt;The SMP single process loses by having more contention for mutexes serializing index access. Each wait carries an entirely ridiculous penalty of up to 6Âµs or so, &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1229&quot; id=&quot;link-id106dca10&quot;&gt;as discussed earlier on this blog&lt;/a&gt;. The cluster wins by less contention due to distributed data and loses due to having to process messages and remember larger intermediate results. These balance out, or close enough.&lt;/p&gt; &lt;p&gt;For the case with a single client, we can cut down on the coordination overhead by simply optimizing the code some more. This is quite possible, so we could get one process at 100% and 3 at 50%.&lt;/p&gt; &lt;p&gt;The numbers are only relevant as ballpark figures and the percentages will vary between different queries. The point is to prove that we actually win and do not jump from the frying pan into the fire by splitting queries across processes. As a point of comparison, running the query clustered just as one would run it locally took 53s.&lt;/p&gt; &lt;p&gt;We will later look at &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1336&quot; id=&quot;link-id108d9868&quot;&gt;the effects of different networks&lt;/a&gt;, as we get to revisit the theme with some real benchmarks.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Cluster Stage 1</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2007-09-06#1250</atom:id>
  <atom:published>2007-09-06T10:38:31Z</atom:published>
  <atom:updated>2008-04-25T15:57:20-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;I recall a quote from a stock car racing movie.&lt;/p&gt; &lt;p&gt;&amp;quot;What is the necessary prerequisite for winning a race?&amp;quot; asked the racing team boss.&lt;/p&gt; &lt;p&gt;&amp;quot;Being the fastest,&amp;quot; answered the hotshot driver, after yet another wrecked engine.&lt;/p&gt; &lt;p&gt;&amp;quot;No. It is finishing the race.&amp;quot;&lt;/p&gt; &lt;p&gt;In the interest of finishing, we&amp;#39;ll now leave optimizing the cluster traffic and scheduling and move to completing functionality. Our next stop is TPC-D. After this &lt;a href=&quot;http://dbpedia.org/resource/TPC-C&quot; id=&quot;link-id0x1b4d9898&quot;&gt;TPC-C&lt;/a&gt;, which adds the requirement of handling distributed deadlocks. After this we add &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xa57ade08&quot;&gt;RDF&lt;/a&gt;-specific optimizations.&lt;/p&gt; &lt;p&gt;This will be &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x9fc61850&quot;&gt;Virtuoso&lt;/a&gt; 6 with the first stage of clustering support. This is with fixed partitions, which is just like a single database, except it runs on multiple machines. The stage after this is Virtuoso Cloud, the database with all the space filling properties of foam, expanding and contracting to keep an even &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1de20610&quot;&gt;data&lt;/a&gt; density as load and resource availability change.&lt;/p&gt; &lt;p&gt;Right now, we have a pretty good idea of the final form of evaluating loop joins in a cluster, which after all is the main function of the thing. It makes sense to tune this to a point before going further. You want the pipes and pumps and turbines to have known properties and fittings before building a power plant.&lt;/p&gt; &lt;p&gt;To test this, we took a table of a million short rows and made one copy partitioned over 4 databases and one copy with all rows in one database. We ran all the instances in a 4 core Xeon box. We used Unix sockets for communication.&lt;/p&gt; &lt;p&gt;We joined the table to itself, like &lt;code&gt;&lt;b&gt;SELECT COUNT (*) FROM ct a, ct b WHERE b.row_no = a.row_no + 3&lt;/b&gt;&lt;/code&gt;. The &lt;code&gt;&lt;b&gt;+ 3&lt;/b&gt;&lt;/code&gt; causes the joined rows never to be on the same partition.&lt;/p&gt; &lt;p&gt;With cluster, the single operation takes 3s and with a single process it takes 4s. The overall CPU time for cluster is about 30% higher, some of which is inevitable since it must combine results, serialize them, and so forth. Some real time is gained by doing multiple iterations of the inner loop (getting the row for b) in parallel. This can be further optimized to maybe 2x better with cluster but this can wait a little.&lt;/p&gt; &lt;p&gt;Then we make a stream of 10 such queries. The stream with cluster is 14s; with the single process, it is 22s. Then we run 4 streams in parallel. The time with cluster is 39s and with a single process 36s. With 16 streams in parallel, cluster gets 2m51 and single process 3m21.&lt;/p&gt; &lt;p&gt;The conclusion is that clustering overhead is not significant in a CPU-bound situation. Note that all the runs were at 4 cores at 98-100%, except for the first, single-client run, which had one process at 98% and 3 at 32%.&lt;/p&gt; &lt;p&gt;The SMP single process loses by having more contention for mutexes serializing index access. Each wait carries an entirely ridiculous penalty of up to 6Âµs or so, &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1229&quot; id=&quot;link-id106dca10&quot;&gt;as discussed earlier on this blog&lt;/a&gt;. The cluster wins by less contention due to distributed data and loses due to having to process messages and remember larger intermediate results. These balance out, or close enough.&lt;/p&gt; &lt;p&gt;For the case with a single client, we can cut down on the coordination overhead by simply optimizing the code some more. This is quite possible, so we could get one process at 100% and 3 at 50%.&lt;/p&gt; &lt;p&gt;The numbers are only relevant as ballpark figures and the percentages will vary between different queries. The point is to prove that we actually win and do not jump from the frying pan into the fire by splitting queries across processes. As a point of comparison, running the query clustered just as one would run it locally took 53s.&lt;/p&gt; &lt;p&gt;We will later look at &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1336&quot; id=&quot;link-id108d9868&quot;&gt;the effects of different networks&lt;/a&gt;, as we get to revisit the theme with some real benchmarks.&lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso and cluster capacity allocation</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2007-08-28#1248</atom:id>
  <atom:published>2007-08-28T11:54:30Z</atom:published>
  <atom:updated>2008-04-30T15:08:20-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Virtuoso and cluster capacity allocation&lt;/div&gt; &lt;p&gt;I just read &lt;a href=&quot;http://labs.google.com/papers/bigtable.html&quot; id=&quot;link-id140a68b0&quot;&gt;Google&amp;#39;s Bigtable&lt;/a&gt; paper. It is relevant here because it talks about keeping petabyte scale (1024TB) tables on a variable size cluster of machines.&lt;/p&gt; &lt;p&gt;I have talked about partitioning versus distributed cache in the &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1229&quot; id=&quot;link-id13f70dc8&quot;&gt;second to last post&lt;/a&gt;. The problem in short is that you do not expect a DBA to really know how to partition things, and even if the indices are correctly partitioned initially, repartitioning them is so bad that doing it online can be a problem. And repartitioning is needed whenever adding machines, unless the size increment is a doubling, which it will never be.&lt;/p&gt; &lt;p&gt;So &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0xa2957e38&quot;&gt;Oracle&lt;/a&gt; has really elegantly stepped around the whole problem by not partitioning for clustering in the first place. So incremental capacity change does not require repartitioning. Oracle has partitioning for other purposes but this is not tied to their cluster proposition.&lt;/p&gt; &lt;p&gt;I did not go the cache fusion route because I could not figure a way to know with near certainty where to send a request for a given key value. In the case we are interested in, the job simply must go to the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xa20ce8e0&quot;&gt;data&lt;/a&gt; and not the other way around. Besides, not being totally dependent on a microsecond latency interconnect and a SAN for performance enhances deployment options. Sending large batches of functions tolerates latency better than cache consistency messages which are a page at a time, unless of course you kill yourself with extra trickery for batching these too.&lt;/p&gt; &lt;p&gt;So how to adapt to capacity change? Well, by making the unit of capacity allocation much smaller than a machine, of course.&lt;/p&gt; &lt;p&gt;Google has done this in Bigtable by a scheme of dynamic range partitioning. The partition size is in the tens to hundreds of megabytes, something that can be moved around within reason. When the partition, called a tablet, gets too big, it splits. Just like a Btree index. The tree top must be common &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0xa20cebb0&quot;&gt;knowledge&lt;/a&gt;, as well as the allocation of partitions to servers but these can be cached here and there and do not change all the time.&lt;/p&gt; &lt;p&gt;So how could we do something of the sort here? I know for an experiential fact that when people cannot change the server memory pool size, let alone correctly set up disk striping, they simply cannot be expected to deal with partitioning. Besides, even if you know exactly what you are doing and why, configuring and refilling large numbers of partitions by hand is error prone, tedious, time consuming, and will run out of disk and require restoring backups and all sorts of DBA activity that will have everything down for a long time, unless of course you have MIS staff such as is not easily found.&lt;/p&gt; &lt;p&gt;The solution is not so complex. We start with a set number of machines and make a file group on each. A file group has a bunch of disk stripes and a log file and can be laid out on the local file system in the usual manner. The data goes into the file group, partitioned as defined. You still specify partitioning columns but not where each partition goes. The system will decide this by itself. When a server&amp;#39;s file group gets too big, it splits. One half of each key&amp;#39;s partition in the original stays where it was and the other half goes to the copy. The copies will hold rows that no longer belong there but these can be removed in the background. The new file group will be managed by the same server process and the partitioning &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0xc803148&quot;&gt;information&lt;/a&gt; on all servers gets updated to reflect the existence of the new file group and the range of hash values that belong there.&lt;/p&gt; &lt;p&gt;If a file group is kept at some reasonable size, under a few GB, these can be moved around between servers, even dynamically. &lt;/p&gt; &lt;p&gt;If data is kept replicated, then the replicas have to split at the same time and the system will have to make sure that the replicas are kept on separate machines.&lt;/p&gt; &lt;p&gt;So what happens to disk locality when file groups split? Nothing much. Firstly, partitioning will be set up so that consecutive values go to the same hash value, so that key compression is not ruined. Thus, consecutive numbers will be on the same page. Imagine an integer key partitioned two ways on bits 10-20. Values 0-1K go together, values 1K-2K go another way, values 2K-3K go the first way etc. &lt;/p&gt; &lt;p&gt;Now let us suppose the first partition, the even K&amp;#39;s splits. It could split so that multiples of 4 go one way and the rest another way. Now we&amp;#39;d have 0-1K in place, 2K-3K in the new partition, 4K-5K in place and so on. A sequential disk read, with some read ahead, would scan the partitions in parallel but the disk access would be made sequential by the read ahead logic â remember that these are controlled by the same server process.&lt;/p&gt; &lt;p&gt;For purposes of sending functions, the file group would be the recipient, not the host, per se. The allocation of file groups to hosts could change. &lt;/p&gt; &lt;p&gt;Now picture a transaction that touches multiple file groups. The requests going to collocated file groups can travel in the same batch and the recipient server process can run them sequentially or with a thread per file group, as may be convenient. Multiple threads per query on the same index make contention and needless thread switches. But since distinct file groups have their distinct mutexes there is less interference.&lt;/p&gt; &lt;p&gt;For purposes of transactions, we might view a file group as deserving a its own branch. In this way we would not have to abort transactions if file groups moved. A file group split would probably have to kill all uncommitted transactions on it so as not to have to split one branch in two or deal with uncommitted data in the split. This is hardly a problem, the event being rare. For purposes of checkpoints, logging, log archival, recovery, and such, a file group is its own unit. The Bigtable paper had some ideas about combining transaction logs and such, all quite straightforward and intuitive.&lt;/p&gt; &lt;p&gt;Writing the clustering logic with the file group, not the database process, as the main unit of location is a good idea and an entirely trivial change. This will make it possible to adjust capacity in almost real time without bringing everything to a halt by re-inserting terabytes of data in system wide repartitioning runs.&lt;/p&gt; &lt;p&gt;Implementing this on the current &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xa21de0e0&quot;&gt;Virtuoso&lt;/a&gt; is not a real difficulty. There is already a concept of file group, although we use only two, one for the data and one for temp. Using multiple ones is not a big deal.&lt;/p&gt; &lt;p&gt;Supporting capacity allocation at the file group level instead of the server level can be introduced towards the middle of the clustering effort and will not greatly impact timetables.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso and cluster capacity allocation</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2007-08-28#1246</atom:id>
  <atom:published>2007-08-28T10:08:25Z</atom:published>
  <atom:updated>2008-04-25T12:39:16.000002-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;I just read &lt;a href=&quot;http://labs.google.com/papers/bigtable.html&quot; id=&quot;link-id10967a78&quot;&gt;Google&amp;#39;s Bigtable&lt;/a&gt; paper. It is relevant here because it talks about keeping petabyte scale (1024TB) tables on a variable size cluster of machines.&lt;/p&gt; &lt;p&gt;I have talked about partitioning versus distributed cache in the &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1229&quot; id=&quot;link-id10913318&quot;&gt;second to last post&lt;/a&gt;. The problem in short is that you do not expect a DBA to really know how to partition things, and even if the indices are correctly partitioned initially, repartitioning them is so bad that doing it online can be a problem. And repartitioning is needed whenever adding machines, unless the size increment is a doubling, which it will never be.&lt;/p&gt; &lt;p&gt;So &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0x1c4caaa0&quot;&gt;Oracle&lt;/a&gt; has really elegantly stepped around the whole problem by not partitioning for clustering in the first place. So incremental capacity change does not require repartitioning. Oracle has partitioning for other purposes but this is not tied to their cluster proposition.&lt;/p&gt; &lt;p&gt;I did not go the cache fusion route because I could not figure a way to know with near certainty where to send a request for a given key value. In the case we are interested in, the job simply must go to the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xa1b52ab8&quot;&gt;data&lt;/a&gt; and not the other way around. Besides, not being totally dependent on a microsecond latency interconnect and a SAN for performance enhances deployment options. Sending large batches of functions tolerates latency better than cache consistency messages which are a page at a time, unless of course you kill yourself with extra trickery for batching these too.&lt;/p&gt; &lt;p&gt;So how to adapt to capacity change? Well, by making the unit of capacity allocation much smaller than a machine, of course.&lt;/p&gt; &lt;p&gt;Google has done this in Bigtable by a scheme of dynamic range partitioning. The partition size is in the tens to hundreds of megabytes, something that can be moved around within reason. When the partition, called a tablet, gets too big, it splits. Just like a Btree index. The tree top must be common &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x9f94a5f8&quot;&gt;knowledge&lt;/a&gt;, as well as the allocation of partitions to servers but these can be cached here and there and do not change all the time.&lt;/p&gt; &lt;p&gt;So how could we do something of the sort here? I know for an experiential fact that when people cannot change the server memory pool size, let alone correctly set up disk striping, they simply cannot be expected to deal with partitioning. Besides, even if you know exactly what you are doing and why, configuring and refilling large numbers of partitions by hand is error prone, tedious, time consuming, and will run out of disk and require restoring backups and all sorts of DBA activity that will have everything down for a long time, unless of course you have MIS staff such as is not easily found.&lt;/p&gt; &lt;p&gt;The solution is not so complex. We start with a set number of machines and make a file group on each. A file group has a bunch of disk stripes and a log file and can be laid out on the local file system in the usual manner. The data goes into the file group, partitioned as defined. You still specify partitioning columns but not where each partition goes. The system will decide this by itself. When a server&amp;#39;s file group gets too big, it splits. One half of each key&amp;#39;s partition in the original stays where it was and the other half goes to the copy. The copies will hold rows that no longer belong there but these can be removed in the background. The new file group will be managed by the same server process and the partitioning &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x1a3e17a0&quot;&gt;information&lt;/a&gt; on all servers gets updated to reflect the existence of the new file group and the range of hash values that belong there.&lt;/p&gt; &lt;p&gt;If a file group is kept at some reasonable size, under a few GB, these can be moved around between servers, even dynamically. &lt;/p&gt; &lt;p&gt;If data is kept replicated, then the replicas have to split at the same time and the system will have to make sure that the replicas are kept on separate machines.&lt;/p&gt; &lt;p&gt;So what happens to disk locality when file groups split? Nothing much. Firstly, partitioning will be set up so that consecutive values go to the same hash value, so that key compression is not ruined. Thus, consecutive numbers will be on the same page. Imagine an integer key partitioned two ways on bits 10-20. Values 0-1K go together, values 1K-2K go another way, values 2K-3K go the first way etc. &lt;/p&gt; &lt;p&gt;Now let us suppose the first partition, the even K&amp;#39;s splits. It could split so that multiples of 4 go one way and the rest another way. Now we&amp;#39;d have 0-1K in place, 2-3K in the new partition, 4K-5K in place and so on. A sequential disk read, with some read ahead, would scan the partitions in parallel but the disk access would be made sequential by the read ahead logic â remember that these are controlled by the same server process.&lt;/p&gt; &lt;p&gt;For purposes of sending functions, the file group would be the recipient, not the host, per se. The allocation of file groups to hosts could change. &lt;/p&gt; &lt;p&gt;Now picture a transaction that touches multiple file groups. The requests going to collocated file groups can travel in the same batch and the recipient server process can run them sequentially or with a thread per file group, as may be convenient. Multiple threads per query on the same index make contention and needless thread switches. But since distinct file groups have their distinct mutexes there is less interference.&lt;/p&gt; &lt;p&gt;For purposes of transactions, we might view a file group as deserving a its own branch. In this way we would not have to abort transactions if file groups moved. A file group split would probably have to kill all uncommitted transactions on it so as not to have to split one branch in two or deal with uncommitted data in the split. This is hardly a problem, the event being rare. For purposes of checkpoints, logging, log archival, recovery, and such, a file group is its own unit. The Bigtable paper had some ideas about combining transaction logs and such, all quite straightforward and intuitive.&lt;/p&gt; &lt;p&gt;Writing the clustering logic with the file group, not the database process, as the main unit of location is a good idea and an entirely trivial change. This will make it possible to adjust capacity in almost real time without bringing everything to a halt by re-inserting terabytes of data in system wide repartitioning runs.&lt;/p&gt; &lt;p&gt;Implementing this on the current &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1a35c638&quot;&gt;Virtuoso&lt;/a&gt; is not a real difficulty. There is already a concept of file group, although we use only two, one for the data and one for temp. Using multiple ones is not a big deal.&lt;/p&gt; &lt;p&gt;Supporting capacity allocation at the file group level instead of the server level can be introduced towards the middle of the clustering effort and will not greatly impact timetables.&lt;/p&gt; Â </atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Cluster Preview</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2007-08-27#1245</atom:id>
  <atom:published>2007-08-27T09:51:45Z</atom:published>
  <atom:updated>2008-04-25T11:59:31-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;Virtuoso Cluster Preview&lt;/div&gt; &lt;p&gt; &lt;b&gt;&lt;i&gt;I wrote the basics of the &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1229&quot; id=&quot;link-id1383c310&quot;&gt;Virtuoso clustering support&lt;/a&gt; over the past three weeks.Â  It can now manage connections, decide where things go, do two phase commits, insert and select &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xad603e0&quot;&gt;data&lt;/a&gt; from tables partitioned over multiple &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xbc64f48&quot;&gt;Virtuoso&lt;/a&gt; instances.Â  It works about enough to be measured, of which I will &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0xb958e90&quot;&gt;blog&lt;/a&gt; more over the next two weeks.&lt;/i&gt; &lt;/b&gt; &lt;/p&gt; &lt;p&gt; &lt;b&gt;&lt;i&gt;I will in the following give a features preview of what will be in the Virtuoso clustering support when it is released in the fall of this year (2007).&lt;/i&gt; &lt;/b&gt; &lt;/p&gt; &lt;h3&gt;Data Partitioning&lt;/h3&gt; &lt;p&gt;A Virtuoso database consists of indices only, so that the row of a table is stored together with the primary key.Â  Blobs are stored on separate pages when they do not fit inline within the row.Â  With clustering, partitioning can be specified index by index. Partitioning means that values of specific columns are used for determining where the containing index entry will be stored.Â  Virtuoso partitions by hash and allows specifying what parts of partitioning columns are used for the hash, for example bits 14-6 of an integer or the first 5 characters of a string.Â  Like this, key compression gains are not lost by storing consecutive values on different partitions.&lt;/p&gt; &lt;p&gt;Once the partitioning is specified, we specify which set of cluster nodes stores this index.Â  Not every index has to be split evenly across all nodes.Â  Also, all nodes do not have to have equal slices of the partitioned index, accommodating differences in capacity between cluster nodes.&lt;/p&gt; &lt;p&gt;Each Virtuoso instance can manage up to 32TB of data.Â  A cluster has no definite size limit.&lt;/p&gt; &lt;h3&gt;Load Balancing and Fault Tolerance&lt;/h3&gt; &lt;p&gt;When data is partitioned, an operation on the data goes where the data is. Â This provides a certain natural parallelism but we will discuss this further below.&lt;/p&gt; &lt;p&gt;Some data may be stored multiple times in the cluster, either for fail-over or for splitting read load.Â  Some data, such as database schema, is replicated on all nodes.Â  When specifying a set of nodes for storing the partitions of a key, it is possible to specify multiple nodes for the same partition.Â  If this is the case, updates go to all nodes and reads go to a randomly picked node from the group.&lt;/p&gt; &lt;p&gt;If one of the nodes in the group fails, operation can resume with the surviving node. Â The failed node can be brought back online from the transaction logs of the surviving nodes. A few transactions may be rolled back at the time of failure and again at the time of the failed node rejoining the cluster but these are aborts as in the case of deadlock and lose no committed data.&lt;/p&gt; &lt;h3&gt;Shared Nothing&lt;/h3&gt; &lt;p&gt;The Virtuoso architecture does not require a SAN for disk sharing across nodes.Â  This is reasonable since a few disks on a local controller can easily provide 300MB/s of read and passing this over an interconnect fabric that would also have to carry inter-node messages could saturate even a fast network. &lt;/p&gt; &lt;h3&gt;Client View&lt;/h3&gt; &lt;p&gt;A &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0xbb32b58&quot;&gt;SQL&lt;/a&gt; or &lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0xaa4e2b8&quot;&gt;HTTP&lt;/a&gt; client can connect to any node of the cluster and get an identical view of all data with full transactional semantics.Â  DDL operations like table creation and package installation are limited to one node, though.&lt;/p&gt; &lt;p&gt;Applications such as &lt;a href=&quot;http://dbpedia.org/resource/OpenLink_Data_Spaces&quot; id=&quot;link-id0x1bc18300&quot;&gt;ODS&lt;/a&gt; will run unmodified.Â  They are installed on all nodes with a single install command.Â  After this, the data partitioning must be declared, which is a one time operation to be done cluster by cluster.Â  The only application change is specifying the partitioning columns for each index.Â  The gain is optional redundant storage and capacity not limited to a single machine.Â  The penalty is that single operations may take a little longer when not all data is managed by the same process but then the parallel throughput is increased. Â We note that the main ODS performance factor is web page logic and not database access. Â Thus splitting the web server logic over multiple nodes gives basically linear scaling.&lt;/p&gt; &lt;h3&gt;Parallel Query Execution&lt;/h3&gt; &lt;p&gt;Message latency is the principal performance factor in a clustered database.Â  Due to this, Virtuoso packs the maximum number of operations in a single message.Â  For example, when doing a loop join that reads one table sequentially and retrieves a row of another table for each row of the outer table, a large number of the join of the inner loop are run in parallel.Â  So, if there is a join of five tables that gets one row from each table and all rows are on different nodes, the time will be spent on message latency.Â  If each step of the join gets 10 rows, for a total of 100000 results, the message latency is not a significant factorÂ and the cluster will clearly outperform a single node.&lt;/p&gt; &lt;p&gt;Also, if the workload consists of large numbers of concurrent short updates or queries, the message latencies will even out and throughput will scale up even if doing a single transaction were faster on a single node.&lt;/p&gt; &lt;h3&gt;Parallel SQL&lt;/h3&gt; &lt;p&gt;There are SQL extensions for stored procedures allowing parallelizing operations. Â For example, if a procedure has a loop doing inserts, the inserted rows can be buffered until a sufficient number is available, at which point they are sent in batches to the nodes concerned. Â Transactional semantics are kept but error detection is deferred to the actual execution.&lt;/p&gt; &lt;h3&gt;Transactions&lt;/h3&gt; &lt;p&gt;Each transaction is owned by one node of the cluster, the node to which the client is connected.Â  When more than one node besides the owner of the transaction is updated, two phase commit is used.Â  This is transparent to the application code.Â  No external transaction monitor is required, the Virtuoso instances perform these functions internally.Â  There is a distributed deadlock detection scheme based on the nodes periodically sharing transaction waiting &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0xb78b5c0&quot;&gt;information&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Since read transactions can operate without locks, reading the last committed state of uncommitted updated rows, waiting for locks is not very common.&lt;/p&gt; &lt;h3&gt;Interconnect and Threading&lt;/h3&gt; &lt;p&gt;Virtuoso uses TCP to connect between instances.Â  A single instance can have multiple listeners at different network interfaces for cluster activity.Â  The interfaces will be used in a round-robin fashion by the peers, spreading the load over all network interfaces. A separate thread is created for monitoring each interface.Â  Long messages, such as transfers of blobs are done on a separate thread, thus allowing normal service on the cluster node while the transfer is proceeding.&lt;/p&gt; &lt;p&gt;We will have to test the performance of TCP over &lt;i&gt;Infiniband&lt;/i&gt; to see if there is clear gain in going to a lower level interface like &lt;i&gt;MPI&lt;/i&gt;.Â  The Virtuoso architecture is based on streams connecting cluster nodes point to point.Â  The design does not per se gain from remote DMA or other features provided by MPI.Â  Typically, messages are quite short, under 100K. Â Flow control for transfer of blobs is however nice to have but can be written at the application level if needed.Â  We will get real data on the performance of different interconnects in the next weeks. &lt;/p&gt; &lt;h3&gt;Deployment and Management&lt;/h3&gt; &lt;p&gt;Configuring is quite simple, with each process sharing a copy of the same configuration file. Â One line in the file differs from host to host, telling it which one it is.Â  Otherwise the database configuration files are individual per host, accommodating different file system layouts etc. Â Setting up a node requires copying the executable and two configuration files, no more.Â  Â All functionality is contained in a single process.Â  There are no installers to be run or such.&lt;/p&gt; &lt;p&gt;Changing the number or network interface of cluster nodes requires a cluster restart.Â  Changing data partitioning requires copying the data into a new table and renaming this over the old one.Â  This is time consuming and does not mix well with updates.Â  Splitting an existing cluster node requires no copying with repartitioning but shifting data between partitions does.&lt;/p&gt; &lt;p&gt;A consolidated status report shows the general state and level of intra-cluster traffic as count of messages and count of bytes.&lt;/p&gt; &lt;p&gt;Start, shutdown, backup, and package installation commands can only be issued from a single master node. Otherwise all is symmetrical.&lt;/p&gt; &lt;h3&gt;Present State and Next Developments&lt;/h3&gt; &lt;p&gt;The basics are now in place.Â  Some code remains to be written for such things as distributed deadlock detection, 2-phase commit recovery cycle, management functions, etc.Â  Some SQL operations like text index, statistics sampling, and index intersection need special support, yet to be written.&lt;/p&gt; &lt;p&gt;The &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xbca4e90&quot;&gt;RDF&lt;/a&gt; capabilities are not specifically affected by clustering except in a couple of places.Â  Loading will be slightly revised to use larger batches of rows to minimize latency, for example.&lt;/p&gt; &lt;p&gt;There is a pretty much infinite world of SQL optimizations for splitting aggregates, taking advantage of co-located joins etc.Â  These will be added gradually.Â  These are however not really central to the first application of RDF storage but are quite important for business intelligence, for example.&lt;/p&gt; &lt;p&gt;We will run some benchmarks for comparing single host and clustered Virtuoso instances over the next weeks.Â  Some of this will be with real data, giving an estimate on when we can move some of the RDF data we presently host to the new platform.Â  We will benchmark against &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0xa9cc1b8&quot;&gt;Oracle&lt;/a&gt; and &lt;a href=&quot;http://dbpedia.org/resource/IBM_DB2&quot; id=&quot;link-id0x1be5abb0&quot;&gt;DB2&lt;/a&gt; later but first we get things to work and compare against ourselves.&lt;/p&gt; &lt;p&gt;We roughly expect a halving in space consumption and a significant increase in single query performance and linearly scaling parallel throughput through addition of cluster nodes.&lt;/p&gt; &lt;p&gt; &lt;i&gt;The &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1246&quot; id=&quot;link-id106de430&quot;&gt;next update&lt;/a&gt; will be on this blog within two weeks.&lt;/i&gt; &lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>Virtuoso Cluster Preview</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2007-08-27#1244</atom:id>
  <atom:published>2007-08-27T09:44:40Z</atom:published>
  <atom:updated>2008-04-25T11:59:21.000003-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt; &lt;b&gt;&lt;i&gt;I wrote the basics of the &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1229&quot; id=&quot;link-id1383c310&quot;&gt;Virtuoso clustering support&lt;/a&gt; over the past three weeks.Â  It can now manage connections, decide where things go, do two phase commits, insert and select &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xbbf5988&quot;&gt;data&lt;/a&gt; from tables partitioned over multiple &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1da47d98&quot;&gt;Virtuoso&lt;/a&gt; instances.Â  It works about enough to be measured, of which I will &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0xabf4a10&quot;&gt;blog&lt;/a&gt; more over the next two weeks.&lt;/i&gt; &lt;/b&gt; &lt;/p&gt; &lt;p&gt; &lt;b&gt;&lt;i&gt;I will in the following give a features preview of what will be in the Virtuoso clustering support when it is released in the fall of this year (2007).&lt;/i&gt; &lt;/b&gt; &lt;/p&gt; &lt;h3&gt;Data Partitioning&lt;/h3&gt; &lt;p&gt;A Virtuoso database consists of indices only, so that the row of a table is stored together with the primary key.Â  Blobs are stored on separate pages when they do not fit inline within the row.Â  With clustering, partitioning can be specified index by index. Partitioning means that values of specific columns are used for determining where the containing index entry will be stored.Â  Virtuoso partitions by hash and allows specifying what parts of partitioning columns are used for the hash, for example bits 14-6 of an integer or the first 5 characters of a string.Â  Like this, key compression gains are not lost by storing consecutive values on different partitions.&lt;/p&gt; &lt;p&gt;Once the partitioning is specified, we specify which set of cluster nodes stores this index.Â  Not every index has to be split evenly across all nodes.Â  Also, all nodes do not have to have equal slices of the partitioned index, accommodating differences in capacity between cluster nodes.&lt;/p&gt; &lt;p&gt;Each Virtuoso instance can manage up to 32TB of data.Â  A cluster has no definite size limit.&lt;/p&gt; &lt;h3&gt;Load Balancing and Fault Tolerance&lt;/h3&gt; &lt;p&gt;When data is partitioned, an operation on the data goes where the data is. Â This provides a certain natural parallelism but we will discuss this further below.&lt;/p&gt; &lt;p&gt;Some data may be stored multiple times in the cluster, either for fail-over or for splitting read load.Â  Some data, such as database schema, is replicated on all nodes.Â  When specifying a set of nodes for storing the partitions of a key, it is possible to specify multiple nodes for the same partition.Â  If this is the case, updates go to all nodes and reads go to a randomly picked node from the group.&lt;/p&gt; &lt;p&gt;If one of the nodes in the group fails, operation can resume with the surviving node. Â The failed node can be brought back online from the transaction logs of the surviving nodes. A few transactions may be rolled back at the time of failure and again at the time of the failed node rejoining the cluster but these are aborts as in the case of deadlock and lose no committed data.&lt;/p&gt; &lt;h3&gt;Shared Nothing&lt;/h3&gt; &lt;p&gt;The Virtuoso architecture does not require a SAN for disk sharing across nodes.Â  This is reasonable since a few disks on a local controller can easily provide 300MB/s of read and passing this over an interconnect fabric that would also have to carry inter-node messages could saturate even a fast network. &lt;/p&gt; &lt;h3&gt;Client View&lt;/h3&gt; &lt;p&gt;A &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x9fc302a0&quot;&gt;SQL&lt;/a&gt; or &lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0x19faa348&quot;&gt;HTTP&lt;/a&gt; client can connect to any node of the cluster and get an identical view of all data with full transactional semantics.Â  DDL operations like table creation and package installation are limited to one node, though.&lt;/p&gt; &lt;p&gt;Applications such as &lt;a href=&quot;http://dbpedia.org/resource/OpenLink_Data_Spaces&quot; id=&quot;link-id0x20cd9e98&quot;&gt;ODS&lt;/a&gt; will run unmodified.Â  They are installed on all nodes with a single install command.Â  After this, the data partitioning must be declared, which is a one time operation to be done cluster by cluster.Â  The only application change is specifying the partitioning columns for each index.Â  The gain is optional redundant storage and capacity not limited to a single machine.Â  The penalty is that single operations may take a little longer when not all data is managed by the same process but then the parallel throughput is increased. Â We note that the main ODS performance factor is web page logic and not database access. Â Thus splitting the web server logic over multiple nodes gives basically linear scaling.&lt;/p&gt; &lt;h3&gt;Parallel Query Execution&lt;/h3&gt; &lt;p&gt;Message latency is the principal performance factor in a clustered database.Â  Due to this, Virtuoso packs the maximum number of operations in a single message.Â  For example, when doing a loop join that reads one table sequentially and retrieves a row of another table for each row of the outer table, a large number of the join of the inner loop are run in parallel.Â  So, if there is a join of five tables that gets one row from each table and all rows are on different nodes, the time will be spent on message latency.Â  If each step of the join gets 10 rows, for a total of 100000 results, the message latency is not a significant factorÂ and the cluster will clearly outperform a single node.&lt;/p&gt; &lt;p&gt;Also, if the workload consists of large numbers of concurrent short updates or queries, the message latencies will even out and throughput will scale up even if doing a single transaction were faster on a single node.&lt;/p&gt; &lt;h3&gt;Parallel SQL&lt;/h3&gt; &lt;p&gt;There are SQL extensions for stored procedures allowing parallelizing operations. Â For example, if a procedure has a loop doing inserts, the inserted rows can be buffered until a sufficient number is available, at which point they are sent in batches to the nodes concerned. Â Transactional semantics are kept but error detection is deferred to the actual execution.&lt;/p&gt; &lt;h3&gt;Transactions&lt;/h3&gt; &lt;p&gt;Each transaction is owned by one node of the cluster, the node to which the client is connected.Â  When more than one node besides the owner of the transaction is updated, two phase commit is used.Â  This is transparent to the application code.Â  No external transaction monitor is required, the Virtuoso instances perform these functions internally.Â  There is a distributed deadlock detection scheme based on the nodes periodically sharing transaction waiting &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0xbcc0a50&quot;&gt;information&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Since read transactions can operate without locks, reading the last committed state of uncommitted updated rows, waiting for locks is not very common.&lt;/p&gt; &lt;h3&gt;Interconnect and Threading&lt;/h3&gt; &lt;p&gt;Virtuoso uses TCP to connect between instances.Â  A single instance can have multiple listeners at different network interfaces for cluster activity.Â  The interfaces will be used in a round-robin fashion by the peers, spreading the load over all network interfaces. A separate thread is created for monitoring each interface.Â  Long messages, such as transfers of blobs are done on a separate thread, thus allowing normal service on the cluster node while the transfer is proceeding.&lt;/p&gt; &lt;p&gt;We will have to test the performance of TCP over &lt;i&gt;Infiniband&lt;/i&gt; to see if there is clear gain in going to a lower level interface like &lt;i&gt;MPI&lt;/i&gt;.Â  The Virtuoso architecture is based on streams connecting cluster nodes point to point.Â  The design does not per se gain from remote DMA or other features provided by MPI.Â  Typically, messages are quite short, under 100K. Â Flow control for transfer of blobs is however nice to have but can be written at the application level if needed.Â  We will get real data on the performance of different interconnects in the next weeks. &lt;/p&gt; &lt;h3&gt;Deployment and Management&lt;/h3&gt; &lt;p&gt;Configuring is quite simple, with each process sharing a copy of the same configuration file. Â One line in the file differs from host to host, telling it which one it is.Â  Otherwise the database configuration files are individual per host, accommodating different file system layouts etc. Â Setting up a node requires copying the executable and two configuration files, no more.Â  Â All functionality is contained in a single process.Â  There are no installers to be run or such.&lt;/p&gt; &lt;p&gt;Changing the number or network interface of cluster nodes requires a cluster restart.Â  Changing data partitioning requires copying the data into a new table and renaming this over the old one.Â  This is time consuming and does not mix well with updates.Â  Splitting an existing cluster node requires no copying with repartitioning but shifting data between partitions does.&lt;/p&gt; &lt;p&gt;A consolidated status report shows the general state and level of intra-cluster traffic as count of messages and count of bytes.&lt;/p&gt; &lt;p&gt;Start, shutdown, backup, and package installation commands can only be issued from a single master node. Otherwise all is symmetrical.&lt;/p&gt; &lt;h3&gt;Present State and Next Developments&lt;/h3&gt; &lt;p&gt;The basics are now in place.Â  Some code remains to be written for such things as distributed deadlock detection, 2-phase commit recovery cycle, management functions, etc.Â  Some SQL operations like text index, statistics sampling, and index intersection need special support, yet to be written.&lt;/p&gt; &lt;p&gt;The &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xb919200&quot;&gt;RDF&lt;/a&gt; capabilities are not specifically affected by clustering except in a couple of places.Â  Loading will be slightly revised to use larger batches of rows to minimize latency, for example.&lt;/p&gt; &lt;p&gt;There is a pretty much infinite world of SQL optimizations for splitting aggregates, taking advantage of co-located joins etc.Â  These will be added gradually.Â  These are however not really central to the first application of RDF storage but are quite important for business intelligence, for example.&lt;/p&gt; &lt;p&gt;We will run some benchmarks for comparing single host and clustered Virtuoso instances over the next weeks.Â  Some of this will be with real data, giving an estimate on when we can move some of the RDF data we presently host to the new platform.Â  We will benchmark against &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0x1ddf8288&quot;&gt;Oracle&lt;/a&gt; and &lt;a href=&quot;http://dbpedia.org/resource/IBM_DB2&quot; id=&quot;link-id0xa04b6ae8&quot;&gt;DB2&lt;/a&gt; later but first we get things to work and compare against ourselves.&lt;/p&gt; &lt;p&gt;We roughly expect a halving in space consumption and a significant increase in single query performance and linearly scaling parallel throughput through addition of cluster nodes.&lt;/p&gt; &lt;p&gt; &lt;i&gt;The &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1246&quot; id=&quot;link-id106de430&quot;&gt;next update&lt;/a&gt; will be on this blog within two weeks.&lt;/i&gt; &lt;/p&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>RDF, Clustered Databases, and Partitioning Vs. Cache Fusion</atom:title>
  <atom:id>http://www.openlinksw.com/blog/vdb/blog/?date=2007-07-19#1230</atom:id>
  <atom:published>2007-07-19T12:29:12Z</atom:published>
  <atom:updated>2008-04-25T11:59:26-04:00</atom:updated>
  <atom:content type="html">&lt;div&gt; &lt;div style=&quot;display:none;&quot;&gt;RDF, Clustered Databases, and Partitioning Vs. Cache Fusion&lt;/div&gt; &lt;p&gt;I recently read &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0xb279258&quot;&gt;Oracle&lt;/a&gt;&amp;#39;s papers about RAC, Real Application Clusters. This is relevant as we are presently working on the &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0xba1d4e0&quot;&gt;Virtuoso&lt;/a&gt; equivalent.&lt;/p&gt; &lt;p&gt;Caveat: The following is quite technical and not the final word on the matter.&lt;/p&gt; &lt;p&gt;Oracle&amp;#39;s claim is roughly as follows: Take a number of machines with access to a shared pool of disks and get scalability in processing power and memory without having to explicitly partition the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1a9a7ab8&quot;&gt;data&lt;/a&gt; or perform other complicated configuration.&lt;/p&gt; &lt;p&gt;This works through implementing a cache consistency protocol between the participating boxes and by parallelizing queries just as one would do on a shared memory SMP box. Each disk page has a box assigned to keep track of it and the responsibility migrates so that the box most often needing the page gets to be the page&amp;#39;s guardian, so as not to have to ask anybody else for permission to write the page.&lt;/p&gt; &lt;p&gt;This is a compelling proposition. Surely, it must be unrealistic to expect people to manually partition databases. This would require some understanding of first principles which is scarce out there.&lt;/p&gt; &lt;p&gt;So, should we implement clustering a la Oracle?&lt;/p&gt; &lt;p&gt;Let&amp;#39;s look at some basics. If we have an OLTP workload like &lt;a href=&quot;http://dbpedia.org/resource/TPC-C&quot; id=&quot;link-id0xbaa89d8&quot;&gt;TPC-C&lt;/a&gt;, we usually have affinity between clients and the data they access. This will make each client&amp;#39;s pages migrate to be managed by the box the client is connected to. This will work pretty well, no worse than with a single box. If two clients are updating the same data but are connected to two different boxes, this is quite bad since the box that does not have responsibility for the page must ask the other box for write access. This is a round trip, at least tens of microseconds (Âµs). Consider in comparison that finding a row out of a million takes some 3Âµs.&lt;/p&gt; &lt;p&gt;Would it not be better to have each partition in a known place and leave all processing to that place? The write contention would be resolved in the box owning the partition and there would be a message but now for requesting the update, not dealing with cache consistency. At what level should one communicate between cluster nodes? Talk about disk pages or about logical operations? If there is complete affinity between boxes and data, the RAC style shared cache needs no messages, each box ends up managing the pages of its clients and all works just as with a local situation. If on the other hand any client will update any page at random, most updates must request the write permission from another node. I will here presume that index tree tops get eventually cached on all nodes. If this were not so, even index lookups would have to most often request each index page from a remote box. Never forget that with a tree index, it takes about 1Âµs to descend one level and 50Âµs for a message round trip between processes, not counting any transport latency.&lt;/p&gt; &lt;p&gt;What of &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xbe1bd98&quot;&gt;RDF&lt;/a&gt; query workloads? After all, we are in the first instance concerned with winning the RDF storage race and after this the TPC ones. We design for both but do RDF first since this is our chosen specialty.&lt;/p&gt; &lt;p&gt;The disadvantage of having to specify partitioning is less weighty with RDF since there are only a few big tables and they will be at default settings, pretty much always. We do not expect the application developer to ever change these settings although it is in principle possible.&lt;/p&gt; &lt;p&gt;What about queries? The RDF workload is mostly random access and loop joins. How would these run on RAC? For now, let&amp;#39;s make a thought experiment and compare cache fusion to a hash partitioned cluster. In the following, I do not describe how Oracle actually works but will just describe how I would do things if I implemented a RAC style clustering. With a RAC style cluster, I&amp;#39;d split the outer loop into equal partitions and run them in parallel on different boxes. Each would build a working set for its part of the query and pages that were needed by more than one box would be read once from disk and a second time from the node that had them in cache. The top nodes of index trees would end up cached on all boxes. It would seem that all boxes would fill their cache with the same data. Now it may be that RAC makes it so that a page is cached only on one box and other boxes wanting the page must go to that box to get access to the page. But this would be a disaster in index lookups. It is less than a microsecond per local index tree level, but if there is a round trip, it would be at least 50Âµs per level of the index tree. I don&amp;#39;t know for sure about Oracle but if I did RAC, I&amp;#39;d have to allow duplicate read content in caches. This would have the effect that the aggregate cache size would be closer to the single cache size than to the sum of the cache sizes. A physically partitioned database would not ship pages so caches would not overlap and the aggregate cache would indeed be the sum of the sizes. Now this is good only insofar all boxes participate but with evenly distributed data this is a good possibility.&lt;/p&gt; &lt;p&gt;Of course, if RAC knew to split queries so that data and nodes had real affinity then the problem would be less. For indices one would need a map of key values to boxes. A little like a top level index shared among all nodes. The key value would give the node, just like with partitioning.&lt;/p&gt; &lt;p&gt;This would make partitioning on the fly. Joins that were made the most frequently would cause migration that would make these joins co-located.&lt;/p&gt; &lt;p&gt;We must optimize the number of messages needed to execute long series of loop joins. For parallelizing single queries, the most obvious approach would be to partition the first/outermost loop that is more than one iteration into equal size chunks. With RDF data, the join keys will mostly begin GS or GO with a possible P appended. If GO or GS specify the partition, partitioning by hash will yield the node that will provide the result.&lt;/p&gt; &lt;p&gt;The number of messages can be reduced to a minimum of the number of join steps times number of boxes minus one if the loops are short enough and multiple operations are carried by one message.&lt;/p&gt; &lt;p&gt;With RAC style clustering, each index lookup would have to be sent to the node most likely to hold the answer. If pages have to be fetched from other nodes, we have disastrous performance, at least 50Âµs for each non-local page. If there are two non-local pages in a lookup, the overhead will exceed the overhead of delegating the single lookup. Index page access in lookups cannot be easily batched, the way index lookups going to the same node can be batched. Batching multiple hopefully long operations into a single message is the only way to defeat the extreme cost of sending messages. An index lookup does not know what page it will need until it needs it. A way of batching these would be to run multiple lookups in parallel and to combine remote page requests grouping them by destination. This would not be impossible, simply we would have to run 100 index lookups in parallel on a thread, 100 first levels, 100 second levels and so forth. Suppose an outer loop that gives 100 rows and then an inner loop that retrieves 1 row for each. A query to get the email address of Mary would do this, supposing 100 Marys in the db. &lt;code&gt;{?person firstName &amp;quot;Mary&amp;quot; . ?person email ?m .}&lt;/code&gt;. Suppose a cluster of 10 nodes. The first node gets the 100 rows of the outer loop, splits these into 10x10, 10 on each node and then each node does 10 lookups in parallel, meaning 10 first levels, 10 second levels, 10 third levels. The index tree would be 4 deep, branching 300 ways. Running the query a second time would find all data in memory and run with only 18 messages after getting the 100 rows of the first loop. The first run would send lots of messages, almost two per page, for about 800 messages after getting the 100 rows of the first loop.&lt;/p&gt; &lt;p&gt;With partitioning, the situation would be sending 18 messages constant. 9 batches of 10 index lookups and their replies. The latency is 50Âµs and the lookup is 4Âµs. We would in fact gain in real time, counting 50Âµs for messages and 4Âµs per lookup, the time through the whole exercise of 10x10 random lookups would be 90Âµs.&lt;/p&gt; &lt;p&gt;If I did RAC style clustering, I&amp;#39;d have to allow replicating the tops of index trees to all caches, and I&amp;#39;d have to batch page request messages from index lookups, effectively doing the lookup vector processing style, meaning 100 first levels, 100 second levels etc. Given a key beginning, I&amp;#39;d have to know what node to send this to, meaning pretty much doing the first levels of the lookup before deciding where to send the lookup, only to have the lookup redone by the box ending up with the lookup. Doing things this way would make Oracle RAC style clustering work with the use case.&lt;/p&gt; &lt;p&gt;Given this, it appears that hash partitioning is easier to implement. Cache fusion clustering without the above mentioned gimmicks would be easiest of all but it would have a disastrous number of messages or it would fill all the caches with the same data. Avoiding this is possible but hard, as described above.&lt;/p&gt; &lt;p&gt;We will have to experiment with Oracle RAC itself a bit farther down the road. Deciding to use partitioning instead of cache fusion does bring along conversion cost and a very high cost for repartitioning.&lt;/p&gt; &lt;p&gt;Now let us look at the issue of co-location of joins. In a loop join this means that the node that holds the row from the outer loop also holds the row in the inner loop. For example, if order and order line are partitioned on order id, joining them on order id will be aÂ  co-located join. Such joins do not involve necessary messages in partitioned clusters. In RAC, they do not involve messages if the pages have migrated to be managed by the node doing the join, otherwise they do, up to 20 or so for the worst case.&lt;/p&gt; &lt;p&gt;Do we get any benefit from co-location with RDF? Supposing joins that go from S to O to S (e.g., population of the city where Mary lives), we do not get much guarantee of co-location.&lt;/p&gt; &lt;p&gt;Suppose the indices GSPO partitioned of GS and OGPS on OG, we know the box with Marys and then we&amp;#39;d know the box where the residence of each Mary was, based on GS. given the city as S, we would again know the box that had the population. All the three triples could be on different boxes. This cannot be helped at design time. At run time this can be helped by batching messages that go to the same node. Let&amp;#39;s see how this fans out. 100 Marys from the first node. To get the city, we get 10 batches of 10 messages. We get the 100 cities and then we get their populations, again 10 batches of 10. In this scenario, the scheduling is centrally done by one thread. Suppose it were done by the 10 batches of 10 for getting the city of each Mary. For 10 cities, we&amp;#39;d get 10 lookups for population, each potentially to a different node. For this case, managing the execution by one thread instead of several makes bigger batches and less messages, as one would expect.&lt;/p&gt; &lt;p&gt;It seems that with the RDF case, one may as well forget co-location. In the relational case, one must take advantage of it when there is co-location and when not, try to compensate with longer batches of function shipping.&lt;/p&gt; &lt;p&gt;Excellent as some of the RAC claims are, it still seems that making it work well for an RDF workload would take such magical heuristics of location choice that implementing them would be hard and the result not altogether certain. I could get it to work eventually but hash partitioning seems by far the more predictable route. Also hash partitioning will work in shared nothing scenarios whereas RAC requires shared disks. Shared nothing will not require a SAN, which may make it somewhat lower cost. Also, if messages are grouped in large batches, the performance of the interconnect is not so critical, meaning that maybe even gigabit ethernet might do in cases. RAC style cache maintenance is more sensitive to interconnect latency than batched function shipping. Batched cache consistency is conceivable as discussed above but tough to do.&lt;/p&gt; &lt;p&gt;For recovery and hot software updates, things can be arranged if there is non-local disk access or if partitions are mirrored. A RAC type cluster could use a SAN with internal mirroring. A hash partitioned system could mirror partitions to more than one box with local disk, thus using no mirrored disks. Repartitioning remains the bane of partitioning and not much can be done about that, it seems. The only easy repartitioning is doubling the cluster size. So it seems.&lt;/p&gt; &lt;/div&gt;</atom:content>
 </atom:entry>
 <atom:entry>
  <atom:title>RDF, Clustered Databases, and Partitioning Vs. Cache Fusion</atom:title>
  <atom:id>http://www.openlinksw.com/weblog/oerling/?date=2007-07-19#1229</atom:id>
  <atom:published>2007-07-19T12:23:45Z</atom:published>
  <atom:updated>2008-04-25T11:59:16-04:00</atom:updated>
  <atom:content type="html">&lt;p&gt;I recently read &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0x19e2dac0&quot;&gt;Oracle&lt;/a&gt;&amp;#39;s papers about RAC, Real Application Clusters. This is relevant as we are presently working on the &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x19f7c0d8&quot;&gt;Virtuoso&lt;/a&gt; equivalent.&lt;/p&gt; &lt;p&gt;Caveat: The following is quite technical and not the final word on the matter.&lt;/p&gt; &lt;p&gt;Oracle&amp;#39;s claim is roughly as follows: Take a number of machines with access to a shared pool of disks and get scalability in processing power and memory without having to explicitly partition the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1c95f0c0&quot;&gt;data&lt;/a&gt; or perform other complicated configuration.&lt;/p&gt; &lt;p&gt;This works through implementing a cache consistency protocol between the participating boxes and by parallelizing queries just as one would do on a shared memory SMP box. Each disk page has a box assigned to keep track of it and the responsibility migrates so that the box most often needing the page gets to be the page&amp;#39;s guardian, so as not to have to ask anybody else for permission to write the page.&lt;/p&gt; &lt;p&gt;This is a compelling proposition. Surely, it must be unrealistic to expect people to manually partition databases. This would require some understanding of first principles which is scarce out there.&lt;/p&gt; &lt;p&gt;So, should we implement clustering a la Oracle?&lt;/p&gt; &lt;p&gt;Let&amp;#39;s look at some basics. If we have an OLTP workload like &lt;a href=&quot;http://dbpedia.org/resource/TPC-C&quot; id=&quot;link-id0xad88978&quot;&gt;TPC-C&lt;/a&gt;, we usually have affinity between clients and the data they access. This will make each client&amp;#39;s pages migrate to be managed by the box the client is connected to. This will work pretty well, no worse than with a single box. If two clients are updating the same data but are connected to two different boxes, this is quite bad since the box that does not have responsibility for the page must ask the other box for write access. This is a round trip, at least tens of microseconds (Âµs). Consider in comparison that finding a row out of a million takes some 3Âµs.&lt;/p&gt; &lt;p&gt;Would it not be better to have each partition in a known place and leave all processing to that place? The write contention would be resolved in the box owning the partition and there would be a message but now for requesting the update, not dealing with cache consistency. At what level should one communicate between cluster nodes? Talk about disk pages or about logical operations? If there is complete affinity between boxes and data, the RAC style shared cache needs no messages, each box ends up managing the pages of its clients and all works just as with a local situation. If on the other hand any client will update 