edu.stanford.smi.protegex.owl.ui.profiles
Class ProfilesManager
java.lang.Object
edu.stanford.smi.protegex.owl.ui.profiles.ProfilesManager
public class ProfilesManager
- extends Object
A singleton that provides access to the language profile of an OWLModel
and buffers recently loaded profiles.
Each OWLModel can store two profile related strings in its Project's
sources. One stores the selected predefined profile, which is one of the
URIs of the classes such as OWLProfiles.OWL_Full. The other value can hold
the name of a custom profile file. This file must be a valid OWL (XML) file
that imports the OWLProfiles.owl ontology and defines a single owl:Class
that acts as a superclass to all selected profile classes. Both files are
optional, and the custom file has precedence over the predefined one.
- Author:
- Holger Knublauch
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CUSTOM_PROFILE_KEY
public static final String CUSTOM_PROFILE_KEY
- See Also:
- Constant Field Values
PREDEFINED_PROFILE_URI_KEY
public static final String PREDEFINED_PROFILE_URI_KEY
- See Also:
- Constant Field Values
ProfilesManager
public ProfilesManager()
addAltEntryForOWLProfiles
public static void addAltEntryForOWLProfiles(com.hp.hpl.jena.ontology.OntModel ontModel)
clearCache
public static void clearCache(String uri)
createProfile
public static com.hp.hpl.jena.ontology.OntModel createProfile(String defaultNamespace)
getCustomProfileFeaturesClass
public static com.hp.hpl.jena.ontology.OntClass getCustomProfileFeaturesClass(com.hp.hpl.jena.ontology.OntModel ontModel)
getCustomProfileURI
public static String getCustomProfileURI(OWLModel owlModel)
getDefaultProfileOntModel
public static com.hp.hpl.jena.ontology.OntModel getDefaultProfileOntModel()
getDefaultProfileURI
public static String getDefaultProfileURI()
getFeaturesSet
public static Set getFeaturesSet(String uri)
getPredefinedProfile
public static String getPredefinedProfile(OWLModel owlModel)
getProfile
public static String getProfile(OWLModel owlModel)
getProfileOntModel
public static com.hp.hpl.jena.ontology.OntModel getProfileOntModel(OWLModel owlModel)
throws Exception
- Throws:
Exception
getProfileOntModel
public static com.hp.hpl.jena.ontology.OntModel getProfileOntModel(String uri)
throws Exception
- Throws:
Exception
getSupportedRestrictionMetaClses
public static edu.stanford.smi.protege.model.Cls[] getSupportedRestrictionMetaClses(OWLModel owlModel)
getSelectedClasses
public static Set getSelectedClasses(com.hp.hpl.jena.ontology.OntModel ontModel,
com.hp.hpl.jena.ontology.OntClass featuresClass)
getSubclasses
public static Iterator getSubclasses(com.hp.hpl.jena.ontology.OntModel ontModel,
com.hp.hpl.jena.ontology.OntClass ontClass)
isFeatureSupported
public static boolean isFeatureSupported(OWLModel owlModel,
com.hp.hpl.jena.ontology.OntClass ontClass)
loadOntModel
public static com.hp.hpl.jena.ontology.OntModel loadOntModel(String uri)
saveOntModel
public static void saveOntModel(com.hp.hpl.jena.ontology.OntModel newOntModel,
String fileName)
throws IOException
- Throws:
IOException
setProfile
public static void setProfile(OWLModel owlModel,
String uri)
setProfile
public static void setProfile(edu.stanford.smi.protege.util.PropertyList sources,
String uri)
setProfile
public static void setProfile(OWLProject project,
String uri)
Submit a bug report or feature request
Copyright (c) 1998-2007 Stanford University.