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

Same-as and profile reuse with different naming conventions #12

Open
fosdev opened this issue Nov 4, 2013 · 7 comments
Open

Same-as and profile reuse with different naming conventions #12

fosdev opened this issue Nov 4, 2013 · 7 comments

Comments

@fosdev
Copy link
Contributor

fosdev commented Nov 4, 2013

I think, as @leonardr has mentioned in discussion, there is a need for some same-as convention, particularly if ALPS defines vocabularies vs. solely consumes external vocabularies.

Also, I think some guidelines are probably warranted around what should be done for profile re-use, etc, when using different naming conventions, e.g. profile in camelCase, responses in snake_case and vice versa. So, a rubyist would want snake_case and a java programmer wants camelCase but they are the same thing.

Would one put a parameter or something in the href or an element in ALPS to define the naming convention so that a machine can match attributes appropriately?

@mamund
Copy link
Member

mamund commented Nov 5, 2013

I think names in ALPS documents should be treated as case insensitive. That means clients and servers can make whatever mappings they wish AND that the following would be illegal in an ALPS document

<descriptor id="myName" ... />
<descriptor id="myname" ... />

@mamund
Copy link
Member

mamund commented Nov 5, 2013

@leonardr

wanna take a shot at this one?

@ghost ghost assigned leonardr Nov 5, 2013
@fosdev
Copy link
Contributor Author

fosdev commented Nov 6, 2013

Would that imply that we should also treat snake case in like fashion (i.e. strip out _) so that all the following are illegal because they are redundant:

<descriptor id="myName" ... />
<descriptor id="myname" ... />
<descriptor id="my_name" ... />

Not sure how we would specify that.

@mamund
Copy link
Member

mamund commented Nov 6, 2013

no.

These are unique:

  • my-name
  • my_name
  • myname

These are not:

  • myname
  • MynAmE
  • mYnaMe

@fosdev
Copy link
Contributor Author

fosdev commented Mar 14, 2014

So, when we get around to this, could we make the argument that the way we specify same as is to use the IANA link rel 'related' in a link and then point to the other profile thing and punt that one out of ALPS?

However, I think we need to add the case insensitivity clarification still.

@mamund
Copy link
Member

mamund commented Mar 15, 2014

i wonder how (if at all) schema.org and ActivityStreams approaches this?

@fosrias
Copy link
Contributor

fosrias commented Sep 19, 2020

@mamund should we just close this and take this up in the other thread?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants