# NOT RUN {
## define the LaBB-CAT URL
labbcat.url <- "https://labbcat.canterbury.ac.nz/demo/"
## Get all transcripts whose names start with "BR"
transcripts <- getMatchingGraphIds(labbcat.url, "/^BR.+/.test(id)")
## Get the first twenty transcripts in the "QB" corpus
transcripts <- getMatchingGraphIds(
labbcat.url, "first('corpus').label = 'QB'", 20, 0)
## Get the second transcript that has "QB247_Jacqui" as a speaker
transcripts <- getMatchingGraphIds(
labbcat.url, "labels('participant').includes('QB247_Jacqui')", 1, 1)
## Get all transcripts in the QB corpus whose names start with "BR"
## in word-count order
transcripts <- getMatchingGraphIds(
labbcat.url, "first('corpus').label = 'QB' && /^BR.+/.test(id)",
order="first('transcript_word_count').label ASC")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab