• Type guard to see if an object implements the rdf.DatasetCore interface (a.k.a. Quads). If that is indeed the case, then the object is considered as "safe": there are no repeated terms, and it is not a generator, ie, it can be iterated on several times.

    Used at the very beginning of the algorithm, part of a function that stores the quads in a local (n3) data store. By checking this, we can avoid unnecessary duplication of a dataset.

    Parameters

    • obj: any

    Returns obj is Quads