Hi,

On 08.08.2008, at 11:58, Jens Lehmann wrote:

>>>> * 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.

Before I roll my own: Does anybody have a script (e.g. Python?) for  
these kinds of iterative queries?


Beste Grüße,

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

Reply via email to