You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/release-notes/10517-datasetType.md
+4-2
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
-
### Initial Support for Dataset Types (Dataset, Software, Workflow)
1
+
### Initial Support for Dataset Types
2
2
3
-
Datasets now have types. By default the dataset type will be "dataset", but out of the box datasets can have a type of "software" or "workflow" as well. For more details see <https://dataverse-guide--10694.org.readthedocs.build/en/10694/user/dataset-management.html#dataset-types> and #10517. Please note that this feature is highly experimental and is expected to evolve.
3
+
Out of the box, all datasets have the type "dataset" but superusers can add additional types. At this time the type can only be set at creation time via API. The types "dataset", "software", and "workflow" will be sent to DataCite when the dataset is published.
4
+
5
+
For details see <https://dataverse-guide--10694.org.readthedocs.build/en/10694/user/dataset-management.html#dataset-types> and #10517. Please note that this feature is highly experimental and is expected to evolve.
Follow :ref:`api-create-dataset` as normal but include a line like `"datasetType": "software"` in your JSON. You can check which types are supported by your installation using the :ref:`api-list-dataset-types` API endpoint.
791
+
By default, datasets are given the type "dataset" but if your installation had added additional types (see :ref:`api-add-dataset-type`), you can specify the type.
792
+
793
+
Follow :ref:`api-create-dataset` as normal but include a line like ``"datasetType": "software"`` in your JSON. You can check which types are supported by your installation using the :ref:`api-list-dataset-types` API endpoint.
792
794
793
795
Here is an example JSON file for reference: :download:`dataset-create-software.json <../_static/api/dataset-create-software.json>`.
794
796
@@ -841,6 +843,8 @@ Before calling the API, make sure the data files referenced by the ``POST``\ ed
841
843
Import a Dataset with a Dataset Type (Software, etc.)
By default, datasets are given the type "dataset" but if your installation had added additional types (see :ref:`api-add-dataset-type`), you can specify the type.
847
+
844
848
The same native JSON file as above under :ref:`api-create-dataset-with-type` can be used when importing a dataset.
845
849
846
850
A file like this is the only difference. Otherwise, follow :ref:`api-import-dataset` as normal.
@@ -3066,21 +3070,23 @@ The fully expanded example above (without environment variables) looks like this
3066
3070
Add Dataset Type
3067
3071
^^^^^^^^^^^^^^^^
3068
3072
3069
-
Superuser only.
3073
+
Note: Before you add any types of your own, there should be a single type called "dataset". If you add "software" or "workflow", these types will be sent to DataCite (if you use DataCite). Otherwise, the only functionality you gain currently from adding types is an entry in the "Dataset Type" facet but be advised that if you add a type other than "software" or "workflow", you will need to add your new type to your Bundle.properties file for it to appear in Title Case rather than lower case in the "Dataset Type" facet.
3074
+
3075
+
With all that said, we'll add a "software"typein the example below. This API endpoint is superuser only.
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/developers/dataset-semantic-metadata-api.rst
+2
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,8 @@ An example jsonld file is available at :download:`dataset-create.jsonld <../_sta
112
112
Create a Dataset with a Dataset Type
113
113
------------------------------------
114
114
115
+
By default, datasets are given the type "dataset" but if your installation had added additional types (see :ref:`api-add-dataset-type`), you can specify the type.
116
+
115
117
An example JSON-LD file is available at :download:`dataset-create-software.jsonld <../_static/api/dataset-create-software.jsonld>`.
116
118
117
119
You can use this file with the normal :ref:`api-semantic-create-dataset` endpoint above.
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/user/dataset-management.rst
+2-2
Original file line number
Diff line number
Diff line change
@@ -787,9 +787,9 @@ If you deaccession the most recently published version of the dataset but not al
787
787
Dataset Types
788
788
=============
789
789
790
-
Datasets can have a dataset type such as "dataset", "software", or "workflow".
790
+
Out of the box, all datasets have a dataset type of "dataset". Superusers can add additional types such as "software" or "workflow" using the :ref:`api-add-dataset-type` API endpoint.
791
791
792
-
When browsing or searching, these types appear under a facet called "Dataset Type".
792
+
Once more than one type appears in search results, a facet called "Dataset Type" will appear allowing you to filter down to a certain type.
793
793
794
794
If your installation is configured to use DataCite as a persistent ID (PID) provider, the appropriate type ("Dataset", "Software", "Workflow") will be sent to DataCite when the dataset is published for those three types.
0 commit comments