<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>

<title>Orri Erling&#39;s Weblog</title><link>http://www.openlinksw.com/weblog/oerling/</link><description /><managingEditor>oerling@openlinksw.com</managingEditor><pubDate>Mon, 23 Nov 2009 13:04:21 GMT</pubDate><generator>Virtuoso Universal Server 05.12.3041</generator><webMaster>oerling@openlinksw.com</webMaster><image><title>Orri Erling&#39;s Weblog</title><url>http://www.openlinksw.com/weblog/public/images/vbloglogo.gif</url><link>http://www.openlinksw.com/weblog/oerling/</link><description /><width>88</width><height>31</height></image>
<item><title>RDF Geography With Virtuoso</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2009-11-11#1587</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1587#comments</comments><pubDate>Wed, 11 Nov 2009 17:17:27 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2009-11-11T17:07:03.000002-05:00</n0:modified><description>&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;</description></item><item><title>European Commission and the Data Overflow</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2009-10-27#1585</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1585#comments</comments><pubDate>Tue, 27 Oct 2009 18:29:51 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2009-10-27T14:57:28.000002-04:00</n0:modified><description>&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;
</description></item><item><title>VLDB 2009 Web Scale Data Management Panel (5 of 5)</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2009-09-01#1582</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1582#comments</comments><pubDate>Tue, 01 Sep 2009 16:24:17 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2009-09-02T12:05:20.000001-04:00</n0:modified><description>&lt;blockquote&gt;
 &lt;p&gt;
  &lt;i&gt;&amp;quot;The universe of cycles is not exactly one of literal cycles, but rather one of spirals,&amp;quot; mused &lt;a href=&quot;http://db.cs.berkeley.edu/jmh/&quot; id=&quot;link-id117455a0&quot;&gt;Joe Hellerstein&lt;/a&gt; of UC Berkeley.&lt;/i&gt;
 &lt;/p&gt;
&lt;p&gt;
  &lt;i&gt;&amp;quot;Come on, let&amp;#39;s all drop some &lt;a href=&quot;http://dbpedia.org/resource/ACID&quot; id=&quot;link-id16b3db50&quot;&gt;ACID&lt;/a&gt;,&amp;quot; interjected another.&lt;/i&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;i&gt;&amp;quot;It is not that we end up repeating the exact same things, rather even if some patterns seem to repeat, they do so at a higher level, enhanced by the experience gained,&amp;quot; continued Joe.&lt;/i&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Thus did the Web Scale &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id11061ae0&quot;&gt;Data&lt;/a&gt; Management panel conclude.&lt;/p&gt;

&lt;p&gt;Whether successive generations are made wiser by the ones that have gone before may be argued either way.&lt;/p&gt;

&lt;p&gt;The cycle in question was that of developers discovering ACID in the 1960s, i.e. Atomicity, Consistency, Integrity, Durability.  Thus did the DBMS come into being.  Then DBMSs kept becoming more complex until, as there will be a counter-force to each force, came the &lt;a href=&quot;http://dbpedia.org/resource/Meme&quot; id=&quot;link-id11076cc8&quot;&gt;meme&lt;/a&gt; of key value stores and BASE, no multiple-row transactions, eventual consistency, no query language but scaling to thousands of computers.  So now, the DBMS community asks itself what went wrong.&lt;/p&gt;

&lt;p&gt;In the words of one panelist, another demonstrated a &amp;quot;shocking familiarity with the subject matter of substance abuse&amp;quot; when he called for the DBMS community to get on a &lt;a href=&quot;http://dbpedia.org/resource/Twelve-step_program&quot; id=&quot;link-id15d954a8&quot;&gt;12 step program&lt;/a&gt; and to look where addiction to certain ideas, among which ACID, had brought its life.  Look at yourself: The influential papers in what ought to be your space by rights are coming from the OS community: &lt;a href=&quot;http://dbpedia.org/resource/Google&quot; id=&quot;link-id166675f0&quot;&gt;Google&lt;/a&gt; Bigtable, Amazon Dynamo, want more? When you ought to drive, you give excuses and play catch up!  Stop denial, drop &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id1105adf0&quot;&gt;SQL&lt;/a&gt;, drop ACID!&lt;/p&gt;

&lt;p&gt;The web developers have revolted against the time-honored principles of the DBMS.  This is true.  Sharded &lt;a href=&quot;http://dbpedia.org/resource/MySQL&quot; id=&quot;link-id1221c230&quot;&gt;MySQL&lt;/a&gt; is not the ticket â or is it?  Must they rediscover the virtues of ACID, just like the previous generation did?&lt;/p&gt;

&lt;p&gt;Nothing under the sun is new.  As in music and fashion, trends keep cycling also in science and engineering.&lt;/p&gt;

&lt;p&gt;But seriously, does the full-featured DBMS scale to web scale?  &lt;a href=&quot;http://dbpedia.org/resource/Microsoft&quot; id=&quot;link-id10ffcaf8&quot;&gt;Microsoft&lt;/a&gt; says the Azure version of SQL server does.  &lt;a href=&quot;http://dbpedia.org/resource/Yahoo%21&quot; id=&quot;link-id16b3f138&quot;&gt;Yahoo&lt;/a&gt; says they want no SQL but &lt;a href=&quot;http://dbpedia.org/resource/Hadoop&quot; id=&quot;link-id11046ef0&quot;&gt;Hadoop&lt;/a&gt; and &lt;a href=&quot;http://research.yahoo.com/node/2304&quot; id=&quot;link-id110a0040&quot;&gt;PNUTS&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Twitter, Facebook, and other web names got their own discussion.  Why do they not go to serious DBMS vendors for their data but make their own, like Facebook with Hive?&lt;/p&gt;

&lt;p&gt;Who can divine the mind of the web developer?  What makes them go to &lt;a href=&quot;http://www.danga.com/memcached/&quot; id=&quot;link-id1109e280&quot;&gt;memcached&lt;/a&gt;, manually sharded MySQL, and &lt;a href=&quot;http://dbpedia.org/resource/MapReduce&quot; id=&quot;link-id1107cd60&quot;&gt;MapReduce&lt;/a&gt;, walking away from the 40 years of technology invested in declarative query and ACID?  What is this highly visible but hard to grasp &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id1105b6b8&quot;&gt;entity&lt;/a&gt;?  My guess is that they want something they can understand, at least at the beginning.  A DBMS, especially on a cluster, is complicated, and it is not so easy to say how it works and how its performance is determined.  The big brands, if deployed on a thousand PCs, would also be prohibitively expensive.  But if all you do with the DBMS is single row selects and updates, it is no longer so scary, but you end up doing all the distributed things in a middle layer, and abandoning expressive queries, transactions, and database-supported transparency of location.  But at least now you know how it works and what it is good/not good for.&lt;/p&gt;

