[Freebase-discuss] No "Metaweb System Types" in data dump?

Tom Morris tfmorris at gmail.com
Wed Jul 21 20:34:53 UTC 2010


On Wed, Jul 21, 2010 at 4:28 PM, Roland Bouman <roland.bouman at gmail.com> wrote:
> Hi Tom!
>
> On Wed, Jul 21, 2010 at 10:23 PM, Tom Morris <tfmorris at gmail.com> wrote:
>> There are only 28 and most of them are primitive types, so they don't
>> have any properties.  You can get a list of them with any associated
>> properties using this query:
>>
>> http://www.freebase.com/api/service/mqlread?query={%20%22query%22:%20[{%20%22type%22:%20%22/type/type%22,%20%22domain%22:%20%22/type%22,%20%22properties%22:%20[],%20%22id%22:%20null%20}]%20}
>
> thanks for your reply! Yes, it seems then that for the systems types I
> can certainly get by with this query result.
>
> But it seems my problem is different from what I thought initially -
> I'm still not clear on how where to find which types have which
> properties (and the properties of the properties)
> (Sorry if this is a silly question - it might have to do with my lack
> of understanding of the metaweb data model)

They're in the result.  For example, the type /type/namespace

    {"id": "/type/namespace",
      "properties": [
        "/type/namespace/keys",
        "/type/namespace/enumerated",
        "/type/namespace/unique",
        "/type/namespace/blacklisted"
      ],
    },

has the properties keys, enumerated, unique, and blacklisted, while
the type /type/int has none (ie it's a primitive type).

    { "id": "/type/int",
      "properties": []
    },


Tom


More information about the Freebase-discuss mailing list