docs: function rdfToJs (node) {
    let value
    const rdfVal = node.value
    const datatype = node.datatype
    const throwError = () => {
      throw new Error(
        `Cannot parse rdf type/value to JS value.  Given value [${rdfVal}] of type [${datatype}].`
      )
    }
    if (datatype) {
      const XMLSchema = 'http://www.w3.org/2001/XMLSchema#'
      switch (datatype.value) {
        case `${XMLSchema}boolean`:
          if (rdfVal === '1') {
            value = true
          } else if (rdfVal === '0') {
            value = false
          } else {
            throwError()
          }
          break
        case `${XMLSchema}dateTime`:
          // Format of date string can be found at: http://books.xmlschemata.org/relaxng/ch19-77049.html
          value = new Date(rdfVal)
          break
        case `${XMLSchema}decimal`:
        case `${XMLSchema}double`:
          value = Number.parseFloat(rdfVal)
          break
        case `${XMLSchema}integer`:
          value = Number.parseInt(rdfVal)
          break
        case 'http://www.w3.org/1999/02/22-rdf-syntax-ns#langString':
        case `${XMLSchema}string`:
        default:
          value = rdfVal
          break
      }
    } else {
      // Assume string if there's no provided datatype
      value = rdfVal
    }
    return value
  }