oasis-tcs / odata-vocabularies

OASIS OData TC: Standard vocabularies for annotating OData services
https://oasis-tcs.github.io/odata-vocabularies/
Other
58 stars 45 forks source link

Display name vocabulary term #20

Open korygin opened 6 years ago

korygin commented 6 years ago

Hello,

Are there any plans to define a standard vocabulary term for adding display name annotations to CSDL schema elements, such as properties, parameters, etc.? This seems to be a common issue OData APIs often have to address.

Thanks,

Alex Korygin

ralfhandl commented 6 years ago

Hi Alex,

for API doumentation you can use Core.Description and Core.LongDescription.

Data visualization is a trickier topic, and depending on the concrete use cases the demand for annotations quickly diverges. Have a look at the SAP vocabularies SAP Common (which defines "Label", "QuickInfo", and much more) and SAP UI (which defines "Chart", "KPI", and also much more πŸ˜„) to see how complex this can quickly get, and whether you can find much beyond "Label" that could be standardized across multiple companies and software products.

Thanks Ralf

korygin commented 6 years ago

Thanks, Ralf. I know very well how complex this can get. We also have our own vocabularies and even extended protocols defined on top of OData. Our vocabulary terms vary from primitive to complex types, their values can be static or resolved dynamically from the payload at run-time. One of the things that we found consistent across multiple products though is the requirement to provide the display names / labels as well as the ability to logically group properties for displaying in UI widgets such as property grids. So I thought I would ask about the former since it appears to be a simpler case. :)

ralfhandl commented 6 years ago

Deleted two duplicate posts - should have just hidden them - still learning...

ralfhandl commented 6 years ago

Yes, Common.Label and UI.FieldGroup were among the first terms we added. Yet even grouping properties isn't enough: just one grouping level, or subgroups? Just grid layout, or more closely grouped properties with group-specific arrangement? And so on.

That leaves the "label" / "display name" / "title" as the only candidate for a standard term...

korygin commented 6 years ago

Thanks again. It may be possible to define a vocabulary term that would support both: flat and hierarchical property groups, it doesn't have to be as primitive. Some of our products actually do have to integrate with SAP. It would be nice if the client could use a consistent set of vocabulary terms to build its representation regardless of what service it connects to. After all, the majority if not all UI clients have a very common set of components for data representation: forms, tables / grids, property groups, info maps, etc. So I thought it could be worth to at least give it a try starting with something small like display name / label and go from there. I feel I am steering into a philosophical type of discussion here... 😊

Anyways, it looks like what you are saying is that it is very hard if not impossible to define a common set of vocabulary terms for display purposes because the requirements across organizations and products are vastly different. Am I interpreting your answer correctly?

Cheers,

Alex


From: Ralf Handl notifications@github.com Sent: Tuesday, September 18, 2018 11:09 AM To: oasis-tcs/odata-vocabularies Cc: Alex Korygin; Author Subject: Re: [oasis-tcs/odata-vocabularies] Display name vocabulary term (#20)

Yes, Common.Label and UI.FieldGroup were among the first terms we added. Yet even grouping properties isn't enough: just one grouping level, or subgroups? Just grid layout, or more closely grouped properties with group-specific arrangement? And so on.

That leaves the "label" / "display name" / "title" as the only candidate for a standard term...

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/oasis-tcs/odata-vocabularies/issues/20#issuecomment-422452821, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ANbNQodbjWcIAem8OmP0Cdj9iIY8GZLYks5ucRq0gaJpZM4Wsept.

ralfhandl commented 6 years ago

Hi Alex,

Yes, it would be a hard journey to get to an agreed and useful display/UI vocabulary. And it would be useful for others if we invest the time. After all we managed to get a standard Capabilities vocabulary going.

As you have your display vocabulary and have access to SAP's UI vocabulary you could go ahead and try to extract a common subset. If that works out, we can discuss on how to get to a standard vocabulary.

Would that work for you?

Thanks in advance Ralf

korygin commented 6 years ago

Hi Ralf,

Sure, I can take a pass at it. It’s timely actually because we were planning the next sprint today and I added a story for myself. 😊 I’ll be back with the list.

Thanks!

Alex

On Sep 19, 2018, at 11:46, Ralf Handl notifications@github.com<mailto:notifications@github.com> wrote:

Hi Alex,

Yes, it would be a hard journey to get to an agreed and useful display/UI vocabulary. And it would be useful for others if we invest the time. After all we managed to get a standard Capabilities vocabulary going.

As you have your display vocabulary and have access to SAP's UI vocabularyhttps://wiki.scn.sap.com/wiki/display/EmTech/OData+4.0+Vocabularies+-+SAP+UI you could go ahead and try to extract a common subset. If that works out, we can discuss on how to get to a standard vocabulary.

Would that work for you?

Thanks in advance Ralf

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/oasis-tcs/odata-vocabularies/issues/20#issuecomment-422854077, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ANbNQtA4nuYF9Y0op0YOAcJdgPfjE_W-ks5ucmbhgaJpZM4Wsept.

korygin commented 6 years ago

Hi Ralf,

Here is the first pass. Please let me know if you have questions.

Thanks!

Alex

Common vocabulary (com.sap.vocabularies.Common.v1)

We also have Title vocabulary term for the representation of a single OData resource instance on a graphical UI such as info map. Its value is the path to a property that provides a value that must be displayed on a graphical object, i.e. order number, inventory tag, document name, etc.

UI vocabulary (com.sap.vocabularies.UI.v1)


From: Ralf Handl notifications@github.com Sent: Wednesday, September 19, 2018 10:46 AM To: oasis-tcs/odata-vocabularies Cc: Alex Korygin; Author Subject: Re: [oasis-tcs/odata-vocabularies] Display name vocabulary term (#20)

Hi Alex,

Yes, it would be a hard journey to get to an agreed and useful display/UI vocabulary. And it would be useful for others if we invest the time. After all we managed to get a standard Capabilities vocabulary going.

As you have your display vocabulary and have access to SAP's UI vocabularyhttps://wiki.scn.sap.com/wiki/display/EmTech/OData+4.0+Vocabularies+-+SAP+UI you could go ahead and try to extract a common subset. If that works out, we can discuss on how to get to a standard vocabulary.

Would that work for you?

Thanks in advance Ralf

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/oasis-tcs/odata-vocabularies/issues/20#issuecomment-422854077, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ANbNQtA4nuYF9Y0op0YOAcJdgPfjE_W-ks5ucmbhgaJpZM4Wsept.

ralfhandl commented 6 years ago

Hi Alex,

That seems to be a good starting point. Below some explanations on why we did what we did.

Looking forward to your comments Ralf

Remarks

korygin commented 6 years ago

Hi Ralf,

Thanks!

Alex

korygin commented 5 years ago

Hi Ralf,

Have there been any progress on the display vocabulary? Is there anything else I can help with to get this thing off the ground?

Thanks,

Alex

ralfhandl commented 5 years ago

Hi Alex,

Sorry, we are currently busy with finalizing OData Version 4.01, so no progress on this topic.

Thanks Ralf