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

Future plans? #14

Open
bolerio opened this issue Dec 3, 2022 · 4 comments
Open

Future plans? #14

bolerio opened this issue Dec 3, 2022 · 4 comments

Comments

@bolerio
Copy link

bolerio commented Dec 3, 2022

Seems liket his package implements the DatasetCoreFactory and DatasetCore interfaces from https://rdf.js.org/dataset-spec/#datasetfactory-interface. Any plans to implement the others?

Or do you know of any other efforts working on those APIs? Happy to see some community effort for creating JS APIs for RDF, and looking for something like this, but seems like the various projects are not very active.

@bergos
Copy link
Contributor

bergos commented Dec 3, 2022

The other interfaces are experimental, and based on the latest discussion related to those interfaces, one can expect, if there is a final version, it will contain breaking changes. That's why there are no plans to add those interfaces to this package at this point.

Maybe you want to give RDF-Ext a try. It contains a DatasetCore compatible Dataset plus some additional methods: https://rdf-ext.org/api/rdf-ext.html#datasetext

@bolerio
Copy link
Author

bolerio commented Dec 5, 2022

Thanks @bergos . I guess I misunderstood the stage of development RDFJS as a spec. Wishful thinking...looking for a stable (standard or well-established) API for working with RDF in JavaScript. The RDFJS spec gave me that impression. Thanks for clarifying!

@bergos
Copy link
Contributor

bergos commented Dec 6, 2022

The RDF/JS specs are stable and standard for most RDF-related JS packages. Only the Dataset interface (not DatasetCore!) is experimental. Please follow the link and scroll a little bit up. There you can find the note.

I would highly recommend using the RDF/JS interfaces. The packages in rdfjs-base implement just the basic interfaces. It's up to you to stay with the interfaces defined in the specs and be able to switch to other data-model or dataset factories or use RDF-Ext, which implements the RDF/JS interfaces but adds some custom methods which will make your life a little bit easier for application development. Either way, you can use existing parsers and serializers.

@bolerio
Copy link
Author

bolerio commented Dec 7, 2022

Thanks @bergos I'm definitely staying with RDF/JS. I just thought my life would already be a bit easier. Even for RDF-Ext, I feel there needs to be a bit more & clearer documentation so that one can quickly figure out what can be done with these APIs and how to do it. Maybe once I get more familiar, I could contribute some guide, more from an outsider perspective.

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