Comments (4)
The Fetch API returns a Response
object, the body
of which is a Streams API ReadableStream
, not a Node ReadableStream
. It would be nice to be able to pipe that stream to an N3.StreamParser
, rather than fiddling with converting it to a Node stream first (since I'm bundling for the browser, not Node).
from n3.js.
There are no plans at the moment.
What's your use case?
from n3.js.
Have you come across rdf-dereference
? It uses N3 under the hood for parsing and also handles all of this stream fetching stuff https://www.npmjs.com/package/rdf-dereference.
It is built using Comunica so this is how it is going between Web and Node streams under the hood https://github.com/comunica/comunica/blob/b86d55278c455b56f9fd003254fd56616f9e7087/packages/actor-dereference-http/lib/ActorDereferenceHttpBase.ts#L106.
from n3.js.
Thanks, it looks like toNodeReadable has an example of what I needed. rdf-dereference
looks useful as well.
from n3.js.
Related Issues (20)
- Remove `src/` export
- Any way to recover from unescaped double quotes? HOT 2
- N3.js is too lenient on string escapes
- Question: Parsing RDF Blank Node shorthand HOT 5
- Mark `readQuads` as deprecated
- Incorrect parsing of empty Notation3 graph terms HOT 1
- Incorrect parsing of a list containing a Notation3 graph term HOT 1
- Can this write blank nodes with multiple predicate/object pairs? HOT 4
- README error on use of store.add() HOT 1
- N3 writer doesn't prefix correctly HOT 3
- `removeMatches` removes quads from `Store` asynchronously HOT 4
- @base set by baseIRI is not shown in the prefixes part of the document
- Store Token position in the produces quads HOT 1
- How to wait for parsing to be done? HOT 2
- How to use streams to write quads (without a ReadStream) HOT 2
- Usage of `import` as method names HOT 3
- Circular imports HOT 4
- Triples containing Variable result in invalid turtle HOT 3
- CURIE like s:a/b/c not supported HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from n3.js.