udata 10.0.2.dev32490__py2.py3-none-any.whl → 10.0.2.dev32505__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.
- udata/core/organization/rdf.py +1 -1
- udata/core/site/rdf.py +1 -1
- udata/tests/organization/test_organization_rdf.py +3 -3
- udata/tests/site/test_site_rdf.py +5 -0
- {udata-10.0.2.dev32490.dist-info → udata-10.0.2.dev32505.dist-info}/METADATA +3 -2
- {udata-10.0.2.dev32490.dist-info → udata-10.0.2.dev32505.dist-info}/RECORD +10 -10
- {udata-10.0.2.dev32490.dist-info → udata-10.0.2.dev32505.dist-info}/LICENSE +0 -0
- {udata-10.0.2.dev32490.dist-info → udata-10.0.2.dev32505.dist-info}/WHEEL +0 -0
- {udata-10.0.2.dev32490.dist-info → udata-10.0.2.dev32505.dist-info}/entry_points.txt +0 -0
- {udata-10.0.2.dev32490.dist-info → udata-10.0.2.dev32505.dist-info}/top_level.txt +0 -0
udata/core/organization/rdf.py
CHANGED
|
@@ -49,7 +49,7 @@ def build_org_catalog(org, datasets, dataservices, format=None):
|
|
|
49
49
|
for dataset in datasets:
|
|
50
50
|
catalog.add(DCAT.dataset, dataset_to_rdf(dataset, graph))
|
|
51
51
|
for dataservice in dataservices:
|
|
52
|
-
catalog.add(DCAT.
|
|
52
|
+
catalog.add(DCAT.service, dataservice_to_rdf(dataservice, graph))
|
|
53
53
|
|
|
54
54
|
values = {"org": org.id}
|
|
55
55
|
|
udata/core/site/rdf.py
CHANGED
|
@@ -43,7 +43,7 @@ def build_catalog(site, datasets, dataservices=[], format=None):
|
|
|
43
43
|
|
|
44
44
|
for dataservice in dataservices:
|
|
45
45
|
rdf_dataservice = dataservice_to_rdf(dataservice, graph)
|
|
46
|
-
catalog.add(DCAT.
|
|
46
|
+
catalog.add(DCAT.service, rdf_dataservice)
|
|
47
47
|
|
|
48
48
|
if isinstance(datasets, Paginable):
|
|
49
49
|
paginate_catalog(catalog, graph, datasets, format, "api.site_rdf_catalog_format")
|
|
@@ -72,7 +72,7 @@ class OrganizationToRdfTest(DBTestMixin, TestCase):
|
|
|
72
72
|
self.assertEqual(str(catalog.identifier), uri)
|
|
73
73
|
|
|
74
74
|
self.assertEqual(len(list(catalog.objects(DCAT.dataset))), len(datasets))
|
|
75
|
-
self.assertEqual(len(list(catalog.objects(DCAT.
|
|
75
|
+
self.assertEqual(len(list(catalog.objects(DCAT.service))), len(dataservices))
|
|
76
76
|
|
|
77
77
|
org = catalog.value(DCT.publisher)
|
|
78
78
|
self.assertEqual(org.value(RDF.type).identifier, FOAF.Organization)
|
|
@@ -138,7 +138,7 @@ class OrganizationToRdfTest(DBTestMixin, TestCase):
|
|
|
138
138
|
self.assertEqual(len(list(catalog.objects(DCAT.dataset))), page_size)
|
|
139
139
|
# All dataservices that are not linked to a dataset are listed in the first page.
|
|
140
140
|
# See DataserviceQuerySet.filter_by_dataset_pagination.
|
|
141
|
-
self.assertEqual(len(list(catalog.objects(DCAT.
|
|
141
|
+
self.assertEqual(len(list(catalog.objects(DCAT.service))), total)
|
|
142
142
|
|
|
143
143
|
paginations = list(graph.subjects(RDF.type, HYDRA.PartialCollectionView))
|
|
144
144
|
self.assertEqual(len(paginations), 1)
|
|
@@ -166,7 +166,7 @@ class OrganizationToRdfTest(DBTestMixin, TestCase):
|
|
|
166
166
|
# 5 datasets total, 3 on the first page, 2 on the second.
|
|
167
167
|
self.assertEqual(len(list(catalog.objects(DCAT.dataset))), 2)
|
|
168
168
|
# 1 extra_dataservice, listed on the same page as its associated extra_dataset.
|
|
169
|
-
self.assertEqual(len(list(catalog.objects(DCAT.
|
|
169
|
+
self.assertEqual(len(list(catalog.objects(DCAT.service))), 1)
|
|
170
170
|
|
|
171
171
|
paginations = list(graph.subjects(RDF.type, HYDRA.PartialCollectionView))
|
|
172
172
|
self.assertEqual(len(paginations), 1)
|
|
@@ -270,9 +270,14 @@ class SiteRdfViewsTest:
|
|
|
270
270
|
datasets = list(graph.subjects(RDF.type, DCAT.Dataset))
|
|
271
271
|
assert len(datasets) == 3
|
|
272
272
|
|
|
273
|
+
# 4 objects of RDF.type DCAT.DataService
|
|
273
274
|
dataservices = list(graph.subjects(RDF.type, DCAT.DataService))
|
|
274
275
|
assert len(dataservices) == 4
|
|
275
276
|
|
|
277
|
+
# these 4 objects are also bound to catalog by DCAT.service predicate
|
|
278
|
+
catalog = graph.resource(next(graph.subjects(RDF.type, DCAT.Catalog)))
|
|
279
|
+
assert len(list(catalog.objects(DCAT.service))) == 4
|
|
280
|
+
|
|
276
281
|
# Test first page contains the dataservice without dataset
|
|
277
282
|
response = client.get(
|
|
278
283
|
url_for("api.site_rdf_catalog_format", format="xml", page_size=1),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: udata
|
|
3
|
-
Version: 10.0.2.
|
|
3
|
+
Version: 10.0.2.dev32505
|
|
4
4
|
Summary: Open data portal
|
|
5
5
|
Home-page: https://github.com/opendatateam/udata
|
|
6
6
|
Author: Opendata Team
|
|
@@ -140,7 +140,8 @@ It is collectively taken care of by members of the
|
|
|
140
140
|
|
|
141
141
|
## Current (in progress)
|
|
142
142
|
|
|
143
|
-
-
|
|
143
|
+
- Use correct DCAT.service predicate in RDF output [#3199](https://github.com/opendatateam/udata/pull/3199)
|
|
144
|
+
- Fix the Badge.badge_label method [#3198](https://github.com/opendatateam/udata/pull/3198)
|
|
144
145
|
|
|
145
146
|
## 10.0.1 (2024-11-15)
|
|
146
147
|
|
|
@@ -152,7 +152,7 @@ udata/core/organization/metrics.py,sha256=UlHOBOph9s_QW-X7dkEivVITdyZ0ku9kLKl7Bm
|
|
|
152
152
|
udata/core/organization/models.py,sha256=pOVtlWgXQ_HxWZASJ7W5vusove-gqZ6o2TNsP2IbAjA,8945
|
|
153
153
|
udata/core/organization/notifications.py,sha256=i_36-l2y7fOGmnBmr5NDWmGGmrGRaCWbU-6XS4c2wQs,917
|
|
154
154
|
udata/core/organization/permissions.py,sha256=GD-9TMtRppVCPaC1ysXYrONvGJV-ArzAOXm2XMKf9yo,1256
|
|
155
|
-
udata/core/organization/rdf.py,sha256=
|
|
155
|
+
udata/core/organization/rdf.py,sha256=TF2c85MHAu-TRiHNLxqV_Pw5z6sCgZrNszF9SYspQpk,1936
|
|
156
156
|
udata/core/organization/search.py,sha256=5XMZn7xehkTV4X9NvGys_1WyHDGlUVpCQ_uJ3oyWdsE,2227
|
|
157
157
|
udata/core/organization/signals.py,sha256=Ft1MBU9S41uxFN-rUrKHhiwedR1OYGv-ncuroKg8orY,488
|
|
158
158
|
udata/core/organization/tasks.py,sha256=2Pd9ixeKNd7BGxBHrHYbR9AelhqkflX3ocnGgtoa8Uc,5641
|
|
@@ -188,7 +188,7 @@ udata/core/site/api.py,sha256=OwlzjgwdrtEemw63cxc4HYEGe5n-oN0sEXCzjt22ebA,4545
|
|
|
188
188
|
udata/core/site/factories.py,sha256=O0nLFmjrFyemzcs-YwNukq5nqd383KBGrgL5bOQsGbA,378
|
|
189
189
|
udata/core/site/forms.py,sha256=avEZ4rJhibF7sKexqMlKt1qMFiUHNrmJGKjZqcAyjrc,459
|
|
190
190
|
udata/core/site/models.py,sha256=PVB4I2dTQDr5p5md3faVDGZSgOcGKbloHzjzdOG96_I,6266
|
|
191
|
-
udata/core/site/rdf.py,sha256=
|
|
191
|
+
udata/core/site/rdf.py,sha256=HIuFNA_cvPLmib171GlRAjFZWThbESoOTbK7aj26EMc,2073
|
|
192
192
|
udata/core/spam/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
193
193
|
udata/core/spam/api.py,sha256=eqmDB4_VF5EM92675FqFmk4Be5TAnu87dmSVtgXKF4A,1740
|
|
194
194
|
udata/core/spam/constants.py,sha256=dTj0GyPH2zdxhurxva2CGnL-3WwqZETyt5vYQhmVpow,144
|
|
@@ -669,7 +669,7 @@ udata/tests/organization/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
669
669
|
udata/tests/organization/test_csv_adapter.py,sha256=vgTVbPMqKipcdg7wi99pHk9ZNhqtuU-yneEaVW3pZmU,1564
|
|
670
670
|
udata/tests/organization/test_notifications.py,sha256=PGmME5BbYVtcPffeSE1sx47J6iAfm4RDAZIRv_MXDFE,1366
|
|
671
671
|
udata/tests/organization/test_organization_model.py,sha256=clRck_ZNSIBI0VaugrInK6dUkw3yBaly6TtVqmLzfEY,3684
|
|
672
|
-
udata/tests/organization/test_organization_rdf.py,sha256=
|
|
672
|
+
udata/tests/organization/test_organization_rdf.py,sha256=Uf-OgXV615wLUHfcBTmp9QFuV8VCFmjI4wgvShve-mc,8074
|
|
673
673
|
udata/tests/organization/test_organization_tasks.py,sha256=ehPirwfLqaEcnJ9TLk3jGw3Xh-CVx1WXhvIDFYrT2iQ,2845
|
|
674
674
|
udata/tests/reuse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
675
675
|
udata/tests/reuse/test_reuse_model.py,sha256=Q862yC-kXE2cM8on-2-B7JEeP9rLgAENi9z3OpDvt5M,4530
|
|
@@ -682,7 +682,7 @@ udata/tests/site/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
|
682
682
|
udata/tests/site/test_site_api.py,sha256=rVvaGFAXVy_HilxpFrifJp-ESjPd-oAfvLd5eq9kwyA,2190
|
|
683
683
|
udata/tests/site/test_site_metrics.py,sha256=d0gohm0sHin5LrjBx6I9Byii-P_WDBSnkx2Bc5jjIr8,2058
|
|
684
684
|
udata/tests/site/test_site_model.py,sha256=zpRg5jrFPUwhGsljlO5lpCrhJLHiHYoNl28AOw5mI4c,1312
|
|
685
|
-
udata/tests/site/test_site_rdf.py,sha256=
|
|
685
|
+
udata/tests/site/test_site_rdf.py,sha256=zlw7leYc7azfrC6JwDjKiy3wixQzTpo-lDOm-Dg_kXw,13092
|
|
686
686
|
udata/tests/user/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
687
687
|
udata/tests/user/test_user_rdf.py,sha256=BRdv9ivLLUQoImFOuIohDoZAQXMXCruaNJ37siKul5o,1771
|
|
688
688
|
udata/tests/workers/__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.
|
|
709
|
-
udata-10.0.2.
|
|
710
|
-
udata-10.0.2.
|
|
711
|
-
udata-10.0.2.
|
|
712
|
-
udata-10.0.2.
|
|
713
|
-
udata-10.0.2.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|