Hello Stefano,

On Thu, 2012-06-21 at 18:39 +0100, Stefano Ortona wrote:
> my query is very simple:
> 
> " 
> select distinct ?0 ?1 ...?x ...?100 
> WHERE
> {
> { <certain-dbpedia-resource> rdf:type ?x.}
> }
> " 
> 
> Basically i wanna retrieve the rdf:types for 100 different dbpedia resources, 
> is that ~200K of text? (seems strange)
> I'm using the DBPedia SPARQL endpoint, http://dbpedia.org/sparql.

7 lines of SQL text per triple pattern if default graph is not
specified, 9 lines if it is specified. So it's some about 700 or 900
lines, not 10000 . Terrible but not fatal.

I'd query
SELECT DISTINCT ?t
from some graph if it is known
WHERE
{ ?s a ?t . FILTER ( ?s IN (<resource1>, <resource2>,
<resource3> ...)) }

A single triple pattern with IN operator would be much cheaper.

Best Regards,

Ivan Mikhailov
OpenLink Software
http://virtuoso.openlinksw.com



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to