2ronwalf// The MIT License
2ronwalf//
2ronwalf// Copyright (c) 2004 Evren Sirin
2ronwalf//
2ronwalf// Permission is hereby granted, free of charge, to any person obtaining a copy
2ronwalf// of this software and associated documentation files (the "Software"), to
2ronwalf// deal in the Software without restriction, including without limitation the
2ronwalf// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
2ronwalf// sell copies of the Software, and to permit persons to whom the Software is
2ronwalf// furnished to do so, subject to the following conditions:
2ronwalf//
2ronwalf// The above copyright notice and this permission notice shall be included in
2ronwalf// all copies or substantial portions of the Software.
2ronwalf//
2ronwalf// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2ronwalf// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2ronwalf// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2ronwalf// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2ronwalf// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2ronwalf// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2ronwalf// IN THE SOFTWARE.
2ronwalf
2ronwalf/*
2ronwalf * Created on Oct 26, 2004
2ronwalf */
2ronwalfpackage org.mindswap.swrl;
2ronwalf
2ronwalfimport java.util.List;
2ronwalf
2ronwalfimport org.mindswap.owl.list.RDFList;
2ronwalfimport org.mindswap.query.ABoxQuery;
2ronwalfimport org.mindswap.query.ValueMap;
2ronwalf
2ronwalf/**
2ronwalf * @author Evren Sirin
2ronwalf */
2ronwalfpublic interface AtomList extends RDFList {
2ronwalf public AtomList add(Atom atom);
2ronwalf
2ronwalf public AtomList insert(Atom atom);
2ronwalf
2ronwalf public AtomList insertAt(int index, Atom item);
2ronwalf
2ronwalf public Atom atomAt(int index);
2ronwalf
2ronwalf /**
2ronwalf * Apply the given values possibly binding some of the variables in this AtomList to
2ronwalf * concrete values.
2ronwalf *
2ronwalf * @param values
2ronwalf * @return
2ronwalf */
2ronwalf public AtomList apply(ValueMap values);
38daenzerorama
38daenzerorama /**
38daenzerorama * Evaluates the expression dependent on the semantics of the underlying atoms. See
38daenzerorama * all siblings of <code>Atom</code> for details.
38daenzerorama *
38daenzerorama */
38daenzerorama public void evaluate(ValueMap values);
2ronwalf
2ronwalf /**
2ronwalf * Return all the variables mentioned in this AtomList
2ronwalf *
2ronwalf * @return List of Variable objects
2ronwalf */
2ronwalf public List getVars();
2ronwalf
2ronwalf /**
2ronwalf * Create a query out of this atom list.
2ronwalf */
2ronwalf public ABoxQuery toQuery();
2ronwalf
2ronwalf /**
2ronwalf * Create a query out of this atom list with the specified variables put into the
2ronwalf * result variables.
2ronwalf */
2ronwalf public ABoxQuery toQuery(List resultVars);
2ronwalf}