[redland-dev] University0_12

bigfreexyz at sina.com bigfreexyz at sina.com
Fri Aug 2 08:54:47 EDT 2013


 Hi,
 
In my test, when the query condition incresing, performance of SPARQL query is dropped down dramatically:
Is there any kown issue in SPARQL query?
 
I tried to load the attached rdf file into RDF Storage (about 6000 triples), and perform below SPARQL query on it, and get the executing time of them.
I use in-memory storage with hash for the test.
 
Testing results:
Query1:Less than 1ms    
SELECT ?Y where {?Y <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Department>}
 
Query2: About 30ms
SELECT ?Y where {?Y <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Department>.
?Y <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#subOrganizationOf> <http://www.University0.edu>}    
 
Query3: About 500ms!
SELECT ?X, ?Y where {?X <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#FullProfessor> .
?Y <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Department>.
?X <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#worksFor> ?Y .
?Y <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#subOrganizationOf> <http://www.University0.edu>}
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.librdf.org/pipermail/redland-dev/attachments/20130802/babf7a1d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: University0_12.zip
Type: application/zip
Size: 15251 bytes
Desc: not available
URL: <http://lists.librdf.org/pipermail/redland-dev/attachments/20130802/babf7a1d/attachment.zip>


More information about the redland-dev mailing list