Package com.hp.hpl.jena.rdf.model

Examples of com.hp.hpl.jena.rdf.model.InfModel


  @Test
  public void test421() {
    String aOnt = "file:" + PelletTestSuite.base + "misc/ticket-421-test-case.owl";
   
    PelletReasoner aReasoner = (PelletReasoner) PelletReasonerFactory.theInstance().create();
    InfModel aModel = ModelFactory.createInfModel( aReasoner, ModelFactory.createDefaultModel() );

    aModel.read(aOnt);
    String aQuery = "PREFIX : <http://www.semanticweb.org/ontologies/2010/5/ticket-421-test-case.owl#>\n"   
      + "PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n"
      + "PREFIX owl: <http://www.w3.org/2002/07/owl#>\n"
      + "SELECT ?x\n"
      + "WHERE {\n"
View Full Code Here


  @Test
  public void test444() {
    String aOnt = "file:" + PelletTestSuite.base + "misc/ticket-444-test-case.owl";
   
    PelletReasoner aReasoner = (PelletReasoner) PelletReasonerFactory.theInstance().create();
    InfModel aModel = ModelFactory.createInfModel( aReasoner, ModelFactory.createDefaultModel() );

    aModel.read(aOnt);
    String aQuery = "PREFIX : <http://www.semanticweb.org/ontologies/2010/5/ticket-444-test-case.owl#>\n"   
      + "PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n"
      + "PREFIX owl: <http://www.w3.org/2002/07/owl#>\n"
      + "SELECT *\n"
      + "WHERE {\n"
View Full Code Here

   * rdf:seeAlso links
   */
  private void sameAs() {
    Model data = getModel();

    InfModel infModel = ModelFactory.createRDFSModel(data);
    Resource resource = infModel.getResource(johnPrimeURI);
    printStatements("John Smith RDFS Reasoned:", infModel, resource, null, null);

    runTestQuery(infModel);
  }
View Full Code Here

  private void sameAs() {
    Resource resource;
    Model model = getModel();

    Reasoner owlReasoner = ReasonerRegistry.getOWLReasoner();
    InfModel infModel = ModelFactory.createInfModel(owlReasoner, model);

    resource = infModel.getResource(johnPrimeURI);
    printStatements("OWLReasoned", infModel, resource, null, null);

    runTestQuery(infModel);
  }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.rdf.model.InfModel

Copyright © 2018 www.massapicom. 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.