/** Answer a Model constructed from the single resource in <code>singleRoot</code> of type <code>ja:Model</code>. See the Assembler howto (doc/assembler/assembler-howto.html) for documentation of Assembler descriptions. See also <code>findAssemblerRoots</code> to find the set of possible roots in a description, and <code>assemblerModelFrom(Resource)</code> for assembling a model from its single description. */ public static Model assembleModelFrom( Model singleRoot ) { return assembleModelFrom( AssemblerHelp.singleModelRoot( singleRoot ) ); }
/** Answer a Model constructed from the single resource in <code>singleRoot</code> of type <code>ja:Model</code>. See the Assembler howto (doc/assembler/assembler-howto.html) for documentation of Assembler descriptions. See also <code>findAssemblerRoots</code> to find the set of possible roots in a description, and <code>assemblerModelFrom(Resource)</code> for assembling a model from its single description. */ public static Model assembleModelFrom( Model singleRoot ) { return assembleModelFrom( AssemblerHelp.singleModelRoot( singleRoot ) ); }
/** Acceptance test inherited from ontology ModelSpec tests when ModelSpec went obsolete. Ensure that an OntModel constructed with a reasoner does the (well, some) reasoning. Probably unnecessary given the way the assembler unit test suite works but belt-and-braces for now at least. */ public void test_ijd_01() { Model m = modelWithStatements ( "x ja:ontModelSpec _o" + "; _o ja:reasonerFactory _f; _o ja:ontLanguage http://www.w3.org/2002/07/owl#" + "; _f ja:reasonerURL http://jena.hpl.hp.com/2003/OWLFBRuleReasoner" ); OntModel om = (OntModel) ModelFactory.assembleModelFrom( m ); proxyForReasoning( om ); }
/** Acceptance test inherited from ontology ModelSpec tests when ModelSpec went obsolete. Ensure that an OntModel constructed with a reasoner does the (well, some) reasoning. Probably unnecessary given the way the assembler unit test suite works but belt-and-braces for now at least. */ public void test_ijd_01() { Model m = modelWithStatements ( "x ja:ontModelSpec _o" + "; _o ja:reasonerFactory _f; _o ja:ontLanguage http://www.w3.org/2002/07/owl#" + "; _f ja:reasonerURL http://jena.hpl.hp.com/2003/OWLFBRuleReasoner" ); OntModel om = (OntModel) ModelFactory.assembleModelFrom( m ); proxyForReasoning( om ); }