edu.stanford.smi.protegex.owl.model.patcher
Class DefaultOWLModelPatcher

java.lang.Object
  extended byedu.stanford.smi.protegex.owl.model.patcher.DefaultOWLModelPatcher
All Implemented Interfaces:
OWLModelPatcher

public class DefaultOWLModelPatcher
extends Object
implements OWLModelPatcher

Author:
Holger Knublauch

Field Summary
private  Map objectTypeMap
           
 
Constructor Summary
DefaultOWLModelPatcher(OWLModel owlModel)
           
 
Method Summary
private  RDFSNamedClass getRDFType(RDFResource resource)
           
 void patch(Iterator resources, String namespace)
          Adds "missing" triples for untyped resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectTypeMap

private Map objectTypeMap
Constructor Detail

DefaultOWLModelPatcher

public DefaultOWLModelPatcher(OWLModel owlModel)
Method Detail

getRDFType

private RDFSNamedClass getRDFType(RDFResource resource)

patch

public void patch(Iterator resources,
                  String namespace)
Description copied from interface: OWLModelPatcher
Adds "missing" triples for untyped resources. This method shall create a new TripleStore for the given namespace and then add rdf:type triples into it for all resources from a given Iterator. Note that the Iterator may also contain resources from other namespaces, which shall be ignored.

Specified by:
patch in interface OWLModelPatcher
Parameters:
resources - an Iterator of untyped RDFResources
namespace - the namespace to patch