Package eu.admire.registry.test.TestUtils

Examples of eu.admire.registry.test.TestUtils.MockOutputPipe


    {

        String sparqlQuery = "SELECT * WHERE {?s ?p ?o}";
        BlockReader input = new LiteralBlockReader(new SimpleLiteral(
                sparqlQuery));
        MockOutputPipe output = new MockOutputPipe(new Object[] {});

        mActivity.addInput("expression", input);
        mActivity.addOutput("rdfdata", output);

        mActivity.process();
View Full Code Here


                + "SELECT ?x ?y "
                + "WHERE {     ?x dmi:hasStructuralType ?y .  "
                + "}";
        BlockReader input = new LiteralBlockReader(new SimpleLiteral(
                sparqlQuery));
        MockOutputPipe output = new MockOutputPipe(new Object[] {});

        mActivity.addInput("expression", input);
        mActivity.addOutput("rdfdata", output);

        mActivity.process();
View Full Code Here

    String ouputPE = NAMESPACE + "SQLQueryStatement";
    String inputPE = NAMESPACE + "SQLStatement";

    BlockReader input1 = new LiteralBlockReader(new SimpleLiteral(ouputPE));
    BlockReader input2 = new LiteralBlockReader(new SimpleLiteral(inputPE));
    MockOutputPipe output = new MockOutputPipe(new Object[] {});

    mActivity.addInput("ontologyElement1", input1);
    mActivity.addInput("ontologyElement2", input2);
    mActivity.addOutput("inferenceResults", output);

    mActivity.process();
    System.out.println(output.getActualBlocks());
    if (output.getActualBlocks().size() > 0) {
      Assert.assertTrue(output.getActualBlocks().contains("subClassOf"));
    } else {
      Assert.assertFalse(true);
    }

  }
View Full Code Here

    String ouputPE = NAMESPACE + "SystemElement";
    String inputPE = NAMESPACE + "DbElement";

    BlockReader input1 = new LiteralBlockReader(new SimpleLiteral(ouputPE));
    BlockReader input2 = new LiteralBlockReader(new SimpleLiteral(inputPE));
    MockOutputPipe output = new MockOutputPipe(new Object[] {});

    mActivity.addInput("ontologyElement1", input1);
    mActivity.addInput("ontologyElement2", input2);
    mActivity.addOutput("inferenceResults", output);

    mActivity.process();
    System.out.println(output.getActualBlocks());
    if (output.getActualBlocks().size() > 0) {
      Assert.assertTrue(output.getActualBlocks().contains("equivalent"));
    } else {
      Assert.assertFalse(true);
    }

  }
View Full Code Here

    String ouputPE = NAMESPACE + "SQLStatement";
    String inputPE = NAMESPACE + "XQueryStatement";

    BlockReader input1 = new LiteralBlockReader(new SimpleLiteral(ouputPE));
    BlockReader input2 = new LiteralBlockReader(new SimpleLiteral(inputPE));
    MockOutputPipe output = new MockOutputPipe(new Object[] {});

    mActivity.addInput("ontologyElement1", input1);
    mActivity.addInput("ontologyElement2", input2);
    mActivity.addOutput("inferenceResults", output);

    mActivity.process();
    System.out.println(output.getActualBlocks());
    if (output.getActualBlocks().size() > 0) {
      Assert.assertTrue(output.getActualBlocks().contains("disjoint"));
    } else {
      Assert.assertFalse(true);
    }
  }
View Full Code Here

    String ouputPE = NAMESPACE + "FahrenheitDegrees";
    String inputPE = NAMESPACE + "CelsiusDegrees";

    BlockReader input1 = new LiteralBlockReader(new SimpleLiteral(ouputPE));
    BlockReader input2 = new LiteralBlockReader(new SimpleLiteral(inputPE));
    MockOutputPipe output = new MockOutputPipe(new Object[] {});

    mActivity.addInput("ontologyElement1", input1);
    mActivity.addInput("ontologyElement2", input2);
    mActivity.addOutput("inferenceResults", output);

    mActivity.process();
    System.out.println(output.getActualBlocks());
    if (output.getActualBlocks().size() > 0) {
      Assert.assertTrue(output.getActualBlocks().contains("convertible"));
    } else {
      Assert.assertFalse(true);
    }
  }
View Full Code Here

TOP

Related Classes of eu.admire.registry.test.TestUtils.MockOutputPipe

Copyright © 2018 www.massapicom. 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.