&lt;p&gt;This would be the case for those who make a conscious choice.  But by and large the choice is not deliberate; it is something one drifts into: The application gains popularity; the single &lt;a href=&quot;http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29&quot; id=&quot;link-iddc68d28&quot;&gt;LAMP&lt;/a&gt; can no longer keep all in memory; you need a second MySQL in the LAMP and you decide that users AâM go left and NâZ right (horizontal partitioning).  This siren of sharding beckons you and all is good until you hit the reef of re-architecting.  Memcached and duct-tape help, like aspirin helps with hangover, but the root cause of the headache lies unaddressed.&lt;/p&gt;

&lt;p&gt;The conclusion was that there ought to be something incrementally scalable from the get-go.  Low cost of entry and built-in scale-out. No, the web developers do not hate SQL; they just have gotten the idea that it does not scale.  But they would really wish it to.  So, DBMS people, show there is life in you yet.&lt;/p&gt;

&lt;p&gt;Joe Hellerstein was the philosopher and paradigmatician of the panel. His team had developed a protocol-compatible Hadoop in a few months using a declarative logic programming style approach.  His claim was that developers made the market.  Thus, for writing applications against web scale data, there would have to be data centric languages.  Why not?  These are discussed in &lt;a href=&quot;http://www.eecs.berkeley.edu/Research/Projects/Data/105733.html&quot; id=&quot;link-id110ba0e0&quot;&gt;Berkeley Orders Of Magnitude&lt;/a&gt; (&lt;a href=&quot;http://www.eecs.berkeley.edu/Research/Projects/Data/105733.html&quot; id=&quot;link-id16aab768&quot;&gt;BOOM&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;I come from &lt;a href=&quot;http://en.wikipedia.org/wiki/Lisp_%28programming_language%29&quot; id=&quot;link-id10f2cd68&quot;&gt;Lisp&lt;/a&gt; myself, way back.  I have since abandoned any desire to tell anybody what they ought to program in.  This is a bit like religion: Attempting to impose or legislate or ram it on somebody just results in anything from lip service to rejection to war.  The appeal exerted by the diverse language/paradigm -isms on their followers seems to be based on hitting a simplification of reality that coincides with a problem in the air.  MapReduce is an example of this. &lt;a href=&quot;http://dbpedia.org/resource/PHP&quot; id=&quot;link-ide22cdd0&quot;&gt;PHP&lt;/a&gt; is another.  A quick fix for a present need: Scripting web servers (PHP) or processing tons of files (MapReduce).  The full database is not as quick a fix, even though it has many desirable features.  It is also not as easy to tell what happens inside one, so MapReduce may give a greater feeling of control.&lt;/p&gt;

&lt;p&gt;Totally self-managing, dynamically-scalable &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id152864b0&quot;&gt;RDF&lt;/a&gt; would be a fix for not having to design or administer databases: Since it would be indexed on everything, complex queries would be possible; no full database scans would stop everything.  For the mid-size segment of web sites this might be a fit.  For the extreme ends of the spectrum, the choice is likely  something custom built and much less expressive.&lt;/p&gt;

&lt;p&gt;The BOOM rule language for data-centric programming would be something very easy for us to implement, in fact we will get something of the sort essentially for free when we do the rule support already planned.&lt;/p&gt;

&lt;p&gt;The question is, can one induce web developers to do logic?  The history is one of procedures, both in LAMP and MapReduce.  On the other hand, the query languages that were ever universally adopted were declarative, i.e., keyword search and SQL. There certainly is a quest for an application model for the cloud space beyond just migrating apps.  We&amp;#39;ll see.  More on this another time.&lt;/p&gt;</description></item><item><title>VLDB 2009 TPC Workshop (3 of 5)</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2009-09-01#1576</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1576#comments</comments><pubDate>Tue, 01 Sep 2009 15:51:09 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2009-09-01T17:32:30-04:00</n0:modified><description>&lt;p&gt;Michael &lt;a href=&quot;http://dbpedia.org/resource/Michael_Stonebraker&quot; id=&quot;link-id0x15e5efe0&quot;&gt;Stonebraker&lt;/a&gt; gave the keynote at the &lt;a href=&quot;http://www.tpc.org/&quot; id=&quot;link-id0x18cee5f0&quot;&gt;TPC&lt;/a&gt; workshop.  His message was that the TPC, at the venerable age of 21, was already a decade late in reinventing itself.  From the height of relevance at the time of the debit/credit benchmark twenty years back, it was slipping into the sunset of irrelevance unless it paid attention.&lt;/p&gt;

&lt;p&gt;Now we are great fans of the TPC and while we have not published results by the TPC book, we have extensively used TPC material for guiding &lt;a href=&quot;http://dbpedia.org/resource/Program_optimization&quot; id=&quot;link-id0x4e55368&quot;&gt;optimization&lt;/a&gt;, as has pretty much everybody else.&lt;/p&gt;

&lt;p&gt;It is true that the rules encourage unrealistic configurations.  The emphasis on random access from disk that is built into the rules leads to disk configurations that are very improbable in practice, such as 1PB of disks for 3TB of &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x191cd880&quot;&gt;data&lt;/a&gt;, just so there are enough disk arms in parallel.  Stonebraker also pointed  out that replication and failover were ubiquitous in real life and that roll forward from logs was unrealistic as a recovery model since it took so long.  Benchmarks should therefore include replication.&lt;/p&gt;

&lt;p&gt;Further, Stonebraker challenged the TPC to go for the new frontier, which he described as the huge data sets in science and on big web sites.  Scientists, the ones who would save our planet from the diverse ills confronting it, do not like relational databases.  They avoid them when can.  They want arrays for physics, and graphs for biology and chemistry.  &lt;a href=&quot;http://dbpedia.org/resource/MapReduce&quot; id=&quot;link-id0x53f6040&quot;&gt;MapReduce&lt;/a&gt; is eating database&amp;#39;s lunch; what will you do about this?&lt;/p&gt;

&lt;p&gt;I later suggested incorporating an &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x18902070&quot;&gt;RDF&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Metadata&quot; id=&quot;link-id0x3990af8&quot;&gt;metadata&lt;/a&gt; benchmark into the TPC suite.  We&amp;#39;ll see about this; we&amp;#39;ll first have to come up with a suitable one.  There is a great deal of pressure for making good RDF benchmarks but this is not yet in the center of the mainstream that TPC tends to cover.&lt;/p&gt;

&lt;p&gt;TPC&amp;#39;s own talk was about the life cycle of benchmarks.  A benchmark begins a bit ahead of the mainstream, with a problem that is difficult but not so difficult as to be uncommon.  When the solution to this problem becomes commonplace, the benchmark&amp;#39;s relevance gradually drops.&lt;/p&gt;

&lt;p&gt;There was a talk on robustness of query plans which was well to the point.  Indeed, there are performance cliffs at certain points; for example, when passing from memory-only to disk-pageable data structures, or when switching from indexed access to table scans, or from loop to hash joins.  Quite so.  The analysis I really would have liked to see would have been one of what happens when passing from single server to a cluster, and from local joins to cross-partition ones. Also contrasting of &lt;a href=&quot;http://dbpedia.org/resource/Cache&quot; id=&quot;link-id0x1942aca8&quot;&gt;cache&lt;/a&gt; fusion and partitioning.  We have our own data and experience but we find we don&amp;#39;t have time to measure all the other systems.&lt;/p&gt;

