getTermType | R Documentation |
After a Statement object has been created, this method can be used to determine the RDF type ("uri", "literal", "blank") that has been assigned to the specified RDF term, i.e. "subject", "predicate", "object".
getTermType(.Object, term)
## S4 method for signature 'Statement,character'
getTermType(.Object, term)
.Object |
a Statement object |
term |
the RDF term for which the type will be returned |
world <- new("World")
subject <- new("Node", blank="_:myid1", world)
predicate <- new("Node", uri="http://www.example.com/isa", world)
object <- new("Node", literal="thing", world)
stmt <- new("Statement", world, subject, predicate, object, world)
termType <- getTermType(stmt, "predicate")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.