edu.stanford.smi.protegex.owl.repository.util
Class RepositoryUtil
java.lang.Object
edu.stanford.smi.protegex.owl.repository.util.RepositoryUtil
public class RepositoryUtil
- extends Object
User: matthewhorridge
The University Of Manchester
Medical Informatics Group
Date: Sep 22, 2005
matthew.horridge@cs.man.ac.uk
www.cs.man.ac.uk/~horridgm
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FORCE_READ_ONLY_FLAG
public static final String FORCE_READ_ONLY_FLAG
- See Also:
- Constant Field Values
RepositoryUtil
public RepositoryUtil()
isForcedToBeReadOnly
public static boolean isForcedToBeReadOnly(String query)
getBooleanProperty
public static boolean getBooleanProperty(String propertyName,
String query)
createImportLocalCopy
public static boolean createImportLocalCopy(OWLModel model,
URI ontologyURI,
File localFile)
throws edu.stanford.smi.protege.exception.OntologyLoadException
- Throws:
edu.stanford.smi.protege.exception.OntologyLoadException
isDublinCoreRedirectedToDLVersion
public static boolean isDublinCoreRedirectedToDLVersion(RepositoryManager manager)
setDublinCoreRedirectedToDLVersion
public static void setDublinCoreRedirectedToDLVersion(RepositoryManager manager,
boolean redirect)
getURI
public static URI getURI(URL baseURL,
String relativeURL)
throws MalformedURLException,
URISyntaxException
- Throws:
MalformedURLException
URISyntaxException
getRepositoryFileFromRelativePath
public static File getRepositoryFileFromRelativePath(OWLModel model,
String s)
stripQuery
public static String stripQuery(String relativeURL)
loadProjectRepositoriesFromURI
public static void loadProjectRepositoriesFromURI(OWLModel owlModel,
URI uri,
boolean removeExistingRepositories)
- Loads the project repositories from a given URI. The file at the URI location should be in the
repository file format expected by Protege.
- Parameters:
owlModel
- - the owl modeluri
- - the uri of the repository fileremoveExistingRepositories
- - if true, it will remove all existing repository entries. If false,
it will append to the old repositories entries the new ones loaded from uri.
Submit a bug report or feature request
Copyright (c) 1998-2009 Stanford University.