com.clarkparsia.pellet.sparqldl.model
Class NotKnownQueryAtom

java.lang.Object
  extended by com.clarkparsia.pellet.sparqldl.model.NotKnownQueryAtom
All Implemented Interfaces:
QueryAtom

public class NotKnownQueryAtom
extends java.lang.Object
implements QueryAtom

Title:

Description:

Copyright: Copyright (c) 2009

Company: Clark & Parsia, LLC.

Author:
Evren Sirin

Constructor Summary
NotKnownQueryAtom(java.util.List<QueryAtom> atoms)
           
NotKnownQueryAtom(QueryAtom atom)
           
 
Method Summary
 QueryAtom apply(ResultBinding binding)
          Applies variable binding to the current atom and returns the result which might be same as the current atom.
 boolean equals(java.lang.Object obj)
           
 java.util.List<aterm.ATermAppl> getArguments()
          Returns arguments of the atom.
 java.util.List<QueryAtom> getAtoms()
           
 QueryPredicate getPredicate()
          Returns predicate of the query atom.
 int hashCode()
           
 boolean isGround()
          
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotKnownQueryAtom

public NotKnownQueryAtom(QueryAtom atom)

NotKnownQueryAtom

public NotKnownQueryAtom(java.util.List<QueryAtom> atoms)
Method Detail

apply

public QueryAtom apply(ResultBinding binding)
Description copied from interface: QueryAtom
Applies variable binding to the current atom and returns the result which might be same as the current atom. Current atom is not affected.

Specified by:
apply in interface QueryAtom
Parameters:
binding - QueryBinding to apply
Returns:
a query atom with applied query binding

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getArguments

public java.util.List<aterm.ATermAppl> getArguments()
Returns arguments of the atom.

Specified by:
getArguments in interface QueryAtom
Returns:
arguments of the atom

getAtoms

public java.util.List<QueryAtom> getAtoms()

getPredicate

public QueryPredicate getPredicate()
Returns predicate of the query atom.

Specified by:
getPredicate in interface QueryAtom
Returns:
predicate of the query atom

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isGround

public boolean isGround()

Specified by:
isGround in interface QueryAtom
Returns:
true if the atom is ground, i.e. does not use variables, either distinguished or undistinguished ones.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004 Evren Sirin. All Rights Reserved.