def __init__(self, graph, compatibility_mode=False):
'''Class constructor
Graph is an rdflib.Graph instance.
In compatibility mode, some fields are modified to maintain
compatibility with previous versions of the ckanext-dcat parsers
(eg adding the `dcat_` prefix or storing comma separated lists instead
of JSON dumps).
'''
self.g = graph
self.compatibility_mode = compatibility_mode
# Cache for mappings of licenses URL/title to ID built when needed in
# _license().
self._licenceregister_cache = None
评论列表
文章目录