Examples of TcManagerClient


Examples of org.apache.stanbol.cmsadapter.core.helper.TcManagerClient

        this.namingStrategy = new DefaultNamingStrategy(accessor, session, this.ontModel);
        this.ontologyResourceHelper = new OntologyResourceHelper(this);
    }

    private void storeOntology() {
        TcManagerClient tcManagerClient = new TcManagerClient(tcManager);
        tcManagerClient.saveOntology(ontModel, ontologyURI);
    }
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.core.helper.TcManagerClient

            cmsGraph.addAll(generatedGraph);
        }

        MGraph persistentGraph = null;
        if (store) {
            TcManagerClient tcManagerClient = new TcManagerClient(tcManager);
            boolean graphExists = tcManagerClient.modelExists(baseURI);
            if (update) {
                if (graphExists) {
                    log.info("Getting the existing triple collection having base URI: {}", baseURI);
                    persistentGraph = tcManager.getMGraph(new UriRef(baseURI));
                } else {
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.core.helper.TcManagerClient

                                    @FormParam("objectTypeDefinitions") ObjectTypeDefinitions objectTypeDefinitions,
                                    @Context HttpHeaders headers) {

        List<ObjectTypeDefinition> createdObjectList = objectTypeDefinitions.getObjectTypeDefinition();

        TcManagerClient tcManagerClient = new TcManagerClient(tcManager);
        OntModel model = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM,
            tcManagerClient.getModel(ontologyURI));
        MappingConfiguration conf = new MappingConfigurationImpl();
        conf.setOntModel(model);
        conf.setOntologyURI(ontologyURI);
        conf.setObjects((List<Object>) (List<?>) createdObjectList);
        conf.setAdapterMode(AdapterMode.STRICT_OFFLINE);
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.core.helper.TcManagerClient

    public Response updateClassificationObjects(@PathParam("ontologyURI") String ontologyURI,
                                                @FormParam("objectTypeDefinitions") ObjectTypeDefinitions objectTypeDefinitions,
                                                @Context HttpHeaders headers) {

        List<ObjectTypeDefinition> createdObjectList = objectTypeDefinitions.getObjectTypeDefinition();
        TcManagerClient tcManagerClient = new TcManagerClient(tcManager);
        OntModel model = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM,
            tcManagerClient.getModel(ontologyURI));
        MappingConfiguration conf = new MappingConfigurationImpl();
        conf.setOntModel(model);
        conf.setOntologyURI(ontologyURI);
        conf.setObjects((List<Object>) (List<?>) createdObjectList);
        conf.setAdapterMode(AdapterMode.STRICT_OFFLINE);
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.core.helper.TcManagerClient

    public Response deleteClassificationObjects(@PathParam("ontologyURI") String ontologyURI,
                                                @FormParam("objectTypeDefinitions") ObjectTypeDefinitions objectTypeDefinitions,
                                                @Context HttpHeaders headers) {

        List<ObjectTypeDefinition> createdObjectList = objectTypeDefinitions.getObjectTypeDefinition();
        TcManagerClient tcManagerClient = new TcManagerClient(tcManager);
        OntModel model = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM,
            tcManagerClient.getModel(ontologyURI));
        MappingConfiguration conf = new MappingConfigurationImpl();
        conf.setOntModel(model);
        conf.setOntologyURI(ontologyURI);
        conf.setObjects((List<Object>) (List<?>) createdObjectList);
        conf.setAdapterMode(AdapterMode.STRICT_OFFLINE);
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.