<div dir="ltr">thanks for the information. the queries work beautifully.<br>since there are so many user-created domains/types, it will be a challenge to move (elevate) them to the common area. what's the guideline to do so? <br>
-aj<br><br><div class="gmail_quote">On Sun, Aug 17, 2008 at 9:52 PM, John Giannandrea <span dir="ltr"><<a href="mailto:jg@metaweb.com">jg@metaweb.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
The current type tsv files exclude all user types and /type itself.<br>
There are 1260 files and 71 domains in that dump.<br>
<br>
currently there are 7249 types and 23002 domains in freebase.<br>
since most of these are user generated, the ones in commons (i.e.<br>
with a key in / like /film) are 76 domains and 1427 types.<br>
<br>
you can count them with a query like this:<br>
<br>
{<br>
"domain" : {<br>
"key" : {<br>
"namespace" : "/"<br>
}<br>
},<br>
"limit" : 10000,<br>
"return" : "count",<br>
"type" : "/type/type"<br>
}<br>
<br>
and print them out like this:<br>
<br>
[<br>
{<br>
"domain" : {<br>
"id" : null,<br>
"key" : {<br>
"limit" : 0,<br>
"namespace" : "/"<br>
}<br>
},<br>
"id" : null,<br>
"limit" : 10000,<br>
"type" : "/type/type"<br>
}<br>
]<br>
<font color="#888888"><br>
-jg<br>
</font><div class="Ih2E3d"><br>
<br>
On Aug 17, 2008, at 8:39 PM, AJ Chen wrote:<br>
> Shawn, this is very helpful. thanks.<br>
> There are 1330 types in your file, which is close to what's said on<br>
> freebase website: July 2008 browseable set contains 1260 TSV files<br>
> in 142 domains.<br>
> But, the july full download has 1205 files in the data directory,<br>
> which I think corresponds to the number of types. There is a small<br>
> difference in type counts. Is it because theres are some new user<br>
> types not included in the full download's data directory?<br>
<br>
</div><div><div></div><div class="Wj3C7c">_______________________________________________<br>
Developers mailing list<br>
<a href="mailto:Developers@freebase.com">Developers@freebase.com</a><br>
<a href="http://lists.freebase.com/mailman/listinfo/developers" target="_blank">http://lists.freebase.com/mailman/listinfo/developers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>AJ Chen, PhD<br>Co-Chair, Semantic Web SIG, <a href="http://sdforum.org">sdforum.org</a><br>Technical Architect, <a href="http://healthline.com">healthline.com</a><br>
<a href="http://web2express.org">http://web2express.org</a><br>Palo Alto, CA<br>
</div>