Examples of listPropertyValues()


Examples of com.hp.hpl.jena.ontology.Individual.listPropertyValues()

            for (int i = 0; i < boxes.length; i++) {
              boxes[i].setSelected(false);
              Individual yd_i = model.getIndividual(prefix
                  + boxes[i].getLabel());
              Iterator it = yd_i.listPropertyValues(gjc);
              while (it.hasNext()) {
                Literal lt = (Literal) it.next();
               
                String[] literal_tokens = seg.split(lt.getString()).getFinalResult().split("/\\w+ ");
View Full Code Here

Examples of com.hp.hpl.jena.ontology.Individual.listPropertyValues()

          qr = new QueryResult(OntologyElement.LITERAL);
        } else {
          return null;
        }

        NodeIterator it = s_i.listPropertyValues(p_p);
        while (it.hasNext()) {
          RDFNode node = it.nextNode();
          if (node.isLiteral()
              && OntologyElement.LITERAL.equals(qr.getType())) {
            qr.add(wrap((Literal) node));
View Full Code Here

Examples of com.hp.hpl.jena.ontology.Individual.listPropertyValues()

    model.prepare();

    Literal oneDecimal = model.createTypedLiteral( "1", TypeMapper.getInstance().getTypeByName(
        XSD.decimal.getURI() ) );
   
    assertIteratorValues( a.listPropertyValues( dp ), new Literal[] { one } );
    assertTrue( a.hasProperty( dp, oneDecimal ) );
  }

  @Test
  public void testClosedUniverse() {
View Full Code Here

Examples of com.hp.hpl.jena.ontology.Individual.listPropertyValues()

    assertIteratorValues( b.listPropertyValues( p ), new Resource[] { b, c } );

    assertIteratorValues( b.listPropertyValues( q ), new Resource[] { a } );

    assertIteratorValues( c.listPropertyValues( p ), new Resource[] { b, c } );

    assertIteratorValues( c.listPropertyValues( q ), new Resource[] { a } );

  }
View Full Code Here

Examples of com.hp.hpl.jena.ontology.Individual.listPropertyValues()

    assertIteratorValues( b.listPropertyValues( q ), new Resource[] { a } );

    assertIteratorValues( c.listPropertyValues( p ), new Resource[] { b, c } );

    assertIteratorValues( c.listPropertyValues( q ), new Resource[] { a } );

  }

  @Test
  public void testSameAs2() {
View Full Code Here

Examples of com.hp.hpl.jena.ontology.Individual.listPropertyValues()

    model.prepare();

    Literal oneDecimal = model.createTypedLiteral( "1", TypeMapper.getInstance().getTypeByName(
        XSD.decimal.getURI() ) );
   
    assertIteratorValues( a.listPropertyValues( dp ), new Literal[] { one } );
    assertTrue( a.hasProperty( dp, oneDecimal ) );
  }

  @Test
  public void testClosedUniverse() {
View Full Code Here

Examples of com.hp.hpl.jena.ontology.Individual.listPropertyValues()

    assertIteratorValues( b.listPropertyValues( p ), new Resource[] { b, c } );

    assertIteratorValues( b.listPropertyValues( q ), new Resource[] { a } );

    assertIteratorValues( c.listPropertyValues( p ), new Resource[] { b, c } );

    assertIteratorValues( c.listPropertyValues( q ), new Resource[] { a } );

  }
View Full Code Here

Examples of com.hp.hpl.jena.ontology.Individual.listPropertyValues()

    assertIteratorValues( b.listPropertyValues( q ), new Resource[] { a } );

    assertIteratorValues( c.listPropertyValues( p ), new Resource[] { b, c } );

    assertIteratorValues( c.listPropertyValues( q ), new Resource[] { a } );

  }

  @Test
  public void testSameAs2() {
View Full Code Here

Examples of com.hp.hpl.jena.ontology.Individual.listPropertyValues()

        XSD.positiveInteger.getURI() ) );
    b.addProperty( dp, two );

    graph.getKB().isConsistent();

    assertIteratorValues( b.listPropertyValues( dp ), new Literal[] { two } );
    // check that the update occurred and that the incremental consistency
    // was used
    assertTrue( !PelletOptions.USE_INCREMENTAL_CONSISTENCY || graph.getKB().timers.getTimer( "isIncConsistent" ).getCount() == 2 );
  }
View Full Code Here

Examples of com.hp.hpl.jena.ontology.Individual.listPropertyValues()

    model.prepare();

    PelletInfGraph graph = (PelletInfGraph) model.getGraph();

    assertTrue( graph.getKB().timers.getTimer( "isIncConsistent" ) == null );
    assertIteratorValues( a.listPropertyValues( dp ), new Literal[] { one } );

    a.addProperty( op, anon1 );

    // check consistency
    model.prepare();
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.