deleteStatements: Delete matching statements

Description Usage Arguments Value Examples

View source: R/statement_funcs.R

Description

Delete statements (triples) by matching against their components. All parameters are optional – when none are given, every statement in the store is deleted. The patterns to match come in pairs for subject, predicate, object, and graph. When given, they should be specified in N-triples notation.

Usage

1
2
deleteStatements(repository, subj = NULL, pred = NULL, obj = NULL,
  context = NULL)

Arguments

repository

Object of type repository specifying server details and repository to work on.

subj

valid url

pred

valid url

obj

valid url

context

context of triple

Value

Return: successful push or not

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
service = createService("localhost","user","password")
rep = repository(catalog(service,"root"),"test")
subj = '<www.test.com/tmp#person>'
pred = '<www.test.com/tmp#hasItem>'
obj= '<www.test.com/tmp#sword>'
deleteStatements(rep,
subj = subj,pred = pred,obj = obj)

## End(Not run)

baasman/allegRo documentation built on June 4, 2017, 12:11 a.m.