Skip to content

toRdf and fromRdf algorithms need WebIDL API methods defined #27

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

Closed
gkellogg opened this issue Aug 24, 2018 · 5 comments
Closed

toRdf and fromRdf algorithms need WebIDL API methods defined #27

gkellogg opened this issue Aug 24, 2018 · 5 comments

Comments

@gkellogg
Copy link
Member

No description provided.

@azaroth42
Copy link
Contributor

Is this editorial, or does it need discussion?

@gkellogg
Copy link
Member Author

Editorial, but we may discuss things in the PR review.

gkellogg added a commit that referenced this issue Sep 10, 2018
…or RdfDataset, RdfGraph, RdfTriple, and RdfLiteral.

Fixes #27.
@BigBlueHat
Copy link
Member

Mostly as an aside: the RDF.js CG is bringing in lots of code and working it toward conformance with the Interface Specification: RDF Representation. There's no existing conflict (that I've seen) between this WebIDL and their JS API, but it might serve both communities well if we keep each other appraised of any overlap (if/when it occurs).

Thanks for your work on this, @gkellogg!

@gkellogg
Copy link
Member Author

@BigBlueHat thanks for the reference, I was aware of this, but had forgotten the details.

Technically, we should probably be using interfaces like RDF source, which the RDF Representation describes using the Source interface.

The Stream interface would seem to be better modeled using the WebIDL iterable construct, which is the primary thing we depend on for Convert to JSON-LD from RDF.

Interestingly, they don't really have the equivalent of an add method, which might be done in Sink, or through assigning to Quad.graph. However, they could consider adding it to the Sink interface.

But, the RDF Representation spec, I think, is more designed to describe actual JavaScript implementations, rather than an abstract model for dealing with RDF concepts.

@BigBlueHat
Copy link
Member

But, the RDF Representation spec, I think, is more designed to describe actual JavaScript implementations, rather than an abstract model for dealing with RDF concepts.

Quite likely. The spec itself has also set dormant for quite awhile. I believe folks in the CG are hoping to revisit that work once they've consolidated some of the implementing code projects into the CG's org. But given that it will only ever (by design) be JS-centric, you're probably quite right. Something to keep an eye on (and people to work with), but probably not a reason to change course per se.

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

3 participants