Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLDataHasValue


    }

    @Test
    public void shouldBuildDataHasValue() {
        // given
        OWLDataHasValue expected = df.getOWLDataHasValue(dp, lit);
        BuilderDataHasValue builder = new BuilderDataHasValue(expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
View Full Code Here


      String clsuri, String propuri) {
    Set<String> valset = new HashSet<String>();
    OWLClass someclass = factory.getOWLClass(IRI.create(clsuri));
    for(OWLClassExpression oneclsex : someclass.getSuperClasses(ont)){
      if(oneclsex instanceof OWLDataHasValue){
        OWLDataHasValue hasvalex = (OWLDataHasValue)oneclsex;
        if(hasvalex.getProperty().asOWLDataProperty().getIRI().toString().equals(propuri)){
          valset.add(hasvalex.getValue().getLiteral());
        }
      }
    }
    return valset;
  }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.model.OWLDataHasValue

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.