Commit 069fc49f authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Dcat catalog to return full datasets information.

parent 0ee08ff0
Pipeline #101068 passed with stages
in 23 minutes and 11 seconds
......@@ -67,5 +67,5 @@ class Catalog(Resource):
es_response = es_search.execute()
mapping = Mapping()
mapping.map_catalog(es_response.hits, after, modified_since)
mapping.map_catalog(es_response.hits, after, modified_since, slim=False)
return rdf_respose(mapping.g)
......@@ -49,7 +49,7 @@ class Mapping():
self.persons = {}
def map_catalog(self, entries, after: str, modified_since):
def map_catalog(self, entries, after: str, modified_since, slim=True):
def uri_ref(after):
kwargs = dict()
if after is not None:
......@@ -64,7 +64,7 @@ class Mapping():
self.g.add((catalog, RDF.type, DCAT.Catalog))
last_entry = None
for entry in entries:
self.g.add((catalog, DCT.dataset, self.map_entry(entry, slim=True)))
self.g.add((catalog, DCT.dataset, self.map_entry(entry, slim=slim)))
last_entry = entry
hydra_collection = uri_ref(after)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment