diff --git a/ontquery/terms.py b/ontquery/terms.py index 1299e72..a8d9b50 100644 --- a/ontquery/terms.py +++ b/ontquery/terms.py @@ -47,6 +47,11 @@ def __new__(cls, *args, **kwargs): return cls._dict + @classmethod + def populate(cls, graph): + """ populate an rdflib graph with these curies """ + [graph.bind(k, v) for k, v in cls._dict.items()] + @classmethod def qname(cls, iri): # while / is not *technically* allowed in prefix names by ttl