Metax API payload-malli (PAS)

{
    "data_catalog": "urn:nbn:fi:att:data-catalog-pas",
    "cumulative_state": 0,
    "state": "published",
    "generate_pid_on_publish": "DOI",
    "title": {
        "en": "Test dataset",
        "fi": "Aineisto ABC"
    },
    "description": {
        "en": "Description",
        "fi": "Aineiston kuvaus"
    },
    "issued": "2025-03-06",
    "access_rights": {
        "license": [
            {
                "url": "http://uri.suomi.fi/codelist/fairdata/license/code/CC-BY-4.0"
            }
        ],
        "access_type": {
            "url": "http://uri.suomi.fi/codelist/fairdata/access_type/code/open"
        }
    },
    "actors": [
        {
            "roles": [
                "creator",
                "publisher"
            ],
            "organization": {
                "url": "http://uri.suomi.fi/codelist/fairdata/organization/code/09206320"
            }
        }
    ],
    "bibliographic_citation": "CSC,  Test dataset, 2025, doi:something",
    "field_of_science": [
        {
            "url": "http://www.yso.fi/onto/okm-tieteenala/ta112"
        }
    ],
    "keyword": [
        "test",
        "datamodel"
    ],
    "language": [
        {
            "url": "http://lexvo.org/id/iso639-3/fin"
        },
        {
            "url": "http://lexvo.org/id/iso639-3/eng"
        }
    ],
    "other_identifiers": [
        {
            "notation": "doi:10.23729/12345-678910-1112-131415"
        }
    ],
    "projects": [
        {
            "title": {
                "en": "Project name",
                "fi": "Projektin nimi"
            },
            "project_identifier": "project_identifier.12345.678",
            "participating_organizations": [
                {
                    "url": "http://uri.suomi.fi/codelist/fairdata/organization/code/09206320"
                }
            ],
            "funding": [
                {
                    "funder": {
                        "organization": {
                            "url": "http://uri.suomi.fi/codelist/fairdata/organization/code/09206320"
                        },
                        "funder_type": {
                            "url": "http://uri.suomi.fi/codelist/fairdata/funder_type/code/finnish-fof"
                        }
                    },
                    "funding_identifier": "funding_identifier.12345-12-13"
                }
            ]
        }
    ],
    "provenance": [
        {
            "title": {
                "en": "Curation for the data",
                "fi": "Datan kuratointi"
            },
            "temporal": {
                "start_date": "2025-03-06",
                "end_date": "2025-03-06"
            },
            "lifecycle_event": {
                "url": "http://uri.suomi.fi/codelist/fairdata/lifecycle_event/code/curated"
            },
            "event_outcome": {
                "url": "http://uri.suomi.fi/codelist/fairdata/event_outcome/code/success"
            },
            "outcome_description": {
                "en": "Curated, all ok",
                "fi": "Kuratoitu, kaikki ok"
            },
            "is_associated_with": [
                {
                    "organization": {
                        "url": "http://uri.suomi.fi/codelist/fairdata/organization/code/09206320"
                    }
                }
            ]
        }
    ],
    "relation": [
        {
            "entity": {
                "title": {
                    "en": "Reference dataset",
                    "fi": "Testiaineisto, johon tässä viitataan"
                },
                "entity_identifier": "https://doi.org/10.23729/some-id-here",
                "type": {
                    "url": "http://uri.suomi.fi/codelist/fairdata/resource_type/code/dataset"
                }
            },
            "relation_type": {
                "url": "http://purl.org/spar/cito/citesForInformation"
            }
        }
    ],
    "spatial": [
        {
            "geographic_name": "Suomi",
            "reference": {
                "url": "http://www.yso.fi/onto/yso/p94426",
                "as_wkt": "POINT (27 65)"
            },
            "custom_wkt": [
                "POINT (27 65)"
            ]
        }
    ],
    "temporal": [
        {
            "start_date": "2025-03-02",
            "end_date": "2025-03-06"
        }
    ],
    "theme": [
        {
            "url": "http://www.yso.fi/onto/koko/p55058"
        }
    ],
    "fileset": {
      "storage_service": "pas",
      "csc_project": "csc_project",
      "directory_actions": [
        {
                  "action": "add",
                  "pathname": "/dir/"
            }      ],
      "file_actions": [
            {
                  "pathname": "/dir/file.txt",
                  "action": "add",
                  "dataset_metadata": {
                  "use_category": {
                                "url": "http://uri.suomi.fi/codelist/fairdata/use_category/code/source"
                        }
            }
            }
      ]
    }
}