25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// The MIT License
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe//
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// Copyright (c) 2004 Evren Sirin
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe//
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// Permission is hereby granted, free of charge, to any person obtaining a copy
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// of this software and associated documentation files (the "Software"), to
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// deal in the Software without restriction, including without limitation the
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// sell copies of the Software, and to permit persons to whom the Software is
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// furnished to do so, subject to the following conditions:
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe//
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// The above copyright notice and this permission notice shall be included in
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// all copies or substantial portions of the Software.
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe//
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe// IN THE SOFTWARE.
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe/*
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * Created on Oct 26, 2004
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe */
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowepackage org.mindswap.swrl;
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe
25b49572a3aae1c1ba13d60a317579d1ccd47620wroweimport org.mindswap.owl.OWLDataProperty;
25b49572a3aae1c1ba13d60a317579d1ccd47620wroweimport org.mindswap.query.ValueMap;
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe/**
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * @author Evren Sirin
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe */
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowepublic interface DataPropertyAtom extends Atom {
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe /**
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * Returns the data property predicate for this SWRL datavaluedProperty atom
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe *
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * @return the data property predicate for this this SWRL datavaluedProperty atom
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe */
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe public OWLDataProperty getPropertyPredicate();
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe /**
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * Sets the data property predicate for this SWRL datavaluedProperty atom
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * @param p the data property predicate for this SWRL datavaluedProperty atom
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe */
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe public void setPropertyPredicate(OWLDataProperty p);
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe /**
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * Retuns the subject of the property of this SWRL datavaluedProperty atom.
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * It is of one of the explicit or inferred types of the domain of the OWL data property
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * @return the subject of the property of this SWRL datavaluedProperty atom.
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe */
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe public SWRLIndividualObject getArgument1();
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe /**
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * Sets the subject of the property of this SWRL datavaluedProperty atom.
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * It must be of one of the explicit or inferred types of the domain of the OWL data property
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe *
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * @param obj the subject of the property of this SWRL datavaluedProperty atom.
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe */
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe public void setArgument1(SWRLIndividualObject obj);
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe /**
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * Returns the object of the property of this SWRL datavaluedProperty atom.
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * It is of one of the explicit or inferred types of the range of the OWL data property
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * @return the object of the property of this SWRL datavaluedProperty atom.
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe */
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe public SWRLDataObject getArgument2();
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe /**
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * Sets the object of the property of this SWRL datavaluedProperty atom.
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * It must be of one of the explicit or inferred types of the range of the OWL data property
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe *
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * @param obj the object of the property of this SWRL datavaluedProperty atom.
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe */
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe public void setArgument2(SWRLDataObject obj);
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe /**
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * Evaluates the atom. Sets the argument 2 as value for the data property predicate of argument 1
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe *
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * @param values the set of values bound to the process (and its super-processes)
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe * for which this atom (i.e. this corresponfing atom) is encapsulated.
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe */
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe public void evaluate(ValueMap values);
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe}
25b49572a3aae1c1ba13d60a317579d1ccd47620wrowe