Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action Metadata Example #2

Closed
wants to merge 1 commit into from

Conversation

Ryun1
Copy link

@Ryun1 Ryun1 commented Aug 2, 2023

Hey Pi,

I started learning about json-ld and wanted to start making some mock data so we can start building tooling. So I created this mock action example.

Thought this may help😎.

@Ryun1
Copy link
Author

Ryun1 commented Aug 3, 2023

Cross tagging cardano-foundation#556.

@Quantumplation
Copy link
Owner

Ooo, fantastic, thank you :)

I think there's a way to specify that you're importing all of the definitions from a file in the @context, rather than importing each one explicitly.

FWIW Sundae Labs has been offered a grant to build a Rust client library for dealing with this governance metadata; just wanted to make sure we aren't duplicating effort there!

@Ryun1
Copy link
Author

Ryun1 commented Aug 4, 2023

Im glad to help.

I think there's a way to specify that you're importing all

I had assumed so, but I couldn't figure it out, Im sure there is also other obvious errors.

FWIW Sundae Labs has been offered a grant to build a Rust client library for dealing with this governance metadata; just wanted to make sure we aren't duplicating effort there!

Yup I am aware, looking forward to seeing that. I mainly started this so that I have something to show people when I talk about about a metadata anchors.

"paymentAddress": "https://github.com/cardano-foundation/CIPs/blob/master/CIP-0100/common-properties.jsonld#payment-address",
"displayName": "https://github.com/cardano-foundation/CIPs/blob/master/CIP-0100/common-properties.jsonld#displayName",
"DID": "https://github.com/cardano-foundation/CIPs/blob/master/CIP-0100/common-properties.jsonld#DID",
"language": "https://datahub.io/core/language-codes/r/0.html",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like json-ld has native understanding of BCP47 language codes: https://www.w3.org/ns/json-ld#language

It also has support for providing multiple translations for any field:

https://www.w3.org/TR/json-ld11/#language-indexing

I may update the draft with these in mind.

@Ryun1 Ryun1 closed this Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants