magda-io / magda

A federated, open-source data catalog for all your big data and small data
https://magda.io
Apache License 2.0
508 stars 93 forks source link

Add Dataset Page 3: Provenance Questions #2334

Closed AlexGilleran closed 5 years ago

AlexGilleran commented 5 years ago

As a user cataloguing data, I want to be able to record where the data came from in terms of how it was produced, what system was used and what the source of the data was.

image Note: We need to add question marks that reveal examples.

The actual data used shouldn't be exactly like the screenshot - it should match this:

{
        "mechanism": {
            "description": "How was it produced?",
            "type": "string"
        },
        "sourceSystem": {
            "description": "What system, if any, was used to produce the data?",
            "type": "string"
        },
        "derivedFrom": {
            "description": "What other record(s), if any, was this data derived from?",
            "type": "object",
            "properties": {
                "id": {
                    "description": "The id(s) of the record(s)",
                    "type": "array",
                    "items": {
                        "description": "The id of the record",
                        "type": "string",
                        "links": [
                            {
                                "href": "/api/v0/registry/records/{$}",
                                "rel": "item"
                            }
                        ]
                    }
                }
            }
        },
        "affiliatedOrganisationIds": {
            "description": "Which other organisation(s), if any, was this produced in collaboration with?",
            "type": "array",
            "items": {
                "type": "string",
                "links": [
                    {
                        "href": "/api/v0/registry/records/{$}",
                        "rel": "item"
                    }
                ]
            }
        },
        "isOpenData": {
            "description": "Is it already released as open data?",
            "type": "boolean"
        }
}

Acceptance Criteria

alyce commented 5 years ago

So if we used the react autosuggestion multiple sections options and an add new feature we could potentially do a autoauggestion/selection drop down that solves all 3 scenarios in one go:

Screen Shot 2019-08-15 at 3 47 20 pm Derived_from_source.pdf