pchampin / sophia_rs

Sophia: a Rust toolkit for RDF and Linked Data
Other
210 stars 23 forks source link

Option to allow duplicated rdf:ID values #166

Closed jamesamcl closed 2 months ago

jamesamcl commented 2 months ago

I am trying to load a large RDF file from UniProt using Sophia, but it fails with the error:

SourceError(RdfXmlError { kind: Other("http://purl.uniprot.org/uniprot/#_3D5AA7A276B6E5CD_up.name_uORF has already been used as rdf:ID value") })

The RDF is actually invalid as it uses the same rdf:IDfor two property elements. However with rapper I can force it to load by disabling this option:

checkRdfID RDF/XML parser checks rdf:ID values for duplicates (boolean)

Would it be at all possible to implement a similar option in Sophia so I can force it to load? I already contacted the UniProt team and they have no plans to fix this unfortunately.

jamesamcl commented 2 months ago

Moved to the Rio tracker https://github.com/oxigraph/rio/issues/141