I’m currently trying to load Freebase dump into Dgraph. At some stage, I saw such error:
RDF doesn't match schema: Input for predicate rdf.freebase.com/ns/user.xandr.webscrapper.domain.ad_entry.ads_topic of type scalar is uid. Edge: entity:1434544 attr:"rdf.freebase.com/ns/user.xandr.webscrapper.domain.ad_entry.ads_topic" value_type:UID value_id:1464499
After I updated the schema with
<rdf.freebase.com/ns/user.xandr.webscrapper.domain.ad_entry.ads_topic>: uid .
The error message changed (though, for another line):
RDF doesn't match schema: Input for predicate rdf.freebase.com/ns/user.xandr.webscrapper.domain.ad_entry.ads_topic of type uid is scalar
As I understand, in freebase objects of different types can be linked to the subjects of certaing type using the same predicates. Is there a way I can handle this in Dgraph, or the only way is just to filter such controversial entities out?