udata 10.0.2.dev32505__py2.py3-none-any.whl → 10.0.2.dev32523__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of udata might be problematic. Click here for more details.

@@ -1,3 +1,4 @@
1
+ from flask import current_app
1
2
  from rdflib import RDF, BNode, Graph, Literal, URIRef
2
3
 
3
4
  from udata.core.dataservices.models import Dataservice
@@ -145,8 +146,13 @@ def dataservice_to_rdf(dataservice: Dataservice, graph=None):
145
146
  # with some basic information about this dataset (but this will return a page
146
147
  # with more datasets than the page size… and could be problematic when processing the
147
148
  # correct Node with all the information in a future page)
148
- for dataset in dataservice.datasets:
149
- d.add(DCAT.servesDataset, dataset_to_graph_id(dataset))
149
+ if str(dataservice.id) == current_app.config["TABULAR_API_DATASERVICE_ID"]:
150
+ # TODO: remove this condition on TABULAR_API_DATASERVICE_ID.
151
+ # It is made to prevent having the graph explode due to too many datasets being served.
152
+ pass
153
+ else:
154
+ for dataset in dataservice.datasets:
155
+ d.add(DCAT.servesDataset, dataset_to_graph_id(dataset))
150
156
 
151
157
  contact_point = contact_point_to_rdf(dataservice.contact_point, graph)
152
158
  if contact_point:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: udata
3
- Version: 10.0.2.dev32505
3
+ Version: 10.0.2.dev32523
4
4
  Summary: Open data portal
5
5
  Home-page: https://github.com/opendatateam/udata
6
6
  Author: Opendata Team
@@ -85,7 +85,7 @@ udata/core/dataservices/apiv2.py,sha256=XIqJq58uLtxtt52iKYo7Fl0ZXv9Sz72uA7JIGwP8
85
85
  udata/core/dataservices/factories.py,sha256=LDk8vvG0zhW8J-ZX5LoJQDU13pqeIyjQ05muuMro_eA,876
86
86
  udata/core/dataservices/models.py,sha256=8XhhlhGzIr8S3n7yVbqo4Z8b_cieUKUwNNp4-dSbbqs,8542
87
87
  udata/core/dataservices/permissions.py,sha256=98zM_R4v2ZtRubflB7ajaVQz-DVc-pZBMgtKUYy34oI,169
88
- udata/core/dataservices/rdf.py,sha256=PTye9_DeeOdpSa48NkcQNqRR15_LeUsvkjJ21nvLAhI,5428
88
+ udata/core/dataservices/rdf.py,sha256=EOeVA8JayhFLs2heklJVu-qDRjqVnF0UyCTsBzNX9eY,5734
89
89
  udata/core/dataservices/search.py,sha256=htjh3sq3tDuD2qwgRgZsW6ClrHLF6hMwYO4nfBO0Hr4,4171
90
90
  udata/core/dataservices/tasks.py,sha256=a43x1oKNF-EYmzM3O-8GQPJvZsgJmQiXOZx8Qti3M4E,960
91
91
  udata/core/dataset/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -705,9 +705,9 @@ udata/translations/pt/LC_MESSAGES/udata.mo,sha256=nGPoTSbeRlpCQGuxoJ7Oa650flpeeh
705
705
  udata/translations/pt/LC_MESSAGES/udata.po,sha256=f-tilnngNNBEIQdXmm3GbdaLlvbwG9YLLwhqyRD5Lh4,44871
706
706
  udata/translations/sr/LC_MESSAGES/udata.mo,sha256=8RL_aEe-0QJdgY-TNMy7bS4z8X9IOK8-C076dxcp3As,28163
707
707
  udata/translations/sr/LC_MESSAGES/udata.po,sha256=Cp0bKPeIbuAqvFeoey_9ItQbAHIeiFZPnZLa6A6JNbI,51363
708
- udata-10.0.2.dev32505.dist-info/LICENSE,sha256=V8j_M8nAz8PvAOZQocyRDX7keai8UJ9skgmnwqETmdY,34520
709
- udata-10.0.2.dev32505.dist-info/METADATA,sha256=VA8U1sXAR08ZJ40ASMID7xKxo_nCUtdLoWSngV4nhdI,134858
710
- udata-10.0.2.dev32505.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
711
- udata-10.0.2.dev32505.dist-info/entry_points.txt,sha256=3SKiqVy4HUqxf6iWspgMqH8d88Htk6KoLbG1BU-UddQ,451
712
- udata-10.0.2.dev32505.dist-info/top_level.txt,sha256=39OCg-VWFWOq4gCKnjKNu-s3OwFlZIu_dVH8Gl6ndHw,12
713
- udata-10.0.2.dev32505.dist-info/RECORD,,
708
+ udata-10.0.2.dev32523.dist-info/LICENSE,sha256=V8j_M8nAz8PvAOZQocyRDX7keai8UJ9skgmnwqETmdY,34520
709
+ udata-10.0.2.dev32523.dist-info/METADATA,sha256=cEAuyRM7Sc24DFJMhjfuOhd8hD83gXaY5c7mifR_DYk,134858
710
+ udata-10.0.2.dev32523.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
711
+ udata-10.0.2.dev32523.dist-info/entry_points.txt,sha256=3SKiqVy4HUqxf6iWspgMqH8d88Htk6KoLbG1BU-UddQ,451
712
+ udata-10.0.2.dev32523.dist-info/top_level.txt,sha256=39OCg-VWFWOq4gCKnjKNu-s3OwFlZIu_dVH8Gl6ndHw,12
713
+ udata-10.0.2.dev32523.dist-info/RECORD,,