Package org.jrdf.query.answer.json

Examples of org.jrdf.query.answer.json.SparqlSelectJsonWriter


        final Iterator<TypeValue[]> typeValues = answer.columnValuesIterator();
        final long maxRows = answer.numberOfTuples();
        if (APPLICATION_SPARQL_XML.equals(getMediaType())) {
            return new SparqlSelectXmlWriter(writer, variableNames, typeValues, maxRows);
        } else if (APPLICATION_SPARQL_JSON.equals(getMediaType())) {
            return new SparqlSelectJsonWriter(writer, new String[0], variableNames, typeValues, maxRows);
        } else {
            throw new RuntimeException("Unknown media type: " + getMediaType());
        }
    }
View Full Code Here

TOP

Related Classes of org.jrdf.query.answer.json.SparqlSelectJsonWriter

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.