if (input instanceof ModelSet) {
importModelSet(result, (ModelSet) input);
} else if (input instanceof Model) {
importModel(result, (Model) input);
} else {
throw new JsonLdError(Error.INVALID_INPUT,
"RDF2Go parser expects a Model or ModelSet object as input");
}
return result;
}