Examples of toJsonLdProfile()


Examples of org.apache.stanbol.factstore.model.FactSchema.toJsonLdProfile()

                    .entity("Could not find fact schema " + factSchemaURN).type(MediaType.TEXT_PLAIN);
            CorsHelper.addCORSOrigin(servletContext, rb, requestHeaders);
            return rb.build();
        }

        ResponseBuilder rb = Response.ok(factSchema.toJsonLdProfile().toString(), MediaType.APPLICATION_JSON);
        CorsHelper.addCORSOrigin(servletContext, rb, requestHeaders);
        return rb.build();
    }

    @GET
View Full Code Here

Examples of org.apache.stanbol.factstore.model.FactSchema.toJsonLdProfile()

        }

        Map<String, Object> model = new HashMap<String,Object>();
        model.put("it", this);
        model.put("factSchemaURN", factSchemaURN);
        model.put("factschema", factSchema.toJsonLdProfile().toString(2));
       
        ResponseBuilder rb = Response.ok(new Viewable("factschema", model), MediaType.TEXT_HTML);
        CorsHelper.addCORSOrigin(servletContext, rb, requestHeaders);
        return rb.build();
    }
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.