function toNode(x) {
	//TODO: better way to identify an URI
	return typeof x == "string"
		? x.startsWith("http")
			? rdf.namedNode(x)
			: rdf.blankNode(x)
		: x;
}
// Cast some value or node to a node
Cast some value or node to a node
Cast some value or node to a node
function toNode(x) {
	return typeof x == "string"
		? x.startsWith("http")
			? rdf.namedNode(x)
			: rdf.blankNode(x)
		: x;
}
function toNode ( x ) { return typeof x == "string" ? x . startsWith ( "http" ) ? rdf . namedNode ( x ) : rdf . blankNode ( x ) : x ; }
Cast some value or node to a node
Cast some value or node to a node
//TODO: better way to identify an URI