code: protected OntModel getGraph() {
  
          // Use HTTP protocol if possible
          if (this.sparqlServiceEndpoint != null) {
              return ModelFactory.createOntologyModel(this.modelSpec, datasetAccessor.getModel());
          } else {
              return this.getGraphSparqlQuery();
          }
      }
docs: Gets the default model of a Dataset
  
  @return