com.clarkparsia.pellet.sparqldl.model
Interface QueryAtom

All Known Subinterfaces:
Core
All Known Implementing Classes:
CoreImpl, CoreNewImpl, NotKnownQueryAtom, QueryAtomImpl, UnionQueryAtom

public interface QueryAtom

Title: Atom of a SPARQL-DL query.

Description:

Copyright: Copyright (c) 2007

Company: Clark & Parsia, LLC.

Author:
Petr Kremen

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.
 java.util.List<aterm.ATermAppl> getArguments()
          Returns arguments of the atom.
 QueryPredicate getPredicate()
          Returns predicate of the query atom.
 boolean isGround()
           
 

Method Detail

getPredicate

QueryPredicate getPredicate()
Returns predicate of the query atom.

Returns:
predicate of the query atom

getArguments

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

Returns:
arguments of the atom

isGround

boolean isGround()
Returns:
true if the atom is ground, i.e. does not use variables, either distinguished or undistinguished ones.

apply

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

Parameters:
binding - QueryBinding to apply
Returns:
a query atom with applied query binding


Copyright © 2004 Evren Sirin. All Rights Reserved.