parseRDF reads a file containing an RDF model in RDF/XML format and initializes a ResourceMap based on this content.
parseRDF(x, rdf, ...)# S4 method for ResourceMap
parseRDF(
x,
rdf,
asText = FALSE,
name = "rdfxml",
mimeType = "application/rdf+xml",
...
)
ResourceMap
A file or character value containing a resource map that will be parsed into the ResourceMap object
Additional parameters (not yet used).
A logical value. If TRUE, then the 'rdf' parameter is a character vector, if FALSE then it is the name of a file to read.
The name of the RDF xml parser, the default is "rdfxml".
A character value containing the RDF format type. The default is "application/rdf+xml".
x the ResourceMap containing the parsed RDF/XML content
This method resets the slot ResourceMap@world so any previously stored triples are discarded, allowing for a clean model object in which to parse the new RDF content into. It is assumed that the content is a valid ORE resource map therefor no validation checks specific to the OAI-ORE content model are performed.