o-development / ldo

Monorepo for Linked Data Objects (ldo)
MIT License
23 stars 5 forks source link

Allow passing custom JSON-LD context mappings to @ldo/cli #47

Open elf-pavlik opened 1 month ago

elf-pavlik commented 1 month ago

Property names used by shapes can be inconsistent; Wikidata doesn't even use human-readable property names.

It would be nice to provide a JSON-LD context to the build step that only includes mapping between predicate IRI and JSON property names.

I think Soukai makes for an excellent DX by supporting that. LDO could offer a comparable feature, leaving all the heavy lifting still based on shapes.

elf-pavlik commented 1 month ago

I noticed some people using properties from Wiki data, for example, in https://shaperepo.com/shapes?id=https%3A%2F%2Fwww.wikidata.org%2Fwiki%2FEntitySchema%3AE100

Unless custom mapping is provided, LDO would generate pretty unusable getters P1082 etc.