Codota Logo
Triple.getObject
Code IndexAdd Codota to your IDE (free)

How to use
getObject
method
in
com.hp.hpl.jena.graph.Triple

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

Refine searchRefine arrow

  • Triple.getPredicate
  • Triple.getSubject
  • Common ways to obtain Triple
private void myMethod () {
Triple t =
  • Codota IconExtendedIterator extendedIterator;extendedIterator.next()
  • Codota IconNode s;Node p;Node o;new Triple(s, p, o)
  • Codota IconNode s;Node p;Node o;Triple.create(s, p, o)
  • Smart code suggestions by Codota
}
origin: com.hp.hpl.jena/arq

public PatternTriple(Triple triple)
{
  this(triple.getSubject(),
     triple.getPredicate(),
     triple.getObject()) ;
}
 
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

private Map<Node, List<Node>> groupByPredicates(Collection<Triple> cluster)
{
  SortedMap<Node, List<Node>> x = new TreeMap<Node, List<Node>>(compPredicates) ; 
  for ( Triple t : cluster )
  {
    Node p = t.getPredicate() ;
    if ( ! x.containsKey(p) )
      x.put(p, new ArrayList<Node>()) ;
    x.get(p).add(t.getObject()) ;
  }
  
  return x ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Register a new relation instance in the cache
 */
public synchronized void addRelation(Triple t) {
  originalTriples.add(t);
  addRelation(t.getSubject(), t.getObject());
}

origin: com.hp.hpl.jena/arq

public Quad(Node graph, Triple triple)
{
  this(graph, triple.getSubject(), triple.getPredicate(), triple.getObject()) ;
}
 
origin: Quetzal-RDF/quetzal

protected Set<String> getAllVariables(Triple t) {
  Set<String> ret = new HashSet<String>();
  Node s = t.getSubject();
  Node o = t.getObject();
  if (s.isVariable()) {
    ret.add(s.getName());
  }
  if (o.isVariable()) {
    ret.add(o.getName());
  }
  return ret;
}

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

@Override
public boolean accept(Triple triple)
{
  return triple.getPredicate().equals(subject) ||
      triple.getPredicate().equals(predicate) ||
      triple.getPredicate().equals(object) ||
      ( triple.getPredicate().equals(rdfType) && triple.getObject().equals(statement) ) ;
}} ; 
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public PatternTriple(Triple triple)
{
  this(triple.getSubject(),
     triple.getPredicate(),
     triple.getObject()) ;
}

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

  @Override
  public boolean accept( Triple t) {
    if (t.getSubject().isLiteral()) return true;
    Node n = t.getObject();
    return n.isLiteral() && n.getLiteralDatatype() == FunctorDatatype.theFunctorDatatype;
  }
};
origin: Quetzal-RDF/quetzal

protected boolean isTripleAbsentFromAbox(Triple qt) {
  Node pred = qt.getPredicate();
  if (pred.isURI() && isGeneratedRole(pred.getURI())) {
    return true;
  } else if (pred.isURI() && pred.getURI().equals(RDFConstants.RDF_TYPE)) {
    Node obj = qt.getObject();
    if (obj.isURI() && isGeneratedClass(obj.getURI())) {
      return true;
    }
  }
  return false;
}

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

public Quad(Node graph, Triple triple)
{
  this(graph, triple.getSubject(), triple.getPredicate(), triple.getObject()) ;
}

origin: com.hp.hpl.jena/arq

/** Check a triple - assumes individual nodes are legal */
public boolean check(Triple triple, long line, long col) 
{
  return checkTriple(triple.getSubject(), triple.getPredicate(), triple.getObject(), line, col) ; 
}
 
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Return true if the triple is already in either the graph or the stack.
 * I.e. it has already been deduced.
 */
@Override
public boolean contains(Triple t) {
  // Can't use stackCache.contains because that does not do semantic equality
  return contains(t.getSubject(), t.getPredicate(), t.getObject());
}

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

/**
 * Return true if the triple is already in either the graph or the stack.
 * I.e. it has already been deduced.
 */
@Override
public boolean contains(Triple t) {
  // Can't use stackCache.contains because that does not do semantic equality
  return contains(t.getSubject(), t.getPredicate(), t.getObject());
}

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

static public void output(Writer out, Triple triple, Prologue prologue, NodeToLabel labelPolicy)
{
  Node s = triple.getSubject() ;
  Node p = triple.getPredicate() ;
  Node o = triple.getObject() ;
  output(out, s, p, o, null, prologue, labelPolicy) ;
}

origin: com.hp.hpl.jena/arq

static public void output(Writer out, Triple triple, Node graphNode, Prologue prologue, NodeToLabel labelPolicy)
{
  Node s = triple.getSubject() ;
  Node p = triple.getPredicate() ;
  Node o = triple.getObject() ;
  output(out, s, p, o, graphNode, prologue, labelPolicy) ;
}
 
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * @see com.hp.hpl.jena.reasoner.rulesys.RuleContext#contains(com.hp.hpl.jena.graph.Triple)
 */
@Override
public boolean contains(Triple t) {
  return contains(t.getSubject(), t.getPredicate(), t.getObject());
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

static public void output(Writer out, Triple triple, Node graphNode, Prologue prologue, NodeToLabel labelPolicy)
{
  Node s = triple.getSubject() ;
  Node p = triple.getPredicate() ;
  Node o = triple.getObject() ;
  output(out, s, p, o, graphNode, prologue, labelPolicy) ;
}

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

/** Check a triple - assumes individual nodes are legal */
public boolean check(Triple triple, long line, long col) 
{
  return checkTriple(triple.getSubject(), triple.getPredicate(), triple.getObject(), line, col) ; 
}

origin: com.hp.hpl.jena/arq

static public void output(Writer out, Triple triple, Prologue prologue, NodeToLabel labelPolicy)
{
  Node s = triple.getSubject() ;
  Node p = triple.getPredicate() ;
  Node o = triple.getObject() ;
  output(out, s, p, o, null, prologue, labelPolicy) ;
}
 
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

@Override public void triple(Triple triple) 
{
  dsg.add(Quad.defaultGraphNodeGenerated, triple.getSubject(), triple.getPredicate(), triple.getObject()) ;
  //throw new IllegalStateException("Triple passed to dataset parsing") ;
}

com.hp.hpl.jena.graphTriplegetObject

Popular methods of Triple

  • getSubject
  • getPredicate
  • <init>
  • create
  • equals
    Answer true if o is a Triple with the same subject, predicate, and object as this triple.
  • hashCode
    Return the munged hashCodes of the specified nodes, an exclusive-or of the slightly-shifted componen
  • isConcrete
  • createMatch
  • toString
  • matches
  • predicateMatches
  • anyToNull
  • predicateMatches,
  • anyToNull,
  • getMatchObject,
  • getMatchPredicate,
  • getMatchSubject,
  • matchedBy,
  • nullToAny,
  • sameAs,
  • subjectMatches

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • getExternalFilesDir (Context)
  • Kernel (java.awt.image)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
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