Skip to content

Allow alternative to content-negotiation via url property on Labels #70

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

Open
ThisIsMissEm opened this issue Mar 21, 2025 · 3 comments
Open

Comments

@ThisIsMissEm
Copy link
Contributor

Currently we require content-negotiation for labels, such that human readable and machine readable are on the same IRI.

We could support non-content-neg by using the url property from Objects in AS2, but this would come with a client complication of "how do I discover the JSON-LD when I've been given a html page URI instead of the label IRI.

@bumblefudge
Copy link

bumblefudge commented Mar 24, 2025

a html page URI instead of the label IRI.

Do you mean like each label sharing the same exact URL, i.e.
"url"="https://example.com/moderation.html"
versus each label having a specific IRI like
"url"="https://example.com/moderation.html#hate-speech"
? or do you mean where url is being used for something other than human-readable definitions of arbitrary keys? I'm not sure I understand the client complication here

@ThisIsMissEm
Copy link
Contributor Author

Yeah, so rather than doing content-neg on the id / @id of the Label, you follow the url property instead. The logic here is that legacy systems should be able to support being a label provider (e.g., a CMS like wordpress), where content-neg may be difficult to implement. So having a path for them to provide human-readable labels makes sense.

@ThisIsMissEm
Copy link
Contributor Author

But then given that human readable IRI, I'd need to specify support for back-tracking to the json-ld, perhaps using something like:

<link href='https://fires.example/labels/123' rel='alternate' type='application/ld+json'>

I also still need to work out the "profile" thing in json-ld, such that I could include a profile there.

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

2 participants