&lt;p&gt;Anyway it is good to raise the question of smooth and predictable performance.&lt;/p&gt;</description></item><item><title>Some Interesting VLDB 2009 Papers (2 of 5)</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2009-09-01#1575</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1575#comments</comments><pubDate>Tue, 01 Sep 2009 15:46:14 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2009-09-01T17:32:24.000004-04:00</n0:modified><description>&lt;h3&gt;
&lt;a href=&quot;http://dbpedia.org/resource/Intel_Corporation&quot; id=&quot;link-id0x3588e30&quot;&gt;Intel&lt;/a&gt; on &lt;a href=&quot;http://dbpedia.org/resource/Hash_join&quot; id=&quot;link-id0x1bc77c90&quot;&gt;Hash Join&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Intel and &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0x2f1d4d8&quot;&gt;Oracle&lt;/a&gt; had measured hash and sort merge joins on Intel Core i7.  The result was that hash join with both tables partitioned to match &lt;a href=&quot;http://dbpedia.org/resource/Central_processing_unit&quot; id=&quot;link-id0x55b2b70&quot;&gt;CPU&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Cache&quot; id=&quot;link-id0x2a4fef8&quot;&gt;cache&lt;/a&gt; was still the best but that sort/merge would catch up with more &lt;a href=&quot;http://dbpedia.org/resource/SIMD&quot; id=&quot;link-id0x4fe8670&quot;&gt;SIMD&lt;/a&gt; instructions in the future.&lt;/p&gt;

&lt;p&gt;We should probably experiment with this but the most important partitioning of hash joins is still between cluster nodes.  Within the process, we will see.  The tradeoff of doing all in cache-sized partitions is larger intermediate results which in turn will impact the working set of disk pages in RAM.  For one-off queries this is OK; for online use this has an effect.&lt;/p&gt;

&lt;h3&gt;1000 TABLE Queries&lt;/h3&gt;

&lt;p&gt;
&lt;a href=&quot;http://dbpedia.org/resource/SAP_AG&quot; id=&quot;link-id0x55a1018&quot;&gt;SAP&lt;/a&gt; presented a paper about &lt;a href=&quot;http://dbpedia.org/resource/Federated_database_system&quot; id=&quot;link-id0x5500758&quot;&gt;federating relational databases&lt;/a&gt;.  Queries would be expressed against VIEWs defined over remote TABLEs, UNIONed together and so forth.  Traditional methods of &lt;a href=&quot;http://dbpedia.org/resource/Program_optimization&quot; id=&quot;link-id0x4f038f0&quot;&gt;optimization&lt;/a&gt; would run out of memory; a single 1000 TABLE plan is already a big thing. Enumerating multiple variations of such is not possible in practice. So the solution was to plan in two stages â first arrange the subqueries and derived TABLEs, and then do the JOIN orders locally. Further, local JOIN orders could even be adjusted at run time based on the actual &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x41d3560&quot;&gt;data&lt;/a&gt;.  Nice.&lt;/p&gt;

&lt;h3&gt;Oracle Subqueries and New Implementation of LOBs&lt;/h3&gt;

&lt;p&gt;Oracle presented some new &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x39ad838&quot;&gt;SQL&lt;/a&gt; optimizations, combining and inlining subqueries and derived TABLEs.  We do fairly similar things and might extend the repertoire of tricks in the direction outlined by Oracle as and when the need presents itself.  This further confirms that SQL and other query optimization is really an incremental collection of specially recognized patterns. We still have not found any other way of doing it.&lt;/p&gt;

&lt;p&gt;Another interesting piece by Oracle was about their re-implementation of large object support, where they compared LOB loading to file system and raw device speeds.&lt;/p&gt;


&lt;h3&gt;
&lt;a href=&quot;http://dbpedia.org/resource/Amadeus_CRS&quot; id=&quot;link-id0x3aa1378&quot;&gt;Amadeus CRS&lt;/a&gt; booking system, steady query time for arbitrary single table queries&lt;/h3&gt;

&lt;p&gt;There  was a paper about a memory-resident database that could give steady time for any kind of single-table scan query.  The innovation was to not use indices, but to have one partition of the table per processor core, all in memory.  Then each core would have exactly two cursors â one reading, the other writing.  The write cursor should keep ahead of the read cursor.  Like this, there would be no read/write contention on pages, no locking, no multiple threads splitting a tree at different points, none of the complexity of a multithreaded database engine. Then, when the cursor would hit a row, it would look at the set of queries or updates and add the result to the output if there was a result.  The data indexes the queries, not the other way around.  We have done something similar for detecting changes in a full text corpus but never thought of doing queries this way.&lt;/p&gt;

&lt;p&gt;Well, we are all about JOINs so this is not for us, but it deserves a mention for being original and clever.  And indeed, anything one can ask about a table will likely be served with great predictability.&lt;/p&gt;

&lt;h3&gt;
&lt;a href=&quot;http://dbpedia.org/resource/Greenplum&quot; id=&quot;link-id0x3670360&quot;&gt;Greenplum&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;
&lt;a href=&quot;http://dbpedia.org/resource/Google&quot; id=&quot;link-id0x2c5dfb8&quot;&gt;Google&lt;/a&gt;&amp;#39;s chief economist said that the winning career choice would be to pick a scarce skill that made value from something that was plentiful.  For the 2010s this career is that of the statistician/data analyst.  We&amp;#39;ve said it before â the next web is analytics for all.  The Greenplum talk was divided between the Fox use case, with 200TB of data about ads, web site traffic, and other things, growing 5TB a day.  The message was that cubes and drill down are passÃ©, that it is about complex statistical methods that have to run in the database, that the new kind of geek is the data geek, whose vocation it is to consume and spit out data, discover things in it, and so forth.&lt;/p&gt;

&lt;p&gt;The technical part was about Greenplum, a SQL database running on a cluster with a &lt;a href=&quot;http://dbpedia.org/resource/PostgreSQL&quot; id=&quot;link-id0x4e15798&quot;&gt;PostgreSQL&lt;/a&gt; back-end.  The interesting points were embedding &lt;a href=&quot;http://dbpedia.org/resource/MapReduce&quot; id=&quot;link-id0x4fd3e00&quot;&gt;MapReduce&lt;/a&gt; into SQL, and using relational tables for arrays and complex data types â pretty much what we also do.  Greenplum emphasized scale-out and found column orientation more like a nice-to-have.&lt;/p&gt;

&lt;h3&gt;
&lt;a href=&quot;http://dbpedia.org/resource/MonetDB&quot; id=&quot;link-id0x416d288&quot;&gt;MonetDB&lt;/a&gt;, optimizing database for CPU cache&lt;/h3&gt;

