linkml-runtime
linkml-runtime copied to clipboard
feat: add language and datatype support when converting rdflib.terms.…
Proposal to address https://github.com/linkml/linkml/issues/2475
Without this, it's impossible to convert a Python Instance of a LinkML gen-python class to RDF without loosing language and datatype information.
of course, this PR is broken if we consider that only rdf:langString can have a language tag. https://www.w3.org/TR/rdf12-concepts/#section-Graph-Literal
However, it would still fix the missing datatype tag during conversion.
Any thoughts ?
@turbomam @ptgolden - if you have a moment, can you please review this RDFlib linkml PR?
@ticapix I have moved the work for this PR from the contributor fork to the linkml-runtime branch https://github.com/linkml/linkml-runtime/pull/new/add_rdf_lang_type_support . These branches will be lifted over in the merge to the mono-repo so you won't lose you work. You will need to open a new PR against the linkml monorepo after the move. I'd prefer to get this in but if we can't please open a new PR when you resume work. Thanks!
@ticapix I have moved the work on this PR into the repo branch https://github.com/linkml/linkml-runtime/tree/add_rdf_lang_type_support . If you would like to continue this work please re-open the PR on the mono-repo after the merge from that branch. We'll lift it over for you so it should take less effort.