Protégé-OWL 3.3.1

edu.stanford.smi.protegex.owl.model.factory
Class OWLJavaFactoryUpdater

java.lang.Object
  extended by edu.stanford.smi.protegex.owl.model.factory.OWLJavaFactoryUpdater

public class OWLJavaFactoryUpdater
extends Object

Author:
Holger Knublauch

Constructor Summary
OWLJavaFactoryUpdater(edu.stanford.smi.protege.model.KnowledgeBase kb)
           
OWLJavaFactoryUpdater(edu.stanford.smi.protege.model.KnowledgeBase kb, Collection frames)
           
 
Method Summary
 edu.stanford.smi.protege.model.Instance createNewFrame(edu.stanford.smi.protege.model.Instance instance)
           
static void run(edu.stanford.smi.protege.model.Instance resource)
           
static void run(JenaOWLModel owlModel)
          Completely replaces all occurances of all frames to their correct Java type according to the current FrameFactory.
static void run(edu.stanford.smi.protege.model.KnowledgeBase kb, Collection instances)
           
static void run(OWLDatabaseModel owlModel)
           
 void updateFrame(edu.stanford.smi.protege.model.Instance instance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLJavaFactoryUpdater

public OWLJavaFactoryUpdater(edu.stanford.smi.protege.model.KnowledgeBase kb)

OWLJavaFactoryUpdater

public OWLJavaFactoryUpdater(edu.stanford.smi.protege.model.KnowledgeBase kb,
                             Collection frames)
Method Detail

createNewFrame

public edu.stanford.smi.protege.model.Instance createNewFrame(edu.stanford.smi.protege.model.Instance instance)

updateFrame

public void updateFrame(edu.stanford.smi.protege.model.Instance instance)

run

public static void run(edu.stanford.smi.protege.model.Instance resource)

run

public static void run(edu.stanford.smi.protege.model.KnowledgeBase kb,
                       Collection instances)

run

public static void run(JenaOWLModel owlModel)
Completely replaces all occurances of all frames to their correct Java type according to the current FrameFactory. This method tolerates frames that have a completely wrong type, e.g. Slots can be converted into Clses etc.

Parameters:
owlModel - the OWLModel

run

public static void run(OWLDatabaseModel owlModel)

Protégé-OWL 3.3.1

Submit a bug report or feature request
Copyright (c) 1998-2007 Stanford University.