All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clarkparsia.pellet.sparqldl.engine.QueryPlan Maven / Gradle / Ivy

// Copyright (c) 2006 - 2008, Clark & Parsia, LLC. 
// This source code is available under the terms of the Affero General Public License v3.
//
// Please see LICENSE.txt for full license terms, including the availability of proprietary exceptions.
// Questions, comments, or requests for clarification: [email protected]

package com.clarkparsia.pellet.sparqldl.engine;

import com.clarkparsia.pellet.sparqldl.model.Query;
import com.clarkparsia.pellet.sparqldl.model.QueryAtom;
import com.clarkparsia.pellet.sparqldl.model.ResultBinding;

/**
 * 

* Title: Query Plan abstraction. *

*

* Description: *

*

* Copyright: Copyright (c) 2007 *

*

* Company: Clark & Parsia, LLC. *

* * @author Petr Kremen */ public abstract class QueryPlan { protected Query query; public QueryPlan(final Query query) { this.query = query; } public Query getQuery() { return query; } /** * Returns next atom to be executed w.r. to the current binding. * * @param binding * @return */ public abstract QueryAtom next(final ResultBinding binding); /** * Goes one level back to the last atom. */ public abstract void back(); /** * Checks whether there is another atom to execute. * * @return true if there is another atom to execute. */ public abstract boolean hasNext(); /** * Resets the query planner. */ public abstract void reset(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy