Tabnine Logo
org.apache.jena.reasoner
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.jena.reasoner

Best Java code snippets using org.apache.jena.reasoner (Showing top 20 results out of 315)

origin: apache/jena

/**
 * 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: apache/jena

/**
 * 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: apache/jena

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

@Override
public Reasoner create( Resource configuration )
  {
  return rf.create( configuration ).bindSchema( schema );
  }
origin: 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: apache/jena

/**
 * 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: apache/jena

/**
 * 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: apache/jena

/**
 * Add a new error report
 * @param error true if the report is an error, false if it is just a warning
 * @param type a string giving a reasoner-dependent classification for the report
 * @param description a textual description of the problem
 */
public void add(boolean error, String type, String description) {
  add(error, type, description, null);
}

origin: apache/jena

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

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

origin: 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.jena/jena-core

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

/**
 * 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.jena/jena-core

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

/**
 * 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));
}

org.apache.jena.reasoner

Most used classes

  • InfGraph
    Extends the Graph interface to give additional means to query an inferred graph. Many entailments fr
  • Reasoner
    The minimal interface to which all reasoners (or reasoner adaptors) conform. This only supports atta
  • ReasonerFactory
    The interface through which a reasoner (inference engine) can be instantiated. Instances of this are
  • ReasonerRegistry
    A global registry of known reasoner modules. Modules are identified by a URI and can have associated
  • GenericRuleReasoner
    A reasoner interface that is able to invoke any of the useful rule engine combinations. The rule set
  • BaseInfGraph,
  • FGraph,
  • StandardValidityReport,
  • TriplePattern,
  • ValidityReport,
  • Functor,
  • Node_RuleVariable,
  • RDFSRuleReasonerFactory,
  • RuleContext,
  • BaseInfGraph$InfFindSafeCapabilities,
  • Finder,
  • ReasonerException,
  • BuiltinRegistry,
  • FBRuleInfGraph
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