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>}
 
 

<<attachment: University0_12.zip>>

_______________________________________________
redland-dev mailing list
[email protected]
http://lists.librdf.org/mailman/listinfo/redland-dev

Reply via email to