dcsr-datumo / oeuvres-roud

Project specific ontologies and lists for the project "Oeuvres complètes de Gustave Roud"
0 stars 0 forks source link

inaccessible list node #58

Closed loicjaouen closed 2 years ago

loicjaouen commented 2 years ago

@elespdn reports that the list node http://rdfh.ch/lists/0112/roud-oeuvres-flatlist-isInArchive-ALSFrançoisDaulte is not accessible, whenever selected, knora complains:

org.knora.webapi.TriplestoreResponseException: Triplestore responded with HTTP code 500: Consistency check object_class_constraint_1 failed:
http://rdfh.ch/0112/3QmN4TxLRKyL9-r4arwDzA/values/u56aZxdOTvyNcLhbxZuf9w http://www.knora.org/ontology/knora-base#valueHasListNode http://rdfh.ch/lists/0112/roud-oeuvres-flatlist-isInArchive-ALSFran%C3%A7oisDaulte

http://www.knora.org/ontology/knora-base#valueHasListNode http://www.knora.org/ontology/knora-base#objectClassConstraint http://www.knora.org/ontology/knora-base#ListNode
-----------------------------------
http://rdfh.ch/lists/0112/roud-oeuvres-flatlist-isInArchive-ALSFran%C3%A7oisDaulte http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.knora.org/ontology/knora-base#ListNode

basically saying "it should be a ListNode instead of being a ListNode"

So the problem must be elsewhere and if not specifically pointed at then we have to guess.

@elespdn hypothesis is that the "ç" might be problematic.

loicjaouen commented 2 years ago

that rings a bell... tested locally and removing the "ç" does fix it:

PREFIX knora-base: <http://www.knora.org/ontology/knora-base#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
delete data {
    graph <http://www.knora.org/data/0112/roud-oeuvres> {
        <http://rdfh.ch/lists/0112/roud-oeuvres-flatlist-isInArchive-ALSFrançoisDaulte> a knora-base:ListNode;
            knora-base:hasRootNode <http://rdfh.ch/lists/0112/roud-oeuvres-flatlist-isInArchive>;
            knora-base:listNodeName "ALSFrançoisDaulte";
            knora-base:listNodePosition 14;
            rdfs:label "ALS François Daulte"@en, "ALS François Daulte"@fr .
        <http://rdfh.ch/lists/0112/roud-oeuvres-flatlist-isInArchive> knora-base:hasSubListNode <http://rdfh.ch/lists/0112/roud-oeuvres-flatlist-isInArchive-ALSFrançoisDaulte> .
    }
};
insert data {
    graph <http://www.knora.org/data/0112/roud-oeuvres> {
        <http://rdfh.ch/lists/0112/roud-oeuvres-flatlist-isInArchive-ALSDaulte> a knora-base:ListNode;
            knora-base:hasRootNode <http://rdfh.ch/lists/0112/roud-oeuvres-flatlist-isInArchive>;
            knora-base:listNodeName "ALSDaulte";
            knora-base:listNodePosition 14;
            rdfs:label "ALS François Daulte"@en, "ALS François Daulte"@fr .
        <http://rdfh.ch/lists/0112/roud-oeuvres-flatlist-isInArchive> knora-base:hasSubListNode <http://rdfh.ch/lists/0112/roud-oeuvres-flatlist-isInArchive-ALSDaulte> .
    }
};

applying to prod with respect to our procedures.