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

Create streams examples #8

Open
bergos opened this issue Mar 21, 2016 · 6 comments
Open

Create streams examples #8

bergos opened this issue Mar 21, 2016 · 6 comments
Assignees

Comments

@bergos
Copy link
Member

bergos commented Mar 21, 2016

It would be easier to understand and discuss the stream interfaces PR if we would have some examples. Because the API may change during the discussion a wiki page would be the best place.

Streams Examples in the Wiki

@bergos bergos self-assigned this Mar 21, 2016
@pieroit
Copy link

pieroit commented Mar 22, 2016

Starting to understand, thanks.
So graph.write(stream) in the first example is the same as stream.pipe(graph)?

@elf-pavlik
Copy link
Member

@bergos I'll think of some examples, could you maybe just add one for serializer to match the parser one? This way we'll have a full round-trip

@elf-pavlik
Copy link
Member

Besides reading and writing to file system, we could add example of parsing from HTTP request and serializing for HTTP response. I can give it a shot next week if no one else does it before that.

@bergos
Copy link
Member Author

bergos commented Mar 25, 2017

I've updated the rdf-examples repository. They should be now up to date with the current spec. Also there are now more scenarios like HTTP requests with fetch and using the Store interface.

@elf-pavlik elf-pavlik transferred this issue from rdfjs/data-model-spec Feb 11, 2019
@elf-pavlik
Copy link
Member

@bergos what do you think about moving https://github.com/rdf-ext/rdf-examples to @rdfjs orga and slowly we could start transforming it into primer / playground?

@bergos
Copy link
Member Author

bergos commented Apr 16, 2019

@elf-pavlik now with the rdfjs Dataset interface it makes sense. As the rdf-ext interfaces sill provide some more methods than the rdfjs specs, I would like to keep it also in the rdf-ext org and remove examples covered in rdfjs.

Any proposal how to start? I think the structure could be also need a small cleanup. E.g. separate Node.js and Browser examples.

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

3 participants