Examples of listDeclaredProperties()


Examples of com.hp.hpl.jena.ontology.OntClass.listDeclaredProperties()

    ObjectProperty P = model.createObjectProperty( ns + "P" );
    P.addDomain( model.createUnionClass( null, model.createList( new RDFNode[] { A, B } ) ) );

    OntClass oc = model.getOntClass( ns + "B" );

    assertIteratorValues( oc.listDeclaredProperties(), new Resource[] { P } );
  }

  @Test
  public void testDifferentFrom1() {
    String ns = "urn:test:";
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntClass.listDeclaredProperties()

    ObjectProperty P = model.createObjectProperty( ns + "P" );
    P.addDomain( model.createUnionClass( null, model.createList( new RDFNode[] { A, B } ) ) );

    OntClass oc = model.getOntClass( ns + "B" );

    assertIteratorValues( oc.listDeclaredProperties(), new Resource[] { P } );
  }

  @Test
  public void testDifferentFrom1() {
    String ns = "urn:test:";
View Full Code Here

Examples of com.hp.hpl.jena.ontology.UnionClass.listDeclaredProperties()

        // Find the union class that has this concept/class as a
        // member.
        if (op.getURI() == ontClass.getURI()) {

          // Get the properties binded with this "named class".
          Iterator ittt = unionClass.listDeclaredProperties(direct);
          while (ittt.hasNext()) {
            OntProperty ontProperty = (OntProperty) ittt.next();
            if (ontProperty != null) {
              if (ontProperty.getDomain() == null
                  || ontProperty.getDomain() == OWL.Thing)
View Full Code Here

Examples of com.hp.hpl.jena.ontology.UnionClass.listDeclaredProperties()

        // Find the union class that has this concept/class as a
        // member.
        if (op.getURI() == ontClass.getURI()) {

          // Get the properties binded with this "named class".
          Iterator ittt = unionClass.listDeclaredProperties(direct);
          while (ittt.hasNext()) {
            OntProperty ontProperty = (OntProperty) ittt.next();
            if (ontProperty != null) {
              if (ontProperty.getDomain() == null
                  || ontProperty.getDomain() == OWL.Thing)
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.