Package org.restlet.ext.rdf

Examples of org.restlet.ext.rdf.RdfRepresentation


     * @return The FOAF representation of a user.
     */
    protected Representation getFoafRepresentation(User user, Reference userRef) {
        Graph graph = new Graph();
        addFoaf(graph, user, userRef);
        return new RdfRepresentation(graph, MediaType.TEXT_XML);
    }
View Full Code Here


     */
    protected Representation getFoafRepresentation(Contact contact,
            Reference contactRef) {
        Graph graph = new Graph();
        addFoaf(graph, contact, contactRef);
        return new RdfRepresentation(graph, MediaType.TEXT_XML);
    }
View Full Code Here

                        + " _:x33 <http://www.rdf.com> 12. ",
                MediaType.TEXT_RDF_N3);

        // File file = new File("/bnf.n3");
        // rep = new FileRepresentation(file.getPath(), MediaType.TEXT_PLAIN);
        Representation n3Rep = new RdfRepresentation(rep);
        n3Rep.write(System.out);
    }
View Full Code Here

TOP

Related Classes of org.restlet.ext.rdf.RdfRepresentation

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.