&lt;p&gt;The MonetDB people from &lt;a href=&quot;http://dbpedia.org/resource/National_Research_Institute_for_Mathematics_and_Computer_Science&quot; id=&quot;link-id0x4ebedb0&quot;&gt;CWI&lt;/a&gt; in Amsterdam gave a 10 year best paper award talk about optimizing database for CPU cache.  The key point was that if data is stored as columns, it ought also to be transferred as columns inside the execution engine.  Materialize big chunks of state to cut down on interpretation overhead and use cache to best effect.  They vector for CPU cache; we vector for scale-out, since the only way to ship operations is to ship many at a time.  So we might as well vector also in single servers.  This could be worth an experiment.  Also we regularly visit the topic of &lt;a href=&quot;http://dbpedia.org/resource/Column-oriented_DBMS&quot; id=&quot;link-id0x4d34cb0&quot;&gt;column storage&lt;/a&gt;.  But we are not yet convinced that it would be better than row-style covering indices for &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x4d55d78&quot;&gt;RDF&lt;/a&gt; quads.  But something could certainly be tried, given time.&lt;/p&gt;</description></item><item><title>Updated hardware improves LUBM 8000 load rate in Virtuoso 6</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2009-08-14#1568</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1568#comments</comments><pubDate>Fri, 14 Aug 2009 19:01:30 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2009-08-15T15:27:25-04:00</n0:modified><description>&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;</description></item><item><title>Single Virtuoso host loads 110,500 triples-per-second on LUBM 8000</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2009-06-29#1562</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1562#comments</comments><pubDate>Mon, 29 Jun 2009 16:12:34 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2009-08-15T16:06:42.000001-04:00</n0:modified><description>&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;</description></item><item><title>Comparing Virtuoso Performance on Different Processors</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2009-05-28#1557</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1557#comments</comments><pubDate>Thu, 28 May 2009 14:54:59 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2009-05-28T11:15:39-04:00</n0:modified><description>&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;</description></item><item><title>Search at WWW 2009 (#2 of 5)</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2009-04-30#1548</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1548#comments</comments><pubDate>Thu, 30 Apr 2009 15:18:24 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2009-04-30T12:51:48-04:00</n0:modified><description>&lt;p&gt;(Second of five posts related to the &lt;a href=&quot;http://www2009.org/&quot; id=&quot;link-id124024c8&quot;&gt;WWW 2009&lt;/a&gt; conference, held the week of April 20, 2009.)

&lt;/p&gt;
&lt;p&gt;There was a &lt;a href=&quot;http://data.semanticweb.org/conference/www/2009/paper/109/html&quot; id=&quot;link-id1207a3b0&quot;&gt;workshop on semantic search&lt;/a&gt; plus &lt;a href=&quot;http://data.semanticweb.org/conference/www/2009/html&quot; id=&quot;link-id1704ff48&quot;&gt;a number of papers&lt;/a&gt; and of course &lt;a href=&quot;http://www2009.org/keynote.html&quot; id=&quot;link-id11ec08d8&quot;&gt;keynotes from Google and Yahoo&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A general topic was the use of and access to query logs. Are these the monopoly of GYM (Google, Yahoo, Microsoft) or should they be made more generally available? This is a privacy question. Use of query logs and click through of search results for improved ranking was mentioned many times throughout the conference.&lt;/p&gt;

&lt;p&gt;The &lt;a href=&quot;http://data.semanticweb.org/conference/www/2009/paper/109/html&quot; id=&quot;link-id120b7d38&quot;&gt;semantic search workshop&lt;/a&gt; was largely about benchmarks for keyword search in &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id171e2950&quot;&gt;information&lt;/a&gt; retrieval. For &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id11e1a9b0&quot;&gt;linked data&lt;/a&gt;, which is a database proposition, these benchmarks are not really applicable. For document search aided by semantics derived by NLP, these are of course applicable. But there is a divide in approach.&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://g1o.net/foaf.rdf#me&quot; id=&quot;link-id11d1c7b0&quot;&gt;Giovanni Tummarello&lt;/a&gt; &lt;a href=&quot;http://data.semanticweb.org/conference/www/2009/paper/59/html&quot; id=&quot;link-id169add28&quot;&gt;presented&lt;/a&gt; &lt;a href=&quot;http://sig.ma/&quot; id=&quot;link-id11af0128&quot;&gt;Sig.ma&lt;/a&gt;, a service using &lt;a href=&quot;http://sindice.com/&quot; id=&quot;link-id11a69fa0&quot;&gt;Sindice&lt;/a&gt;&amp;#39;s &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id11f3a088&quot;&gt;RDF&lt;/a&gt; index for collecting all RDF statements about entities matching some set of keywords. One could then choose which sources and which entities were the right ones. One could further store such a query and embed it on a page. The point was that the filtering done manually could be persisted and republished, so as to create dynamic content aggregated from selected live sources. Further speculating, one could use such user feedback for adjusting ranking, even though Sig.ma did not. We may adopt the idea of manually excluding sources into our browser too. Fresnel lenses are another thing to look at.&lt;/p&gt;

&lt;p&gt;There was &lt;a href=&quot;http://www2009.eprints.org/242/&quot; id=&quot;link-id11dc7c68&quot;&gt;a paper by Josep M. Pujol and Pablo Rodriguez, of Telefonica Research&lt;/a&gt;, about returning search to the people by means of Porqpine, a peer-to-peer search implementation based on sharing search results from search engines among peers and indexing them locally as they were retrieved. For users with similar interests, this can give a community based ranking model but has issues of privacy. Another point was that with local processing and personal scale &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id171a8948&quot;&gt;data&lt;/a&gt; volumes various kinds of brute force processing were feasible that would cost a lot for the web scale. Much can be done web scale but it must be done cleverly, not with a shell script and not so ad hoc.&lt;/p&gt;

&lt;p&gt;As a counterpoint to this, there was &lt;a href=&quot;http://www2009.eprints.org/220/&quot; id=&quot;link-id120bf9e0&quot;&gt;a talk about Hadoop and Hive&lt;/a&gt;, a map-reduce-based &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-idee5d700&quot;&gt;SQL&lt;/a&gt;-like framework. One could do an SQL &lt;code&gt;GROUP BY&lt;/code&gt; on text files with record parsing at run time, all spread over a Hadoop cluster. The issue is, if you have a petabyte of data, you may wish to run more than one ad hoc query on it. This means that joining between partitions and complex processing becomes important. This cannot be done without indices and complex query optimization, and needs a DBMS. Stonebraker and company are fully justified in their &lt;a href=&quot;http://database.cs.brown.edu/sigmod09/&quot; id=&quot;link-id11be1088&quot;&gt;critique of map reduce&lt;/a&gt;. It looks like each generation must get dazzled by the oversimplified and then retrace the same discoveries of complexity as the previous one.&lt;/p&gt;

