subpredobj_binding: Create Basic Graph Pattern for subject binding labelled...

subpredobj_bindingR Documentation

Create Basic Graph Pattern for subject binding labelled properties

Description

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.

Usage

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


Swirrl/linked-data-frames documentation built on Sept. 14, 2022, 6:15 p.m.