Package io.lumify.web.clientapi.model

Examples of io.lumify.web.clientapi.model.ClientApiOntology


        }
    }

    @Override
    public ClientApiOntology getClientApiObject() {
        ClientApiOntology o = this.clientApiCache.getIfPresent("clientApi");
        if (o != null) {
            return o;
        }
        o = super.getClientApiObject();
        this.clientApiCache.put("clientApi", o);
View Full Code Here


        this.ontologyRepository = ontologyRepository;
    }

    @Override
    public void handle(HttpServletRequest request, HttpServletResponse response, HandlerChain chain) throws Exception {
        ClientApiOntology result = ontologyRepository.getClientApiObject();

        String json = ObjectMapperFactory.getInstance().writeValueAsString(result);
        String eTag = generateETag(json.getBytes());
        if (testEtagHeaders(request, response, eTag)) {
            return;
View Full Code Here

        return null;
    }

    @Override
    public ClientApiOntology getClientApiObject() {
        ClientApiOntology ontology = new ClientApiOntology();

        Iterable<Concept> concepts = getConceptsWithProperties();
        ontology.addAllConcepts(Concept.toClientApiConcepts(concepts));

        Iterable<OntologyProperty> properties = getProperties();
        ontology.addAllProperties(OntologyProperty.toClientApiProperties(properties));

        Iterable<Relationship> relationships = getRelationships();
        ontology.addAllRelationships(Relationship.toClientApiRelationships(relationships));

        return ontology;
    }
View Full Code Here

        evaluateFile("libs/r.js");
        evaluateFile("loader.js");
    }

    private String getOntologyJson() throws Exception {
        ClientApiOntology result = ontologyRepository.getClientApiObject();
        return ObjectMapperFactory.getInstance().writeValueAsString(result);
    }
View Full Code Here

TOP

Related Classes of io.lumify.web.clientapi.model.ClientApiOntology

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.