&lt;p&gt;Some of our future plans were confirmed by what we saw, for example as concerns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Interactively selecting sources for search, showing the graphs, then interactively refining&lt;/li&gt;
&lt;li&gt;More social networks, more network analysis, and more work on social recommendation&lt;/li&gt;
&lt;li&gt;Real time indexing of new pings, filling the store by forwarding queries to search engines, and harvesting micro-formats from results&lt;/li&gt;
&lt;li&gt;Using &lt;a href=&quot;http://dbpedia.org/resource/Entity&quot; id=&quot;link-id16440770&quot;&gt;entity&lt;/a&gt; extraction&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are all items in the pipeline, easy to do on top of the existing platform. For the machine learning and NLP parts, we will partner with others, details will be worked out while we work on the items we implement by ourselves.&lt;/p&gt;</description></item><item><title>Linked Data at WWW 2009 (#1 of 5)</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2009-04-27#1544</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1544#comments</comments><pubDate>Mon, 27 Apr 2009 21:28:11 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2009-04-28T11:27:50-04:00</n0:modified><description>&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;</description></item><item><title>Web Scale and Fault Tolerance</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2009-04-01#1540</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1540#comments</comments><pubDate>Wed, 01 Apr 2009 15:18:06 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2009-04-01T11:18:51.000014-04:00</n0:modified><description>&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;</description></item><item><title>Beyond Applications - Introducing the Planetary Datasphere (Part 2)</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2009-03-25#1537</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1537#comments</comments><pubDate>Wed, 25 Mar 2009 15:50:56 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2009-03-25T12:31:55-04:00</n0:modified><description>&lt;p&gt;
&lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1535&quot; id=&quot;link-id155e3bd0&quot;&gt;We have looked at the general implications of the DataSphere&lt;/a&gt;, a universal, ubiquitous database infrastructure, on end-user experience and application development and content. Now we will look at what this means at the back end, from hosting to security to server software and hardware.&lt;/p&gt;

&lt;h2&gt;Application Hosting&lt;/h2&gt;

&lt;p&gt;For the infrastructure provider, hosting the DataSphere is no different from hosting large Web 2.0 sites. This may be paid for by users, as in the cloud computing model where users rent capacity for their own purposes, or by advertisers, as in most of Web 2.0.&lt;/p&gt;

&lt;p&gt;Clouds play a role in this as places with high local connectivity. The DataSphere is the atmosphere; the Cloud is an atmospheric phenomenon.&lt;/p&gt;

&lt;h2&gt;What of Proprietary &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x13b5b4a0&quot;&gt;Data&lt;/a&gt; and its Security?&lt;/h2&gt;

&lt;p&gt;Having proprietary data does not imply using a proprietary language. I would say that for any domain of discourse, no matter how private or specialized, at least some structural concepts can be borrowed from public, more generic sources. This lowers training thresholds and facilitates integration. Being able to integrate does not imply opening one&amp;#39;s own data. To take an analogy, if you have a bunker with closed circuit air recycling, you still breathe air, even if that air is cut off from the atmosphere at large. For places with complex existing &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x24db80e0&quot;&gt;RDBMS&lt;/a&gt; security, the best is to map the RDBMS to &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x24ea7c40&quot;&gt;RDF&lt;/a&gt; on the fly, always running all requests through the RDBMS. This implicitly preserves any policy or label based security schemes.&lt;/p&gt;

&lt;h2&gt;What of Individual Privacy on the Open Web?&lt;/h2&gt;

&lt;p&gt;The more complex situations will be found in environments with mixed security needs, as in social networking with partly-open and partly-closed profiles. The FOAF+SSL solution with &lt;code&gt;https://&lt;/code&gt; URIs is one approach. For query processing, we have a question of enforcing instance-level policies. In the DataSphere, granting privileges on tables and views no longer makes sense. In &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x24aaccc0&quot;&gt;SQL&lt;/a&gt;, a policy means that behind the scenes the DBMS will add extra criteria to queries and updates depending on who is issuing them. The query processor adds conditions like getting the user&amp;#39;s department ID and comparing it to the department ID on the payroll record. Labeled security is a scheme where data rows themselves contain security tags and the DBMS enforces these, row by row.&lt;/p&gt;

&lt;p&gt;I would say that these techniques are suited for highly-structured situations where the roles, compartments, and needs are clear, and where the organization has the database know-how to write, test, and deploy such rules by the table, row, and column. This does not sit well with schema-last. I would not bet much on an average developer&amp;#39;s capacity for making airtight policies on RDF data where not even 100% schema-adherence is guaranteed.&lt;/p&gt;

&lt;p&gt;Doing security at the RDF graph level seems more appropriate. In many use cases, the graph is analogous to a photo album or a file system directory. A Data &lt;a href=&quot;http://en.wikipedia.org/wiki/Data_Spaces&quot; id=&quot;link-id0x2396c058&quot;&gt;Space&lt;/a&gt; can be divided into graphs to provide more granularity for expressing topic, provenance, or security. If policy conditions apply mostly to the graph, then things are not as likely to slip by, for example, policy rules missing some infrequent misuse of the schema. In these cases, the burden on the query processor is also not excessive: Just as with documents, the container (table, graph) is the object of access grants, not the individual sentences (DBMS records, RDF triples) in the document.&lt;/p&gt;

&lt;p&gt;It is left to the application to present a choice of graph level policies to the user. Exactly what these will be depends on the domain of discourse. A policy might restrict access to a meeting in a calendar to people whose OpenIDs figure in the attendee list, or limit access to a photo album to people mentioned in the owner&amp;#39;s social network. Defining such policies is typically a task for the application developer.&lt;/p&gt;

&lt;p&gt;The difference between the Document Web and the &lt;a href=&quot;http://dbpedia.org/resource/Linked_Data&quot; id=&quot;link-id0x238a0098&quot;&gt;Linked Data&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Giant_Global_Graph&quot; id=&quot;link-id0x23882280&quot;&gt;Web&lt;/a&gt; is that while the Document Web enforces security when a thing is returned to the user, Linked Data Web enforcement must occur whenever a query references something, even if this is an intermediate result not directly shown to the user.&lt;/p&gt;

&lt;p&gt;The DataSphere will offer a generic policy scheme, filtering what graphs are accessed in a given query situation. Other applications may then verify the safety of one&amp;#39;s disclosed &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x2388e458&quot;&gt;information&lt;/a&gt; using the same DataSphere infrastructure. Of course, the user must rely on the infrastructure provider to correctly enforce these rules. Then again, some users will operate and audit their own infrastructure anyway.&lt;/p&gt;

&lt;h2&gt;Federation vs. Centralization&lt;/h2&gt;

&lt;p&gt;On the open web, there is the question of federation vs. centralization. If an application is seen to be an interface to a vocabulary, it becomes more agnostic with respect to this. In practice, if we are talking about hosted services, what is hosted together joins much faster. Data Spaces with lots of interlinking, such as closely connected social networks, will tend to cluster together on the same cloud to facilitate joint operation. Data is ubiquitous and not location-conscious, but what one can efficiently do with it depends on location. Joint access patterns favor joint location. Due to technicalities of the matter, single database clusters will run complex queries within the cluster 100 to 1000 times faster than between clusters. The size of such data clouds may be in the hundreds-of-billions of triples. It seems to make sense to have data belonging to same-type or jointly-used applications close together. In practice, there will arise partitioning by type of usage, user profile, etc., but this is no longer airtight and applications more-or-less float on top of all of this.&lt;/p&gt;

