S7 class to contain an RDF triple.
triple-class.Rdtriple is an S7 class contain RDF triples that make up a SPARQL query.
A triple expression describes a relationship in three parts, known as
subject–predicate–object expression. In the data class, this is reflected
by its three slots.
Arguments
- subject
Character vector. Length one or two. First position gives subject name, second (optional, defaultNULL) gives prefix.- predicate
Character scalar. Length one or two. First position gives predicate name, second (optional, defaultNULL) gives prefix.- object
Character scalar. Length one or two. First position gives object name, second (optional, defaultNULL) gives prefix.
Slots
subjectCharacter vector. Length one or two. First position gives subject name, second (optional, defaultNULL) gives prefix.predicateCharacter scalar. Length one or two. First position gives predicate name, second (optional, defaultNULL) gives prefix.objectCharacter scalar. Length one or two. First position gives object name, second (optional, defaultNULL) gives prefix.