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
The getNextResult() function has been removed from the redland R package. This function is used by the datapackgetTriples() function.
In order to remove this dependency, redland getResults() will be called and the resulting
rdf/xml XML document will be parsed.
Implementation Note: returning a CSV result and converting to a data.frame is way more convenient, but the conversion to CSV by the redland C library drops alot of the RDF typing information. For example, the RDF/XML version allows a program to distinguish between a RDF blank node and an RDF uri node, e.g.
Dependency on redland::getNextResult() removed in commit de4ad5a
The getTriples() function was tested via the test.ResourceMap.R unit test. Other tests included parsing large DataONE resource maps with getTriples() and comparing the difference between these triple sets (via output .csv files) betweeen datapack 1.3.1 and 1.3.2 versions.
The only difference was that for some reason the redland C library call used in redland::getResults() removes the leading _ in blank node names. It does this consistently, so the resulting RDF/XML files are valid.
The
getNextResult()
function has been removed from theredland
R package. This function is used by thedatapack
getTriples()
function.In order to remove this dependency, redland
getResults()
will be called and the resultingrdf/xml XML document will be parsed.
Implementation Note: returning a CSV result and converting to a data.frame is way more convenient, but the conversion to CSV by the redland C library drops alot of the RDF typing information. For example, the RDF/XML version allows a program to distinguish between a RDF blank node and an RDF uri node, e.g.
vs
Typing the nodes correctly has an effect on parsing and the output of the relationships.
The text was updated successfully, but these errors were encountered: