Package com.hp.hpl.jena.ontology

Examples of com.hp.hpl.jena.ontology.DataRange


      if (schema.isValidDatatype(base) && uri==null)
        return enumeration.toOWL(xs.ont,base,_enumeration);
      // in OWL full a datarange is a class
      else if (schema.isValidDatatype(base)) {
        OntClass c = xs.ont.createClass(uri);
        DataRange e = enumeration.toOWL(xs.ont,base,_enumeration);
        // assert equivalence with the anonymous datarange
        c.addEquivalentClass(e);
        return c;
      }
      // declare enumerated complex type
View Full Code Here


   
    pw.println("  { rank=source");
   
   
    for ( String id : dataRanges.keySet() ) {
      DataRange dataRange = dataRanges.get(id);
      String name = _info.getDataRangeName(id);
     
      StringBuffer label = new StringBuffer("{");
      String separator = "";
      if ( includeName ) {
View Full Code Here

   
   
    int nextDataRangeIndex = 1;
    ExtendedIterator<?> dataRanges = ontModel.listDataRanges();
    while ( dataRanges.hasNext() ) {
      DataRange dataRange = (DataRange) dataRanges.next();
      String id = dataRange.isAnon() ? dataRange.getId().getLabelString() : dataRange.getURI();
      _dataRanges.put(id , dataRange);
      String dataRangeName = "DR_" + String.valueOf(nextDataRangeIndex++);
      _dataRangeNames.put(id, dataRangeName );
    }
   
View Full Code Here

    while (it.hasNext()) {
      OntResource resource = (OntResource) it.next();

      if (resource.isDataRange()) {

        DataRange dr = resource.asDataRange();
        Iterator itoof = dr.listOneOf();
        while (itoof.hasNext()) {
          Literal literal = (Literal) itoof.next();
          declaredValues.add(literal);
        }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.ontology.DataRange

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.