Package org.apache.stanbol.entityhub.yard.sesame

Examples of org.apache.stanbol.entityhub.yard.sesame.SesameYardConfig


    private static SailRepository repo;
    private static SesameYard yard;
   
    @BeforeClass
    public static final void initYard() throws RepositoryException{
        SesameYardConfig config = new SesameYardConfig("testYardId");
        config.setName("Sesame Yard Test");
        config.setDescription("The Sesame Yard instance used to execute the Unit Tests defined for the Yard Interface");
        repo = new SailRepository(new MemoryStore());
        repo.initialize();
        yard = new SesameYard(repo,config);
    }
View Full Code Here


    public static final void initYard() throws RepositoryException{
        repo.initialize();
        //create the graphs in Clerezza
       
        //init the ClerezzaYards for the created Clerezza graphs
        SesameYardConfig yard1config = new SesameYardConfig("context 1 yard");
        yard1config.setName("Yard over context 1");
        yard1config.setContextEnabled(true);
        yard1config.setContexts(new String[]{CONTEXT1.stringValue()});
        yard1 = new SesameYard(repo,yard1config);

        SesameYardConfig yard2config = new SesameYardConfig("context 2 yard");
        yard2config.setName("Yard over context 2");
        yard2config.setContextEnabled(true);
        yard2config.setContexts(new String[]{CONTEXT2.stringValue()});
        yard2 = new SesameYard(repo,yard2config);

        SesameYardConfig unionYardConfig = new SesameYardConfig("union yard");
        unionYardConfig.setName("Union Yard");
        unionYard = new SesameYard(repo, unionYardConfig);
       
        yards = Arrays.asList(yard1,yard2,unionYard);
       
        //add the test data (to the Repository to also test pre-existing data)
View Full Code Here

TOP

Related Classes of org.apache.stanbol.entityhub.yard.sesame.SesameYardConfig

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.