Codota Logo
TriplePattern.asTripleMatch
Code IndexAdd Codota to your IDE (free)

How to use
asTripleMatch
method
in
com.hp.hpl.jena.reasoner.TriplePattern

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

  • Common ways to obtain TriplePattern
private void myMethod () {
TriplePattern t =
  • Codota IconNode subject;Node predicate;Node object;new TriplePattern(subject, predicate, object)
  • Smart code suggestions by Codota
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Basic pattern lookup interface.
 * @param pattern a TriplePattern to be matched against the data
 * @return a ClosableIterator over all Triples in the data set
 *  that match the pattern
 */
@Override
public ExtendedIterator<Triple> find(TriplePattern pattern) {
  if (graph == null) return new NullIterator<Triple>();
  return graph.find(pattern.asTripleMatch());
}

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

/**
 * Extended find interface used in situations where the implementator
 * may or may not be able to answer the complete query. It will
 * attempt to answer the pattern but if its answers are not known
 * to be complete then it will also pass the request on to the nested
 * Finder to append more results.
 * @param pattern a TriplePattern to be matched against the data
 * @param continuation either a Finder or a normal Graph which
 * will be asked for additional match results if the implementor
 * may not have completely satisfied the query.
 */
@Override
public ExtendedIterator<Triple> findWithContinuation(TriplePattern pattern, Finder continuation) {
  if (graph == null) return new NullIterator<Triple>();
  if (continuation == null) {
    return graph.find(pattern.asTripleMatch());
  } else {
    return graph.find(pattern.asTripleMatch()).andThen(continuation.find(pattern));
  }
}
com.hp.hpl.jena.reasonerTriplePatternasTripleMatch

Javadoc

Return the triple pattern as a triple match

Popular methods of TriplePattern

  • <init>
    Constructor - builds a pattern from a standard triple match. Node that any filter part of the triple
  • getObject
    Returns the object.
  • getPredicate
    Returns the predicate.
  • getSubject
    Returns the subject.
  • asTriple
    Return the triple pattern as a triple
  • compatibleWith
    Compare two patterns for compatibility - i.e. potentially unifiable. Two patterns are "compatible" i
  • isGround
    Test if the pattern is ground, contains no variables.
  • nodeEqual
    Helper - equality override on nodes
  • normalize
    Convert any null wildcards to Node_RuleVariable wildcards.
  • simplePrintString
    Simplified printable name for a triple
  • toMatch
    Convert any Node_RuleVariable wildcards to null. This loses the variable named but is used when conv
  • variantOf
    Test if a pattern is just a variant of this pattern. I.e. it is the same up to variable renaming. Th
  • toMatch,
  • variantOf

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • setContentView (Activity)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
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