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

Add "description" field to type and property classes #93

Open
wetneb opened this issue Jul 27, 2022 · 3 comments
Open

Add "description" field to type and property classes #93

wetneb opened this issue Jul 27, 2022 · 3 comments

Comments

@wetneb
Copy link
Member

wetneb commented Jul 27, 2022

In the "Core Concepts" section we describe the fields of entities, properties and types. While we mention that entities can have descriptions, we do not have descriptions for properties and types. But this is not consistent with the schemas for the suggest responses, which let services return descriptions for such elements.

@wetneb
Copy link
Member Author

wetneb commented Jul 29, 2022

It would also be good to expose those fields in all JSON schemas where those classes are serialized: for instances, types can be represented in the manifest, in reconciliation candidates and in type suggest responses: it would be useful to have a uniform serialization of types in all those places. This could probably be achieved by defining the JSON schema for types only once, and referring to it in those places (just like we refer to the JSON schema for authentication in the manifest).

@thadguidry
Copy link
Contributor

thadguidry commented Jul 29, 2022

That uniform serialization for types you mention reminds me of CBOR standard and how it's used in CBOR-LD to reduce binary size for compression and representation in QR encoding for instance. They use key mapping replacement essentially. "person":1 "organization":2 etc.

@thadguidry
Copy link
Contributor

One UI representation of schema (properties that are query-able) I noticed from https://malloydata.dev in the post https://x.com/lloydtabb/status/1698717988491571495?s=46&t=CHG6wKavtxaRwUBGiCJ8wA

image

I find it an interesting way to present schema: types, hierarchy, query-able domains.

This is the kind of representation views that make suggest services easier for users. We should ensure that we have specs that allow services to richly expose schema mechanisms in a consistent and standardized way for all clients to absorb and display as they wish.

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

No branches or pull requests

2 participants