/** * Answer a new ontology model constructed according to the specification, which includes * a ModelMaker which will create the necessary base model. */ public static OntModel createOntologyModel( OntModelSpec spec ) { return new OntModelImpl( spec ); }
/** * Answer a new ontology model constructed according to the specification, which includes * a ModelMaker which will create the necessary base model. */ public static OntModel createOntologyModel( OntModelSpec spec ) { return new OntModelImpl( spec ); }
/** * <p> * Answer a new ontology model, constructed according to the given ontology model specification, * and starting with the ontology data in the given model. * </p> * * @param spec An ontology model specification object, that will be used to construct the ontology * model with different options of ontology language, reasoner, document manager and storage model * @param base An existing model to treat as an ontology model, or null. * @return A new ontology model * @see OntModelSpec */ public static OntModel createOntologyModel( OntModelSpec spec, Model base ) { return new OntModelImpl( spec, base ); }
/** * <p> * Answer a new ontology model, constructed according to the given ontology model specification, * and starting with the ontology data in the given model. * </p> * * @param spec An ontology model specification object, that will be used to construct the ontology * model with different options of ontology language, reasoner, document manager and storage model * @param base An existing model to treat as an ontology model, or null. * @return A new ontology model * @see OntModelSpec */ public static OntModel createOntologyModel( OntModelSpec spec, Model base ) { return new OntModelImpl( spec, base ); }
/** * <p>Create an OntModel according to this model specification. * The base model comes from the underlying ModelMaker and is named by the * given name.</p> */ public Model implementCreateModelOver( String name ) { return new OntModelImpl( this, maker.createModel( name, false ) ); }
/** * <p>Create an OntModel according to this model specification. * The base model comes from the underlying ModelMaker and is named by the * given name.</p> */ public Model implementCreateModelOver( String name ) { return new OntModelImpl( this, maker.createModel( name, false ) ); }
/** * <p>Create an OntModel according to this model specification. * The base model comes from the attached base ModelMaker.</p> * @return an OntModel satisfying this specification */ public Model doCreateModel() { Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName ); return new OntModelImpl( this, m ); }
/** * <p>Create an OntModel according to this model specification. * The base model comes from the attached base ModelMaker.</p> * @return an OntModel satisfying this specification */ public Model doCreateModel() { Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName ); return new OntModelImpl( this, m ); }
public static OntModel createOntologyModel(Model model) { Graph graph = model.getGraph(); Model bareModel = new ModelCom(graph); OntModel ontModel = new OntModelImpl(OWL_MEM, bareModel); return new BulkUpdatingOntModel(ontModel); }
o -> { Model base = ModelFactory.createModelForGraph( o ); OntModel om = new OntModelImpl( m_spec, base, withImports ); return om; } );
o -> { Model base = ModelFactory.createModelForGraph( o ); OntModel om = new OntModelImpl( m_spec, base, withImports ); return om; } );