Examples of openModel()


Examples of com.hp.hpl.jena.assembler.assemblers.FileModelAssembler.openModel()

                assertEquals( wantedCreate, create );
                assertEquals( wantedStrict, strict );
                return model;
                }
            };
        Model m = a.openModel( root  );
        assertSame( model, m );
        }
    }
View Full Code Here

Examples of com.hp.hpl.jena.assembler.assemblers.MemoryModelAssembler.openModel()

        { testDemandsMinimalType( new MemoryModelAssembler(), JA.MemoryModel )}
   
    public void testMemoryModelAssembler()
        {
        Assembler a = new MemoryModelAssembler();
        Model m = a.openModel( resourceInModel( "x rdf:type ja:MemoryModel" ) );
        assertInstanceOf( Model.class, m );
        assertInstanceOf( GraphMemBase.class, m.getGraph() );
        }
   
    public void testCreatesWithStyle()
View Full Code Here

Examples of com.hp.hpl.jena.assembler.assemblers.MemoryModelAssembler.openModel()

        { testDemandsMinimalType( new MemoryModelAssembler(), JA.MemoryModel )}
   
    public void testMemoryModelAssembler()
        {
        Assembler a = new MemoryModelAssembler();
        Model m = a.openModel( resourceInModel( "x rdf:type ja:MemoryModel" ) );
        assertInstanceOf( Model.class, m );
        assertInstanceOf( GraphMemBase.class, m.getGraph() );
        }
    }
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.ModelMaker.openModel()

    IDBConnection conn = new DBConnection(dbUrl, userName, password, "MySQL");

    // create a model maker with the given connection parameters
    ModelMaker maker = ModelFactory.createModelRDBMaker(conn);

    ModelRDB model = (ModelRDB) maker.openModel(modelName);
    InputStream file = new FileInputStream(rdfFileName);
    model.read(file,null,"N3");
    file.close();
  }
 
View Full Code Here

Examples of ptolemy.actor.gui.Configuration.openModel()

                    Configuration configuration = getConfiguration();
                    URL infoURL = getClass().getResource(
                            "../../../doc/codegen.htm");

                    try {
                        configuration.openModel(null, infoURL, infoURL
                                .toExternalForm());
                    } catch (Exception ex) {
                        throw new InternalErrorException(model, ex,
                                "Failed to open doc/codegen.htm: ");
                    }
View Full Code Here

Examples of ptolemy.actor.gui.Configuration.openModel()

                    try {
                        _parser.reset();
                        // Export the model into moml string and then import it
                        // again. Needed b some models with unnoticeable state.
                        NamedObj newModel = _parser.parse(model.exportMoML());
                        Tableau tableau = configuration.openModel(newModel,
                                effigy);
                        if (_tableaus[i] != null) {
                            _tableaus[i].close();
                        }
                        _tableaus[i] = tableau;
View Full Code Here

Examples of ptolemy.actor.gui.Configuration.openModel()

                    }
                }

                try {
                    Configuration configuration = _owner.getConfiguration();
                    configuration
                            .openModel(null, _help, _help.toExternalForm());
                } catch (Exception e1) {
                    HTMLViewer viewer = new HTMLViewer();
                    try {
                        viewer.setPage(_help);
View Full Code Here

Examples of ptolemy.actor.gui.Configuration.openModel()

                }

                if (docAttribute != null) {
                    URL doc = MoMLApplication.specToURL(docAttribute
                            .getExpression());
                    configuration.openModel(doc, doc, doc.toExternalForm());
                } else {
                    NamedObj container = object.getContainer();

                    if (container == null) {
                        container = object;
View Full Code Here

Examples of ptolemy.actor.gui.Configuration.openModel()

                getFrameController().getConfiguration();
            if (configuration == null) {
                throw new InternalErrorException("Cannot get configuration.");
            }

            Tableau tableau = configuration.openModel(model);
            MatchResultViewer viewer = (MatchResultViewer) tableau.getFrame();
            viewer.setMatchResult(results);
            viewer.setSourceFileName(sourceFileName);
            viewer.setTransformationRule(
                    getFrameController().getTransformationRule());
View Full Code Here

Examples of ptolemy.actor.gui.Configuration.openModel()

            if (toOpen != null) {
                Configuration configuration = SingleWindowApplication._mainFrame
                        .getConfiguration();

                try {
                    configuration.openModel(toOpen);
                } catch (IllegalActionException e1) {
                    e1.printStackTrace();
                } catch (NameDuplicationException e1) {
                    e1.printStackTrace();
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.