You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How should materialize behave when the member has a link to other triples that are contained in the RDF.Quad[] input?
For example how should <http://example.org/> <http://purl.org/dc/terms/title> "test" . be handled when using the following input:
At the moment, while not really crashing, the materialized quad for that triple would look in the code like this: quad(undefined, namedNode("http://purl.org/dc/terms/title"), literal("\"test\""), graph("http://example.org/")).
. This call would result into undefined since "http://example.org/" is not a version object.
Proposed solution
My proposal would be to copy the triple <http://example.org/> <http://purl.org/dc/terms/title> "test" . entirely and add to the output in the materialized quads.
An example where this behaviour would be desired is the following: saving SSN or SOSA observations as a member of an LDES.
Problem
How should
materialize
behave when the member has a link to other triples that are contained in theRDF.Quad[]
input?For example how should
<http://example.org/> <http://purl.org/dc/terms/title> "test" .
be handled when using the following input:At the moment, while not really crashing, the materialized quad for that triple would look in the code like this:
quad(undefined, namedNode("http://purl.org/dc/terms/title"), literal("\"test\""), graph("http://example.org/"))
.This is due to
version-materialize-rdf.js/lib/materialize.ts
Line 61 in 2a28d04
"http://example.org/"
is not a version object.Proposed solution
My proposal would be to copy the triple
<http://example.org/> <http://purl.org/dc/terms/title> "test" .
entirely and add to the output in the materialized quads.An example where this behaviour would be desired is the following: saving SSN or SOSA observations as a member of an LDES.
When there are complex results, like the iPhone Barometer
The blank nodes would then also be added to the materialization.
If this proposed solution is okay for you @pietercolpaert and @ddvlanck, then I will gladly make a PR request to implement this new behaviour.
The text was updated successfully, but these errors were encountered: