IN-CORE / incore-services

IN-CORE Web Services is a component of IN-CORE. IN-CORE uses a service oriented architecture with a REST API for communicating with the different services.
Mozilla Public License 2.0
5 stars 1 forks source link

Define hazard's semantic types #302

Open longshuicy opened 1 month ago

longshuicy commented 1 month ago

Hazard datasets have semantic types. Need to proper register them in the semantics database.

    public static final String PROBABILISTIC_EARTHQUAKE_HAZARD_SCHEMA = "ergo:probabilisticEarthquakeRaster";
    public static final String DETERMINISTIC_EARTHQUAKE_HAZARD_SCHEMA = "ergo:deterministicEarthquakeRaster";
    public static final String PROBABILISTIC_TSUNAMI_HAZARD_SCHEMA = "incore:probabilisticTsunamiRaster";
    public static final String DETERMINISTIC_TSUNAMI_HAZARD_SCHEMA = "incore:deterministicTsunamiRaster";
    public static final String PROBABILISTIC_HURRICANE_HAZARD_SCHEMA = "incore:probabilisticHurricaneRaster";
    public static final String DETERMINISTIC_HURRICANE_HAZARD_SCHEMA = "incore:deterministicHurricaneRaster";
    public static final String HURRICANE_GRID_SNAPSHOT_HAZARD_SCHEMA = "incore:hurricaneGridSnapshot";
    public static final String TORNADO_WINDFIELD_SCHEMA = "incore:tornadoWindfield";
    public static final String DETERMINISTIC_FLOOD_HAZARD_SCHEMA = "incore:deterministicFloodRaster";
    public static final String PROBABILISTIC_FLOOD_HAZARD_SCHEMA = "incore:probabilisticFloodRaster";

Since they are not tabular, for now we just list the description, title and a few necessary fields example:

{
    "dc:description": "Probabilistic Earthquake Raster",
    "dc:title": "ergo:probabilisticEarthquakeRaster",
    "openvocab:versionnumber": "1",
    "id": "666a052ae08a630fa4d48db1",
    "@context": [
        "https://www.w3.org/ns/csvw#",
        {
            "@language": "en",
            "dc": "https://purl.org/dc/terms/",
            "gml": "https://schemas.opengis.net/gml/",
            "wfs": "https://schemas.opengis.net/wfs/1.1.0/wfs.xsd",
            "xlink": "https://www.w3.org/1999/xlink/",
            "xsd": "https://www.w3.org/2001/XMLSchema#",
            "qudt": "https://qudt.org/schema/qudt/",
            "unit": "https://qudt.org/vocab/unit/",
            "openvocab": "https://vocab.org/open/",
            "rdf": "https://www.w3.org/1999/02/22-rdf-syntax-ns#",
            "rdfs": "https://www.w3.org/2000/01/rdf-schema#",
            "dcat": "https://www.w3.org/ns/dcat#",
            "prov": "https://www.w3.org/ns/prov#"
        }
    ],
    "dc:license": {
        "@id": "http://opendefinition.org/licenses/cc-by/"
    },
    "url": "ergo:probabilisticEarthquakeRaster"
}
longshuicy commented 1 month ago

Also need backward checking if any existing raster types are starting with "ncsa:"; change them back accordingly. This needs a script.