[Developers] Freebase newbie: simple question

Vishal Talwar rawlatv at gmail.com
Wed Feb 25 23:59:21 UTC 2009


According to Wikipedia:

"The postal abbreviation is same as ISO 3166-2 subdivision code for all
fifty states."

We hold the ISO 3166-2 subdivision code on the property
/location/administrative_division/iso_3166_2_code. Values should be of the
form "US-[state code]" for all US states, so the transformation seems pretty
straightforward from there.

Hope that helps,
Vishal

On Wed, Feb 25, 2009 at 3:52 PM, brendan <brendan at metaweb.com> wrote:

> near as i can tell we don't have the data for that.  nor do we have
> the slot to enter it in (the schema) unless I'm missing something.
> i'd propose we add a property to /location/us_state  called "Postal
> Abbreviation"
>
> Brendan
> On Feb 25, 2009, at 3:42 PM, R. Pito Salas wrote:
>
> > I have a simple need. I think Freebase would be perfect for it.
> >
> > Given the full name or abbreviated name of a USA state, give me the
> > two letter code for it. So:
> >
> > Massachusetts => MA
> > Mass => MA
> > MA => MA
> > Foobar => <no such state>
> >
> > I poked around the site and the apis but it's quite overwhelming. I am
> > working in Ruby btw if someone has actual code that would help.
> > Thanks!!
> >
> > -- Pito
> > _______________________________________________
> > Developers mailing list
> > Developers at freebase.com
> > http://lists.freebase.com/mailman/listinfo/developers
>
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20090225/c24aab8b/attachment.htm 


More information about the Developers mailing list