Skip to content

Improve the handling of parsing errors when loading a query #759

@tfrancart

Description

@tfrancart

The query loading should be able to report (send an alert) on query loading error (e.g. property identifier not found), so that wrong queries from AI can be reported in the UI messages

Exemple triggering an error right now, which is unreported: "Museums in France displaying artworks from Italian painters"

{
    "branches": [
        {
            "children": [
                {
                    "children": [
                        {
                            "children": [
                                {
                                    "children": [],
                                    "line": {
                                        "o": "Country_5",
                                        "oType": "https://data.mydomain.com/ontologies/sparnatural-config/Country",
                                        "p": "https://data.mydomain.com/ontologies/sparnatural-config/Person_bornIn",
                                        "s": "Person_3",
                                        "sType": "https://data.mydomain.com/ontologies/sparnatural-config/Person",
                                        "values": [
                                            {
                                                "label": "Italy",
                                                "rdfTerm": {
                                                    "type": "uri",
                                                    "value": "http://dbpedia.org/resource/Italy"
                                                }
                                            }
                                        ]
                                    }
                                }
                            ],
                            "line": {
                                "o": "Person_3",
                                "oType": "https://data.mydomain.com/ontologies/sparnatural-config/Person",
                                "p": "https://data.mydomain.com/ontologies/sparnatural-config/Artwork_author",
                                "s": "Artwork_2",
                                "sType": "https://data.mydomain.com/ontologies/sparnatural-config/Artwork",
                                "values": []
                            }
                        }
                    ],
                    "line": {
                        "o": "Artwork_2",
                        "oType": "https://data.mydomain.com/ontologies/sparnatural-config/Artwork",
                        "p": "https://data.mydomain.com/ontologies/sparnatural-config/Museum_displays",
                        "s": "Museum_1",
                        "sType": "https://data.mydomain.com/ontologies/sparnatural-config/Museum",
                        "values": []
                    }
                }
            ],
            "line": {
                "o": "Country_4",
                "oType": "https://data.mydomain.com/ontologies/sparnatural-config/Country",
                "p": "https://data.mydomain.com/ontologies/sparnatural-config/Museum_country",
                "s": "Museum_1",
                "sType": "https://data.mydomain.com/ontologies/sparnatural-config/Museum",
                "values": [
                    {
                        "label": "France",
                        "rdfTerm": {
                            "type": "uri",
                            "value": "http://dbpedia.org/resource/France"
                        }
                    }
                ]
            }
        }
    ],
    "distinct": true,
    "order": null,
    "variables": [
        {
            "termType": "Variable",
            "value": "Museum_1"
        },
        {
            "termType": "Variable",
            "value": "Artwork_2"
        },
        {
            "termType": "Variable",
            "value": "Person_3"
        }
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions