Skip to content

Commit e5dcb42

Browse files
committed
Merge remote-tracking branch 'IQSS/develop' into Search_Refactor
2 parents 5475549 + eba3233 commit e5dcb42

File tree

12 files changed

+29
-43
lines changed

12 files changed

+29
-43
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The `dataverse.files.hide-schema-dot-org-download-urls` setting now supports configuration via MicroProfile Config. In addition to the existing `asadmin` JVM option method, any [supported MicroProfile Config API source](https://docs.payara.fish/community/docs/Technical%20Documentation/MicroProfile/Config/Overview.html) can now be used to set its value.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Unfortunately, the [Whole Tale](https://wholetale.org) project is no longer active and has been removed from the list of integrations in the Admin Guide.

doc/sphinx-guides/source/_static/admin/dataverse-external-tools.tsv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
Tool Type Scope Description
22
Data Explorer explore file "A GUI which lists the variables in a tabular data file allowing searching, charting and cross tabulation analysis. The latest version incorporates the Data Curation Tool, a GUI for curating data by adding labels, groups, weights and other details to assist with informed reuse. See the README.md file at https://github.com/scholarsportal/Dataverse-Data-Explorer for the instructions on adding Data Explorer to your Dataverse."
3-
Whole Tale explore dataset "A platform for the creation of reproducible research packages that allows users to launch containerized interactive analysis environments based on popular tools such as Jupyter and RStudio. Using this integration, Dataverse users can launch Jupyter and RStudio environments to analyze published datasets. For more information, see the `Whole Tale User Guide <https://wholetale.readthedocs.io/en/stable/users_guide/integration.html>`_."
43
Binder explore dataset Binder allows you to spin up custom computing environments in the cloud (including Jupyter notebooks) with the files from your dataset. See https://github.com/IQSS/dataverse-binder-redirect for installation instructions.
54
File Previewers explore file "A set of tools that display the content of files - including audio, html, `Hypothes.is <https://hypothes.is/>`_ annotations, images, PDF, Markdown, text, video, tabular data, spreadsheets, GeoJSON, zip, and NcML files - allowing them to be viewed without downloading the file. The previewers can be run directly from github.io, so the only required step is using the Dataverse API to register the ones you want to use. Documentation, including how to optionally brand the previewers, and an invitation to contribute through github are in the README.md file. Initial development was led by the Qualitative Data Repository and the spreasdheet previewer was added by the Social Sciences and Humanities Open Cloud (SSHOC) project. https://github.com/gdcc/dataverse-previewers"
65
Ask the Data query file Ask the Data is an experimental tool that allows you ask natural language questions about the data contained in Dataverse tables (tabular data). See the README.md file at https://github.com/IQSS/askdataverse/tree/main/askthedata for the instructions on adding Ask the Data to your Dataverse installation.

doc/sphinx-guides/source/admin/integrations.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,6 @@ Compute Button
185185

186186
The "Compute" button is still highly experimental and has special requirements such as use of a Swift object store, but it is documented under "Setting up Compute" in the :doc:`/installation/config` section of the Installation Guide.
187187

188-
.. _wholetale:
189-
190-
Whole Tale
191-
++++++++++
192-
193-
`Whole Tale <https://wholetale.org>`_ enables researchers to analyze data using popular tools including Jupyter and RStudio with the ultimate goal of supporting publishing of reproducible research packages. Users can
194-
`import data from a Dataverse installation
195-
<https://wholetale.readthedocs.io/en/stable/users_guide/manage.html>`_ via identifier (e.g., DOI, URI, etc) or through the External Tools integration. For installation instructions, see the :doc:`external-tools` section or the `Integration <https://wholetale.readthedocs.io/en/stable/users_guide/integration.html#dataverse-external-tools>`_ section of the Whole Tale User Guide.
196-
197188
.. _binder:
198189

199190
Binder

doc/sphinx-guides/source/api/apps.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ https://github.com/IQSS/dataverse-metrics
6868
Whole Tale
6969
~~~~~~~~~~
7070

71-
Whole Tale enables researchers to analyze data using popular tools including Jupyter and RStudio with the ultimate goal of supporting publishing of reproducible research packages.
71+
Whole Tale enables researchers to analyze data using popular tools including Jupyter and RStudio with the ultimate goal of supporting publishing of reproducible research packages. As of 2025 the project is not active.
7272

73-
https://github.com/whole-tale/girder_wholetale/tree/v0.7/server/lib/dataverse
73+
https://github.com/whole-tale/girder-wholetale/blob/v2.0.7/girder_wholetale/lib/dataverse/provider.py
7474

7575
Archivematica
7676
~~~~~~~~~~~~~

doc/sphinx-guides/source/installation/config.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3053,6 +3053,9 @@ By default, download URLs to files will be included in Schema.org JSON-LD output
30533053

30543054
``./asadmin create-jvm-options '-Ddataverse.files.hide-schema-dot-org-download-urls=true'``
30553055

3056+
Can also be set via *MicroProfile Config API* sources, e.g. the environment
3057+
variable ``DATAVERSE_FILES_HIDE_SCHEMA_DOT_ORG_DOWNLOAD_URLS``.
3058+
30563059
For more on Schema.org JSON-LD, see the :doc:`/admin/metadataexport` section of the Admin Guide.
30573060

30583061
.. _useripaddresssourceheader:

doc/sphinx-guides/source/user/dataset-management.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ The following are general guidelines applicable to all programming languages.
229229
- Consider providing notes (in the README) on the expected code outputs or adding tests in the code, which would ensure that its functionality is intact.
230230

231231
Capturing code dependencies will help other researchers recreate the necessary runtime environment. Without it, your code will not be able to run correctly (or at all).
232-
One option is to use platforms such as `Whole Tale <https://wholetale.org>`_, `Jupyter Binder <https://mybinder.org>`_ or `Renku <https://renkulab.io>`_, which facilitate research reproducibility. For more information, have a look at :doc:`/admin/integrations` in the Admin Guide, especially the sections on :ref:`wholetale`, :ref:`binder`, and :ref:`renku`.
232+
One option is to use platforms such as `Jupyter Binder <https://mybinder.org>`_ or `Renku <https://renkulab.io>`_, which facilitate research reproducibility. For more information, have a look at :doc:`/admin/integrations` in the Admin Guide, especially the sections on :ref:`binder` and :ref:`renku`.
233233
Another option is to use an automatic code dependency capture, which is often supported through the programming language. Here are a few examples:
234234

235235
- If you are using the conda package manager, you can export your environment with the command ``conda env export > environment.yml``. For more information, see the `official documentation <https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#sharing-an-environment>`__.

src/main/java/edu/harvard/iq/dataverse/DatasetVersion.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package edu.harvard.iq.dataverse;
22

3+
import edu.harvard.iq.dataverse.settings.JvmSettings;
34
import edu.harvard.iq.dataverse.util.MarkupChecker;
45
import edu.harvard.iq.dataverse.util.PersonOrOrgUtil;
56
import edu.harvard.iq.dataverse.util.BundleUtil;
@@ -2134,10 +2135,8 @@ public String getJsonLd() {
21342135
fileObject.add("description", fileMetadata.getDescription());
21352136
fileObject.add("@id", filePidUrlAsString);
21362137
fileObject.add("identifier", filePidUrlAsString);
2137-
String hideFilesBoolean = System.getProperty(SystemConfig.FILES_HIDE_SCHEMA_DOT_ORG_DOWNLOAD_URLS);
2138-
if (hideFilesBoolean != null && hideFilesBoolean.equals("true")) {
2139-
// no-op
2140-
} else {
2138+
boolean hideFilesBoolean = JvmSettings.HIDE_SCHEMA_DOT_ORG_DOWNLOAD_URLS.lookupOptional(Boolean.class).orElse(false);
2139+
if (!hideFilesBoolean) {
21412140
String nullDownloadType = null;
21422141
fileObject.add("contentUrl", dataverseSiteUrl + FileUtil.getFileDownloadUrlPath(nullDownloadType, fileMetadata.getDataFile().getId(), false, fileMetadata.getId()));
21432142
}

src/main/java/edu/harvard/iq/dataverse/export/DDIExporter.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,11 @@ public String getDisplayName(Locale locale) {
4747

4848
@Override
4949
public void exportDataset(ExportDataProvider dataProvider, OutputStream outputStream) throws ExportException {
50-
XMLStreamWriter xmlw = null;
51-
//XMLStreamWriter is not auto-closable - can't use try-with-resources here
5250
try {
53-
xmlw = XMLOutputFactory.newInstance().createXMLStreamWriter(outputStream);
54-
xmlw.writeStartDocument();
55-
xmlw.flush();
5651
DdiExportUtil.datasetJson2ddi(dataProvider.getDatasetJson(), dataProvider.getDatasetFileDetails(),
5752
outputStream);
5853
} catch (XMLStreamException xse) {
5954
throw new ExportException("Caught XMLStreamException performing DDI export", xse);
60-
} finally {
61-
if (xmlw != null) {
62-
try {
63-
xmlw.close();
64-
} catch (XMLStreamException e) {
65-
// Log this exception, but don't rethrow as it's not the primary issue
66-
e.printStackTrace();
67-
}
68-
}
6955
}
7056
}
7157

src/main/java/edu/harvard/iq/dataverse/settings/JvmSettings.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public enum JvmSettings {
5555
SCOPE_FEATURED_ITEMS(SCOPE_FILES, "featured-items"),
5656
FEATURED_ITEMS_IMAGE_MAXSIZE(SCOPE_FEATURED_ITEMS, "image-maxsize"),
5757
FEATURED_ITEMS_IMAGE_UPLOADS_DIRECTORY(SCOPE_FEATURED_ITEMS, "image-uploads"),
58+
HIDE_SCHEMA_DOT_ORG_DOWNLOAD_URLS(SCOPE_FILES, "hide-schema-dot-org-download-urls"),
5859

5960
//STORAGE DRIVER SETTINGS
6061
SCOPE_DRIVER(SCOPE_FILES),

0 commit comments

Comments
 (0)