Description Usage Arguments Value Examples
Add a triple to the repository. The subj, pred, and obj arguments must be supplied and are used to fill in the subject, predicate and object parts of the triple. The context argument is used to fill in the triple's graph but may be left off. In this case, the triple's graph will be the default graph of the repository.
The subj, pred, obj, and context (if supplied) arguments must all be in URI encoded N-Triples notation.
The service returns the triple-ID of the newly added triple.
1 2 | addStatement(repository, subj = NULL, pred = NULL, obj = NULL,
context = NULL)
|
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 |
Return: successful push or not
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>'
addStatement(rep,
subj = subj,pred = pred,obj = obj)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.