com.clarkparsia.pellet.sparqldl.model
Interface QueryResult

All Superinterfaces:
java.lang.Iterable<ResultBinding>
All Known Implementing Classes:
MultiQueryResults, QueryResultImpl

public interface QueryResult
extends java.lang.Iterable<ResultBinding>

Title: Query Result Interface

Description:

Copyright: Copyright (c) 2007

Company: Clark & Parsia, LLC.

Author:
Petr Kremen

Method Summary
 void add(ResultBinding binding)
          Adds a new binding to the query result.
 java.util.List<aterm.ATermAppl> getResultVars()
          Returns result variables.
 boolean isDistinct()
           
 boolean isEmpty()
          Tests whether the result is empty or not.
 int size()
          Returns number of bindings in the result.
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

add

void add(ResultBinding binding)
Adds a new binding to the query result.

Parameters:
binding - to be added

getResultVars

java.util.List<aterm.ATermAppl> getResultVars()
Returns result variables.

Returns:
variables that appear in the result

isDistinct

boolean isDistinct()

isEmpty

boolean isEmpty()
Tests whether the result is empty or not.

Returns:
true if the result contains not bindings

size

int size()
Returns number of bindings in the result.

Returns:
number of bindings


Copyright © 2004 Evren Sirin. All Rights Reserved.