def graph_from_catalog(self, catalog_dict=None):
'''
Creates a graph for the catalog (CKAN site) using the loaded profiles
The class RDFLib graph (accessible via `serializer.g`) will be updated
by the loaded profiles.
Returns the reference to the catalog, which will be an rdflib URIRef.
'''
catalog_ref = URIRef(catalog_uri())
for profile_class in self._profiles:
profile = profile_class(self.g, self.compatibility_mode)
profile.graph_from_catalog(catalog_dict, catalog_ref)
return catalog_ref
评论列表
文章目录