Code Monkey home page Code Monkey logo

Comments (2)

cboettig avatar cboettig commented on June 3, 2024

Consider adding support for listOf XMLInternalNode elements to the <metadata> element. Currently this can be accomplished very crudely:

rdfa <- '<subject about="http://some.namespace#1838" xmlns:o="http:/oboe-core#">
             <meta property="o:entity" content="Air" datatype="xsd:string"/>
             <meta property="o:characteristic" content="Temperature" datatype="xsd:string"/>
             <meta property="o:unit" content="Celsius" datatype="xsd:string"/>
            </subject>'
eml_write(dat, additionalMetadata = new("additionalMetadata", metadata = rdfa))

from eml.

cboettig avatar cboettig commented on June 3, 2024

additionalMetadata now takes only XMLInternalElementNode class content. The above example becomes:

require(XML)
rdfa <- newXMLNode("subject", 
                        attrs=c(about="#1838"), 
                        namespaceDefinitions = c(o="http:/oboe-core#"), 
                        .children = list(
             newXMLNode("meta", attrs = c(property="o:entity", content="Air", datatype="xsd:string")),
             newXMLNode("meta", attrs = c(property="o:characteristic", content="Temperature", datatype="xsd:string")),
             newXMLNode("meta", attrs = c(property="o:unit", content="Celsius", datatype="xsd:string"))
            ))

eml <- eml(dat, creator="Carl Boettiger <[email protected]>", additionalMetadata = new("additionalMetadata", metadata = rdfa))

from eml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.