Skip to content

Commit

Permalink
New constructor, taking a Jena Model (not JenaModel)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuell authored and egonw committed Jun 28, 2011
1 parent d54637e commit 7f86f3a
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -18,10 +18,17 @@ public class JenaModel implements IJenaStore {

private Model model;

protected JenaModel() {
public JenaModel() {
RDFReaderFImpl.setClassLoader(this.getClass().getClassLoader());
model = ModelFactory.createOntologyModel();
}

public JenaModel( Model jenaTypeModel ) {
RDFReaderFImpl.setClassLoader(this.getClass().getClassLoader());
model = ModelFactory.createOntologyModel();
getModel().add( jenaTypeModel );
}


public Model getModel() {
return this.model;
Expand Down

0 comments on commit 7f86f3a

Please sign in to comment.