linkml-runtime icon indicating copy to clipboard operation
linkml-runtime copied to clipboard

feat: add language and datatype support when converting rdflib.terms.…

Open ticapix opened this issue 11 months ago • 4 comments

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.

ticapix avatar Jan 01 '25 22:01 ticapix

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 ?

ticapix avatar Jan 02 '25 09:01 ticapix

@turbomam @ptgolden - if you have a moment, can you please review this RDFlib linkml PR?

sierra-moxon avatar Aug 08 '25 16:08 sierra-moxon

@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!

amc-corey-cox avatar Oct 21 '25 16:10 amc-corey-cox

@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.

amc-corey-cox avatar Oct 27 '25 15:10 amc-corey-cox