Constructor function for metadata nodes
meta(
property = NULL,
content = NULL,
rel = NULL,
href = NULL,
datatype = NULL,
id = NULL,
type = NULL,
children = list()
)
specify the ontological definition together with it's namespace, e.g. dc:title
content of the metadata field
Ontological definition of the reference provided in href
A link to some reference
optional RDFa field
optional id element (otherwise id will be automatically generated).
optional xsi:type. If not given, will use either "LiteralMeta" or "ResourceMeta" as determined by the presence of either a property or a href value.
Optional element containing any valid XML block (XMLInternalElementNode class, see the XML package for details).
User must either provide property+content or rel+href. Mixing these will result in potential garbage. The datatype attribute will be detected automatically from the class of the content argument. Maps from R class to schema datatypes are as follows: character - xs:string, Date - xs:date, integer - xs:integer, numeric - xs:decimal, logical - xs:boolean
nexml_write
meta(content="example", property="dc:title")
Run the code above in your browser using DataLab