Hi folks,

What's the best way to retrieve types (rdf:type) of a large amount of
concepts, in association with the concept itself? For instance:

[Barack_Obama:Person, United_States:Place,...]

I came up with this query:

SELECT ?c ?t {
    {<concept1> a ?t. <concept1> foaf:isPrimaryTopicOf ?c} UNION
    {<concept2> a ?t. <concept2> foaf:isPrimaryTopicOf ?c} UNION
    .
    .
    .          <== repeat for all concepts
}

Which outputs the desired result but: 1. it's slow (takes ~2.3s for 200
concepts) 2. it doesn't go beyond 200-something concepts because apparently
there's a limit on the number of nested subqueries in a query.

Is there a better way to accomplish this?

Regards,

Parsa
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to