Tabnine Logo
DatasetImpl.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.jena.sparql.core.DatasetImpl
constructor

Best Java code snippets using org.apache.jena.sparql.core.DatasetImpl.<init> (Showing top 6 results out of 315)

origin: apache/jena

/** Wrap an existing DatasetGraph */
public static Dataset wrap(DatasetGraph datasetGraph) {
  return new DatasetImpl(datasetGraph) ;
}

origin: apache/jena

/**
 * Create a dataset, starting with the model argument as the default graph of the
 * dataset. Named graphs can be added. 
 * <p> 
 * Use {@link #wrap(Model)} to put dataset functionality around a single
 * model when named graphs will not be added.
 * 
 * @param model The model for the default graph
 * @return a dataset with the given model as the default graph
 */
public static Dataset create(Model model) {
  Objects.requireNonNull(model, "Default model must be provided") ;
  return new DatasetImpl(model);
}
origin: apache/jena

/**
 * @param dataset Dataset to clone structure from.
 * @return a dataset: clone the dataset structure of named graphs, and share the graphs themselves.
 * @deprecated This operation may be removed.
 */
@Deprecated
public static Dataset create(Dataset dataset) {
  Objects.requireNonNull(dataset, "Clone dataset is null") ;
  return new DatasetImpl(dataset);
}
origin: ch.epfl.bluebrain.nexus.org.topbraid/shacl

/**
 * Specifies a Dataset that shall be used for query execution.
 * Returns a new DatasetImpl by default but may be overloaded in subclasses.
 * For example, TopBraid delegates this to the currently open Graphs.
 * @param defaultModel  the default Model of the Dataset
 * @return the Dataset
 */
public Dataset getDataset(Model defaultModel) {
  if(defaultModel != null) {
    return new DatasetImpl(defaultModel);
  }
  else {
    return new DatasetImpl(JenaUtil.createMemoryModel());
  }
}

origin: TopQuadrant/shacl

/**
 * Specifies a Dataset that shall be used for query execution.
 * Returns a new DatasetImpl by default but may be overloaded in subclasses.
 * For example, TopBraid delegates this to the currently open Graphs.
 * @param defaultModel  the default Model of the Dataset
 * @return the Dataset
 */
public Dataset getDataset(Model defaultModel) {
  if(defaultModel != null) {
    return new DatasetImpl(defaultModel);
  }
  else {
    return new DatasetImpl(JenaUtil.createMemoryModel());
  }
}

origin: io.github.luzzu/luzzu-annotations

/**
 * Creates quality metadata
 * 
 * @return Dataset with quality metadata which needs to be attached to the assessed dataset.
 * @throws MetadataException if there is no observation data calculated.
 */
public Dataset createQualityMetadata() throws MetadataException{
  Model defaultModel = ModelFactory.createDefaultModel();
  Dataset dataset = null;
  
  if (this.metadata.size() == 0) throw new MetadataException("No Metric Observations Recorded");
  
  defaultModel.add(qualityGraph, RDF.type, DAQ.QualityGraph);
  defaultModel.add(qualityGraph, CUBE.structure, DAQ.dsd);
  dataset = new DatasetImpl(defaultModel);
  dataset.addNamedModel(this.qualityGraph.getURI(), this.metadata);
  return dataset;
}

org.apache.jena.sparql.coreDatasetImpl<init>

Javadoc

Create a Dataset with a copy of the structure of another one, while sharing the graphs themselves.

Popular methods of DatasetImpl

  • wrap
  • checkGraphName
  • checkTransactional
  • graph2model
  • supportsTransactions

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Collectors (java.util.stream)
  • JTextField (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now