However, this requires all nodes to have a dgraph.type in order for expand to work. Is there any way of retrieving all triples without the requirement of having all nodes have a type?
I presume this returns only uids that have anyPred, so I need a “seed” predicate that all nodes have like xid or dgraph.type. I’ll give it a try with my 235k predicates schema
I have loaded the DBpedia RDF graph of Wikipedia (also see Discussion: Wikipedia backed by DGraph - #6 by EnricoMi), which comes with a wide schema when you load the infobox properties. These are user-defined predicates, which obviously is noisy and creates k’s of predicates. It is not a hand-crafted well designed schema, but a dirty real-world graph. Just wanted to have a wide long-tail schema for benchmarking.
Hi, I had similar need so I got the schema by making a query to /query with request body schema {} @MichelDiz would there be any reason I should not do it this way?
@mr_rustbot I thought at the time that the question was related to a normal block. The Schema query is totally different thing(and a Known thing, so I didn’t suspect that He didn’t know about it I guess). You can’t use the result of a Schema query in any other block as far as I know. So, two different topics.
For sure you will have all predicates available in the cluster from a Schema query, but they have no context. With Schema query you will have a list of all predicates, but the question was related to nodes. All predicates of the given nodes. And nodes have context, its “body/object” that a Schema query don’t bring for us.