Tabnine Logo
InfModel.prepare
Code IndexAdd Tabnine to your IDE (free)

How to use
prepare
method
in
com.hp.hpl.jena.rdf.model.InfModel

Best Java code snippets using com.hp.hpl.jena.rdf.model.InfModel.prepare (Showing top 5 results out of 315)

origin: org.apache.stanbol/org.apache.stanbol.reasoners.jena

/**
 * Generic method to perform inferences
 */
@Override
public InfModel run(Model data) {
  log.debug(" run(Model data)");
  InfModel im = ModelFactory.createInfModel(this.reasoner, data);
  im.prepare();
  return im;
}
origin: apache/stanbol

/**
 * Generic method to perform inferences
 */
@Override
public InfModel run(Model data) {
  log.debug(" run(Model data)");
  InfModel im = ModelFactory.createInfModel(this.reasoner, data);
  im.prepare();
  return im;
}
origin: stackoverflow.com

 public class tryNoBuiltin {

  public static void main(String[] args) throws OWLOntologyStorageException,
  OWLOntologyCreationException, IOException  {

    //Create a configuration model
    Resource configuration = ModelFactory.createDefaultModel().createResource();
    configuration.addProperty(ReasonerVocabulary.PROPruleMode, "hybrid");

    MyReasonerFactory MyReas = new MyReasonerFactory();
    GenericRuleReasoner reasonerRULE = (GenericRuleReasoner)MyReas.create(configuration);

    Model modelRULE= FileManager.get().loadModel("./prova_rules_M_rdf.owl");
    InfModel infModelRULE = ModelFactory.createInfModel(reasonerRULE, modelRULE);
    infModelRULE.prepare();

    //write down the result in RDFXML form
    infModelRULE.write(System.out);
  }

}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

infModel.prepare();
infModel.setNsPrefixes(prefixes);
origin: apache/stanbol

infModel.prepare();
infModel.getDeductionsModel().write(System.out);
com.hp.hpl.jena.rdf.modelInfModelprepare

Javadoc

Perform any initial processing and caching. This call is optional. Most engines either have negligable set up work or will perform an implicit "prepare" if necessary. The call is provided for those occasions where substantial preparation work is possible (e.g. running a forward chaining rule system) and where an application might wish greater control over when this prepration is done rather than just leaving to be done at first query time.

Popular methods of InfModel

  • listStatements
    Find all the statements matching a pattern.Return an iterator over all the statements in a model tha
  • validate
    Test the consistency of the underlying data. This normally tests the validity of the bound instance
  • getDeductionsModel
    Returns a derivations model. The rule reasoners typically create a graph containing those triples ad
  • write
  • asStatement
  • contains
  • getDerivation
    Return the derivation of the given statement (which should be the result of some previous list opera
  • getGraph
  • getResource
  • remove
  • setNsPrefixes
  • setNsPrefixes

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JButton (javax.swing)
  • JCheckBox (javax.swing)
  • CodeWhisperer alternatives
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