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

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

Best Java code snippets using com.hp.hpl.jena.reasoner.TriplePattern.normalize (Showing top 3 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

/**
 * 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

/**
 * Constructor - builds a dgenerate pattern from a simple triple.
 * This would be much easier if we merged Triples and TriplePatterns!
 */
public TriplePattern(Triple match) {
  this.subject   = normalize(match.getSubject());
  this.predicate = normalize(match.getPredicate());
  this.object    = normalize(match.getObject());
}

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

/**
 * Constructor - builds a pattern from a standard triple match.
 * Node that any filter part of the triple match will not be
 * represented within the pattern and will need to be checked
 * for separately.
 */
public TriplePattern(TripleMatch match) {
  this.subject   = normalize(match.getMatchSubject());
  this.predicate = normalize(match.getMatchPredicate());
  this.object    = normalize(match.getMatchObject());
}

com.hp.hpl.jena.reasonerTriplePatternnormalize

Javadoc

Convert any null wildcards to Node_RuleVariable wildcards.

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
  • asTripleMatch
    Return the triple pattern as a triple match
  • 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
  • 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

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • setContentView (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Path (java.nio.file)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
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