Hi Diego,

On 12/24/2012 12:25 PM, Diego Valerio Camarda wrote:
Hi,

I'm trying to list the properties used for each class but a query like this

select distinct ?Concept where {[] ?Concept ?o.
?o a <http://dbpedia.org/ontology/Person>} LIMIT 100

is too "heavy" for the dbpedia SPARQL endpoint and it dosen't work.

If you are interested in the properties in the ontology namespace you can use the following query:

   SELECT DISTINCT ?property WHERE { ?property rdfs:domain
   dbpedia-owl:Person }

but if you are interested in all properties you should use the following query:

   SELECT DISTINCT ?property FROM <http://dbpedia.org> WHERE { ?subject
   a <http://dbpedia.org/ontology/Person>. ?subject ?property ?value }
   LIMIT 100

But you it's better to run it against endpoint [1], as it is faster, or against DBpedia-Live endpoint [2].


How can I improve the query?

thanks
diego

Hope that helps.

[1] http://lod.openlinksw.com/sparql
[2] http://live.dbpedia.org/sparql/

--
Kind Regards
Mohamed Morsey
Department of Computer Science
University of Leipzig

------------------------------------------------------------------------------
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
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to