&lt;p&gt;A search engine can host a copy of the Document Web and allow text lookups on it. But a text lookup is a single well-defined query that happens to parallelize and partition very well. A search engine can also have all the structured public data copied, but the problem there is that queries are a lot less predictable and may take orders of magnitude more resources than a single text lookup. As a partial answer, even now, we can set up a database so that the first million single-row joins cost the user nothing, but doing more requires a special subscription.&lt;/p&gt;

&lt;p&gt;The cost for hosting a trillion triples will vary radically in function of what throughput is promised. This may result in pricing per service level, a bit like ISP pricing varies in function of promised connectivity. Queries can be run for free if no throughput guarantee applies, and might cost more if the host promises at least five-million joins-per-second including infrequently-accessed data.&lt;/p&gt;

&lt;p&gt;Performance and cost dynamics will probably lead to the emergence of domain-specific clusters of colocated Data Spaces. The landscape will be hybrid, where usage drives data colocation. A single Google is not a practical solution to the world&amp;#39;s spectrum of query needs.&lt;/p&gt;

&lt;h2&gt;What is the Cost of Schema-Last?&lt;/h2&gt;

&lt;p&gt;The DataSphere proposition is predicated on a worldwide database fabric that can store anything, just like a network can transport anything. It cannot enforce a fixed schema, just like TCP/IP cannot say that it will transport only email. This is continuous schema evolution. Well, TCP/IP can transport anything but it does transport a lot of HTML and email. Similarly, the DataSphere can optimize for some common vocabularies.&lt;/p&gt;

&lt;p&gt;We have seen that an application-specific relational schema is often 10 times more efficient than an equivalent completely generic RDF representation of the same thing. The gap may narrow, but task specific representations will keep an edge. We ought to know, as we do both.&lt;/p&gt;

&lt;p&gt;While anything can be represented, the masses are not that creative. For any data-hosting provider, making a specialized representation for the top 100 entities may cut data size in half or better. This is a behind-the-scenes optimization that will in time be a matter of course.&lt;/p&gt;

&lt;p&gt;Historically, our industry has been driven by two phenomena:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
  &lt;b&gt;New PCs every 2 years.&lt;/b&gt; To make this necessary, Windows has been getting bigger and bigger, and not upgrading is not an option if one must exchange documents with new data formats and keep up with security.&lt;/li&gt;

&lt;li&gt;
  &lt;b&gt;Agility, or &lt;i&gt;ad hoc&lt;/i&gt; over planned.&lt;/b&gt; The reason the RDBMS won over &lt;a href=&quot;http://dbpedia.org/resource/CODASYL&quot; id=&quot;link-id0x13b23460&quot;&gt;CODASYL&lt;/a&gt; network databases was that one did not have to define what queries could be made when creating the database. With the Linked Data Web, we have one more step in this direction when we say that one does not have to decide what can be represented when creating the database.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To summarize, there is some cost to schema-last, but then our industry needs more complexity to keep justifying constant investment. The cost is in this sense not all bad.&lt;/p&gt;

&lt;p&gt;Building the DataSphere may be the next great driver of server demand. As a case in point, Cisco, whose fortune was made when the network became ubiquitous, just entered the server game. It&amp;#39;s in the air.&lt;/p&gt;

&lt;h2&gt;DataSphere Precursors&lt;/h2&gt;

&lt;p&gt;Right now, we have the &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x236a9be8&quot;&gt;Linked Open Data&lt;/a&gt; movement with lots of new data being added. We have the drive for data- and reputation-portability. We have Freebase as a demonstrator of end-users actually producing structured data. We have convergence of terminology around &lt;a href=&quot;http://dbpedia.org/resource/DBpedia&quot; id=&quot;link-id0x24db8350&quot;&gt;DBpedia&lt;/a&gt;, FOAF, SIOC, and more. We have demonstrators of useful data integration on the RDF stack in diverse fields, especially life sciences.&lt;/p&gt;

&lt;p&gt;We have a totally ubiquitous network for the distribution of this, plus database technology to make this work.&lt;/p&gt;

&lt;p&gt;We have a practical need for semantics, as search is getting saturated, email is getting killed by spam, and information overload is a constant. Social networks can be leveraged for solving a lot of this, if they can only be opened.&lt;/p&gt;

&lt;p&gt;Of course, there is a call for transparency in society at large. Well, the battle of transparency vs. spin is a permanent feature of human existence but even there, we cannot ignore the possibilities of open data.&lt;/p&gt;

&lt;h2&gt;Databases and Servers&lt;/h2&gt;

&lt;p&gt;Technically, what does this take? Mostly, this takes a lot of memory. The software is there and we are productizing it as we speak. As with other data intensive things, the key is scalable querying over clusters of commodity servers. Nothing we have not heard before. Of course, the DBMS must know about RDF specifics to get the right query plans and so on but this we have explained elsewhere.&lt;/p&gt;

&lt;p&gt;This all comes down to the cost of memory. No amount of CPU or network speed will make any difference if data is not in memory. Right now, a board with 8G and a dual core AMD X86-64 and 4 disks may cost about $700. 2 x 4 core Xeon and 16G and 8 disks may be $4000, counting just the components. In our experience, about 32G per billion triples is a minimum. This must be backed by a few independent disks so as to fill the cache in parallel. A cluster with 1 TB of RAM would be under $100K if built from low end boards.&lt;/p&gt;

&lt;p&gt;The workload is all about large joins across partitions. The queries parallelize well, thus using the largest and most expensive machines for building blocks is not cost efficient. Having absolutely everything in RAM is also not cost efficient, but it is necessary to have many disks to absorb the random access load. Disk access is predominantly random, unlike some analytics workloads that can read serially. If SSD&amp;#39;s get a bit cheaper, one could have SSD for the database and disk for backup.&lt;/p&gt;

&lt;p&gt;With large data centers, redundancy becomes an issue. The most cost effective redundancy is simply storing partitions in duplicate or triplicate on different commodity servers. The DBMS software should handle the replication and fail-over.&lt;/p&gt;

&lt;p&gt;For operating such systems, scaling-on-demand is necessary. Data must move between servers, and adding or replacing servers should be an on-the-fly operation. Also, since access is essentially never uniform, the most commonly accessed partitions may benefit from being kept in more copies than less frequently accessed ones. The DBMS must be essentially self administrating since these things are quite complex and easily intractable if one does not have in depth understanding of this rather complex field.&lt;/p&gt;

&lt;p&gt;The best price point for hardware varies with time. Right now, the optimum is to have many basic motherboards with maximum memory in a rack unit, then another unit with local disks for each motherboard. Much cheaper than SAN&amp;#39;s and Infiniband fabrics.&lt;/p&gt;

