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
This commit is contained in:
parent
ccc6587cdd
commit
a81dcc50cc
@ -120,13 +120,13 @@ public class TripleLoaderTransposedNodeFactory implements TransposedNodeFactory
|
|||||||
}
|
}
|
||||||
protected void ensureFromTypesAsserted(Recon recon, String propertyID) {
|
protected void ensureFromTypesAsserted(Recon recon, String propertyID) {
|
||||||
String fromTypeID = schemaHelper.getPropertyFromType(propertyID);
|
String fromTypeID = schemaHelper.getPropertyFromType(propertyID);
|
||||||
if (fromTypeID != null) {
|
if (fromTypeID != null && !"/type/object".equals(fromTypeID)) {
|
||||||
ensureAllIncludedTypesAsserted(recon, fromTypeID);
|
ensureAllIncludedTypesAsserted(recon, fromTypeID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
protected void ensureToTypesAsserted(Recon recon, String propertyID) {
|
protected void ensureToTypesAsserted(Recon recon, String propertyID) {
|
||||||
String toTypeID = schemaHelper.getPropertyToType(propertyID);
|
String toTypeID = schemaHelper.getPropertyToType(propertyID);
|
||||||
if (toTypeID != null) {
|
if (toTypeID != null && !"/type/object".equals(toTypeID)) {
|
||||||
ensureAllIncludedTypesAsserted(recon, toTypeID);
|
ensureAllIncludedTypesAsserted(recon, toTypeID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user