<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <author>
    <name>User Administrator</name>
    <uri>http://www.freebase.com:80/view/user/user_administrator</uri>
  </author>
    <generator uri="http://www.freebase.com/">Freebase Atom Feed Generator</generator>
    <id>http://www.freebase.com:80/view/user/szaijan</id>
    <link rel="self" href="http://www.freebase.com:80/feed/discuss/watched/user/szaijan"/>
    <title>szaijan</title>
    <updated>2008-09-07T20:31:33Z</updated>
  <entry>
    <author>
    <name>alexander</name>
    <uri>http://www.freebase.com:80/view/user/alexander</uri>
  </author>
    <content type="html">&lt;p&gt;As long as you fully qualify the property names ("/user/szaijan/fantasy_football/player/position" for example), you can add the properties in the same query, and the order doesn't matter.&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f80000000058ba3b5</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f80000000058ba3b5" title="Adding a Type to a Topic: Eureka!"/>
    <summary type="html">As long as you fully qualify the property names ("/user/szaijan/fantasy_football/player/position"...</summary>
    <title>Adding a Type to a Topic: Eureka!</title>
    <updated>2007-08-07T08:15:25.0007Z</updated>
  </entry><entry>
    <author>
    <name>szaijan</name>
    <uri>http://www.freebase.com:80/view/user/szaijan</uri>
  </author>
    <content type="html">&lt;p&gt;Oh, the final query looked like:&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  "query":{&lt;br /&gt;
    "id":"#9202a8c04000641f800000000031e51b",&lt;br /&gt;
    "type":{&lt;br /&gt;
      "connect":"insert",&lt;br /&gt;
      "id":"/user/szaijan/fantasy_football/player",&lt;br /&gt;
      "type":"/type/type"&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
And had this result:&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  "code":"/api/status/ok",&lt;br /&gt;
  "result":{&lt;br /&gt;
    "id":"#9202a8c04000641f800000000031e51b",&lt;br /&gt;
    "type":{&lt;br /&gt;
      "connect":"inserted",&lt;br /&gt;
      "id":"/user/szaijan/fantasy_football/player",&lt;br /&gt;
      "type":"/type/type"&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Now, is there a way to order the inserts in my query such that I can do the above first, and then fill in any player fields I care to once the type is added, but in a single query  I'm guessing not, but it would be handy.  I'll experiment.&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f80000000058ba026</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f80000000058ba026" title="Adding a Type to a Topic: Eureka!"/>
    <summary type="html">Oh, the final query looked like:
{
 "query":{
 "id":"#9202a8c04000641f800000000031e51b",
 ...</summary>
    <title>Adding a Type to a Topic: Eureka!</title>
    <updated>2007-08-07T05:49:37.0007Z</updated>
  </entry><entry>
    <author>
    <name>szaijan</name>
    <uri>http://www.freebase.com:80/view/user/szaijan</uri>
  </author>
    <content type="html">&lt;p&gt;That did it.  You'd think I'd have seen that, but I suppose I stared too long and hard.  Many thanks, crism!&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f80000000058ba012</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f80000000058ba012" title="Adding a Type to a Topic: Eureka!"/>
    <summary type="html">That did it. You'd think I'd have seen that, but I suppose I stared too long and hard. Many...</summary>
    <title>Adding a Type to a Topic: Eureka!</title>
    <updated>2007-08-07T05:47:12.0011Z</updated>
  </entry><entry>
    <author>
    <name>crism</name>
    <uri>http://www.freebase.com:80/view/user/crism</uri>
  </author>
    <content type="html">&lt;p&gt;Michael, this write query:&lt;br /&gt;
&lt;br /&gt;
{"id": "#123", "type": {"type": "foo","connect": "insert"}}&lt;br /&gt;
&lt;br /&gt;
will find something whose &lt;i&gt;type&lt;/i&gt; is &lt;var&gt;foo&lt;/var&gt; and make &lt;i&gt;it&lt;/i&gt; the type of instance &lt;kbd&gt;123&lt;/kbd&gt;. In other words, the type of the type of 123 is &lt;var&gt;foo&lt;/var&gt;!&lt;br /&gt;
&lt;br /&gt;
What you want is this:&lt;br /&gt;
&lt;br /&gt;
{"id": "#123", "type": {"id": "foo", "connect": "insert"}}&lt;br /&gt;
&lt;br /&gt;
This explains why, in your result above one of the types is &lt;kbd&gt;/wikipedia/en_id/1249829&lt;/kbd&gt;, a/k/a LaDainian Tomlinson, a curious type to be sure.&lt;br /&gt;
&lt;br /&gt;
We may want to think about restricting what kind of thing can be the target of a type insertion request, but in the meantime, changing your write queries will help get what you want.&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f80000000058b93b1</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f80000000058b93b1" title="Adding a Type to a Topic: Adding Types Through MQL"/>
    <summary type="html">Michael, this write query:
{"id": "#123", "type": {"type": "foo","connect": "insert"}}
will find...</summary>
    <title>Adding a Type to a Topic: Adding Types Through MQL</title>
    <updated>2007-08-06T23:21:36.0007Z</updated>
  </entry><entry>
    <author>
    <name>szaijan</name>
    <uri>http://www.freebase.com:80/view/user/szaijan</uri>
  </author>
    <content type="html">&lt;p&gt;I am able to add types to a Topic through Freebase, but as I need to add a type and data to ~250 instances of a type, I'd like to do it through a script, and thus through MQL.  For some reason, despite showing all OK in the status and error messages, I am unable to get the new type to show up in later queries.  Using the query editor, if I run the following query:&lt;br /&gt;
&lt;br /&gt;
Note: the ID used is for an instance of type /american_football/football_player, which already has multiple types and to which I'm able to add types manually through Freebase.  The new type is a user type which I've created and has not been published publicly.&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  "query":{&lt;br /&gt;
    "id":"#9202a8c04000641f800000000031e51b",&lt;br /&gt;
    "type":{&lt;br /&gt;
      "connect":"insert",&lt;br /&gt;
      "type":"/user/szaijan/fantasy_football/player"&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
I get the seemingly successful result:&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  "q1": {&lt;br /&gt;
    "code": "/api/status/ok",&lt;br /&gt;
    "result": {&lt;br /&gt;
      "type": {&lt;br /&gt;
        "type": "/user/szaijan/fantasy_football/player",&lt;br /&gt;
        "connect": "present"&lt;br /&gt;
      },&lt;br /&gt;
      "id": "#9202a8c04000641f800000000031e51b"&lt;br /&gt;
    }&lt;br /&gt;
  },&lt;br /&gt;
  "status": "200 OK",&lt;br /&gt;
  "code": "/api/status/ok"&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
This claims the type I tried to insert is already present.  When I go and query the instance's types subsequently, I get the following result, which shows that the inserted type is not present:&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  "q1": {&lt;br /&gt;
    "code": "/api/status/ok",&lt;br /&gt;
    "result": {&lt;br /&gt;
      "type": [&lt;br /&gt;
        "/common/topic",&lt;br /&gt;
        "/people/person",&lt;br /&gt;
        "/american_football/football_player",&lt;br /&gt;
        "/wikipedia/en_id/1249829"&lt;br /&gt;
      ],&lt;br /&gt;
      "id": "#9202a8c04000641f800000000031e51b"&lt;br /&gt;
    }&lt;br /&gt;
  },&lt;br /&gt;
  "status": "200 OK",&lt;br /&gt;
  "code": "/api/status/ok"&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Any ideas as to why this is not working?  Thank you.&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f80000000058b929a</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f80000000058b929a" title="Adding a Type to a Topic: Adding Types Through MQL"/>
    <summary type="html">I am able to add types to a Topic through Freebase, but as I need to add a type and data to ~250...</summary>
    <title>Adding a Type to a Topic: Adding Types Through MQL</title>
    <updated>2007-08-06T23:10:35.0004Z</updated>
  </entry><entry>
    <author>
    <name>szaijan</name>
    <uri>http://www.freebase.com:80/view/user/szaijan</uri>
  </author>
    <content type="html">&lt;p&gt;I am creating a Fantasy Football draft analyzer under my own domain and I want the Football Player fields to be shown under my Ffl/player, which includes the Football Player and Person types.  I do not want folks to be able to see the Ffl/player properties when browsing for Donovan McNabb the Football Player or Person though.  I'm not certain how Metaweb handles this as of yet, so I'm uncertain if merging the two topics is the right way to go.  Any input would be appreciated.&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f800000000586ba42</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f800000000586ba42" title="Donovan McNabb: Merging Topics"/>
    <summary type="html">I am creating a Fantasy Football draft analyzer under my own domain and I want the Football Player...</summary>
    <title>Donovan McNabb: Merging Topics</title>
    <updated>2007-08-01T20:11:30.0011Z</updated>
  </entry><entry>
    <author>
    <name>crism</name>
    <uri>http://www.freebase.com:80/view/user/crism</uri>
  </author>
    <content type="html">&lt;p&gt;Hi, cimm. You have to be able to edit a type in order to change it; most users can’t edit core types like &lt;i&gt;City/Town&lt;/i&gt; or &lt;i&gt;Postal Code&lt;/i&gt;. However, a postal code instance can also be a location, and be contained in a city. Many cities have more than one postal code, so assigning the code as a property is much less interesting than stating which codes, as &lt;i&gt;Locations&lt;/i&gt;, are contained within the city.&lt;p&gt;As for editing types, try creating a new type or two within your own personal domain, here or on sandbox.freebase.com. Play around with it, and get a feel for what you can do there. If there’s a type you think we’re missing, please prototype it in your own domain, add data to it, and then ask for it to be promoted for public use.&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f800000000586830a</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f800000000586830a" title="Adding a Type to a Topic: Adding types"/>
    <summary type="html">Hi, cimm. You have to be able to edit a type in order to change it; most users can’t edit core...</summary>
    <title>Adding a Type to a Topic: Adding types</title>
    <updated>2007-07-31T19:12:19.0007Z</updated>
  </entry><entry>
    <author>
    <name>cimm</name>
    <uri>http://www.freebase.com:80/view/user/cimm</uri>
  </author>
    <content type="html">&lt;p&gt;Something I still don't get is how I can add these things. I would like to add postal codes to towns and cities. Should I create a new type (a city is not a postal code, it *has* a postal code)? Can't I just add a property like 'founded' or 'coordinates' and if so, where do I do this?!&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f8000000005867e35</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f8000000005867e35" title="Adding a Type to a Topic: Adding types"/>
    <summary type="html">Something I still don't get is how I can add these things. I would like to add postal codes to...</summary>
    <title>Adding a Type to a Topic: Adding types</title>
    <updated>2007-07-31T17:54:48.0011Z</updated>
  </entry><entry>
    <author>
    <name>danm</name>
    <uri>http://www.freebase.com:80/view/user/danm</uri>
  </author>
    <content type="html">&lt;p&gt;Right. This is a bug in the UI. You shouldn't be able to have an expected type of 'all'.
&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f80000000048e4c46</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f80000000048e4c46" title="Adding a Type to a Topic: Properties of added types don't show up"/>
    <summary type="html">Right. This is a bug in the UI. You shouldn't be able to have an expected type of 'all'.
 </summary>
    <title>Adding a Type to a Topic: Properties of added types don't show up</title>
    <updated>2007-04-11T18:37:02.0006Z</updated>
  </entry><entry>
    <author>
    <name>darin</name>
    <uri>http://www.freebase.com:80/view/user/darin</uri>
  </author>
    <content type="html">&lt;p&gt;The properties you have attached to Theorem do not have expected types. If you edit those properties and assign expected types, they should appear on the topic page.
&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f80000000045b2538</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f80000000045b2538" title="Adding a Type to a Topic: Properties of added types don't show up"/>
    <summary type="html">The properties you have attached to Theorem do not have expected types. If you edit those...</summary>
    <title>Adding a Type to a Topic: Properties of added types don't show up</title>
    <updated>2007-04-10T16:28:48.0006Z</updated>
  </entry><entry>
    <author>
    <name>mt</name>
    <uri>http://www.freebase.com:80/view/user/mt</uri>
  </author>
    <content type="html">&lt;p&gt;When I add a type to an existing topic, the properties of the new type don't show up in the topic page.
&lt;br /&gt;
&lt;br /&gt;
Example: I added the type Theorem to the entry for Fermat's Last Theorem:
&lt;br /&gt;
http://www.freebase.com/view?id=/wikipedia/en_id/51445
&lt;br /&gt;
but the properties of Theorem (First Proved By, etc) did not appear on the page.
&lt;/p&gt;</content>
    <id>http://www.freebase.com:80/view/guid/9202a8c04000641f80000000045b24ff</id>
    <link rel="alternate" type="text/html" href="http://www.freebase.com:80/view/guid/9202a8c04000641f80000000045b24ff" title="Adding a Type to a Topic: Properties of added types don't show up"/>
    <summary type="html">When I add a type to an existing topic, the properties of the new type don't show up in the topic...</summary>
    <title>Adding a Type to a Topic: Properties of added types don't show up</title>
    <updated>2007-04-10T15:59:10.0012Z</updated>
  </entry>
</feed>