Creates a basic graph pattern a subject with predicate-object pairs. The subject binding is interpolated directly, so it should be specified accordingly (e.g. as a variable "?uri" or a URI "<http://example.net>") The predicate is taken from the property's uri. The object is a variable binding made from the property's label. Unless the pattern is to be contained in an OPTIONAL clause, it is terminated with a "." character.

subpredobj_binding(subject, properties, optional = F)

Arguments

subject

A character vector of length 1 with the subject binding

properties

A list or data frame with vectors named uri and label

optional

Should the pattern be wrapped in an optional clause?

Value

a character vector of basic graph patterns