eu.lod2.nlp2rdf.schema.tools
Class Factory

java.lang.Object
  extended by eu.lod2.nlp2rdf.schema.tools.Factory

public class Factory
extends Object

Factory


Constructor Summary
Factory()
           
 
Method Summary
static boolean deleteInstance(String uri)
          Same as deleteInstance, but works with the default OntModel
static boolean deleteInstance(String uri, com.hp.hpl.jena.ontology.OntModel ontModel)
          Deletes the individual with URI from the OntModel
static com.hp.hpl.jena.ontology.OntModel getDefaultModel()
          Returns the default ontModel set with setDefaultModel()
static String getJavaInterfaceName(String uri)
          Returns the interface name for a given OWL Class
static boolean hasJavaType(String uri)
          Returns true if there is a java interface for the given OWL Class
static void registerCustomClasses()
          Registers all custom classes with jena
 void registerImports(com.hp.hpl.jena.ontology.Ontology ontology)
          Same as registerImports, but works with the default OntModel
static void registerImports(com.hp.hpl.jena.ontology.Ontology ontology, com.hp.hpl.jena.ontology.OntModel ontModel)
          Adds imports statements to an ontology and adds imported subModels to a model.
static void setDefaultModel(com.hp.hpl.jena.ontology.OntModel defaultModel)
          Sets the default ontModel that may be used by ontology wrapper classes when no explicit ontModel argument is provided
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Factory

public Factory()
Method Detail

setDefaultModel

public static void setDefaultModel(com.hp.hpl.jena.ontology.OntModel defaultModel)
Sets the default ontModel that may be used by ontology wrapper classes when no explicit ontModel argument is provided


getDefaultModel

public static com.hp.hpl.jena.ontology.OntModel getDefaultModel()
Returns the default ontModel set with setDefaultModel()


getJavaInterfaceName

public static String getJavaInterfaceName(String uri)
Returns the interface name for a given OWL Class


hasJavaType

public static boolean hasJavaType(String uri)
Returns true if there is a java interface for the given OWL Class


deleteInstance

public static boolean deleteInstance(String uri,
                                     com.hp.hpl.jena.ontology.OntModel ontModel)
Deletes the individual with URI from the OntModel


deleteInstance

public static boolean deleteInstance(String uri)
Same as deleteInstance, but works with the default OntModel

See Also:
deleteInstance(java.lang.String, OntModel)

registerCustomClasses

public static void registerCustomClasses()
Registers all custom classes with jena


registerImports

public static void registerImports(com.hp.hpl.jena.ontology.Ontology ontology,
                                   com.hp.hpl.jena.ontology.OntModel ontModel)
Adds imports statements to an ontology and adds imported subModels to a model. Currently, this uses the namespace URI without trailing '#' or ':' as location.


registerImports

public void registerImports(com.hp.hpl.jena.ontology.Ontology ontology)
Same as registerImports, but works with the default OntModel

See Also:
registerImports(Ontology, OntModel)


Copyright © 2011. All Rights Reserved.