edu.stanford.smi.protegex.owl.model.patcher
Class DefaultOWLModelPatcher
java.lang.Object
edu.stanford.smi.protegex.owl.model.patcher.DefaultOWLModelPatcher
- All Implemented Interfaces:
- OWLModelPatcher
- public class DefaultOWLModelPatcher
- extends Object
- implements OWLModelPatcher
- Author:
- Holger Knublauch
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
objectTypeMap
private Map objectTypeMap
DefaultOWLModelPatcher
public DefaultOWLModelPatcher(OWLModel owlModel)
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 RDFResourcesnamespace
- the namespace to patch