/** * <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 ); }
dbMaker.createModel("http://dbpedia.org/resource/Frederick_of_Sweden");
protected void init(ProvenanceQuery pq, OutputStream outStream) { setOutputStream(outStream); setQuery(pq); mm = ModelFactory.createFileModelMaker(modelName); // TODO add open model to append to existing models m = mm.createModel(this.modelName); m.setNsPrefix("janus",JanusOntology.getURI()); m.setNsPrefix(PROVENIR_PREFIX, PROVENIR_NS); m.setNsPrefix(OBO_PREFIX, OBO_NS); m.setNsPrefix(RDFS_PREFIX, RDFS_NS); m.setNsPrefix(XSD_PREFIX, XSD_NS); RDFS_COMMENT = m.createProperty(RDFS_NS, "comment"); }