Open jvendetti opened 5 months ago
@martinjoconnor mentioned that the voaf namespace declaration on line 26 of the RDF source file looked odd:
xmlns:vaof="http://purl.org/vocommons/voaf#"
The authors likely meant for the namespace to be voaf
instead of vaof
to match the end of the vocommons
URL. I modified this, and I also corrected line 50 from this:
<metadataVoc xmlns="voaf:" rdf:resource="https://www.isibang.ac.in/"/>
... to this:
<voaf:metadataVoc rdf:resource="https://www.isibang.ac.in/"/>
... because using xmlns
inside of a property declaration is incorrect.
I uploaded a new version of the ontology to our staging environment, but even with these corrections the ontology errors out with the same stack trace as listed above.
The code is failing when it tries to get the ID of a parent concept. I searched the RDF source file for occurrences of concepts where the parent declaration contains "99301". There are two occurrences in the source file:
<rdf:Description rdf:about="http://purl.org/m4m/99313">
<rdf:type rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/>
<skos:prefLabel xml:lang="en">normal</skos:prefLabel>
<skos:altLabel xml:lang="en">99313</skos:altLabel>
<skos:broader xml:lang="en">99301</skos:broader>
<dct:created rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2013-01-01</dct:created>
<dct:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2013-01-01</dct:modified>
<skos:inScheme rdf:resource="http://purl.org/m4m"/>
</rdf:Description>
<rdf:Description rdf:about="http://purl.org/m4m/99314">
<rdf:type rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/>
<skos:prefLabel xml:lang="en">low</skos:prefLabel>
<skos:altLabel xml:lang="en">99314</skos:altLabel>
<skos:broader xml:lang="en">99301</skos:broader>
<dct:created rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2013-01-01</dct:created>
<dct:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2013-01-01</dct:modified>
<skos:inScheme rdf:resource="http://purl.org/m4m"/>
</rdf:Description>
It turns out that both of these concepts have an incorrect skos:broader
declaration of strings, instead of properly specifying the broader concept as an rdf:resource
. In other words, the declarations should read:
<skos:broader rdf:resource="http://purl.org/m4m/99301"/>
I made this modification and uploaded another new version of the ontology to our staging environment. With this modification, indexing and CSV generation complete successfully.
The latest version of METABUS (submission ID 11) fails to index. Reproducible with the following command on the production parsing box:
Full stack trace: