Package org.restlet.ext.rdf

Examples of org.restlet.ext.rdf.Graph


     * @param userRef
     *            Its URI.
     * @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


     *            Its URI.
     * @return The FOAF representation of a contact.
     */
    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

TOP

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

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.