<?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:49:55 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>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>Virtuoso RDF:  A Getting Started Guide for the Developer</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-12-17#1504</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1504#comments</comments><pubDate>Wed, 17 Dec 2008 12:31:34 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-12-17T12:41:21.000001-05:00</n0:modified><description>
&lt;p&gt;It is a long standing promise of mine to dispel the false impression that using &lt;a href=&quot;http://virtuoso.openlinksw.com/&quot; id=&quot;link-id113506d0&quot;&gt;Virtuoso&lt;/a&gt; to work with &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id115d9528&quot;&gt;RDF&lt;/a&gt; is complicated.&lt;/p&gt;

&lt;p&gt;The purpose of this presentation is to show a programmer how to put RDF into Virtuoso and how to query it.  This is done programmatically, with no confusing user interfaces.&lt;/p&gt;

&lt;p&gt;You should have a Virtuoso Open Source tree built and installed.  We will look at the LUBM benchmark demo that comes with the package.  All you need is a Unix shell.  Running the shell under emacs (&lt;code&gt;m-x shell&lt;/code&gt;) is the best.  But the open source &lt;code&gt;isql&lt;/code&gt; utility should have command line editing also.  The emacs shell is however convenient for cutting and pasting things between shell and files.&lt;/p&gt;

&lt;p&gt;To get started, cd into &lt;code&gt;binsrc/tests/lubm&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;To verify that this works, you can do &lt;/p&gt;

&lt;blockquote&gt;
&lt;pre&gt;./test_server.sh virtuoso-t&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;This will test the server with the LUBM queries.  This should report 45 tests passed.  After this we will do the tests step-by-step.&lt;/p&gt;

&lt;h2&gt;Loading the &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id10f7bd90&quot;&gt;Data&lt;/a&gt;
&lt;/h2&gt; 

&lt;p&gt;The file &lt;code&gt;lubm-load.sql&lt;/code&gt; contains the commands for loading the LUBM single university qualification database.&lt;/p&gt;

&lt;p&gt;The data files themselves are in &lt;code&gt;lubm_8000&lt;/code&gt;, 15 files in RDFXML.&lt;/p&gt;

&lt;p&gt;There is also a little ontology called &lt;code&gt;inf.nt&lt;/code&gt;.  This declares the subclass and subproperty relations used in the benchmark.&lt;/p&gt;

&lt;p&gt;So now let&amp;#39;s go through this procedure.&lt;/p&gt;

&lt;p&gt;Start the server:&lt;/p&gt;

&lt;blockquote&gt;
&lt;pre&gt;$ virtuoso-t -f &amp;amp;
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;This starts the server in foreground mode, and puts it in the background of the shell.&lt;/p&gt;

&lt;p&gt;Now we connect to it with the isql utility.&lt;/p&gt;

&lt;blockquote&gt;
&lt;pre&gt;$ isql 1111 dba dba 
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;This gives a &lt;code&gt;SQL&amp;gt;&lt;/code&gt; prompt.  The default username and password are both &lt;code&gt;dba&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;When a command is &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id1176ce70&quot;&gt;SQL&lt;/a&gt;, it is entered directly.  If it is &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id156df468&quot;&gt;SPARQL&lt;/a&gt;, it is prefixed with the keyword &lt;code&gt;sparql&lt;/code&gt;.  This is how all the SQL clients work.  Any SQL client, such as any &lt;a href=&quot;http://dbpedia.org/resource/Open_Database_Connectivity&quot; id=&quot;link-id152d0a00&quot;&gt;ODBC&lt;/a&gt; or &lt;a href=&quot;http://dbpedia.org/resource/Java_Database_Connectivity&quot; id=&quot;link-id157ad6a0&quot;&gt;JDBC&lt;/a&gt; application, can use SPARQL if the SQL string starts with this keyword.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;lubm-load.sql&lt;/code&gt; file is quite self-explanatory. It begins with defining an SQL procedure that calls the RDF/XML load function, &lt;code&gt;DB..RDF_LOAD_RDFXML&lt;/code&gt;, for each file in a directory.&lt;/p&gt;

&lt;p&gt;Next it calls this function for the &lt;code&gt;lubm_8000&lt;/code&gt; directory under the server&amp;#39;s working directory.&lt;/p&gt;

&lt;blockquote&gt;
&lt;pre&gt;sparql 
   CLEAR GRAPH &amp;lt;lubm&amp;gt;;

sparql 
   CLEAR GRAPH &amp;lt;inf&amp;gt;;

