Codota Logo
com.hp.hpl.jena.reasoner
Code IndexAdd Codota to your IDE (free)

How to use com.hp.hpl.jena.reasoner

Best Java code snippets using com.hp.hpl.jena.reasoner (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
public Reasoner create( Resource configuration )
  {
  return rf.create( configuration ).bindSchema( schema );
  }
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Create a continuation object which is a cascade of two
 * continuation objects.
 * @param first the first Graph/Finder to try
 * @param second the second Graph/Finder to try
 */
public static Finder cascade(Finder first, Finder second) {
  if (first == null || (first instanceof FGraph && ((FGraph)first).getGraph() == null)) return second;
  if (second == null || (second instanceof FGraph && ((FGraph)second).getGraph() == null)) return first;
  return new Cascade(first, second);
}

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

/**
 * Create a continuation object which is a cascade of three
 * continuation objects.
 * @param first the first Graph/Finder to try
 * @param second the second Graph/Finder to try
 * @param third the third Graph/Finder to try
 */
public static Finder cascade(Finder first, Finder second, Finder third) {
  return new Cascade(first, cascade(second, third));
}

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

/**
 * Search the combination of data and deductions graphs for the given triple pattern.
 * This may different from the normal find operation in the base of hybrid reasoners
 * where we are side-stepping the backward deduction step.
 */
@Override
public ExtendedIterator<Triple> findDataMatches(Node subject, Node predicate, Node object) {
  return dataFind.find(new TriplePattern(subject, predicate, object));
}

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

/**
 * Returns an iterator over Triples.
 * This implementation assumes that the underlying findWithContinuation
 * will have also consulted the raw data.
 */
@Override
public ExtendedIterator<Triple> graphBaseFind(Node subject, Node property, Node object) {
  return findWithContinuation(new TriplePattern(subject, property, object), fdata);
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Return the schema graph, if any, bound into this inference graph.
 */
@Override
public Graph getSchemaGraph() {
  if (tbox == null) return null;
  if (tbox instanceof FGraph) {
    return ((FGraph)tbox).getGraph();
  } else {
    throw new ReasonerException("Transitive reasoner got into an illegal state");
  }
}

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

/**
 * Test the consistency of the bound data. This normally tests
 * the validity of the bound instance data against the bound
 * schema data.
 * @return a ValidityReport structure
 */
@Override
public ValidityReport validate() {
  checkOpen();
  return new StandardValidityReport();
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Return the Jena Graph Capabilties that the inference graphs generated
 * by this reasoner are expected to conform to.
 */
@Override
public Capabilities getGraphCapabilities() {
  if (capabilities == null) {
    capabilities = new BaseInfGraph.InfFindSafeCapabilities();
  }
  return capabilities;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
  Answer the InfCapabilities of this InfGraph.
 */
@Override
public Capabilities getCapabilities() {
  if (capabilities == null) {
    return getReasoner().getGraphCapabilities();
  } else {
    return capabilities;
  }
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Basic pattern lookup interface.
 * This implementation assumes that the underlying findWithContinuation
 * will have also consulted the raw data.
 * @param pattern a TriplePattern to be matched against the data
 * @return a ExtendedIterator over all Triples in the data set
 *  that match the pattern
 */
public ExtendedIterator<Triple> find(TriplePattern pattern) {
  checkOpen();
  return findWithContinuation(pattern, fdata);
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Return the Jena Graph Capabilties that the inference graphs generated
 * by this reasoner are expected to conform to.
 */
@Override
public Capabilities getGraphCapabilities() {
  if (capabilities == null) {
    capabilities = new BaseInfGraph.InfCapabilities();
  }
  return capabilities;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Constructor
 * @param data the raw data file to be augmented with entailments
 * @param reasoner the engine, with associated tbox data, whose find interface
 * can be used to extract all entailments from the data.
 */
public BaseInfGraph(Graph data, Reasoner reasoner) {
  super( );
  this.fdata = new FGraph( data );
  this.reasoner = reasoner;
  }
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Printable string
 */
@Override
public String toString() {
  return simplePrintString(subject) + 
      " @" + simplePrintString(predicate) + 
      " " + simplePrintString(object);
}

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

/**
   Answer the URI of the underlying ReasonerFactory. 
*/
@Override
public String getURI()
  { return factory.getURI(); }
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Constructor - builds a pattern from three nodes,
 * use Node_RuleVariables as variables, use a variable
 * with an empty name as a wildcard, can also use null
 * as a wildcard.
 */
public TriplePattern(Node subject, Node predicate, Node object) {
  this.subject   = normalize(subject);
  this.predicate = normalize(predicate);
  this.object    = normalize(object);
}

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

/**
 * Return the Jena Graph Capabilties that the inference graphs generated
 * by this reasoner are expected to conform to.
 */
@Override
public Capabilities getGraphCapabilities() {
  if (capabilities == null) {
    capabilities = new BaseInfGraph.InfFindSafeCapabilities();
  }
  return capabilities;
}
  
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Create a continuation object which is a cascade of four
 * continuation objects.
 * @param first the first Graph/Finder to try
 * @param second the second Graph/Finder to try
 * @param third the third Graph/Finder to try
 * @param fourth the third Graph/Finder to try
 */
public static Finder cascade(Finder first, Finder second, Finder third, Finder fourth) {
  return new Cascade(first, cascade(second, cascade(third, fourth)));
}

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

/**
 * Return the Jena Graph Capabilties that the inference graphs generated
 * by this reasoner are expected to conform to.
 */
@Override
public Capabilities getGraphCapabilities() {
  if (capabilities == null) {
    capabilities = new BaseInfGraph.InfCapabilities();
  }
  return capabilities;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Return the Jena Graph Capabilties that the inference graphs generated
 * by this reasoner are expected to conform to.
 */
@Override
public Capabilities getGraphCapabilities() {
  if (capabilities == null) {
    capabilities = new BaseInfGraph.InfFindSafeCapabilities();
  }
  return capabilities;
}

origin: net.sourceforge.owlapi/pellet-jena-ignazio1977

protected PelletReasoner( Graph schema, Model reasonerCapabilities ) {
  this.schema = schema;
  this.reasonerCapabilities = reasonerCapabilities;
  
  graphCapabilities = new InfFindSafeCapabilities();
 }
 
com.hp.hpl.jena.reasoner

Most used classes

  • Reasoner
  • ReasonerRegistry
  • GenericRuleReasoner
  • TriplePattern
  • Rule
  • Functor,
  • Node_RuleVariable,
  • ValidityReport,
  • BaseInfGraph$InfFindSafeCapabilities,
  • BaseInfGraph,
  • FGraph,
  • Finder,
  • StandardValidityReport,
  • BuiltinRegistry,
  • FBRuleReasoner,
  • TransitiveGraphCache,
  • BaseInfGraph$InfBulkUpdateHandler,
  • BaseInfGraph$InfCapabilities,
  • BaseInfGraph$InfTransactionHandler
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now