edu.stanford.smi.protegex.owl.jena
Class JenaDLConverter

java.lang.Object
  extended byedu.stanford.smi.protegex.owl.jena.JenaDLConverter

public class JenaDLConverter
extends Object

A class that can convert a given OntModel into OWL DL.

Author:
Holger Knublauch

Field Summary
private  com.hp.hpl.jena.ontology.OntModel ontModel
           
 
Constructor Summary
JenaDLConverter(com.hp.hpl.jena.ontology.OntModel oldModel, NamespaceManager nsm)
          Constructs a new JenaDLConverter.
 
Method Summary
private  void addSubClasses(Collection classes, com.hp.hpl.jena.ontology.OntClass ontClass)
           
private  void convertAnnotationProperties()
           
private  void convertClassProperties()
          Removed the range of all ObjectProperties that have a metaclass in their range.
private  void convertClassProperties(com.hp.hpl.jena.rdf.model.Resource metaClass)
           
private  void convertMetaclasses()
           
private  void convertMetaclasses(com.hp.hpl.jena.rdf.model.Resource metaClass)
           
 com.hp.hpl.jena.ontology.OntModel convertOntModel()
           
private  void log(String msg)
           
private  void removeAnnotationsFromAnonymousClasses()
           
private  void removeDomainFromAnnotationProperty(com.hp.hpl.jena.ontology.AnnotationProperty property)
           
private  void removeFullPropertyValues()
           
private  void removeFullPropertyValues(Iterator it)
           
private  void removeFullPropertyValues(com.hp.hpl.jena.rdf.model.Resource resource)
           
private  void removeProtegeOntology()
           
private  void removeRangeFromAnnotationProperty(com.hp.hpl.jena.ontology.AnnotationProperty property)
           
private  void removeRDFTypesFromAnnotationProperty(com.hp.hpl.jena.ontology.AnnotationProperty property)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ontModel

private com.hp.hpl.jena.ontology.OntModel ontModel
Constructor Detail

JenaDLConverter

public JenaDLConverter(com.hp.hpl.jena.ontology.OntModel oldModel,
                       NamespaceManager nsm)
Constructs a new JenaDLConverter.

Parameters:
oldModel - the OntModel to convert
nsm - the current NamespaceManager
Method Detail

addSubClasses

private void addSubClasses(Collection classes,
                           com.hp.hpl.jena.ontology.OntClass ontClass)

convertAnnotationProperties

private void convertAnnotationProperties()

convertClassProperties

private void convertClassProperties()
Removed the range of all ObjectProperties that have a metaclass in their range.


convertClassProperties

private void convertClassProperties(com.hp.hpl.jena.rdf.model.Resource metaClass)

convertOntModel

public com.hp.hpl.jena.ontology.OntModel convertOntModel()

convertMetaclasses

private void convertMetaclasses()

convertMetaclasses

private void convertMetaclasses(com.hp.hpl.jena.rdf.model.Resource metaClass)

log

private void log(String msg)

removeAnnotationsFromAnonymousClasses

private void removeAnnotationsFromAnonymousClasses()

removeDomainFromAnnotationProperty

private void removeDomainFromAnnotationProperty(com.hp.hpl.jena.ontology.AnnotationProperty property)

removeFullPropertyValues

private void removeFullPropertyValues()

removeFullPropertyValues

private void removeFullPropertyValues(Iterator it)

removeFullPropertyValues

private void removeFullPropertyValues(com.hp.hpl.jena.rdf.model.Resource resource)

removeProtegeOntology

private void removeProtegeOntology()

removeRangeFromAnnotationProperty

private void removeRangeFromAnnotationProperty(com.hp.hpl.jena.ontology.AnnotationProperty property)

removeRDFTypesFromAnnotationProperty

private void removeRDFTypesFromAnnotationProperty(com.hp.hpl.jena.ontology.AnnotationProperty property)