Hi, >>>>> * The dbpedia data on buildings seems richer - but I can't find >>>>> out >>>>> how to retrieve ALL architectural projects in dbpedia. I tried [2] >>>>> athttp://dbpedia.org/sparql >>>>> , but it stops athttp://dbpedia.org/resource/Beijing_Zoo >>>> There is a limit of 1000 results on the SPARQL endpoint. So either >>>> you >>>> have to use limit and offset or you just download the complete YAGO >>>> file >>>> and grep for http://dbpedia.org/class/yago/Building102913152. The >>>> data >>>> set is called "YAGO classes" and can be downloaded from the DBpedia >>>> download page [1]. >>> >>> OK, thanks. I found 12.627 buildings in the Yago classes file, quite >>> nice. >> >> I just noticed that you don't get all buildings by just grepping for >> http://dbpedia.org/class/yago/Building102913152. There are also >> various >> subclasses of building, which have instances assigned to them. To get >> all those you can add "define input:inference >> 'http://dbpedia.org/resource/inference/rules/yago#'" (without ") at >> the >> beginning of your SPARQL query in your previous mail (this enables >> Virtuoso subclass inferencing) and then use LIMIT and OFFSET to find >> all >> solutions in several queries. You'll get 28582 buildings this way.
I tried it, but define input:inference 'http://dbpedia.org/resource/inference/rules/yago#' PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX dbp: <http://dbpedia.org/property/> PREFIX yago: <http://dbpedia.org/class/yago/> SELECT count(distinct(?project)) as ?num WHERE { ?project rdf:type yago:Building102913152. } gives me only 2959 results on http://dbpedia.org/sparql (887 without the inferencing snippet) What am I doing wrong? (Oddly, if I replace rdf:type with a variable, I get even less.) Beste Grüße + thanks in advance, mo ° Moritz Stefaner +49 179 - 525 21 26 http://der-mo.net http://well-formed-data.net ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Dbpedia-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
