Package org.semanticweb.owl.model

Examples of org.semanticweb.owl.model.OWLDataRange


    final protected OWLDescription translateRestriction(URI mainNode) throws OWLException {
        URI fillerObject = getResourceObject(mainNode, getFillerTriplePredicate(), true);
        if(fillerObject == null) {
            throw new MalformedDescriptionException(getFillerTriplePredicate() + " is not present");
        }
        OWLDataRange dataRange = getConsumer().translateDataRange(fillerObject);
        return createRestriction(translateOnProperty(mainNode), dataRange);
    }
View Full Code Here


      OWLDescription desc = (OWLDescription) obj;

      obj = factory.getOWLObjectSomeRestriction( (OWLObjectPropertyExpression) prop, desc );
    }
    else {
      OWLDataRange datatype = (OWLDataRange) obj;

      obj = factory.getOWLDataSomeRestriction( (OWLDataProperty) prop, datatype );
    }
  }
View Full Code Here

      OWLDescription desc = (OWLDescription) obj;

      obj = factory.getOWLObjectAllRestriction( (OWLObjectPropertyExpression) prop, desc );
    }
    else {
      OWLDataRange datatype = (OWLDataRange) obj;

      obj = factory.getOWLDataAllRestriction( (OWLDataProperty) prop, datatype );
    }

  }
View Full Code Here

      OWLDescription c = (OWLDescription) convert( (ATermAppl) term.getArgument( 2 ) );
      obj = factory.getOWLObjectMinCardinalityRestriction( (OWLObjectPropertyExpression) prop,
          cardinality, c );
    }
    else {
      OWLDataRange d = (OWLDataRange) convert( (ATermAppl) term.getArgument( 2 ) );
      obj = factory.getOWLDataMinCardinalityRestriction( (OWLDataProperty) prop, cardinality,
          d );
    }
  }
View Full Code Here

      OWLDescription c = (OWLDescription) convert( (ATermAppl) term.getArgument( 2 ) );
      obj = factory.getOWLObjectExactCardinalityRestriction( (OWLObjectPropertyExpression) prop,
          cardinality, c );
    }
    else {
      OWLDataRange d = (OWLDataRange) convert( (ATermAppl) term.getArgument( 2 ) );
      obj = factory.getOWLDataExactCardinalityRestriction( (OWLDataProperty) prop,
          cardinality, d );
    }
  }
View Full Code Here

      OWLDescription c = (OWLDescription) convert( (ATermAppl) term.getArgument( 2 ) );
      obj = factory.getOWLObjectMaxCardinalityRestriction( (OWLObjectPropertyExpression) prop,
          cardinality, c );
    }
    else {
      OWLDataRange d = (OWLDataRange) convert( (ATermAppl) term.getArgument( 2 ) );
      obj = factory.getOWLDataMaxCardinalityRestriction( (OWLDataProperty) prop, cardinality,
          d );
    }
  }
View Full Code Here

    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    OWLDataFactory factory = manager.getOWLDataFactory();
    OWLOntology ontology = manager.createOntology(URI
        .create("http://example.org"));
   
    OWLDataRange dataRange = factory.getOWLDataType(XSDVocabulary.INTEGER
        .getURI());
    OWLDataRangeFacetRestriction dataRangeFacetRestriction = factory
        .getOWLDataRangeFacetRestriction(
            OWLRestrictedDataRangeFacetVocabulary.MIN_EXCLUSIVE, 1);
    OWLDataRangeRestriction dataRangeRestriction = factory
View Full Code Here

TOP

Related Classes of org.semanticweb.owl.model.OWLDataRange

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.