Use a switch + enum for the different types of RDF nodes