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

Convert the schema to an rdf representation #80

Open
lu-zero opened this issue Nov 10, 2023 · 2 comments
Open

Convert the schema to an rdf representation #80

lu-zero opened this issue Nov 10, 2023 · 2 comments

Comments

@lu-zero
Copy link

lu-zero commented Nov 10, 2023

Right now, that I know, the schema exists only as a human-readable document, would be nice to have it in a machine parsable format as well (and derive the html from it)

@benfrancis
Copy link
Member

benfrancis commented Nov 10, 2023

Hi @lu-zero,

This has been discussed before.

Since WebThings parses Thing Descriptions as plain JSON and doesn't use an RDF parser anywhere, we never bothered to create an RDF-based representation because we had no use for it. However, I'd be happy to host one if someone wants to create it? Sebastian previously offered to have a student create one but I don't think it happened.

You'll note from the linked issue that unfortunately GitHub Pages (which is currently used to host the webthings.io website) doesn't support hosting both an HTML representation and JSON-LD representation of a resource at the same URL, or HTTP content negotiation. Apparently a common solution to that problem is to host the JSON-LD representation at a versioned URL like https://webthings.io/schemas/v1 and I'd be happy to do that. Unfortunately that wouldn't help with existing implementations using the current HTML URL.

@lu-zero
Copy link
Author

lu-zero commented Nov 10, 2023

I wanted to track its development in a separate issue since I like a lot the Webthings schemas and I'd see it used more widely.

(And I agree that the RDF representation is less needed in practice since most processors parse the additional terms only in their canonical form)

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