Dear all,
I'm using OpenSource Virtuoso 6.1.3 with data from the Semantic
Eurobau initiative.
I've first loaded the ontologies used in this dataset. There is
GoodRelations, a small Eurbau-specific ontology and FreeClass, the
biggest one with arround 5000 classes:
DB.DBA.RDF_LOAD_RDFXML_MT(file_open('eurobau/freeclass_v1.owl'),
'http://semantic.eurobau.com/data/schema/',
'http://semantic.eurobau.com/data/schema/', 255);
DB.DBA.RDF_LOAD_RDFXML_MT(file_open('eurobau/goodrelations_v1.owl'),
'http://semantic.eurobau.com/data/schema/',
'http://semantic.eurobau.com/data/schema/', 255);
DB.DBA.RDF_LOAD_RDFXML_MT(file_open('eurobau/eurobau-utility.owl'),
'http://semantic.eurobau.com/data/schema/',
'http://semantic.eurobau.com/data/schema/', 255);
Then, I've loaded 6 of the dump files totalling 9 triples:
DB.DBA.TTLP_MT(gz_file_open('eurobau/at_ardex_uk_dump.nt.gz'),
'http://semantic.eurobau.com/data/',
'http://semantic.eurobau.com/data/', 255);
DB.DBA.TTLP_MT(gz_file_open('eurobau/at_rehau_com_dump.nt.gz'),
'http://semantic.eurobau.com/data/',
'http://semantic.eurobau.com/data/', 255);
DB.DBA.TTLP_MT(gz_file_open('eurobau/at_senftenbach_at_dump.nt.gz'),
'http://semantic.eurobau.com/data/',
'http://semantic.eurobau.com/data/', 255);
DB.DBA.TTLP_MT(gz_file_open('eurobau/at_swisspor_at_dump.nt.gz'),
'http://semantic.eurobau.com/data/',
'http://semantic.eurobau.com/data/', 255);
DB.DBA.TTLP_MT(gz_file_open('eurobau/at_tesa_at_dump.nt.gz'),
'http://semantic.eurobau.com/data/',
'http://semantic.eurobau.com/data/', 255);
DB.DBA.TTLP_MT(gz_file_open('eurobau/hu_ardex_hu_dump.nt.gz'),
'http://semantic.eurobau.com/data/',
'http://semantic.eurobau.com/data/', 255);
All fine till now, but when I try to get a count of the instances of
ProductOrSevice with the following query:
define input:inference http://semantic.eurobau.com/data/schema/rules/;
SELECT ?x
FROM http://semantic.eurobau.com/data/
WHERE
{ ?x a http://purl.org/goodrelations/v1#ProductOrService }
I'm just able to get a timeout even for timeouts greater thn 100
seconds, in some cases a get an empty result page instead of the
timeout exception.
I've checked that there are 2616 subclasses of gr:ProductOrService:
define input:inference http://semantic.eurobau.com/data/schema/rules/;
SELECT count(?x)
FROM http://semantic.eurobau.com/data/
FROM http://semantic.eurobau.com/data/schema/
WHERE
{ ?x rdfs:subClassOf http://purl.org/goodrelations/v1#ProductOrService }
And that many of these classes have direct instances.
I would expect to get a result even with a shorter interval so I'm not
sure if I have loaded the data incorrectly or if the queries are not
appropriate. The machine hosting Virtuoso is a 1 Xeon E5520 8GB RAM
and Virtuoso amounts more or less half of the RAM (50 buffers).
This is the output for the status() command:
---
OpenLink Virtuoso Server
Version 06.01.3127-pthreads for Linux as of Mar 30 2011
Started on: 2011/05/07 01:32 GMT+120
Database Status:
File size 14841544704, 1811712 pages, 360173 free.
50 buffers, 167119 used, 1 dirty 0 wired down, repl age 0 0 w.
io 0 w/crsr.
Disk Usage: 170762 reads avg 0 msec, 0% r 0% w last 0 s, 9950 writes,
781 read ahead, batch = 205. Autocompact 0 in 0 out, 0% saved.
Gate: 366 2nd in reads, 0 gate write waits, 0 in while read 0 busy scrap.
Log = virtuoso.trx, 2494 bytes
1450938 pages have been changed since last backup (in checkpoint state)
Current backup timestamp: 0x-0x00-0x00
Last backup date: unknown
Clients: 69 connects, max 10 concurrent
RPC: 17583 calls, -58 pending, 1 max until now, 0 queued, 50 burst
reads (0%), 1 second brk=4323667968
Checkpoint Remap 0 pages, 0 mapped back. 666 s atomic time.
DB master 1811712 total 360173 free 0 remap 0 mapped back
temp 1280 total 1275 free
Lock Status: 0 deadlocks of which 0 2r1w, 0 waits,
Currently 1 threads running 0 threads waiting 0 threads in vdb.
---
Any help appreciated.
Best,
Roberto García
http://rhizomik.net/~roberto