Package org.apache.stanbol.ontologymanager.servicesapi.ontology

Examples of org.apache.stanbol.ontologymanager.servicesapi.ontology.Multiplexer


        if (ontologyProvider instanceof OntologyCollectorListener) session
                .addOntologyCollectorListener((OntologyCollectorListener) ontologyProvider);
        if (ontologyProvider instanceof SessionListener) session
                .addSessionListener((SessionListener) ontologyProvider);

        Multiplexer multiplexer = ontologyProvider.getOntologyNetworkDescriptor();
        session.addOntologyCollectorListener(multiplexer);
        session.addSessionListener(multiplexer);

        ConnectivityPolicy policy;
        try {
View Full Code Here


        spaceFactory.setDefaultNamespace(iri);

        // Add listeners
        // if (ontologyProvider instanceof ScopeEventListener) factory
        // .addScopeEventListener((ScopeEventListener) ontologyProvider);
        Multiplexer multiplexer = ontologyProvider.getOntologyNetworkDescriptor();
        this.addScopeRegistrationListener(multiplexer);
        this.addScopeEventListener(multiplexer);
    }
View Full Code Here

        //TODO use rdfViewable instead of Vieable to make separation of
        //presentation and application logic cleaner
        return AccessController.doPrivileged(new PrivilegedAction<Integer>() {
            @Override
            public Integer run() {
                Multiplexer desc = new MGraphMultiplexer(ontologyProvider.getMetaGraph(MGraph.class));
                return desc.getSize(ontologyId);
            }
        });

    }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.ontologymanager.servicesapi.ontology.Multiplexer

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.