Type

From Freebase

Jump to: navigation, search

A type denotes an IS A relationship about a Topic. For example, if you type the Shakespeare topic with the Person type you are saying that Shakespeare IS A person. Types are also used to hold collections of properties.

Contents

Types in MQL

Getting the types of a topic:

[{
 "id":   "/en/toronto",
 "type": []
}] 

types of a base:

[{
 "id":   "/people",
 "/type/domain/types": []
}] 


Creating types

You can create your own types within Freebase, either in your Default domain or in a Base. See Schema for information on how to work with types, properties, etc.

Types of types

Moving a type to a different base

The best way to do this is to raise a JIRA ticket for the request.

The process involves several steps:

  • Add a key in the new domain for the type.
  • Remove the key in the old domain (optional).
  • Move any synthetic views.
  • Change the base in the /type/type/domain property of the type.
  • Change the base topic inclusion. i.e. if there is /base/foo/type that includes /base/foo/topic, and it is moved to base/bar/type, the included type should be switched to /base/bar/topic and all topics of that type should be detyped/retyped accordingly
  • Change permissions on all types, properties, and type descriptions (e.g., the /common/topic/article attached to the type) to the permissions of the new base.

Type plurals

This application implements this English plurals algorithm.

External links

Personal tools