* @return Parsed Node
* @throws RiotException Thrown if a valid node cannot be parsed
*/
public static Node parseNode(String nodeString, PrefixMap pmap)
{
Tokenizer tokenizer = TokenizerFactory.makeTokenizerString(nodeString) ;
if ( ! tokenizer.hasNext() )
throw new RiotException("Empty RDF term") ;
Token token = tokenizer.next() ;
Node node = token.asNode(pmap) ;
if ( node == null )
throw new RiotException("Bad RDF Term: "+nodeString) ;
if ( tokenizer.hasNext() )
throw new RiotException("Trailing characters in string: "+nodeString) ;
if ( node.isURI() )
{
// Lightly test for bad URIs.
String x = node.getURI() ;