Package eu.admire.registry.pe.rdf

Examples of eu.admire.registry.pe.rdf.SimpleRDFProcessingElementRegistry


  }

  public void setUp() throws Exception {
    super.setUp();

    registry = new SimpleRDFProcessingElementRegistry(
        "http://regulo.dia.fi.upm.es:8081/dai/services/");
    createProcessingElement();
//    registry.registerProcessingElement(descriptor, "PE");
  }
View Full Code Here


  }

  public void setUp() throws Exception {
    super.setUp();

    registry = new SimpleRDFProcessingElementRegistry(
        "http://regulo.dia.fi.upm.es:8081/dai/services/");
    createProcessingElement();
//    registry.registerProcessingElement(descriptor, "PE");
  }
View Full Code Here

  RDFRegistry registry;
  EntryDescriptor mEntryDescriptor;

  @Before
  public void getRegistry() throws URISyntaxException {
    registry = new SimpleRDFProcessingElementRegistry(
        "http://localhost:8081/dai/services/");

    String originalName = "TestUpdateDummy03";
    URI uri;
    uri = new URI("http://dummy.location/repository");
View Full Code Here

  RDFRegistry registry;
  EntryDescriptor mEntryDescriptor;

  @Before
  public void getRegistry() throws URISyntaxException {
    registry = new SimpleRDFProcessingElementRegistry(
        "http://localhost:8081/dai/services/");
    String originalName = "TestUpdateDummy03";
    URI uri;
    uri = new URI("http://dummy.location/repository");
    mEntryDescriptor = new EntryDescriptor(originalName);
View Full Code Here

  RDFRegistry registry;
  EntryDescriptor mEntryDescriptor;

  @Before
  public void getRegistry() throws URISyntaxException {
    registry = new SimpleRDFProcessingElementRegistry(
        "http://localhost:8081/dai/services/");

    String originalName = "TestUpdateDummy03";
    URI uri;
    uri = new URI("http://dummy.location/repository");
View Full Code Here

    {
        SimpleDispelEngine engine = new SimpleDispelEngine();

        RDFAdmireRegistry registry = new RDFAdmireRegistry();
       
        SimpleRDFProcessingElementRegistry simpleRdfRegistry = new SimpleRDFProcessingElementRegistry(REGISTRY_URL_TEST2);
        registry.setProcessingElementRegistry(simpleRdfRegistry);
        registry.setAdmireRepository(new InMemoryAdmireRepository());
        engine.setDispelOptimiser(new SimpleDispelOptimiser());
        engine.setAdmireRegistry(registry);

        String dispelCode = "package admire.dataAccess.relational \n" +
        "{\n" +
        "    Type DAS13 is PE(<Connection expression; Connection locator resource> => <Connection data>);\n" +
        "    Type DAS14 is PE(<Connection expression; Connection locator resource> => <Connection data>);\n" +
        "    register DAS13, DAS14;\n" +
        "}\n";

        DispelEngineResult res = engine.peekDispel(dispelCode);
        // register objects
        for (Entry<String, RegisteredObject> register : res.getRegistration().entrySet())
        {
            String name = register.getKey();
            DispelObject object = null;
            try
            {
                object = new DispelObject(name, register.getValue().getObject());
                ProcessingElementDescriptor pe = registry.getPEDescriptor(name, object);
                HashMap<String, String> map = new HashMap<String, String>();
                map.put("@version", "1781112");
                pe.setMetadata(map);
                simpleRdfRegistry.registerProcessingElement(pe, "PE");
                System.out.println("PE : "  + name + " registered");
            }
            catch (RegistrationFailedException e)
            {
              e.printStackTrace();
View Full Code Here

        }
       
    }
    public void testShowInitialisePERegistry() throws Exception
    {
    SimpleRDFProcessingElementRegistry registry = new SimpleRDFProcessingElementRegistry(
        REGISTRY_URL_TEST2);
    //http://138.100.11.152:8082/dai/services
    List<ProcessingElementDescriptor> peList = registry
        .lookupProcessingElementList();
   
    int i=0;
    for (ProcessingElementDescriptor pe : peList) {
      i++;
View Full Code Here

    {
        SimpleDispelEngine engine = new SimpleDispelEngine();

        RDFAdmireRegistry registry = new RDFAdmireRegistry();
        registry.setProcessingElementRegistry(
                new SimpleRDFProcessingElementRegistry(REGISTRY_URL_TEST2));
        registry.setAdmireRepository(new InMemoryAdmireRepository());
        engine.setDispelOptimiser(new SimpleDispelOptimiser());
        engine.setAdmireRegistry(registry);

        String dispelCode = "package admire.dataAccess.relational \n" +
View Full Code Here

    {
        SimpleDispelEngine engine = new SimpleDispelEngine();

        RDFAdmireRegistry registry = new RDFAdmireRegistry();
        registry.setProcessingElementRegistry(
                new SimpleRDFProcessingElementRegistry(REGISTRY_URL));
        registry.setFunctionRegistry(
                new SimpleRDFFunctionRegistry(REGISTRY_URL));
        registry.setAdmireRepository(new InMemoryAdmireRepository());
        engine.setDispelOptimiser(new SimpleDispelOptimiser());
        engine.setAdmireRegistry(registry);
View Full Code Here

  SimpleRDFProcessingElementRegistry registry;

  @Before
  public void getRegistry()
  {
    registry = new SimpleRDFProcessingElementRegistry("http://138.100.11.124:8081/dai/services/");
  }
View Full Code Here

TOP

Related Classes of eu.admire.registry.pe.rdf.SimpleRDFProcessingElementRegistry

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.