&lt;h2&gt;Conclusions and Next Steps&lt;/h2&gt;

&lt;p&gt;The ingredients and use cases are there. If server clusters with 1TB RAM begin under $100K, the cost of deployment is small compared to personnel costs.&lt;/p&gt;

&lt;p&gt;Bootstrapping the DataSphere from current Linked Open Data, such as DBpedia, &lt;a href=&quot;http://dbpedia.org/resource/Cyc&quot; id=&quot;link-id0x2396a038&quot;&gt;OpenCYC&lt;/a&gt;, Freebase, and every sort of social network, is feasible. Aside from private data integration and analytics efforts and E-science, the use cases are liberating social networks and C2C and some aspects of search from silos, overcoming spam, and mass use of semantics extracted from text. Emergent effects will then carry the ball to places we have not yet been.&lt;/p&gt;

&lt;p&gt;The Linked Data Web has its origins in &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x13ea7110&quot;&gt;Semantic Web&lt;/a&gt; research, and many of the present participants come from these circles. Things may have been slowed down by a disconnect, only too typical of human activity, between Semantic Web research on one hand and database engineering on the other. Right now, the challenge is one of engineering. As documented on this &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0x2388e368&quot;&gt;blog&lt;/a&gt;, we have worked quite a bit on cluster databases, mostly but not exclusively with RDF use cases. The actual challenges of this are however not at all what is discussed in Semantic Web conferences. These have to do with complexities of parallelism, timing, message bottlenecks, transactions, and the like, i.e., hardcore engineering. These are difficult beyond what the casual onlooker might guess but not impossible. The details that remain to be worked out are nothing semantic, they are hardcore database, concerning automatic provisioning and such matters.&lt;/p&gt;

&lt;p&gt;It is as if the Semantic Web people look with envy at the Web 2.0 side where there are big deployments in production, yet they do not seem quite ready to take the step themselves. Well, I will write some other time about research and engineering. For now, the message is &amp;amp;mdash &lt;i&gt;&lt;b&gt;go for it&lt;/b&gt;&lt;/i&gt;. Stay tuned for more announcements, as we near production with our next generation of software.&lt;/p&gt;


&lt;h2&gt;Related&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
  &lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1535&quot; id=&quot;link-id14e02bb0&quot;&gt;Beyond Applications - Introducing the Planetary Datasphere (Part 1)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
  &lt;a href=&quot;http://www.openlinksw.com/blog/~kidehen/?id=1442&quot; id=&quot;link-id117dc518&quot;&gt;Serendipitous Discovery Quotient (SDQ)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
  &lt;a href=&quot;http://www.openlinksw.com/blog/~kidehen/?id=1534&quot; id=&quot;link-id15c52410&quot;&gt;How Linked Data will change Advertising&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
  &lt;a href=&quot;http://www.openlinksw.com/blog/~kidehen/?id=1519&quot; id=&quot;link-id11e93658&quot;&gt;The Time for RDBMS Primacy Downgrade is Nigh!&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
  &lt;a href=&quot;http://www.openlinksw.com/blog/~kidehen/?tag=DataSpace&quot; id=&quot;link-id1491a588&quot;&gt;Data Spaces&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>An Update on Virtuoso Development</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2009-03-05#1528</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1528#comments</comments><pubDate>Thu, 05 Mar 2009 10:23:49 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2009-03-05T09:58:07-05:00</n0:modified><description>&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;</description></item><item><title>Facets and Large Ontologies of the LOD Cloud</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2009-02-16#1526</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1526#comments</comments><pubDate>Mon, 16 Feb 2009 11:21:05 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2009-02-17T16:24:27.000009-05:00</n0:modified><description>&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;</description></item><item><title>Linked Data &amp; The Year 2009 (updated)</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2009-01-02#1510</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1510#comments</comments><pubDate>Fri, 02 Jan 2009 16:17:06 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2009-01-02T13:26:35-05:00</n0:modified><description>&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;</description></item><item><title>Virtuoso 6 FAQ directory</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-12-18#1506</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1506#comments</comments><pubDate>Thu, 18 Dec 2008 15:46:18 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-12-22T14:30:00-05:00</n0:modified><description>&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;</description></item><item><title>&quot;E Pluribus Unum&quot;, or &quot;Inversely Functional Identity&quot;, or &quot;Smooshing Without the Stickiness&quot; (re-updated)</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-12-16#1498</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1498#comments</comments><pubDate>Tue, 16 Dec 2008 14:14:43 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-12-16T15:01:30-05:00</n0:modified><description>&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;</description></item><item><title>Virtuoso Anytime:  No Query Is Too Complex (updated)</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-12-11#1494</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1494#comments</comments><pubDate>Thu, 11 Dec 2008 16:13:10 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-12-12T10:29:18-05:00</n0:modified><description>
&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;</description></item><item><title>An Example of RDF Scalability</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-11-27#1487</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1487#comments</comments><pubDate>Thu, 27 Nov 2008 11:23:47 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-12-01T12:09:49.000005-05:00</n0:modified><description>&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;</description></item><item><title>ISWC 2008: Billion Triples Challenge</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-11-04#1478</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1478#comments</comments><pubDate>Tue, 04 Nov 2008 15:52:11 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-11-04T13:52:00-05:00</n0:modified><description>&lt;p&gt;We showed our billion triples demo at the &lt;a href=&quot;http://iswc2008.semanticweb.org/&quot; id=&quot;link-id0x13a0a520&quot;&gt;ISWC 2008&lt;/a&gt; poster session. Generally people liked what they saw, as we basically did what one always had wanted to do with &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x138f5798&quot;&gt;SPARQL&lt;/a&gt; but never could. This means firstly full &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1264a688&quot;&gt;SQL&lt;/a&gt; parity, with sub-queries, aggregation, full text, etc. Beyond SQL, we have transitive sub-queries, &lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0x1e084138&quot;&gt;owl&lt;/a&gt;:sameAs at run time, and other inference things, all on demand.&lt;/p&gt;

&lt;p&gt;The live demo is at &lt;a href=&quot;http://b3s.openlinksw.com/&quot; id=&quot;link-id14ba36e0&quot;&gt;http://b3s.openlinksw.com/&lt;/a&gt;. This site is under development and may not be on all the time. We are taking it in the direction of hosting the whole &lt;a href=&quot;http://community.linkeddata.org/dataspace/organization/lod#this&quot; id=&quot;link-id0x13355f80&quot;&gt;LOD&lt;/a&gt; cloud. This is an evolving operation where we will continue showcasing how one can ask increasingly interesting questions from a growing online database, in the spirit of the billion triples charter.&lt;/p&gt;

&lt;p&gt;In the words of &lt;a href=&quot;http://www.cs.rpi.edu/~hendler/&quot; id=&quot;link-id111ad740&quot;&gt;Jim Hendler&lt;/a&gt;, we were not selected for the finale because this would have made the challenge a database shootout instead of a more research-oriented event. There is some point to this since if the event becomes like the TPC benchmarks, this will limit the entrance to full time database players. Anyway, we got a special mention in the intro of the challenge track.&lt;/p&gt;

