From a81dcc50cc8f677b80987647598158d5fae5c4cf Mon Sep 17 00:00:00 2001 From: David Huynh Date: Tue, 28 Dec 2010 22:32:21 +0000 Subject: [PATCH] Don't assert type /type/object as the result of any /type/object/* property. git-svn-id: http://google-refine.googlecode.com/svn/trunk@1969 7d457c2a-affb-35e4-300a-418c747d4874 --- .../transpose/TripleLoaderTransposedNodeFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/freebase/src/com/google/refine/freebase/protograph/transpose/TripleLoaderTransposedNodeFactory.java b/extensions/freebase/src/com/google/refine/freebase/protograph/transpose/TripleLoaderTransposedNodeFactory.java index 21e5b890a..186448ad5 100644 --- a/extensions/freebase/src/com/google/refine/freebase/protograph/transpose/TripleLoaderTransposedNodeFactory.java +++ b/extensions/freebase/src/com/google/refine/freebase/protograph/transpose/TripleLoaderTransposedNodeFactory.java @@ -120,13 +120,13 @@ public class TripleLoaderTransposedNodeFactory implements TransposedNodeFactory } protected void ensureFromTypesAsserted(Recon recon, String propertyID) { String fromTypeID = schemaHelper.getPropertyFromType(propertyID); - if (fromTypeID != null) { + if (fromTypeID != null && !"/type/object".equals(fromTypeID)) { ensureAllIncludedTypesAsserted(recon, fromTypeID); } } protected void ensureToTypesAsserted(Recon recon, String propertyID) { String toTypeID = schemaHelper.getPropertyToType(propertyID); - if (toTypeID != null) { + if (toTypeID != null && !"/type/object".equals(toTypeID)) { ensureAllIncludedTypesAsserted(recon, toTypeID); } }