edu.stanford.smi.protegex.owl.ui.jena
Class OntPolicyManager

java.lang.Object
  extended byedu.stanford.smi.protegex.owl.ui.jena.OntPolicyManager

Deprecated. OntPolicy files are no longer used. They have been replaced with the ontology repositories mechanism.

public class OntPolicyManager
extends Object

A Singleton that manages the current ont-policy model and file. Applications should always use this object to access the system's ont-policy file, and then perhaps use the OntPolicy class for detailed access.

Author:
Holger Knublauch

Field Summary
private static com.hp.hpl.jena.rdf.model.Model model
          Deprecated.  
private static edu.stanford.smi.protege.model.Project recentProject
          Deprecated.  
 
Constructor Summary
OntPolicyManager()
          Deprecated.  
 
Method Summary
static String getAltURL(edu.stanford.smi.protege.model.Project project, String uri)
          Deprecated.  
static com.hp.hpl.jena.rdf.model.Model getCurrentModel(edu.stanford.smi.protege.model.Project project)
          Deprecated.  
private static com.hp.hpl.jena.rdf.model.Resource getOrCreateOntologySpec(edu.stanford.smi.protege.model.Project project, String uri)
          Deprecated.  
static String getPrefix(edu.stanford.smi.protege.model.Project project, String namespace)
          Deprecated.  
static String getRelativePhysicalFileName(edu.stanford.smi.protege.model.Project project, String uri)
          Deprecated.  
static String getUniquePrefix(edu.stanford.smi.protege.model.Project project)
          Deprecated.  
static Map getUsedAltURIs(OWLModel owlModel)
          Deprecated. Gets a Map from imports (String) to alt entries (String) for those found in a given OWLModel.
static void invalidate()
          Deprecated.  
static boolean isEditable(edu.stanford.smi.protege.model.Project project, String uri)
          Deprecated.  
private static void loadModelOnDemand(edu.stanford.smi.protege.model.Project project)
          Deprecated.  
static void saveCurrentModel(edu.stanford.smi.protege.model.Project project)
          Deprecated.  
static boolean setAltURI(edu.stanford.smi.protege.model.Project project, String uri, String altURL)
          Deprecated.  
static void setEditableImport(edu.stanford.smi.protege.model.Project project, String uri, boolean value)
          Deprecated.  
static void setPrefix(edu.stanford.smi.protege.model.Project project, String uri, String prefix)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

private static com.hp.hpl.jena.rdf.model.Model model
Deprecated. 

recentProject

private static edu.stanford.smi.protege.model.Project recentProject
Deprecated. 
Constructor Detail

OntPolicyManager

public OntPolicyManager()
Deprecated. 
Method Detail

getCurrentModel

public static com.hp.hpl.jena.rdf.model.Model getCurrentModel(edu.stanford.smi.protege.model.Project project)
Deprecated. 

getAltURL

public static String getAltURL(edu.stanford.smi.protege.model.Project project,
                               String uri)
Deprecated. 

getOrCreateOntologySpec

private static com.hp.hpl.jena.rdf.model.Resource getOrCreateOntologySpec(edu.stanford.smi.protege.model.Project project,
                                                                          String uri)
Deprecated. 

getPrefix

public static String getPrefix(edu.stanford.smi.protege.model.Project project,
                               String namespace)
Deprecated. 

getUniquePrefix

public static String getUniquePrefix(edu.stanford.smi.protege.model.Project project)
Deprecated. 

getUsedAltURIs

public static Map getUsedAltURIs(OWLModel owlModel)
Deprecated. 
Gets a Map from imports (String) to alt entries (String) for those found in a given OWLModel.

Parameters:
owlModel - the OWLKnowlwegdeBase to get the alt entries
Returns:
a possibly empty Map

invalidate

public static void invalidate()
Deprecated. 

isEditable

public static boolean isEditable(edu.stanford.smi.protege.model.Project project,
                                 String uri)
Deprecated. 

loadModelOnDemand

private static void loadModelOnDemand(edu.stanford.smi.protege.model.Project project)
Deprecated. 

saveCurrentModel

public static void saveCurrentModel(edu.stanford.smi.protege.model.Project project)
                             throws Exception
Deprecated. 
Throws:
Exception

setAltURI

public static boolean setAltURI(edu.stanford.smi.protege.model.Project project,
                                String uri,
                                String altURL)
Deprecated. 

setPrefix

public static void setPrefix(edu.stanford.smi.protege.model.Project project,
                             String uri,
                             String prefix)
Deprecated. 

setEditableImport

public static void setEditableImport(edu.stanford.smi.protege.model.Project project,
                                     String uri,
                                     boolean value)
Deprecated. 

getRelativePhysicalFileName

public static String getRelativePhysicalFileName(edu.stanford.smi.protege.model.Project project,
                                                 String uri)
Deprecated.