plazi / gg2rdf

A tool to transform golden gate XML to RDF turtle
MIT License
2 stars 1 forks source link

03/B1/82/03B18252FFFBFFA846FAFD0CFBC9D0C0.ttl cannot be added to Wikidata #22

Open andrawaag opened 2 months ago

andrawaag commented 2 months ago

While running the Wikidata bot, a ShEx validation error on 03/B1/82/03B18252FFFBFFA846FAFD0CFBC9D0C0.ttloccurred.

Reason Testing http://treatment.plazi.org/id/03B18252FFFBFFA846FAFD0CFBC9D0C0 against shape http://example.org/treatment

   No matching triples found for predicate trt:definesTaxonConcept

schema


PREFIX trt: <http://plazi.org/vocab/treatment#>
prefix fabio: <http://purl.org/spar/fabio/>
prefix : <http://example.org/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dwc: <http://rs.tdwg.org/dwc/terms/>
PREFIX dwcFP: <http://filteredpush.org/ontologies/oa/dwcFP#>

:treatment {
    rdf:type [trt:Treatment] ;
    trt:definesTaxonConcept @:name ;
    trt:publishedIn @:publication ;
}

:name {
    rdf:type [dwcFP:TaxonName dwcFP:TaxonConcept] ;
    trt:hasParentName @:name? ;
    dwc:rank xsd:string ;
}

:publication {
    rdf:type [fabio:JournalArticle] ;
} ```
nleanba commented 2 months ago

In this case, the treatment should actually define the taxonConcept, I am unsure why it doesn't

See also https://github.com/plazi/treatments-rdf/issues/13