Package com.franz.agbase

Examples of com.franz.agbase.RDFN3Serializer


        if ( true ) {
          res = AgUtils.getResultInN3(log, tripleIter);
        }
        else {
          // AG serializers do not work.
          AllegroGraphSerializer serializer = new RDFN3Serializer();
          serializer.setDestination(null); // ie., to string to be returned by run()
          Object resObj = serializer.run(tripleIter);
          res = String.valueOf(resObj);
        }
      }
      else if ( form.equalsIgnoreCase("nt") ) {
        queryResult.setContentType("text/plain");
        if ( true ) {
          res = AgUtils.getResultInNTriples(log, tripleIter);
        }
        else {
          // AG serializers do not work.
          AllegroGraphSerializer serializer = new NTriplesSerializer();
          serializer.setDestination(null); // ie., to string to be returned by run()
          Object resObj = serializer.run(tripleIter);
          res = String.valueOf(resObj);
        }
      }
      else if ( form.equalsIgnoreCase("csv") ) {
        queryResult.setContentType("text/plain");
View Full Code Here

TOP

Related Classes of com.franz.agbase.RDFN3Serializer

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.