Publish the DFC business vocabulary as a separated library #19
lecoqlibre
started this conversation in
Ideas
Replies: 1 comment
|
Hm, I wonder if we achieve the same by using only prefixes within the connector and the context is doing this mapping. You've been doing that in the latest ruby connector already. I'm not keen on adding another dependency. But providing the vocabulary on its own may have a use for others. For us, the current connector solves the problem of mapping code to DFC types and we don't need the additional library. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Recently I published @datafoodconsortium/vocab-business on NPM.
This TypeScript library contains the URL of all the predicates and classes of the DFC's ontology like
Address,affiliatedTo, etc.This way, we can replace the hard coded (generated) URL of each predicate and classe by its corresponding element of the library. For instance, instead of writing:
We could write:
This offers some advantages:
This would require to maintain one more library but like the other generators we should set up GitHub actions to deploy it automatically.
I wrote a dedicated generator, see PR #18.
I propose we do the same for all programming languages.
Any thoughts @RaggedStaff @mkllnk?
All reactions