edu.stanford.smi.protegex.owl.model.patcher
Interface OWLModelPatcher
- All Known Implementing Classes:
- DefaultOWLModelPatcher
public interface OWLModelPatcher
A utility class that can add "missing" rdf:type triples so that
untyped resources are resolved into their most likely intended type.
For example, if an untyped resource as object in an rdfs:domain triple,
then we can infer that the resource is an rdfs:Class (or more).
- Author:
- Holger Knublauch
Method Summary |
void |
patch(Iterator resources,
String namespace)
Adds "missing" triples for untyped resources. |
patch
void patch(Iterator resources,
String namespace)
- 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.
- Parameters:
resources
- an Iterator of untyped RDFResourcesnamespace
- the namespace to patch
Submit a bug report or feature request
Copyright (c) 1998-2007 Stanford University.