Profile.java revision 14
// The MIT License
//
// Copyright (c) 2004 Evren Sirin
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
/*
* Created on Dec 27, 2003
*
*/
/**
* Represents the OWL-S profile.
*
* OWL-S concept: http://www.daml.org/services/owl-s/1.0/Profile.owl#Profile
*
* @author Evren Sirin
*
*/
/**
* Get the service this profile presents
*
* @return
*/
public Service getService();
/**
* Set the service this profile presents
*
* @param service
*/
/**
* Removes the service by breaking the link <code>service:presentedBy</code>.
* The service itself remains untouched.
*
*/
public void removeService();
/**
* Get the process associated with this profile. This process is the one that is the
* value of profile:has_process parameter
*
* @return
*/
public Process getProcess();
/**
* Set profile's text description. No language identifier will be used.
*
* @param desc
*/
/**
* Get profile's text description. See {@link org.mindswap.owl.OWLConfig#DEFAULT_LANGS OWLConfig}
* to learn how the language identifiers will be resolved when searching for a text description.
*
* @return
*/
public String getTextDescription();
/**
* Get profile's text description. The associated textDescription should have the same language
* identifier as given in the parameter. If a textDescription for that labguage is not found null
* value will be returned even if there is another textDescription with a different language
* identifier.
*
* @param lang
* @return
*/
/**
* Return all text descriptions written in any language.
*
* @return
*/
public OWLDataValueList getTextDescriptions();
/**
* Get the service name defined in the profile. See {@link org.mindswap.owl.OWLConfig#DEFAULT_LANGS OWLConfig}
* to learn how the language identifiers will be resolved when searching for a name.
*
* @return
*/
public String getServiceName();
/**
* Get the service name defined in the profile. The associated serviceName should have the same
* language identifier as given in the parameter. If a serviceName for that language is not found
* null value will be returned even if there is another serviceName with a different language
* identifier.
*
* @param lang
* @return
*/
/**
* Return all service names written in any language.
*
* @return
*/
public OWLDataValueList getServiceNames();
/**
* Set the service name. No language identifier will be used.
*
* @param desc
*/
/**
* Get the inputs for this profile.
*
* @return
*/
/**
* Get the outputs for this profile.
*
* @return
*/
public OutputList getOutputs();
/**
* Get the results for this profile.
*
* @return
*/
public ResultList getResults();
/**
* Get the result for this profile. In case there are multiple results defined for this
* profile a random one is returned
*
* @return
*/
/**
* getCategory
*
* @return
*/
public ServiceCategory getCategory();
/**
* Get the list of all categories defined for this profile.
*
* @return
*/
public OWLIndividualList getCategories();
/**
* Add a new category for this profile.
*
* @param category
*/
/**
* Set the category for this profile (remove any previous cateogry)
* @param category
*/
/**
* getContactInfo
*
* @return
*/
public Actor getContactInfo();
/**
* Get all the contact info values
*
* @return
*/
public OWLIndividualList getContactInfos();
/**
* getServiceParameters
*
* @return
*/
public OWLIndividualList getServiceParameters();
/**
* getServiceParameter
*
* @return
*/
/**
* @deprecated Use createServiceParameter(OWLObjectProperty, OWLIndividual) instead.
*/
/**
* @deprecated Use createServiceParameter(String, OWLIndividual) instead.
*/
public URI getServiceProduct();
public OWLDataValueList getServiceProducts();
public URI getServiceClassification();
public OWLDataValueList getServiceClassifications();
/**
* Removes the given input by breaking the property <code>process:hasInput</code>
* The input itself is not touched at all.
*
* @param input the input to remove
*/
/**
* Removes all inputs from the process by breaking the property <code>process:hasInput</code>
* The inputs themselves are not touched at all.
*/
public void removeInputs();
/**
* Removes the given output by breaking the property <code>process:hasOutput</code>
* The output itself is not touched at all.
*
* @param output the output to remove
*/
/**
* Removes all outputs from the process by breaking the property <code>process:hasOutput</code>
* The outputs themselves are not touched at all.
*/
public void removeOutputs();
/**
* Removes the given result by breaking the property <code>process:hasResult</code>
* The result itself is not touched at all.
*
* @param result the output to remove
*/
/**
* Removes all results from the process by breaking the property <code>process:hasResult</code>
* The results themselves are not touched at all.
*/
public void removeResults();
/**
* Deletes the given input from the ontology
*
* @param input the input to delete
*/
/**
* Deletes all inputs of this process from the ontology
*/
public void deleteInputs();
/**
* Deletes the given output from the ontology
*
* @param output the output to delete
*/
/**
* Deletes all outputs of this process from the ontology
*/
public void deleteOutputs();
/**
* Deletes the given result from the ontology
*
* @param result the result to delete
*/
/**
* Deletes all results of this process from the ontology
*/
public void deleteResults();
}