load_lubm ( server_root() || &amp;#39;/lubm_8000/&amp;#39; );
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Then it verifies that the right number of triples is found in the &amp;lt;lubm&amp;gt; graph.&lt;/p&gt;

&lt;blockquote&gt;
&lt;pre&gt;sparql 
   SELECT COUNT(*) 
     FROM &amp;lt;lubm&amp;gt; 
    WHERE { ?x ?y ?z } ;
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;The echo commands below this are interpreted by the isql utility, and produce output to show whether the test was passed.  They can be ignored for now.&lt;/p&gt;

&lt;p&gt;Then it adds some implied &lt;code&gt;subOrganizationOf&lt;/code&gt; triples.  This is part of setting up the LUBM test database.&lt;/p&gt;

&lt;blockquote&gt;
&lt;pre&gt;sparql 
   PREFIX  ub:  &amp;lt;http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#&amp;gt;
   INSERT 
      INTO GRAPH &amp;lt;lubm&amp;gt; 
      { ?x  ub:subOrganizationOf  ?z } 
   FROM &amp;lt;lubm&amp;gt; 
   WHERE { ?x  ub:subOrganizationOf  ?y  . 
           ?y  ub:subOrganizationOf  ?z  . 
         };
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Then it loads the ontology file, &lt;code&gt;inf.nt&lt;/code&gt;, using the Turtle load function, &lt;code&gt;DB.DBA.TTLP&lt;/code&gt;.  The arguments of the function are the text to load, the default namespace prefix, and the &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Identifier&quot; id=&quot;link-id15835550&quot;&gt;URI&lt;/a&gt; of the target graph.&lt;/p&gt;

&lt;blockquote&gt;
&lt;pre&gt;DB.DBA.TTLP ( file_to_string ( &amp;#39;inf.nt&amp;#39; ), 
              &amp;#39;http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl&amp;#39;, 
              &amp;#39;inf&amp;#39; 
            ) ;
sparql 
   SELECT COUNT(*) 
     FROM &amp;lt;inf&amp;gt; 
    WHERE { ?x ?y ?z } ;
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Then we declare that the triples in the &lt;code&gt;&amp;lt;inf&amp;gt;&lt;/code&gt; graph can be used for inference at run time.  To enable this, a SPARQL query will declare that it uses the &lt;code&gt;&amp;#39;inft&amp;#39;&lt;/code&gt; rule set.  Otherwise this has no effect.&lt;/p&gt;

&lt;blockquote&gt;
&lt;pre&gt;rdfs_rule_set (&amp;#39;inft&amp;#39;, &amp;#39;inf&amp;#39;);
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;This is just a log checkpoint to finalize the work and truncate the transaction log.  The server would also eventually do this in its own time.&lt;/p&gt;

&lt;blockquote&gt;
&lt;pre&gt;checkpoint;
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Now we are ready for querying.&lt;/p&gt;

&lt;h2&gt;Querying the Data&lt;/h2&gt; 

&lt;p&gt;The queries are given in 3 different versions: The first file, &lt;code&gt;lubm.sql&lt;/code&gt;, has the queries with most inference open coded as &lt;code&gt;UNIONs&lt;/code&gt;. The second file, &lt;code&gt;lubm-inf.sql&lt;/code&gt;, has the inference performed at run time using the ontology &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id1109faf0&quot;&gt;information&lt;/a&gt; in the &lt;code&gt;&amp;lt;inf&amp;gt;&lt;/code&gt; graph we just loaded.  The last, &lt;code&gt;lubm-phys.sql&lt;/code&gt;, relies on having the entailed triples physically present in the &lt;code&gt;&amp;lt;lubm&amp;gt;&lt;/code&gt; graph.  These entailed triples are inserted by the SPARUL commands in the &lt;code&gt;lubm-cp.sql&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;If you wish to run all the commands in a SQL file, you can type &lt;code&gt;load &amp;lt;filename&amp;gt;;&lt;/code&gt; (e.g., &lt;code&gt;load lubm-cp.sql;&lt;/code&gt;) at the &lt;code&gt;SQL&amp;gt;&lt;/code&gt; prompt. If you wish to try individual statements, you can paste them to the command line.&lt;/p&gt;

&lt;p&gt;For example: &lt;/p&gt;

&lt;blockquote&gt;
&lt;pre&gt;SQL&amp;gt; sparql 
   PREFIX ub: &amp;lt;http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#&amp;gt;
   SELECT * 
     FROM &amp;lt;lubm&amp;gt;
    WHERE { ?x  a                     ub:Publication                                                . 
            ?x  ub:publicationAuthor  &amp;lt;http://www.Department0.University0.edu/AssistantProfessor0&amp;gt; 
          };

VARCHAR
_______________________________________________________________________

http://www.Department0.University0.edu/AssistantProfessor0/Publication0
http://www.Department0.University0.edu/AssistantProfessor0/Publication1
http://www.Department0.University0.edu/AssistantProfessor0/Publication2
http://www.Department0.University0.edu/AssistantProfessor0/Publication3
http://www.Department0.University0.edu/AssistantProfessor0/Publication4
http://www.Department0.University0.edu/AssistantProfessor0/Publication5

6 Rows. -- 4 msec.
&lt;/pre&gt;&lt;/blockquote&gt;


&lt;p&gt;To stop the server, simply type &lt;code&gt;shutdown;&lt;/code&gt; at the &lt;code&gt;SQL&amp;gt;&lt;/code&gt; prompt.&lt;/p&gt;

&lt;p&gt;If you wish to use a &lt;a href=&quot;http://www.w3.org/TR/rdf-sparql-protocol/&quot; id=&quot;link-id11384668&quot;&gt;SPARQL protocol&lt;/a&gt; end point, just enable the HTTP listener.  This is done by adding a stanza like â&lt;/p&gt;

&lt;blockquote&gt;
&lt;pre&gt;[HTTPServer]
ServerPort    = 8421
ServerRoot    = .
ServerThreads = 2
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;â to the end of the &lt;code&gt;virtuoso.ini&lt;/code&gt; file in the &lt;code&gt;lubm&lt;/code&gt; directory.  Then shutdown and restart (type &lt;code&gt;shutdown;&lt;/code&gt; at the &lt;code&gt;SQL&amp;gt;&lt;/code&gt; prompt and then &lt;code&gt;virtuoso-t -f &amp;amp;&lt;/code&gt; at the shell prompt).&lt;/p&gt;

&lt;p&gt;Now you can connect to the end point with a web browser.  The &lt;a href=&quot;http://dbpedia.org/resource/Uniform_Resource_Locator&quot; id=&quot;link-id113d02d8&quot;&gt;URL&lt;/a&gt; is &lt;code&gt;http://localhost:8421/sparql&lt;/code&gt;. Without parameters, this will show a human readable form.  With parameters, this will execute SPARQL.&lt;/p&gt;

&lt;p&gt;We have shown how to load and query RDF with Virtuoso using the most basic SQL tools. Next you can access RDF from, for example, &lt;a href=&quot;http://dbpedia.org/resource/PHP&quot; id=&quot;link-id142d0ba0&quot;&gt;PHP&lt;/a&gt;, using the PHP ODBC interface.&lt;/p&gt;

&lt;p&gt;To see how to use &lt;a href=&quot;http://jena.sourceforge.net/&quot; id=&quot;link-id117074f0&quot;&gt;Jena&lt;/a&gt; or &lt;a href=&quot;http://sourceforge.net/projects/sesame/&quot; id=&quot;link-id1103c9b0&quot;&gt;Sesame&lt;/a&gt; with Virtuoso, look at &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/rdfnativestorageproviders.html&quot; id=&quot;link-id15488ce8&quot;&gt;Native RDF Storage Providers&lt;/a&gt;. To see how RDF data types are supported, see &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/VirtuosoDriverJDBC.html#jdbcrdf&quot; id=&quot;link-id15784a40&quot;&gt;Extension datatype for RDF&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;To work with large volumes of data, you must add memory to the configuration file and use the row-autocommit mode, i.e., do &lt;code&gt;log_enableÂ (2);&lt;/code&gt; before the load command. Otherwise Virtuoso will do the entire load as a single transaction, and will run out of rollback space.  See &lt;a href=&quot;http://docs.openlinksw.com/virtuoso/&quot; id=&quot;link-id111410f0&quot;&gt;documentation&lt;/a&gt; for more.&lt;/p&gt;</description></item><item><title>ISWC 2008: Some Questions</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-11-04#1479</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1479#comments</comments><pubDate>Tue, 04 Nov 2008 15:54:42 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-11-04T14:36:50.000010-05:00</n0:modified><description>&lt;h2&gt;Inference: Is it always forward chaining?&lt;/h2&gt;

&lt;p&gt;We got a number of questions about &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x131604a8&quot;&gt;Virtuoso&lt;/a&gt;&amp;#39;s inference support. It seems that we are the odd one out, as we do not take it for granted that inference ought to consist of materializing entailment.&lt;/p&gt;

&lt;p&gt;Firstly, of course one can materialize all one wants with Virtuoso. The simplest way to do this is using SPARUL. With the recent transitivity extensions to &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1422f910&quot;&gt;SPARQL&lt;/a&gt;, it is also easy to materialize implications of transitivity with a single statement. Our point is that for trivial entailment such as subclass, sub-property, single transitive property, and &lt;a href=&quot;http://dbpedia.org/resource/Web_Ontology_Language&quot; id=&quot;link-id0x145894a8&quot;&gt;owl&lt;/a&gt;:sameAs, we do not require materialization, as we can resolve these at run time also, with backward-chaining built into the engine.&lt;/p&gt;

&lt;p&gt;For more complex situations, one needs to materialize the entailment. At the present time, we know how to generalize our transitive feature to run arbitrary backward-chaining rules, including recursive ones. We could have a sort of Datalog backward-chaining embedded in our &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x1458a288&quot;&gt;SQL&lt;/a&gt;/SPARQL and could run this with good parallelism, as the transitive feature already works with clustering and partitioning without dying of message latency. Exactly when and how we do this will be seen. Even if users want entailment to be materialized, such a rule system could be used for producing the materialization at good speed.&lt;/p&gt;

&lt;p&gt;We had a word with &lt;a href=&quot;http://web.comlab.ox.ac.uk/people/Ian.Horrocks/&quot; id=&quot;link-id117c99d0&quot;&gt;Ian Horrocks&lt;/a&gt; on the question. He noted that it is often naive on behalf of the community to tend to equate description of semantics with description of algorithm. The &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x14cf0b18&quot;&gt;data&lt;/a&gt; need not always be blown up.&lt;/p&gt;

&lt;p&gt;The advantage of not always materializing is that the working set stays better. Once the working set is no longer in memory, response times jump disproportionately. Also, if the data changes or is retracted or is unreliable, one can end up doing a lot of extra work with materialization. Consider the effect of one malicious sameAs statement. This can lead to a lot of effects that are hard to retract. On the other hand, if running in memory with static data such as the LUBM benchmark, the queries run some 20% faster if entailment subclasses and sub-properties are materialized rather than done at run time.&lt;/p&gt;

&lt;h2&gt;Genetic Algorithms for SPARQL?&lt;/h2&gt;

&lt;p&gt;Our compliments for the wildest idea of the conference go to &lt;a href=&quot;http://www.eyaloren.org/&quot; id=&quot;link-id1a203af8&quot;&gt;Eyal Oren&lt;/a&gt;, &lt;a href=&quot;http://www.few.vu.nl/~cgueret/&quot; id=&quot;link-id16208758&quot;&gt;Christophe GuÃ©ret&lt;/a&gt;, and &lt;a href=&quot;http://www.few.vu.nl/~schlobac/&quot; id=&quot;link-id111923e0&quot;&gt;Stefan Schlobach&lt;/a&gt;, &lt;i&gt;et al&lt;/i&gt;, for their &lt;a href=&quot;http://www.informatik.uni-trier.de/~ley/db/conf/semweb/iswc2008.html#OrenGS08&quot; id=&quot;link-id11793540&quot;&gt;paper on using genetic algorithms for guessing how variables in a SPARQL query ought to be instantiated&lt;/a&gt;. Prisoners of our &amp;quot;conventional wisdom&amp;quot; as we are, this might never have occurred to us.&lt;/p&gt;

&lt;h2&gt;Schema Last?&lt;/h2&gt;

&lt;p&gt;It is interesting to see how the industry comes to the &lt;a href=&quot;http://dbpedia.org/resource/Semantic_Web&quot; id=&quot;link-id0x1154c1b0&quot;&gt;semantic web&lt;/a&gt; conferences talking about schema last while at the same time the traditional semantic web people stress enforcing schema constraints and making more predictably performing and database friendlier logics. So do the extremes converge.&lt;/p&gt;

&lt;p&gt;There is a point to schema last. &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x14c6a930&quot;&gt;RDF&lt;/a&gt; is very good for getting a view of ad hoc or unknown data. One can just load and look at what there is. Also, additions of unforeseen optional properties or relations to the schema are easy and efficient. However, it seems that a really high traffic online application would always benefit from having some application specific data structures. Such could also save considerably in hardware.&lt;/p&gt;

&lt;p&gt;It is not a sharp divide between RDF and relational application oriented representation. We have the capabilities in our RDB to RDF mapping. We just need to show this and have SPARUL and data loading&lt;/p&gt;</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 5.0.6 Updates</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-03-25#1326</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1326#comments</comments><pubDate>Tue, 25 Mar 2008 16:59:08 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-03-26T11:59:02-04:00</n0:modified><description>
&lt;p&gt;I will here summarize the developments since the last &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id15843368&quot;&gt;Virtuoso&lt;/a&gt; 5 Open Source release.&lt;/p&gt; &lt;p&gt;On the &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id101cae58&quot;&gt;RDF&lt;/a&gt; side, the bitmap intersection join has been improved quite a bit so that it is now almost always more than 2x more efficient than the equivalent nested loop join.&lt;/p&gt; &lt;p&gt;XML trees in the object position in &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id1172c108&quot;&gt;RDF&lt;/a&gt; quads were in some cases incorrectly indexed, leading to failure to retrieve quads.  This is fixed and should problems occur in existing databases, they can be corrected by simply dropping and re-creating an index.&lt;/p&gt; &lt;p&gt;Also the cost model has been further tuned.  We have run the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-idd65a998&quot;&gt;TPC&lt;/a&gt;-&lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id11a2bf48&quot;&gt;H&lt;/a&gt; queries with larger databases and have profiled it extensively.  There are improvements to locking, especially for concurrency of transactions with large shared lock sets, as is the case in the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id12cfd690&quot;&gt;TPC&lt;/a&gt;-&lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id15891ae0&quot;&gt;H&lt;/a&gt; queries.  The rules stipulate that these have to be run with repeatable read.  There are also optimizations for decimal floating point.&lt;/p&gt; &lt;p&gt;A sampling of &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id15b12eb0&quot;&gt;TPC&lt;/a&gt;-&lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id1172c740&quot;&gt;H&lt;/a&gt; queries translated into &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id15533aa8&quot;&gt;SPARQL&lt;/a&gt; comes with the new demo database.  These show a live sample of the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id15b82cd8&quot;&gt;TPC&lt;/a&gt;-&lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id15521d50&quot;&gt;H&lt;/a&gt; schema translated into linked data, complete with &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id15ae14d8&quot;&gt;SPARQL&lt;/a&gt; translations of the original queries.  Some work is still ongoing there but the relational to &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id101b1240&quot;&gt;RDF&lt;/a&gt; mapping is mature enough for real business intelligence applications now.&lt;/p&gt; &lt;p&gt;On the closed source side, we have some adjustments to the virtual database.  When using &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id10888df0&quot;&gt;Virtuoso&lt;/a&gt; as a front end to Oracle, using the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id134a9378&quot;&gt;TPC&lt;/a&gt;-&lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id10366320&quot;&gt;H&lt;/a&gt; queries as a metric, the virtual database overhead is minimal.  Previously, we had some overhead because some queries were rewritten in a way that Oracle would not optimize as well as the original &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id15536320&quot;&gt;TPC&lt;/a&gt;-&lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-idfd4e278&quot;&gt;H&lt;/a&gt; text.  Specifically, turning an IN sub-query predicate into an equivalent EXISTS did not sit well with Oracle.&lt;/p&gt;
</description></item><item><title>What&#39;s Wrong With LUBM?</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-02-05#1312</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1312#comments</comments><pubDate>Tue, 05 Feb 2008 11:47:11 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-03-25T14:43:37-04:00</n0:modified><description>&lt;p&gt;In the interest of participating in a community benchmark development process, I will here outline some desiderata and explain how we could improve on LUBM.  I will also touch on the message such an effort ought to convey.&lt;/p&gt;
&lt;p&gt;A blow-by-blow analysis of the performance of a complex system such as a DBMS is more than fits within the scope of human attention at one go.  This is why this all must be abbreviated into a single metric. Only when thus abbreviated, can this information be used in context. The metric&amp;#39;s practical value is relative to how well it predicts the performance of the system in some real task.  This means a task not likely to be addressed by an alternative technology, unless the challenger  clearly beats the incumbent.&lt;/p&gt;
&lt;p&gt;A benchmark is promotional material, both well as for the technology being benchmarked as a whole.  This is why the benchmark, whatever it does, should do something that the technology does well, surely better than any alternative technology.  A case in point is that one ought not to take a pure relational workload and &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x189e2b18&quot;&gt;RDF&lt;/a&gt;-ize it, for then the relational variant is likely to come out on top.&lt;/p&gt;
&lt;p&gt;In this regard LUBM is not so bad because its reliance on class and property hierarchies and the occasional transitivity or inference rule makes the workload typically &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x17fe8588&quot;&gt;RDF&lt;/a&gt;, a little ways apart from a purely relational implementation of the task.&lt;/p&gt;
&lt;p&gt;
&lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x1802e258&quot;&gt;RDF&lt;/a&gt;&amp;#39;s claim to fame is linked data.  This means giving things globally unique names and thereby making anything joinable with anything else, insofar there is agreement on the names.  &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0xa04d16c0&quot;&gt;RDF&lt;/a&gt; is a key to a new class of problems, call it web scale database.  Web scale here refers first to heterogeneity and multiplicity of independent sources and secondly to volume of data.&lt;/p&gt;
&lt;p&gt;Now there are plenty of relational applications with very large volumes of data.  On the non-relational side, there are even larger applications, such as web search engines.  All these have a set schema and a specific workload they are meant to address.  &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x1971d010&quot;&gt;RDF&lt;/a&gt; versions of such  are conceivable but hold no intrinsic advantage if considered in the specific niche alone.&lt;/p&gt;
&lt;p&gt;The claim to fame of &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x18d9ace0&quot;&gt;RDF&lt;/a&gt; is not to outperform these on their home turf but to open another turf altogether, allowing agile joining and composing of all these resources.&lt;/p&gt;
&lt;p&gt;This is why a benchmark, i.e., an an advertisement for the &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x1be2af60&quot;&gt;RDF&lt;/a&gt; value proposition, should not just take a relational workload and &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x18041730&quot;&gt;RDF&lt;/a&gt;-ize it.  The benchmark should carry  some of the web in it.&lt;/p&gt;
&lt;p&gt;If we just intend to measure how well an &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x1cb49658&quot;&gt;RDF&lt;/a&gt; store joins triples to other triples, LUBM is almost good enough.  If it defined a query mix with different frequencies for short and long queries and a concurrent query metric, it would be pretty much there.  Our adaptation of it is adequate for counting joins per second.  But joins per second is not a value proposition.&lt;/p&gt;
&lt;p&gt;So we have two questions: &lt;/p&gt;
&lt;ol&gt;
 &lt;li&gt;
  &lt;p&gt;If we just take the &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x19cec640&quot;&gt;RDF&lt;/a&gt; model and &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1998cc70&quot;&gt;SPARQL&lt;/a&gt;, how do we make a benchmark that fills in what LUBM does not cover?&lt;/p&gt;
 &lt;/li&gt;
&lt;li&gt;How do we make a benchmark that displays &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0xbd74610&quot;&gt;RDF&lt;/a&gt;&amp;#39;s strengths against a comparable relational solution?  A priori, by going somewhere where SQL has trouble reaching.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The answers to the first are not very complex:&lt;/p&gt;
&lt;ul&gt;
 &lt;li&gt;
  &lt;p&gt;Add some optionals.  Have different frequencies of occurrence for some properties.&lt;/p&gt;
 &lt;/li&gt;
&lt;li&gt;
  &lt;p&gt;Add different graphs.  Make queries joining between graphs and drawing on different graphs. Querying against all graphs of the store is not a part of the language.  Still this would be useful but leave it out for now.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
  &lt;p&gt;Add some filters and arithmetic.  Not much can be done there, though because expressions cannot be returned and there is no aggregation or grouping.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
  &lt;p&gt;Split the workload into short and long queries.  The short should be  typical for online use and the long ones for analysis.  Different execution  frequencies for different queries is a must.  Analysis is  limited by lack of grouping, expressions or aggregation.  Still,  something can be contrived by looking for a pattern that does not  exist or occurs extremely rarely.  Producing result sets of millions  of rows is not realistic.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
  &lt;p&gt;Many of the LUBM queries return thousands of rows, even when scoped to a single university.  This is not very realistic.  No user interface displays that sort of quantity.  Of course, the intermediate results can be large as you please but the output must be somehow ranked.  &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xd623d40&quot;&gt;SPARQL&lt;/a&gt; has order by and limit, so these will have to be used.  &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x18032180&quot;&gt;TPC&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x1a130188&quot;&gt;H&lt;/a&gt; for example has almost always a group by/order by combination and sometimes a result rows limit.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
  &lt;p&gt;The degree of inference in LUBM is about right, mostly sub-classes and sub-properties, nothing complex.  We certainly regard this as a database benchmark more than a knowledge representation or rule system one. &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
  &lt;p&gt;LUBM does an OK job of defining a scale factor.  I think that a  concurrent query metric can just be so many queries per time at a  given scale.  The number of clients, I would say, can be decided by  the test sponsor, taking whatever works best.  A load balancer or  web server can always be tuned to enforce some limit on concurrency.  I don&amp;#39;t think that a scale rule like in TPC C, where it says that  only so many transactions per minute are allowed per warehouse is  needed here.  The effect of this is that when reporting a higher  throughput, one has to automatically have a bigger database.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There is nothing to prevent these improvements from being put into a subsequent version of LUBM.&lt;/p&gt;
&lt;p&gt;Building something that shows &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x18034830&quot;&gt;RDF&lt;/a&gt; at its best is  a slightly different proposition. For this, we cannot be limited to the &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x18d990a0&quot;&gt;SPARQL&lt;/a&gt; recommendation and must allow custom  application code and language extensions.  Examples would be scripting similar to SQL stored procedures and extensions such as we have made for sub-queries and aggregation, explained a couple of posts back. &lt;/p&gt;
&lt;p&gt;Maybe the Billion Triples challenge produces some material that we can use for this.  We need to go for spaces that are not easily reached with SQL, have distributed computing, federation, discovery, demand driven import of data and such like.  &lt;/p&gt;
&lt;p&gt;I&amp;#39;ll write more about ways of making &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x19c403c8&quot;&gt;RDF&lt;/a&gt; shine in some future post. &lt;/p&gt;
&lt;p&gt;There are two kinds of workloads: online and offline.  Online is what must be performed in an interactive situation, without significant human perceptible delay, i.e. within 500 ms.  Anything else is offline. &lt;/p&gt;
&lt;p&gt;Because this is how any online system is designed, this should be reflected in the benchmark.  Ideally we would make two benchmarks.&lt;/p&gt;</description></item><item><title>LUBM results with Virtuoso 6.0</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-02-04#1308</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1308#comments</comments><pubDate>Mon, 04 Feb 2008 09:58:03 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-08-28T12:06:04-04:00</n0:modified><description>&lt;p&gt;We have now run the LUBM benchmark on &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1a6cb3c8&quot;&gt;Virtuoso&lt;/a&gt; v6, with the same configuration &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1302&quot; id=&quot;link-id107f0238&quot;&gt;as discussed last Friday&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;We had a database of 8000 universities, and we ran 8 clients on slices of 100, 1000 and 8000 universities — same &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x12ac6cc8&quot;&gt;data&lt;/a&gt; but different sizes of working set.&lt;/p&gt;
&lt;blockquote&gt;
&lt;pre&gt;
 100 universities: 35.3 qps
1000 universities: 26.3 qps
8000 universities: 13.1 qps&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;The 100 universities slice is about the same as with v5.0.5 (35.3 vs 33.1 qps). &lt;br /&gt;The 8000 universities set is almost 3x better (13.1 vs. 4.8 qps).&lt;/p&gt;
&lt;p&gt;This comes from the fact that the v6 database takes half of the space of the v5.0.5 one.  Further, this is with 64-bit IDs for everything.  If the 5.5 database were with 64-bit IDs, we&amp;#39;d have a difference of over 3x.  This is worth something if it lets you get by with only 1 terabyte of RAM for the 100 billion  triple application, instead of 3 TB.&lt;/p&gt;
&lt;p&gt;
&lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1358&quot; id=&quot;link-id15fb4d38&quot;&gt;In a few more days&lt;/a&gt;, we&amp;#39;ll give the results for Virtuoso v6 Cluster.&lt;/p&gt;

</description></item><item><title>Latest LUBM Benchmark results for Virtuoso</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-02-01#1304</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1304#comments</comments><pubDate>Fri, 01 Feb 2008 14:39:04 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-08-28T12:06:01-04:00</n0:modified><description>&lt;p&gt;We have now taken a close look at the query side of the LUBM benchmark, &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1296&quot; id=&quot;link-id10a98120&quot;&gt;as promised a couple of blog posts ago.&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;We load 8000 universities and run a query mix consisting of the 14 LUBM queries with different numbers of clients against different portions of the database.&lt;/p&gt;
&lt;p&gt;When it is all in memory, we get 33 queries per second with 8 concurrent clients; when it is so I/O bound that 7.7 of 8 threads wait for disk, we get 5 qps. This was run in 8G RAM with 2 Xeon 5130.&lt;/p&gt;
&lt;p&gt;We adapted some of the queries so that they do not run over the whole database. In terms of retrieving triples per second, this would be about 330000 for the rate of 33 qps, with 4 cores at 2GHz. This is a combination of random access and linear scans and bitmap merge intersections; lookups for non-found triples are not counted. The rate of random lookups alone based on known G, S, P, O, without any query logic, is about 250000 random lookups per core per second.&lt;/p&gt;
&lt;p&gt;The article &lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VOSArticleLUBMBenchmark&quot; id=&quot;link-id10237708&quot;&gt;LUBM and Virtuoso&lt;/a&gt; gives the details.&lt;/p&gt;
&lt;p&gt;In the process of going through the workload we made some cost model adjustments and optimized the bitmap intersection join. In this way we can quickly determine which subjects are, for example, professors holding a degree from a given university. So the benchmark served us well in that it provided an incentive to further optimize some things.&lt;/p&gt;
&lt;p&gt;Now, what has been said about &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x104257c0&quot;&gt;RDF&lt;/a&gt; benchmarking previously still holds. What does it mean to do so many LUBM queries per second? What does this say about the capacity to run an online site off RDF &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x7376478&quot;&gt;data&lt;/a&gt;? Or about &lt;a href=&quot;http://dbpedia.org/resource/Information&quot; id=&quot;link-id0x13fd3f30&quot;&gt;information&lt;/a&gt; integration? Not very much. But then this was not the aim of the authors either.&lt;/p&gt;
&lt;p&gt;So we still need to make a benchmark for online queries and search, and another for E-science and business intelligence. But we are getting there.&lt;/p&gt;
&lt;p&gt;In the immediate future, we have the general availability of &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x193509e8&quot;&gt;Virtuoso&lt;/a&gt; Open Source 5.0.5 early next week. This comes with a LUBM test driver and a test suite running against the LUBM qualification database.&lt;/p&gt;
&lt;p&gt;After this we will give some numbers for the cluster edition with LUBM and &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x1b8d1348&quot;&gt;TPC-H&lt;/a&gt;.&lt;/p&gt;
</description></item><item><title>LUBM and Virtuoso 5.5</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-02-01#1302</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1302#comments</comments><pubDate>Fri, 01 Feb 2008 12:37:53 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-03-25T14:43:30.000004-04:00</n0:modified><description>&lt;p&gt;We have now taken a close look at the query side of the LUBM benchmark, as promised a couple of blog posts ago.&lt;/p&gt;
&lt;p&gt;We load 8000 universities and run a query mix consisting of the 14 LUBM queries with different numbers of clients against different portions of the database.&lt;/p&gt;
&lt;p&gt;When it is all in memory, we get 33 queries per second with 8 concurrent clients; when it is so I/O bound that 7.7 of 8 threads wait for disk, we get 5 qps. This was run in 8G RAM with 2 Xeon 5130.&lt;/p&gt;
&lt;p&gt;We adapted some of the queries so that they do not run over the whole database. In terms of retrieving triples per second, this would be about 330000 for the rate of 33 qps, with 4 cores at 2GHz. This is a combination of random access and linear scans and bitmap merge intersections; lookups for non-found triples are not counted. The rate of random lookups alone based on known G, S, P, O, without any query logic, is about 250000 random lookups per core per second.&lt;/p&gt;
&lt;p&gt;The article &lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VOSArticleLUBMBenchmark&quot; id=&quot;link-id121f54d8&quot;&gt;LUBM and Virtuoso&lt;/a&gt; gives the details.&lt;/p&gt;
&lt;p&gt;In the process of going through the workload, we made some cost model adjustments and optimized the bitmap intersection join. In this way we can quickly determine which subjects are, for example, professors holding a degree from a given university. So the benchmark served us well in that it provided an incentive to further optimize some things.&lt;/p&gt;
&lt;p&gt;Now, what has been said about &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x186bcec0&quot;&gt;RDF&lt;/a&gt; benchmarking previously still holds. What does it mean to do so many LUBM queries per second? What does this say about the capacity to run an online site off &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0xa1e11918&quot;&gt;RDF&lt;/a&gt; data? Or about information integration? Not very much. But then this was not the aim of the authors either.&lt;/p&gt;
&lt;p&gt;So we still need to make a benchmark for online queries and search, and another for E-science and business intelligence. But we are getting there.&lt;/p&gt;
&lt;p&gt;In the immediate future, we have the general availability of &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0x189b11b8&quot;&gt;Virtuoso&lt;/a&gt; Open Source 5.0.5 early next week. This comes with a LUBM test driver and a test suite running against the LUBM qualification database.&lt;/p&gt;
&lt;p&gt;After this we will give some numbers for the cluster edition with LUBM and &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x1b948dd8&quot;&gt;TPC&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x189e58a8&quot;&gt;H&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>SPARQL Extensions for Subqueries</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2008-01-16#1296</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1296#comments</comments><pubDate>Wed, 16 Jan 2008 15:11:00 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-03-25T14:43:28.000001-04:00</n0:modified><description>&lt;p&gt;Last time I said we had extended &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1c668bb0&quot;&gt;SPARQL&lt;/a&gt; for sub-queries. As a preview of the new functionality, let us look at a query from &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0xd469258&quot;&gt;TPC&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x1c68fe58&quot;&gt;H&lt;/a&gt;.&lt;/p&gt;  
&lt;p&gt;Below is the &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0xcabe1f0&quot;&gt;Virtuoso&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x1d3ba3d0&quot;&gt;SPARQL&lt;/a&gt; version of Q2.&lt;/p&gt;  
&lt;blockquote&gt;
&lt;pre&gt;
&lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xd45b8c0&quot;&gt;sparql&lt;/a&gt;
define sql:signal-void-variables 1
prefix tpcd: &amp;lt;http://www.openlinksw.com/schemas/tpcd#&amp;gt;
prefix oplsioc: &amp;lt;http://www.openlinksw.com/schemas/oplsioc#&amp;gt;
prefix sioc: &amp;lt;http://rdfs.org/sioc/ns#&amp;gt;
prefix foaf: &amp;lt;http://xmlns.com/foaf/0.1/&amp;gt;
select
  ?supp+&amp;gt;tpcd:acctbal,
  ?supp+&amp;gt;tpcd:name,
  ?supp+&amp;gt;tpcd:has_nation+&amp;gt;tpcd:name as ?nation_name,
  ?part+&amp;gt;tpcd:partkey,
  ?part+&amp;gt;tpcd:mfgr,
  ?supp+&amp;gt;tpcd:address,
  ?supp+&amp;gt;tpcd:phone,
  ?supp+&amp;gt;tpcd:comment
from &amp;lt;http://example.com/tpcd&amp;gt;
where {
  ?ps a tpcd:partsupp ; tpcd:has_supplier ?supp ; tpcd:has_part ?part .
  ?supp+&amp;gt;tpcd:has_nation+&amp;gt;tpcd:has_region tpcd:name &amp;#39;EUROPE&amp;#39; .
  ?part tpcd:size 15 .
  ?ps tpcd:supplycost ?minsc .
  { select ?p min(?ps+&amp;gt;tpcd:supplycost) as ?minsc
    where {
        ?ps a tpcd:partsupp ; tpcd:has_part ?p ; tpcd:has_supplier ?ms .
        ?ms+&amp;gt;tpcd:has_nation+&amp;gt;tpcd:has_region tpcd:name &amp;#39;EUROPE&amp;#39; .
      }
  }
    filter (?part+&amp;gt;tpcd:type like &amp;#39;%BRASS&amp;#39;) }
order by
  desc (?supp+&amp;gt;tpcd:acctbal)
  ?supp+&amp;gt;tpcd:has_nation+&amp;gt;tpcd:name
  ?supp+&amp;gt;tpcd:name
  ?part+&amp;gt;tpcd:partkey ;
&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;Note the pattern  
&lt;code&gt;{ ?ms+&amp;gt;tpcd:has_nation+&amp;gt;tpcd:has_region tpcd:name &amp;#39;EUROPE&amp;#39; }&lt;/code&gt; which is a shorthand for  
&lt;code&gt;{ ?ms tpcd:has_nation ?t1 . ?t1 tpcd:has-region ?t2 . ?t2 tpcd:has_region ?t3 . ?t3 tpcd:name  &amp;quot;EUROPE&amp;quot; } &lt;/code&gt; &lt;/p&gt; 
&lt;p&gt;Also note a sub-query is used for determining the lowest supply cost for a part. &lt;/p&gt; 
&lt;p&gt;The SQL text of the query can be found in the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0xb945ed8&quot;&gt;TPC&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x1c832038&quot;&gt;H&lt;/a&gt; benchmark specification, reproduced below: &lt;/p&gt;  
&lt;blockquote&gt;
&lt;pre&gt;select s_acctbal, s_name, n_name,
        p_partkey, p_mfgr, s_address,
        s_phone, s_comment
from part, supplier, partsupp, nation, region
where
        p_partkey = ps_partkey
        and s_suppkey = ps_suppkey
        and p_size = 15
        and p_type like &amp;#39;%BRASS&amp;#39;
        and s_nationkey = n_nationkey
        and n_regionkey = r_regionkey
        and r_name = &amp;#39;EUROPE&amp;#39;
        and ps_supplycost = (
                        select min(ps_supplycost)
                        from partsupp, supplier, nation, region
                        where
                                p_partkey = ps_partkey
                                and s_suppkey = ps_suppkey
                                and s_nationkey = n_nationkey
                                and n_regionkey = r_regionkey
                                and r_name = &amp;#39;EUROPE&amp;#39;)
order by
        s_acctbal desc, n_name, s_name, p_partkey;
&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt; For brevity we have omitted the declarations for mapping the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x1d365d90&quot;&gt;TPC&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x17b6f668&quot;&gt;H&lt;/a&gt; schema to its &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x1898eaf0&quot;&gt;RDF&lt;/a&gt; equivalent.  The mapping is straightforward, with each column mapping to a predicate and each table to a class.&lt;/p&gt;
&lt;p&gt; This is now part of the next &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0x1aaaa3f0&quot;&gt;Virtuoso&lt;/a&gt; Open Source cut, due around next week. &lt;/p&gt;
&lt;p&gt; As of this writing we are going through the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0x1950f1c0&quot;&gt;TPC&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot; id=&quot;link-id0xd0d8bc0&quot;&gt;H&lt;/a&gt; query by query and testing with mapping going to &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0x18b88f08&quot;&gt;Virtuoso&lt;/a&gt; and Oracle databases.  &lt;/p&gt;
&lt;p&gt; Also we have been busy measuring &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0x17b3fbb0&quot;&gt;Virtuoso&lt;/a&gt; 6.  Even after switching from 32-bit to 64-bit IDs for IRIs and objects, the new databases are about half the size of the same &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0xbe2ec80&quot;&gt;Virtuoso&lt;/a&gt; 5.0.2 databases.  This does not include any stream compression like gzip for disk pages. The load and query speeds are higher because of better working set.  For all in memory, they are about even with 5.0.2.  So now on an 8G box, we load 1067 million LUBM triples at 39.7 Kt/s instead of 29 Kt/s with 5.0.2. Right now we experimenting with clusters at Amazon EC2.  We&amp;#39;ll write about that in a bit. &lt;/p&gt; 
</description></item><item><title>Retrospective and Outlook for 2008</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2007-12-18#1286</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1286#comments</comments><pubDate>Tue, 18 Dec 2007 10:53:40 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-04-14T14:02:31.000004-04:00</n0:modified><description>&lt;p&gt;At this close of the year, I&amp;#39;ll give a little recap of the past year in terms of &lt;a href=&quot;http://virtuoso.openlinksw.com/&quot; id=&quot;link-idfe5ba58&quot;&gt;Virtuoso&lt;/a&gt; development, and take a look at where we are headed for 2008.&lt;/p&gt;
&lt;p&gt;A year ago, I was in the middle of redoing the &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot;&gt;Virtuoso&lt;/a&gt; database engine for better SMP performance.  We redid the way traversal of index structures and cache buffers was serialized for SMP, and generally compared Virtuoso and Oracle engines function by function.  We had just returned from the ISWC 2006 in Athens, Georgia, and the Virtuoso database was becoming a usable triple store.&lt;/p&gt;
&lt;p&gt;Soon thereafter, we confirmed that all this worked when we put out the first cut of &lt;a href=&quot;http://dbpedia.org/&quot; id=&quot;link-id149dcff8&quot;&gt;Dbpedia&lt;/a&gt; with Chris Bizer, et al, and were working with Alan Ruttenberg on what would become &lt;a href=&quot;http://esw.w3.org/topic/HCLS/Banff2007Demo&quot; id=&quot;link-id10c25b50&quot;&gt;the Banff health care and life sciences demo&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;http://www2007.org/&quot; id=&quot;link-idfdbd0e0&quot;&gt;WWW 2007 conference in Banff&lt;/a&gt;, Canada, was a sort of kick-off for the &lt;a href=&quot;http://esw.w3.org/topic/SweoIG/TaskForces/CommunityProjects/LinkingOpenData&quot; id=&quot;link-id10e54940&quot;&gt;Linking Open Data&lt;/a&gt; movement, which started as a community project under &lt;a href=&quot;http://www.w3.org/2001/sw/sweo/&quot; id=&quot;link-idfd99988&quot;&gt;SWEO&lt;/a&gt;, the W3C interest group for Semantic Web Education and Outreach, and has gained a life of its own since.&lt;/p&gt;
&lt;p&gt;Right after WWW 2007, the Virtuoso development effort split onto two tracks: one for enhancing the then new 5.0 release; and one for building a new generation of Virtuoso, notably featuring clustering and double storage density for &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot;&gt;RDF&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The first track produced constant improvements to the relational-to-RDF mapping functionality, &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot;&gt;SPARQL&lt;/a&gt; enhancements, and Redland-, Jena- and Sesame-compatible client libraries with Virtuoso as as a triple store.  These things have been out with testers for a while and are all generally available as of this writing.&lt;/p&gt;
&lt;p&gt;The second track started with adding key compression to the storage engine, specifically with regard to RDF, even though there are some gains in relational applications as well.  With RDF, the space consumption drops to about half, all without recourse to any non-random access compatible compression like gzip.  Since the start of August, we turned to clustering and are now code complete, pretty much with all the tricks one would expect, of course full function SQL and taking advantage of co-located joins and doing aggregation and generally all possible processing where the data is.  I have covered details of this along the way in previous posts.  The key point is that now the thing is written and works with test cases. &lt;/p&gt;
&lt;p&gt;In late October, we were at the W3C workshop for mapping relational data to RDF.  For us, this confirmed the importance of mapping and scalability in general.  Ivan Herman proposed forming a W3C incubator group on benchmarking.  Also a W3C incubator group of relational to RDF mapping is being formed.  &lt;/p&gt;
&lt;p&gt;Now, scalability has two sides.  One is dealing with volume, and the other is dealing with complexity.  Volume alone will not help if interesting queries cannot be formulated.  Hence, we recently extended SPARQL with sub-queries so that we can now express at least any SQL workloads, which was previously not the case.  It is sort of a contradiction in terms to say that SPARQL is the universal language for information integration while not being able to express, for example, the &lt;a href=&quot;http://dbpedia.org/resource/TPC-H&quot;&gt;TPC-H&lt;/a&gt; queries.  Well, we fixed this.  A separate post will highlight how.  The W3C process will eventually follow, as the necessity of these things is undeniable, on the unimpeachable authority of the whole SQL world.  Anyway, for now, SPARQL as it is ought to become a recommendation and extensions can be addressed later.&lt;/p&gt;
&lt;p&gt;For now, the only RDF benchmark that seems to be out there is the loading part of the LUBM.  We did a couple of enhancements of our own for that just recently, but much bigger things are on the way.  Also, the billion triples challenge is an interesting initiative in the area.  We all recognize that loading any number of triples is a finite problem with known solutions.  The challenge is running interesting queries on large volumes.  &lt;/p&gt;
&lt;p&gt;Our present emphasis is demonstrating both RDF data warehousing and RDF mapping with complex queries and large data.  We start with the TPC-H benchmark and doing the queries both through mapping to SQL against any RDBMS â Oracle, DB2, Virtuoso or other â and by querying the physical RDF rendition of the data in Virtuoso.  From there, we move to querying a collection of RDBMS hosting similar data. &lt;/p&gt;
&lt;p&gt;Doing this with performance at the level of direct SQL in the case of mapping and not very much slower with physical triples is an important milestone on the way to a real world enterprise data web.  Real life has harder and more unexpected issues than a benchmark, but at any rate doing the benchmark without breaking a sweat is a step on the way.  We sent a paper to ESWC 2008 about that but it was rather incomplete.  By the time of the VLDB submissions deadline in March we&amp;#39;ll have more meat.&lt;/p&gt;
&lt;p&gt;Another tack soon to start is a re-architecting of &lt;a href=&quot;http://zitgist.com/&quot; id=&quot;link-id10e8b9f0&quot;&gt;Zitgist&lt;/a&gt; around clustered Virtuoso.  Aside matters of scale, we will make a number of qualitatively new things possible.  Again, more will be released in the first quarter of 2008.&lt;/p&gt;
&lt;p&gt;Beyond these short and mid-term goals we have the introduction of entirely dynamic and demand driven partitioning, &lt;i&gt;a la&lt;/i&gt; Google Bigtable or Amazon Dynamo.  Now, regular partitioning will do for a while yet but this is the future when we move the the vision of linked data everywhere.&lt;/p&gt;
&lt;p&gt;In conclusion, this year we have built the basis and the next year is about deployment.  The bulk of really new development is behind us and now we start applying.  Also, the community will find adoption easier due to our recent support of the common RDF APIs. &lt;/p&gt; 
&lt;a href=&quot;index.vspx?tag=database&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;database&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=databases&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;databases&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=lubm&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;lubm&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=benchmarking&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;benchmarking&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=semanticweb&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;semanticweb&lt;/a&gt;&lt;a href=&quot;index.vspx?tag=sparql&quot; rel=&quot;tag&quot; style=&quot;display:none;&quot;&gt;sparql&lt;/a&gt;</description></item><item><title>Virtuoso LUBM Load Update</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2007-12-06#1284</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1284#comments</comments><pubDate>Thu, 06 Dec 2007 13:35:21 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-04-14T14:02:31-04:00</n0:modified><description>&lt;p&gt;As part of the recent conversation on benchmarking &lt;a href=&quot;http://dbpedia.org/resource/RDF&quot; id=&quot;link-id0x17cd8cf8&quot;&gt;RDF&lt;/a&gt; stores, we re-ran the LUBM 8000 load test (1067 million triples) with the current &lt;a href=&quot;http://data.openlinksw.com/oplweb/product_family/virtuoso#this&quot; id=&quot;link-id0x17581ae0&quot;&gt;Virtuoso&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;We did it on two different machines, one with 2 Xeon 5130 2Ghz and 8G RAM and one with 2 Xeon 5330 2GHZ and 16G RAM.  Both had 6 x 7800 rpm SATA-2 drives. The load rate on the 16G configuration was 36.8 Ktriples per second. The load rate on the 8G configuration was 29.7 Ktriples per second. Both loads were made using 6 concurrent load streams.  Some small changes to the numbers may be released later as a result of changing tuning.&lt;/p&gt;
&lt;p&gt;The Virtuoso version was 5.0, in the update to be released on the week of Dec 10, 2007. This is an incremental release of Virtuoso 5.0 and has the same engine as the prior 5.0s, with some optimizations for RDF loading and diverse bug fixes, notably in RDF mapping of relational data.  This release will be further described in a separate post.&lt;/p&gt;
&lt;p&gt;The load does not include forward chaining but then Virtuoso supports sub-class and sub-property without materializing the entailed triples.&lt;/p&gt;
&lt;p&gt;Most of the LUBM entailed triples represent sub-classes and sub-properties. The LUBM query and forward chaining side deserves a separate treatment but this is for another time.&lt;/p&gt;
&lt;p&gt;Most recent posts on this blog refer to Virtuoso 6, which is presently under development.  We will publish results with the 6.0 engine later.  Also, further enhancements to triple store performance will take place on the Virtuoso 6 platform.&lt;/p&gt;</description></item><item><title>Storage News</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2007-07-12#1225</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1225#comments</comments><pubDate>Thu, 12 Jul 2007 14:16:40 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-04-24T13:22:32-04:00</n0:modified><description>&lt;p&gt;I have been away from the world for a few weeks, concentrating on technology.&lt;/p&gt;
&lt;p&gt;We have now implemented an entirely new storage layout. With &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x9fd979d0&quot;&gt;RDF&lt;/a&gt; &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1ccee438&quot;&gt;data&lt;/a&gt;, we have now successfully doubled the working set.&lt;/p&gt;
&lt;p&gt;This means that the number of triples that will fit in memory is doubled for any configuration. For any database in the hundreds of millions of triples, this is very significant. For LUBM data, we go from 75b to 35b per triple with the default indices.&lt;/p&gt;
&lt;p&gt;This is obtained without using gzip or some other stream compression. Thus no decompression is needed at read time. Random access speeds are within 5% of those of &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1e135ff0&quot;&gt;Virtuoso&lt;/a&gt; v5.0.1, but the space requirement is halved and you can still locate a random triple in cache in a few microseconds.&lt;/p&gt;
&lt;p&gt;What is better still, when using 8-byte IDs for IRIs instead of 4-byte ones, the space consumption stays almost the same since unique values are stored only once per page.&lt;/p&gt;
&lt;p&gt;When applying gzip to the new storage layout, we usually get 3x compression. This means that 99% of 8K pages fit in 3K after compression. This is no real surprise since an index is repetitive pretty much by definition, even if the repeated sections are now shorter than in v5.0.1.&lt;/p&gt;
&lt;p&gt;Gzip applied to pages does nothing for the working set since a page must remain random accessible for fast search but will cut disk usage to between half and a third. We will make this an option later. There are other tricks to be done with compression, like using a separate dictionary for non key text columns in relational applications. This would improve the working set in &lt;a href=&quot;http://dbpedia.org/resource/TPC-C&quot; id=&quot;link-id0x9fbf44c0&quot;&gt;TPC-C&lt;/a&gt; and TPC-D quite a bit so we may do this also while on the subject.&lt;/p&gt;
&lt;p&gt;Right now we are writing the clustering support, revising all internal APIs to run with batches of rows instead of single rows. We will most likely release clustering and the new storage layout together, towards the end of summer, at least in internal deployments.&lt;/p&gt;
&lt;p&gt;I will &lt;a href=&quot;http://dbpedia.org/resource/Blog&quot; id=&quot;link-id0xba13470&quot;&gt;blog&lt;/a&gt; about results as and when they are obtained, over the next few weeks.&lt;/p&gt;
</description></item><item><title>Comparison of Open Source Databases with TPC D Queries</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2007-02-05#1131</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1131#comments</comments><pubDate>Mon, 05 Feb 2007 11:45:32 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-04-17T21:04:29-04:00</n0:modified><description>&lt;p&gt;
&lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1116&quot; id=&quot;link-id10598cc0&quot;&gt;Last time&lt;/a&gt; we talked about database engine and transactions. Now we have come to the realm of query processing in our revisiting of the DBMS side of &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1a4279e8&quot;&gt;Virtuoso&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Now the well established, respectable standard benchmark for the basics of query processing is TPC D with its derivatives H and R. So we have, for testing how different &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x17ce3a18&quot;&gt;SQL&lt;/a&gt; optimizers manage the 22 queries, run a mini version of the D queries with a 1% scale database, some 30M of &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x17370eb0&quot;&gt;data&lt;/a&gt;, all in memory. This basically catches whether SQL implementations miss some of the expected tricks and how efficient in memory loop and hash joins and aggregation are.&lt;/p&gt;
&lt;p&gt;When we get to our next stop, high volume I/O, we will run the same with D databases in the 10G ballpark.&lt;/p&gt;
&lt;p&gt;The databases were tested on the same machine, with warm cache, taking the best run of 3. All had full statistics and were running with read committed isolation, where applicable. The data was generated using the procedures from the Virtuoso test suite. The Virtuoso version tested was 5.0, to be released shortly. The &lt;a href=&quot;http://dbpedia.org/resource/MySQL&quot; id=&quot;link-id0xe435ad8&quot;&gt;MySQL&lt;/a&gt; was 5.0.27, the PostgreSQL was 8.1.6. &lt;/p&gt;
&lt;table style=&quot;width: 334px; height: 556px; &quot; border=&quot;1&quot;&gt; &lt;tbody&gt; 
&lt;tr&gt; &lt;th rowspan=&quot;2&quot;&gt;Query&lt;/th&gt; &lt;th colspan=&quot;4&quot;&gt;Query Times in Milliseconds&lt;/th&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;th&gt; Virtuoso &lt;/th&gt; &lt;th&gt; PostgreSQL &lt;/th&gt; &lt;th&gt; MySQL &lt;/th&gt; &lt;th&gt; MySQL with InnoDB &lt;/th&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q1 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;206&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 763 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 312 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 198 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q2 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 4 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 6 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;3&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;3&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q3 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;13&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 51 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 254 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 64 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q4 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;4&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 16 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 24 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 60 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q5 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;15&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 22 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 64 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 68 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q6 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;9&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 70 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 189 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 65 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q7 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;52&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 143 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 211 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 84 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q8 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 29 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 31 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 13 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;11&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q9 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;36&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 114 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 97 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 61 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q10 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;32&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 51 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 117 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 57 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q11 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 16 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;9&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 12 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 10 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q12 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;8&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 21 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 18 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 130 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q13 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;18&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 74 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; - &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; - &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q14 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;7&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 21 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 418 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 1425 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q15 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;14&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 43 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 389 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 122 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q16 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;16&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 22 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 18 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 25 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q17 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;1&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 54 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 26 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 10 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q18 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;82&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 120 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; - &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; - &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q19 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 19 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 8 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;2&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 17 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q20 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;7&lt;b&gt; &lt;/b&gt;&lt;/b&gt;&lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 15 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 66 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 52 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q21 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;34&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 86 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 524 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 278 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt; Q22 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; &lt;b&gt;4&lt;/b&gt; &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 323 &lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 3311&lt;/td&gt; &lt;td align=&quot;right&quot;&gt; 805 &lt;/td&gt; &lt;/tr&gt; 
&lt;tr&gt; &lt;td&gt;Total (msec)&lt;/td&gt; &lt;td align=&quot;right&quot;&gt;&lt;b&gt;626&lt;/b&gt;&lt;/td&gt; &lt;td align=&quot;right&quot;&gt;2063&lt;/td&gt; &lt;td align=&quot;right&quot;&gt;6068&lt;/td&gt; &lt;td align=&quot;right&quot;&gt;3545&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;
&lt;p&gt;We lead by a fair margin but MySQL is hampered by obviously getting some execution plans wrong and not doing Q13 and Q18 at all, at least not under several tens of seconds; so we left these out of the table in the interest of having comparable totals.&lt;/p&gt;
&lt;p&gt;As usual, we also ran the workload on &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0xe957b80&quot;&gt;Oracle&lt;/a&gt; 10g R2. Since Oracle does not like their numbers being published without explicit approval, we will just say that we are even with them within the parameters described above. Oracle has a more efficient decimal type so it wins where that is central, as on Q1. Also it seems to notice that the &lt;code&gt;GROUP BY&lt;/code&gt;s of Q18 are produced in order of grouping columns, so it needs no intermediate table for storing the aggregates. If we addressed these matters, we&amp;#39;d lead by some 15% whereas now we are even. A faster decimal arithmetic implementation may be in the release after next.&lt;/p&gt; &lt;p&gt;In the next posts, we will look at IO and disk allocation, and also return to &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xe074e40&quot;&gt;RDF&lt;/a&gt; and LUBM.&lt;/p&gt;</description></item><item><title>Virtuoso 5.0 Preview</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2007-01-10#1116</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1116#comments</comments><pubDate>Wed, 10 Jan 2007 15:08:43 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-04-17T21:04:24-04:00</n0:modified><description>&lt;p&gt;As &lt;a href=&quot;http://www.openlinksw.com/dataspace/oerling/weblog/Orri%20Erling%27s%20Blog/1108&quot; id=&quot;link-id10c66e68&quot;&gt;previously said&lt;/a&gt;, we have a &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x1a5caeb8&quot;&gt;Virtuoso&lt;/a&gt; with brand new engine multithreading. It is now complete and passes its regular test suite. This is the basis for Virtuoso 5.0, to be available as the open source and commercial cuts as before.&lt;/p&gt;
&lt;p&gt;As one benchmark, we used the &lt;a href=&quot;http://dbpedia.org/resource/TPC-C&quot; id=&quot;link-id0x15f8cbd8&quot;&gt;TPC-C&lt;/a&gt; test driver that has always been bundled with Virtuoso. We ran 100000 new orders worth of the TPC-C transaction mix first with one client and then with 4 clients, each client going to its own warehouse, so there was not much lock contention. We did this on a 4 core Intel, the working set in RAM. With the old one, 1 client took 1m43 and 4 clients took 3m47. With the new one, one client took 1m30 and 4 clients took 2m37. So, 400000 new orders in 2m37, for 152820 new orders per minute as opposed to 105720 per minute previously. Do not confuse with the official tpmC metric, that one involves a whole bunch of further rules.&lt;/p&gt;
&lt;p&gt;TPC-C has activity spread over a few different tables. With tests dealing with fewer tables, improvements in parallelism are far greater.&lt;/p&gt;
&lt;p&gt;Aside from better parallelism, we have other features. One of them is a change in the read committed isolation, so that we now return the previous committed state for uncommitted changed rows instead of waiting for the updating transaction to terminate. This is similar to what &lt;a href=&quot;http://dbpedia.org/resource/Oracle_Database&quot; id=&quot;link-id0x18184c08&quot;&gt;Oracle&lt;/a&gt; does for read committed. Also we now do log checkpoints without having to abort pending write transactions.&lt;/p&gt;
&lt;p&gt;When we have faster inserts, we actually see the &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0xde6fca0&quot;&gt;RDF&lt;/a&gt; bulk loader run slower. This is really backwards. The reason is that while one thread parses, other threads insert and if the inserting threads are done they go to wait on a semaphore and this whole business of context switching absolutely kills performance. With slower inserts, the parser keeps ahead so there is less context switching, hence better overall throughput. I still do not get it how the OS can spend between 1.5 and 6 microseconds, several thousand instructions, deciding what to do next when there are only 3-4 eligible threads and all the rest is background which goes with a few dozen slices per second. Solaris is a little better than Linux at this but not dramatically so. Mac OS X is way worse.&lt;/p&gt;
&lt;p&gt;As said, we use Oracle 10G2 on the same platform (Linux FC5 64 bit) for sparring. It is really a very good piece of software. We have written the TPC C transactions in &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x15b33600&quot;&gt;SQL&lt;/a&gt;/PL. What is surprising is that these procedures run amazingly slowly, even with a single client. Otherwise the Oracle engine is very fast. Well, as I recall, the official TPC C runs with Oracle use an OCI client and no stored procedures. Strange. While Virtuoso for example fills the initial TPC C state a little faster than Oracle, the procedures run 5-10 times slower with Oracle than with Virtuoso, all &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xd9d1150&quot;&gt;data&lt;/a&gt; in warm cache and a single client. While some parts of Oracle are really well optimized, all basic joins and aggregates etc, we are surprised at how they could have neglected such a central piece as the PL.&lt;/p&gt;
&lt;p&gt;Also, we have looked at transaction semantics. Serializable is mostly serializable with Oracle but does not always keep a steady count. Also it does not prevent inserts into a space that has been found empty by a serializable transaction. True, it will not show these inserts to the serializable transaction, so in this it follows the rules. Also, to make a read really repeatable, it seems that the read has to be FOR UPDATE. Otherwise one can not implement a reliable resource transaction, like changing the balance of an account.&lt;/p&gt;
&lt;p&gt;Anyway, the Virtuoso engine overhaul is now mostly complete. This is of course an open ended topic but the present batch is nearing completion. We have gone through as many as 3 implementations of hash joins, some things have yet to be finished there. Oracle has very good hash joins. The only way we could match that was to do it all in memory, dropping any persistent storage of the hash. This is of course OK if the hash is not very large and anyway hash joins go sour if the hash does not fit in working set.&lt;/p&gt;
&lt;p&gt;As next topics, we have more RDF and the LUBM benchmark to finish. Also we should revisit TPC-D.&lt;/p&gt;
&lt;p&gt;Databases are really quite complicated and extensive pieces of software. Much more so than the casual observer might think.&lt;/p&gt;</description></item><item><title>Ideas on RDF Store Benchmarking</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2006-11-21#1084</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1084#comments</comments><pubDate>Tue, 21 Nov 2006 14:09:21 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-04-16T16:53:22-04:00</n0:modified><description>&lt;p&gt;This post presents some ideas and use cases for &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x18a21d88&quot;&gt;RDF&lt;/a&gt; store benchmarking.&lt;/p&gt;
&lt;h4&gt;Use Cases&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;Basic triple storage and retrieval. The LUBM benchmark captures many aspects of this.&lt;/li&gt;
&lt;li&gt;Recursive rule application. The simpler cases of this are things like transitive closure.&lt;/li&gt;
&lt;li&gt;Mapping of relational &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xdd0f4b0&quot;&gt;data&lt;/a&gt; to RDF. Since relational benchmarks are well established, as in the TPC benchmarks, the schemas and test data generation can come from there. The problem is that the D/H/R benchmarks consist of aggregates and grouping exclusively but &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0xdd8b060&quot;&gt;SPARQL&lt;/a&gt; does not have these. &lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;Benchmarking Triple Stores&lt;/h4&gt;
&lt;p&gt;An RDF benchmark suite should meet the following criteria:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Have a single scale factor.&lt;/li&gt;
&lt;li&gt;Produce a single metric, queries per unit of time, for example. The metric should be concisely expressible, for example 10 qpsR at 100M, options 1, 2, 3. Due to the heterogeneous nature of the systems under test, the result&amp;#39;s short form likely needs to specify the metric, scale and options included in the test.&lt;/li&gt;
&lt;li&gt;Have optional parts, such as different degrees of inferencing and maybe language extensions such as full text, as this is a likely component of any social software.&lt;/li&gt;
&lt;li&gt;Have a specification for a full disclosure report, TPC style, even though we can skip the auditing part in the interest of making it easy for vendors to publish results and be listed.&lt;/li&gt;
&lt;li&gt;Have a subject domain where real data are readily available and which is broadly understood by the community. For example, SIOC data about on-line communities seems appropriate. Typical degree of connectedness, number of triples per person etc can be measured from real files .&lt;/li&gt;
&lt;li&gt;Have a diverse enough workload. This should include initial bulk load of data, some adding of triples during the run and continuous query load.&lt;/li&gt;Â &lt;/ul&gt;
&lt;p&gt;The query load should illustrate the following types of operations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Basic lookups, such as would be made for filling in a person&amp;#39;s home page in a social networks app. List data of user plus names and emails of friends. Relatively short joins, unions, and optionals.&lt;/li&gt;
&lt;li&gt;Graph operations like shortest path from individual to individual in a social network.&lt;/li&gt;
&lt;li&gt;Selecting data with drill down, as in faceted browsing. For example, start with articles having &lt;a href=&quot;http://dbpedia.org/resource/Tag&quot; id=&quot;link-id0x1a11f478&quot;&gt;tag&lt;/a&gt; t, see distinct tags of articles with tag t, select another tag t2 to see the distinct tags of articles with both t and t2 and so forth.&lt;/li&gt;
&lt;li&gt;Retrieving all closely related nodes, as in composing a SIOC snapshot over a person&amp;#39;s post in different communities, the recent activity report for a forum etc. These will be construct or describe queries. The coverage of describe is unclear, hence construct may be better.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If we take an application like LinkedIn as a model, we can get a reasonable estimate of the relative frequency of different queries. For the queries per second metric, we can define the mix similarly to &lt;a href=&quot;http://dbpedia.org/resource/TPC-C&quot; id=&quot;link-id0x19ba4830&quot;&gt;TPC C&lt;/a&gt;. We count executions of the main query and divide by running time. Within this time, for every 10 executions of the main query there are varying numbers of executions of secondary queries, typically more complex ones.&lt;/p&gt;
&lt;h4&gt;Full Disclosure Report&lt;/h4&gt;
&lt;p&gt;The report contains basic TPC-like items such as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Metric qps/scale/options&lt;/li&gt;
&lt;li&gt;Software used, DBMS, RDF toolkit if separate&lt;/li&gt;
&lt;li&gt;Hardware.  Number, clock and type of CPUs per machine, number of machines in cluster, RAM per machine, disks per machine, manufacturer, price of hardware/software&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These can go into a summary spreadsheet that is just like the TPC ones.&lt;/p&gt;
&lt;p&gt;Additionally, the full report should include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Configuration files for DBMS, web server, other components.&lt;/li&gt;
&lt;li&gt;Parameters for test driver, i.e., number of clicks, how many concurrent clicks. The tester determines the degree of parallelism that gets the best throughput and should indicate this in the report. Making a graph of throughput as function of concurrent clients is a lot of work and maybe not necessary here.&lt;/li&gt;
&lt;li&gt;Duration in real time. Since for any large database with a few G of working set the warm up time is easily 30 minutes, the warm up time should be mentioned but not included in the metric. The measured interval should not be less than 1h in duration and should reflect a &amp;quot;steady state,&amp;quot; as defined in the TPC rules.&lt;/li&gt;
&lt;li&gt;Source code of server side application logic. This can be inference rules, stored procedures, dynamic web pages or any other server side software-like thing that exists or is modified for the purpose of the test.&lt;/li&gt;
&lt;li&gt;Specification of test driver. If there is a commonly used test driver, its type, parameters and version. If the test driver is custom, reference to its source code.&lt;/li&gt;
&lt;li&gt;Database sizes. For a preallocated database of n G, how much was free after the initial load, how much after the test run? How many bytes per triple.&lt;/li&gt;
&lt;li&gt;CPU/IO. This may not always be readily measurable but is interesting still. Maybe a realistic spec is listing the sum of CPU minutes across allÂ  server machines and server processes. For IO, maybe the system totals from iostat before and after the full run, including load and warm-up. If the DBMS and RDF toolkits are separate, it is interesting to know the division of CPU time between them. &lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;Test Drivers&lt;/h4&gt;
&lt;p&gt;OpenLink has a multithreaded C program that simulates n web users multiplexed over m threads. For example, 10000 users with 100 threads, each user with its own state, so that they carry out their respective usage patterns independently, getting served as soon as the server is available, still having no more than m requests going at any time. The usage pattern is something like go check the mail, browse the catalogue, add to shopping cart etc. This can be modified to browse a social network database and produce the desired query mix. This generates &lt;a href=&quot;http://dbpedia.org/resource/Hypertext_Transfer_Protocol&quot; id=&quot;link-id0x19f1f538&quot;&gt;HTTP&lt;/a&gt; requests, hence would work against a SPARQL end point or any set of dynamic web pages.&lt;/p&gt;
&lt;p&gt;The program produces a running report of the clicks per second rate and statistics at the end, listing the min/avg/max times per operation.&lt;/p&gt;
&lt;p&gt;This can be packaged as a separate open source download once the test spec is agreed upon.&lt;/p&gt;
&lt;p&gt;For generating test data, a modification of the LUBM generator is probably the most convenient choice.&lt;/p&gt;
&lt;h4&gt;Benchmarking Relational to RDF Mapping&lt;/h4&gt;
&lt;p&gt;This area is somewhat more complex than triple storage.&lt;/p&gt;
&lt;p&gt;At least the following factors enter into the evaluation:Â  &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Degree of SPARQL compliance. For example, can one have a variable as predicate? Are there limits on optionals and unions?&lt;/li&gt;
&lt;li&gt;Are the data being queried split over multiple &lt;a href=&quot;http://dbpedia.org/resource/Relational_database_management_system&quot; id=&quot;link-id0x1aea8f70&quot;&gt;RDBMS&lt;/a&gt; and joined between them?&lt;/li&gt;
&lt;li&gt;Type of use case. Is this about navigational lookups or about statistics? OLTP or OLAP? It would be the former, as SPARQL does not really have aggregation. Still, many of the interesting queries are about comparing large data sets.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The rationale for mapping relational data to RDF is often data integration. Even in simple cases like the &lt;a href=&quot;http://dbpedia.org/resource/OpenLink_Data_Spaces&quot; id=&quot;link-id0xd69ed58&quot;&gt;OpenLink Data Spaces&lt;/a&gt; applications, a single SPARQL query will often result in a union of queries over distinct relational schemas, each somewhat similar but different in its details.&lt;/p&gt;
&lt;p&gt;A test for mapping should represent this aspect. Of course, translating a column into a predicate is easy and useful, specially when copying data. Still, the full power of mapping seems to involve a single query over disparate sources with disparate schemas.&lt;/p&gt;
&lt;p&gt;A real world case is OpenLink&amp;#39;s ongoing work for mapping &lt;a href=&quot;http://dbpedia.org/resource/WordPress&quot; id=&quot;link-id0x19c5c5c0&quot;&gt;WordPress&lt;/a&gt;, &lt;a href=&quot;http://dbpedia.org/resource/MediaWiki&quot; id=&quot;link-id0x19a0c5d0&quot;&gt;Mediawiki&lt;/a&gt;, phpBB, &lt;a href=&quot;http://dbpedia.org/resource/Drupal&quot; id=&quot;link-id0xd106ef8&quot;&gt;Drupal&lt;/a&gt;, and possibly other popular web applications into SIOC.&lt;/p&gt;
&lt;p&gt;Using this as a benchmark might make sense because the source schemas are widely known, there is a lot of real world data in these systems, and the test driver might even be the same as with the above proposed triple store benchmark. The query mix might have to be somewhat tailored.&lt;/p&gt;
&lt;p&gt;Another &amp;quot;enterprise style&amp;quot; scenario might be to take the TPC C and TPC D databases â after all both have products, customers and orders â and map them into a common ontology. Then there could be queries sometimes running on only one, sometimes joining both.&lt;/p&gt;
&lt;p&gt;Considering the times and the audience, the WordPress/Mediawiki scenario might be culturally more interesting and more fun to demo.&lt;/p&gt;
&lt;p&gt;The test has two aspects: Throughput and coverage. I think these should be measured separately.&lt;/p&gt;
&lt;p&gt;The throughput can be measured with queries that are generally sensible, such as &amp;quot;get articles by an author that I know with tags t1 and t2.&amp;quot;&lt;/p&gt;
&lt;p&gt;Then there are various pathological queries that work specially poorly with mapping. For example, if the types of subjects are not given, if the predicate is known at run time only, if the graph is not given, we get a union of everything joined with another union of everything and many of the joins between the terms of the different unions are identically empty but the software may not know this.&lt;/p&gt;
&lt;p&gt;In a real world case, I would simply forbid such queries. In the benchmarking case, these may be of some interest. If the mapping is clever enough, it may survive cases like &amp;quot;list all predicates and objects of everything called gizmo where the predicate is in the product ontology&amp;quot;.&lt;/p&gt;
&lt;p&gt;It may be good to divide the test into a set of straightforward mappings and special cases and measure them separately. The former will be queries that a reasonably written application would do for producing user reports.&lt;/p&gt;</description></item><item><title>More RDF scalability tests</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2006-11-01#1074</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1074#comments</comments><pubDate>Wed, 01 Nov 2006 19:26:40 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-04-16T16:53:18-04:00</n0:modified><description>&lt;p&gt;We have lately been busy with &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x17524ab8&quot;&gt;RDF&lt;/a&gt; scalability. We work with the 8000 university LUBM &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0xd4ba910&quot;&gt;data&lt;/a&gt; set, a little over a billion triples. We can load it in 23h 46m on a box with 8G RAM. With 16G we probably could get it in 16h.&lt;/p&gt;
&lt;p&gt;The resulting database is 75G, 74 bytes per triple which is not bad. It will shrink a little more if explicitly compacted by merging adjacent partly filled pages. See &lt;a href=&quot;http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VOSBitmapIndexing&quot; id=&quot;link-id105e5cf8&quot;&gt;Advances in Virtuoso RDF Triple Storage&lt;/a&gt; for an in-depth treatment of the subject.&lt;/p&gt;
&lt;p&gt;The real question of RDF scalability is finding a way of having more than one CPU on the same index tree without them hitting the prohibitive penalty of waiting for a mutex. The sure solution is partitioning, would probably have to be by range of the whole key. but before we go to so much trouble, we&amp;#39;ll look at dropping a couple of critical sections from index random access. Also some kernel parameters may be adjustable, like a spin count before calling the scheduler when trying to get an occupied mutex. Still we should not waste too much time on platform specifics. We&amp;#39;ll see.&lt;/p&gt;
&lt;p&gt;We just updated the &lt;a href=&quot;http://virtuoso.openlinksw.com&quot; id=&quot;link-id0x189d64b8&quot;&gt;Virtuoso&lt;/a&gt; Open Source cut. The latest RDF refinements are not in, so maybe the cut will have to be refreshed shortly.&lt;/p&gt;
&lt;p&gt;We are also now applying the relational to RDF mapping discussed in &lt;a href=&quot;http://virtuoso.openlinksw.com/wiki/main/Main/VOSSQLRDF&quot; id=&quot;link-id10677bb8&quot;&gt;Declarative SQL Schema to RDF Ontology Mapping&lt;/a&gt; to the &lt;a href=&quot;http://dbpedia.org/resource/OpenLink_Data_Spaces&quot; id=&quot;link-id0xa0f5fde0&quot;&gt;ODS&lt;/a&gt; applications.&lt;/p&gt;
&lt;p&gt;There is a form of the mapping in the VOS cut on the net but it is not quite ready yet. We must first finish testing it through mapping all the relational schemas of the ODS apps before we can really recommend it. This is another reason for a VOS update in the near future.&lt;/p&gt;
&lt;p&gt;We will be looking at the query side of LUBM after the ISWC 2006 conference. So far, we find queries compile OK for many SIOC use cases with the cost model that there is now. A more systematic review of the cost model for &lt;a href=&quot;http://dbpedia.org/resource/SPARQL&quot; id=&quot;link-id0x19b96630&quot;&gt;SPARQL&lt;/a&gt; will come when we get to the queries.&lt;/p&gt;
&lt;p&gt;We put some ideas about inferencing in the Advances in Triple Storage paper. The question is whether we should forward chain such things as class subsumption and subproperties. If we build these into the &lt;a href=&quot;http://dbpedia.org/resource/SQL&quot; id=&quot;link-id0x19bbd098&quot;&gt;SQL&lt;/a&gt; engine used for running SPARQL, we probably can do these as unions at run time with good performance and better working set due to not storing trivial entailed triples. Some more thought and experimentation needs to go into this.&lt;/p&gt;
</description></item><item><title>RDF Bulk Loading Revisited</title><guid>http://www.openlinksw.com/weblog/oerling/?date=2006-09-28#1058</guid><comments>http://www.openlinksw.com/weblog/oerling/?id=1058#comments</comments><pubDate>Thu, 28 Sep 2006 11:39:52 GMT</pubDate><n0:modified xmlns:n0="http://www.openlinksw.com/weblog/">2008-04-16T16:53:17.000007-04:00</n0:modified><description>&lt;p&gt;We have made new benchmarks with loading the 47 million triples of the Wikipedia links &lt;a href=&quot;http://dbpedia.org/resource/Data&quot; id=&quot;link-id0x1713ab70&quot;&gt;data&lt;/a&gt; set. So far, our best result is 40 minutes with a dual core Xeon with 8G memory. This comes to about 18000 triples per second with between 1.2 and 2 CPU cores busy, slightly depending on configuration parameters. Our previous best result was with a dual 1.6GHz SPARC with 7700 triples per second on loading the 2M triple Wordnet data set.&lt;/p&gt;
&lt;p&gt;These are memory based speeds. We have implemented an automatic background compaction for database tables and have tried the Wikipedia load with and without. The CPU cost of the compaction was about 10% with a slight gain in real time due to less IO.&lt;/p&gt;
&lt;p&gt;But the real deal remains IO. With the compaction on, we got 91 bytes per triple, all included, i.e., two indices on the triples table, dictionaries from IRI IDs to URIs, etc. The compaction is rather simple — it just detects adjacent dirty pages about to be written to disk and sees if the set of contiguous dirty pages would fit on fewer pages than they now take. If so, it rewrites the pages and frees the ones left over. It does not touch clean pages. With some more logic it could also compact clean pages, provided the result did not have more dirty pages than the initial situation. With more aggressive compaction we will get about 75 bytes per triple. We will try this.&lt;/p&gt;
&lt;p&gt;But the real gains will come from index compression with bitmaps. For the Wikipedia data set, this will cut one of the indices to about a third of its current size. This is also the index with the more random access, so the benefit is compounded in terms of working set. At that point we will be looking at about 50 bytes per triple. We will see next week how this works with the LUBM &lt;a href=&quot;http://dbpedia.org/resource/Resource_Description_Framework&quot; id=&quot;link-id0x19af50b0&quot;&gt;RDF&lt;/a&gt; benchmark.&lt;/p&gt;
</description></item>
</channel>
</rss>
