Will there be other field other than id? #445
-
Issue type:
Question:Can I just use Where can I found a document, I've searched through http://rdf.js.org/#source-interface but still don't know where to look at... |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
All result bindings are RDFJS terms according to this spec: http://rdf.js.org/data-model-spec/ The raw value will typically be retrievable using |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation. I tried to log it out: result.bindingsStream.on('data', data => {
console.log(data.get('?s'), data.get('?p'), data.get('?o'));
}); got
So I was confused. |
Beta Was this translation helpful? Give feedback.
-
So what returned from |
Beta Was this translation helpful? Give feedback.
-
No, this will actually never be Variable. This will either be NamedNode, Literal or BlankNode, depending on the types of RDF terms that you are querying. |
Beta Was this translation helpful? Give feedback.
All result bindings are RDFJS terms according to this spec: http://rdf.js.org/data-model-spec/
The raw value will typically be retrievable using
.value
. Definitely do not use.id
, as this is an internal field of N3.js, which will not be available if you use different parsers/stores.