&lt;p&gt;The winner was Semaplorer, a federated SPARQL query system. There is some merit to this, as we ourselves are not convinced that centralization is always the right direction. As discussed in the &lt;i&gt;&lt;a href=&quot;http://www.openlinksw.com/weblog/oerling/?id=1376&quot; id=&quot;link-id1831cce0&quot;&gt;DARQ Matter of Federation&lt;/a&gt;&lt;/i&gt; post, we have a notion of how to do this production-strength with our cluster engine, now also over wide area networks. We shall see.&lt;/p&gt;

&lt;h2&gt;Why Not Just Join?&lt;/h2&gt;

&lt;p&gt;The entries from Deri and LARKC (&lt;a href=&quot;http://www.larkc.eu/marvin/&quot; id=&quot;link-id1bb42778&quot;&gt;MaRVIN&lt;/a&gt;, &amp;quot;Massive &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id19c15d30&quot;&gt;RDF&lt;/a&gt; Versatile Inference Network&amp;quot;) were doing materialization of inference results in a cluster environment. The thing they were not doing was joining across partitions. Thus, the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1d3c1a38&quot;&gt;data&lt;/a&gt; was partitioned on whatever criterion and then the data in each partition was further refined according to rules known to all partitions. Deri did not address joining further.&lt;/p&gt;

&lt;p&gt;&amp;quot;Nature shall be the guide of the alchemist,&amp;quot; goes the old adage. We can look at MaRVIN as an example of this dictum. Networks of people are low bandwidth, not nearly fully connected. Asking a colleague for &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x125dd698&quot;&gt;information&lt;/a&gt; is expensive and subject to misunderstanding; asking another research group might never produce an answer.&lt;/p&gt;

&lt;p&gt;Even looking at one individual, we have no reason to think that the human expert would do complete reasoning. Indeed, the brain is a sort of compute cluster, but it does not have flat latency point to point connectivity â some joins are fast; others are not even tried, for all we know.&lt;/p&gt;

&lt;p&gt;A database running on a cluster is a sort of counter-example. A database with RDF workload will end up joining across partitions pretty much all of the time.&lt;/p&gt;

&lt;p&gt;MaRVIN&amp;#39;s approach to joining could be likened to a country dance: Boys get to take a whirl with different girls according to a complex pattern. For match-making, some matches are produced early but one never knows if the love of a lifetime might be just around the corner. Also, if the dancers are inexperienced, they will have little ability to evaluate how good a match they have with their partner. A few times around the dance floor are needed to get the hang of things.&lt;/p&gt;

&lt;p&gt;The question is, at what point will it no longer be possible to join across the database? This depends on the interconnect latency. The higher the latency, the more useful the square-dancing approach becomes.&lt;/p&gt;

&lt;p&gt;Another practical consideration is the fact that RDF reasoners are not usually built for distributed memory multiprocessors. If the reasoner must be a plug-in component, then it cannot be expected to be written for grids.&lt;/p&gt;

&lt;p&gt;We can think of a product safety use case: Find cosmetics that have ingredients that are considered toxic in the amounts they are present in each product. This can be done as a database query with some transitive operations, like running through a cosmetics taxonomy and a poisons database. If the business logic deciding whether the presence of an ingredient in the product is a health hazard is very complex, we can get a lot of joins.&lt;/p&gt;

&lt;p&gt;The MaRVIN way would be to set up a ball where each lipstick and eyeliner dances with every poison and then see if matches are made. The matching logic could be arbitrarily complex since it would run locally. Of course here, some domain &lt;a href=&quot;http://dbpedia.org/resource/Knowledge&quot; id=&quot;link-id0x133b84b8&quot;&gt;knowledge&lt;/a&gt; is needed in order to set up the processing so that each product and poison carry all the associated information with them. Dancing with half a partner can bias one&amp;#39;s perceptions: Again, it is like nature, sometimes not all cards are on the table.&lt;/p&gt;

&lt;p&gt;It would seem that there is some setup involved before answering a question: Composition of partitions, frequency of result exchange, etc. How critical the domain knowledge implicit in the setup is for the quality of results is an interesting question.&lt;/p&gt;

&lt;p&gt;The question is, at what point will a cluster using &lt;a href=&quot;http://dbpedia.org/resource/federated_database_system&quot; id=&quot;link-id0x1466c1c0&quot;&gt;distributed database&lt;/a&gt; operations for inference become impractical? Of course, it is impractical from the get-go if the reasoners and query processors are not made for this. But what if they are? We are presently evaluating different message patterns for joining between partitions. The baseline is some 250,000 random single-triple lookups per second per core. Using a cluster increases this throughput. The increase is more or less linear depending on whether all intermediate results pass via one coordinating node (worst case) or whether each node can decide which other node will do the next join step for each result (best case). For example, a &lt;code&gt;DISTINCT&lt;/code&gt; operation requires that data passes through a single place but &lt;code&gt;JOIN&lt;/code&gt;ing and aggregation in general do not.&lt;/p&gt;

&lt;p&gt;We will still publish numbers during this November.&lt;/p&gt;</description></item><item><title>ISWC 2008: The Scalable Knowledge Systems Workshop</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-11-03#1471</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1471#comments</comments><pubDate>Mon, 03 Nov 2008 13:16:47 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-11-03T12:33:49-05:00</n0:modified><description>&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;</description></item><item><title>Virtuoso - Are We Too Clever for Our Own Good? (updated)</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-10-26#1465</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1465#comments</comments><pubDate>Sun, 26 Oct 2008 12:15:35 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-10-27T12:07:52-04:00</n0:modified><description>&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;</description></item><item><title>State of the Semantic Web, Part 1 - Sociology, Business, and Messaging (update 2)</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-10-24#1459</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1459#comments</comments><pubDate>Fri, 24 Oct 2008 10:19:03 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-10-27T11:27:54-04:00</n0:modified><description>&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;</description></item><item><title>Virtuoso Cluster Paper Update</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-10-02#1449</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1449#comments</comments><pubDate>Thu, 02 Oct 2008 09:38:14 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-10-03T04:38:01-04:00</n0:modified><description>&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;</description></item><item><title>Virtuoso Update, Billion Triples and Outlook</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-10-02#1448</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1448#comments</comments><pubDate>Thu, 02 Oct 2008 09:31:17 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-10-02T12:47:02.000002-04:00</n0:modified><description>&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;</description></item><item><title>OpenLink Software&#39;s Virtuoso Submission to the Billion Triples Challenge</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-09-30#1445</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1445#comments</comments><pubDate>Tue, 30 Sep 2008 15:39:26 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-10-03T06:20:43.000002-04:00</n0:modified><description>&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;</description></item><item><title>On Sem Web Search</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-04-29#1346</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1346#comments</comments><pubDate>Tue, 29 Apr 2008 12:03:47 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-10-02T11:37:07.000002-04:00</n0:modified><description>&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;</description></item>
</channel>
</rss>
