stoneelsie / google-refine

Automatically exported from code.google.com/p/google-refine
Other
0 stars 0 forks source link

MQL preview missing "insert" clause #551

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When a project is aligned to Freebase's schema and types are applied to an 
object by using a graph structure like:

  <object> --> /type/object/type --> /film/film

the resulting MQL preview (below) is missing the "connect":"insert" clause for 
the type, causing it to fail when executed.  The tripleloader preview appears 
to have the correct assertions.

  {
    "id": "/en/louis_delluc_prize",
    "/award/award_category/winners": [
      {
        "/award/award_honor/year": [
          {
            "connect": "insert",
            "value": "1937-01-01T00:00:00Z",
            "type": "/type/datetime"
          }
        ],
        "/award/award_honor/award_winner": [
          {
            "id": "/m/0qdm8"
          }
        ],
        "/award/award_honor/honored_for": [
          {
            "id": "/en/the_lower_depths_1936",
            "/type/object/type": [
              {
                "id": "/award/award_winning_work"
              }
            ]
          }
        ],
        "type": "/award/award_honor",
        "create": "unconditional"
      }
    ]
  },

Original issue reported on code.google.com by tfmorris on 15 Mar 2012 at 6:02

GoogleCodeExporter commented 8 years ago
Fixed in r2475.  There's currently a restriction that you can't use a Freebase 
topic as the root of the protograph and have this work, but it's always 
possible to restructure the graph to an acceptable shape.

Original comment by tfmorris on 16 Mar 2012 at 4:25

GoogleCodeExporter commented 8 years ago

Original comment by tfmorris on 18 Sep 2012 at 3:05