/*
* Created on Dec 10, 2004
*/
/**
* @author Evren Sirin
*/
public class OWLOntologyImpl extends OWLModelImpl implements OWLOntology, org.mindswap.owls.OWLSOntology {
super(jenaModel);
super.setBaseOntology(this);
sourceOntology = this;
}
return kb;
}
}
if(!direct) {
orderedList.add( this );
continue;
else
continue;
else
}
}
return importsClosure;
}
return getImports();
}
}
}
try {
}
// probably a cast exception, someone trying to add an ontology that
// isnt actually an ontology object. just ignore, try the next one
}
}
//this.imports.addAll(theImports);
}
if(c == null) {
c = new OWLClassImpl(this, r);
}
return c;
}
if(c == null) {
c = new OWLObjectPropertyImpl(this, r);
}
return c;
}
if(c == null) {
c = new OWLDataPropertyImpl(this, r);
}
return c;
}
ind = new OWLIndividualImpl(this, r);
}
return ind;
}
return ind;
}
return ind;
}
}
}
else
}
if(value instanceof OWLDataValue )
return (OWLDataValue) value;
else
}
return uri;
}
return fileURI;
}
/* (non-Javadoc)
* @see org.mindswap.owl.OWLObject#debugString()
*/
}
/* (non-Javadoc)
* @see org.mindswap.owl.OWLOntology#getOntologyObject()
*/
return ontResource;
}
/* (non-Javadoc)
* @see org.mindswap.owl.OWLOntology#asSingletonKB()
*/
return asKB(true);
}
/* (non-Javadoc)
* @see org.mindswap.owl.OWLOntology#asSingletonKB(boolean)
*/
return kb;
}
return new OWLDataValueImpl(l);
}
return new OWLIndividualImpl(this, r);
}
return new OWLClassImpl(this, r);
}
return new OWLObjectPropertyImpl(this, p);
}
return new OWLDataPropertyImpl(this, p);
}
return "Ontology()";
}
}
}
// public void setKB(OWLKnowledgeBase kb) {
// this.kb = kb;
// }
// public void setImports(Set imports) {
// this.imports = imports;
// }
public void refresh() {
}
}
}
}
else
throw new IllegalArgumentException();
}
}
}
}
}
{
refresh();
}
}
}
(Resource) c.getImplementation());
}
}
return sourceOntology;
}
}
}
int outCount = 0;
return ind;
{
}
else
{
{
}
}
}
return res;
}
// create empty ont
// add the contents of both ontologies
return newOnt;
}
}
return kb.getServices();
return super.getServices();
}
if (recursive) {
}
}
// removes all statements with the given individual in the subject
// removes all statements with the given individual in the object
if (recursive)
}
return;
removeResourcesForOneLevel(resource, false);
}
return;
removeResourcesForOneLevel(resource, true);
}
return inds;
}
}
}
}
if (!isInLanguageNamespace(resource))
}
return list;
}
owlsNamespaces = new Vector();
// OWL-S namespaces
// expression language namespaces
// OWL+RDF namespaces
// Extensions
// helpers
}
return true;
}
return false;
}
}
}
return bindings;
}
}