edu.stanford.smi.protegex.owl.ui.forms
Class AbsoluteFormsGenerator

java.lang.Object
  extended byedu.stanford.smi.protegex.owl.ui.forms.AbsoluteFormsGenerator

public class AbsoluteFormsGenerator
extends Object

A utility class that creates a Jena Model in the absolute forms ontology from the forms represented in a Protege project.

Author:
Holger Knublauch

Field Summary
static String ALL
           
static String FILE_NAME
           
private static Set ignoreSystemClasses
           
static String MODIFIED
           
static boolean optional
           
private  OWLModel owlModel
           
private  edu.stanford.smi.protege.model.Project project
           
static String PROTEGE_SYSTEM_FORMS_URI
           
static String SAVE_FORMS_KEY
           
static String SUFFIX
           
private  WidgetClassMapper widgetClassMapper
           
 
Constructor Summary
AbsoluteFormsGenerator(OWLModel owlModel)
           
 
Method Summary
private  void createFormWidget(com.hp.hpl.jena.rdf.model.Model model, RDFSNamedClass cls, boolean all)
           
private  void createFormWidget(com.hp.hpl.jena.rdf.model.Model model, RDFSNamedClass cls, edu.stanford.smi.protege.widget.ClsWidget clsWidget)
           
 com.hp.hpl.jena.rdf.model.Model createModel(TripleStore ts, boolean all)
          Creates a Jena Model that can be saved etc.
 void generateFiles(String option)
           
private  String getFormsFileURI(TripleStore ts)
           
static String getFormsFileURI(TripleStore ts, OWLModel owlModel)
           
private  void saveSystemForms(String option)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ignoreSystemClasses

private static final Set ignoreSystemClasses

optional

public static boolean optional

SAVE_FORMS_KEY

public static final String SAVE_FORMS_KEY

ALL

public static final String ALL
See Also:
Constant Field Values

MODIFIED

public static final String MODIFIED
See Also:
Constant Field Values

owlModel

private OWLModel owlModel

project

private edu.stanford.smi.protege.model.Project project

widgetClassMapper

private WidgetClassMapper widgetClassMapper

SUFFIX

public static final String SUFFIX
See Also:
Constant Field Values

FILE_NAME

public static final String FILE_NAME
See Also:
Constant Field Values

PROTEGE_SYSTEM_FORMS_URI

public static final String PROTEGE_SYSTEM_FORMS_URI
See Also:
Constant Field Values
Constructor Detail

AbsoluteFormsGenerator

public AbsoluteFormsGenerator(OWLModel owlModel)
Method Detail

createFormWidget

private void createFormWidget(com.hp.hpl.jena.rdf.model.Model model,
                              RDFSNamedClass cls,
                              boolean all)

createFormWidget

private void createFormWidget(com.hp.hpl.jena.rdf.model.Model model,
                              RDFSNamedClass cls,
                              edu.stanford.smi.protege.widget.ClsWidget clsWidget)

createModel

public com.hp.hpl.jena.rdf.model.Model createModel(TripleStore ts,
                                                   boolean all)
Creates a Jena Model that can be saved etc.

Returns:
the Jena Model for the current Project

getFormsFileURI

private String getFormsFileURI(TripleStore ts)

getFormsFileURI

public static String getFormsFileURI(TripleStore ts,
                                     OWLModel owlModel)

generateFiles

public void generateFiles(String option)
                   throws Exception
Throws:
Exception

saveSystemForms

private void saveSystemForms(String option)
                      throws IOException
Throws:
IOException