Package com.hp.hpl.jena.ontology

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


//                    RDFS.isDefinedBy.getURI(),
//                    RDFS.isDefinedBy.getLocalName(),
//                    RDFS.isDefinedBy.getLocalName(),
//                    individual.listIsDefinedBy(),relationsMap));
           
             createRelationsFromProperties(individual.listProperties(), relationsMap);
                  
            conceptRelations.addAll(relationsMap.values());
           
            concept.getInstanceof().getConceptDescriptions().addAll(createInstanceOf(individual));               
        }
View Full Code Here


              .getActualWeight(Weights.INDIVIDUAL_CLASS));

          for (DatatypeProperty dp : JenaUtil.getDatatypeProperties(
              cls, false)) {

            StmtIterator sit = ind.listProperties(dp);
            if (sit.hasNext()) {
              offer(
                  nextToken,
                  dp.getLocalName(),
                  tree
View Full Code Here

          }
          for (ObjectProperty op : JenaUtil.getObjectProperties(cls,
              false)) {

            StmtIterator sit = ind.listProperties(op);
            if (sit.hasNext()) {
              offer(
                  nextToken,
                  op.getLocalName(),
                  tree
View Full Code Here

    assertTrue( !i1.isSameAs( i3 ) );

    assertFalse( i1.listProperties( p ).hasNext() );
    assertFalse( i2.listProperties( p ).hasNext() );
    assertFalse( i3.listProperties( p ).hasNext() );
  }

  @Test
  public void testIFDP3() {
    String ns = "http://www.example.org/test#";
View Full Code Here

    // predicate
    assertTrue( i2.hasProperty( prop, "test" ) );

    // confirm that the property is copied over when querying with a
    // predicate
    assertIteratorContains( i2.listProperties(), model.createStatement( i2, prop, "test" ) );
  }

  @Test
  public void testSameAs3() {
    OntModelSpec ontModelSpec = new OntModelSpec( OntModelSpec.OWL_DL_MEM_RULE_INF );
View Full Code Here

    assertTrue( !i1.isSameAs( i3 ) );

    assertFalse( i1.listProperties( p ).hasNext() );
    assertFalse( i2.listProperties( p ).hasNext() );
    assertFalse( i3.listProperties( p ).hasNext() );
  }

  @Test
  public void testIFDP3() {
    String ns = "http://www.example.org/test#";
View Full Code Here

    // predicate
    assertTrue( i2.hasProperty( prop, "test" ) );

    // confirm that the property is copied over when querying with a
    // predicate
    assertIteratorContains( i2.listProperties(), model.createStatement( i2, prop, "test" ) );
  }

  @Test
  public void testSameAs3() {
    OntModelSpec ontModelSpec = new OntModelSpec( OntModelSpec.OWL_DL_MEM_RULE_INF );
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.