getStatements: Get statements

Description Usage Arguments Value Examples

View source: R/statement_funcs.R

Description

Can specify any part of statement, and all matches will be returned. If no subject, predicate, or object supplied, all statements will be returned.

Usage

1
2
3
4
getStatements(repository, subj = NULL, pred = NULL, obj = NULL,
  context = NULL, infer = FALSE, limit = NULL, tripleIDs = FALSE,
  count = FALSE, returnType = c("data.table", "dataframe", "matrix",
  "list"), cleanUp = FALSE, convert = FALSE)

Arguments

repository

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

subj

Subject triple pattern you want to match - optional

pred

Predicate of triple pattern you want to match - optional

obj

Object of triple pattern you want to match - optional

context

Context of triple pattern you want to match - optional

infer

Specifies the kind of inference to use for this query. Defaults to FALSE, can also be 'rdfs++' or 'hasvalue'

limit

How many triples should be returned

tripleIDs

...

count

...

returnType

What type the return value should be. Best performance achieved with matrix.

cleanUp

Should the xml schemas be removed. Has to be true for converting to R types to work

convert

Convert variable to appropriate R type

Value

Triples based on the specified pattern

Examples

1
2
3
4
5
6
7
## Not run: 
service = createService("localhost","user","password")
rep = repository(catalog(service,"root"),"test")
getStatements(rep,
pred = '<http://test.org/pred>', limit = 10)

## End(Not run)

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