Docmaps-Project / docmaps

Extensible protocol for document history metadata exchange, to enable trustworthy, rapid, open science, by and for preprint science communities.
MIT License
15 stars 1 forks source link

First support for Graph Decode of a docmap using json-ld #101

Closed ships closed 1 year ago

ships commented 1 year ago

Description

This PR, when finished, brings the initial structuring support that can convert an in-memory Triplestore of any kind into a structured Docmap.

Additional things that need to be resolved:

Related Issues

Tangentially related to #84 . But more related to the API server development, as this code will be used to convert SPARQL CONSTRUCT query results into typed objects.

Checklist

Additional Information

In general, we are currently (unnecessarily) presuming that this only works with codecs that have a type key, because under that assumption some DX is available that I currently prefer; however there is a good chance it ends up being useless anyway due to switch/case management regarding what type codec to use anyway.