Package com.hp.hpl.jena.query

Examples of com.hp.hpl.jena.query.DataSource


    if( PelletSparqlDawgTester.CLASSIFY_KB_IN_ADVANCE ) {
      ((PelletInfGraph) (model.getGraph())).getKB().classify();
    }

    DataSource dataset = DatasetFactory.create( model );

    Collection<String> namedGraphURIs = useQueryGraphs
      ? query.getNamedGraphURIs()
      : this.namedGraphURIs;

    for( String graphURI : namedGraphURIs ) {
      model = ModelFactory.createOntologyModel( PelletReasonerFactory.THE_SPEC );
      FileManager.get().readModel( model, graphURI );
      dataset.addNamedModel( graphURI, model );
    }

    return dataset;
  }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.query.DataSource

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.