ropensci / datapack

An R package to handle data packages
https://docs.ropensci.org/datapack
44 stars 9 forks source link

insertRelationship doesn't allow NULL for object, subject (to specify "anonymous" blank node) #19

Closed gothub closed 9 years ago

gothub commented 9 years ago

A NULL value can be specified for subject, object in both Statement and Node in the redland package to create blank nodes for which redland will assign a unique node id. Update insertRelationship to support this.

gothub commented 9 years ago

insertRelationship now accepts NULL values for arguments 'subjectID' and 'objectIDs', which will cause a type of 'blank' to be assigned and a unique blank node identifier to be created, for example:

  insertRelationship(dp, subjectID=NULL, objectIDs="thing1", predicate="http://www.myns.org/hadThing")

fixed in commit ddfb5915739b0ed654e45da33e24ac33881da94f