Examples of PythonTransformationAsURIValidator


Examples of edu.isi.karma.transformation.tokenizer.PythonTransformationAsURIValidator

            if(comm != null){
              if(comm instanceof PythonTransformationCommand)
              {
                PythonTransformationCommand pyTransform = (PythonTransformationCommand) comm;
                String transformationCode = pyTransform.getTransformationCode();
                PythonTransformationAsURIValidator validator = new PythonTransformationAsURIValidator();
                isR2RMLCompatible = isR2RMLCompatible && validator.validate(transformationCode);
               
              }
              else
              {
                isR2RMLCompatible = false;
View Full Code Here

Examples of edu.isi.karma.transformation.tokenizer.PythonTransformationAsURIValidator

  private TemplateTermSet expandColumnTemplateTermForPyTransforms(
      String hNodeId, ColumnTemplateTerm cnTerm) {
    TemplateTermSet tts = null;
    String pythonCommand = worksheet.getMetadataContainer().getColumnMetadata().getColumnPython(hNodeId);
    List<PythonTransformationToken> tokens = PythonTransformationAsURITokenizer.tokenize(pythonCommand);
    PythonTransformationAsURIValidator validator = new PythonTransformationAsURIValidator();
    if(validator.validate(tokens))
    {
      tts = this.transformationToTemplateTermSet.translate(tokens, hNodeId);
    }
    else
    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.