1 19 20 package com.hp.hpl.jena.ontology; 23 24 25 26 import com.hp.hpl.jena.rdf.model.*; 29 30 31 41 public interface Restriction 42 extends OntClass 43 { 44 47 48 51 53 59 public void setOnProperty( Property prop ); 60 61 68 public OntProperty getOnProperty(); 69 70 76 public boolean onProperty( Property prop ); 77 78 83 public void removeOnProperty( Property prop ); 84 85 86 87 89 95 public AllValuesFromRestriction asAllValuesFromRestriction(); 96 97 103 public SomeValuesFromRestriction asSomeValuesFromRestriction(); 104 105 111 public HasValueRestriction asHasValueRestriction(); 112 113 119 public CardinalityRestriction asCardinalityRestriction(); 120 121 127 public MinCardinalityRestriction asMinCardinalityRestriction(); 128 129 135 public MaxCardinalityRestriction asMaxCardinalityRestriction(); 136 137 138 140 145 public boolean isAllValuesFromRestriction(); 146 147 152 public boolean isSomeValuesFromRestriction(); 153 154 159 public boolean isHasValueRestriction(); 160 161 168 public boolean isCardinalityRestriction(); 169 170 177 public boolean isMinCardinalityRestriction(); 178 179 186 public boolean isMaxCardinalityRestriction(); 187 188 189 191 198 public AllValuesFromRestriction convertToAllValuesFromRestriction( Resource cls ); 199 200 207 public SomeValuesFromRestriction convertToSomeValuesFromRestriction( Resource cls ); 208 209 216 public HasValueRestriction convertToHasValueRestriction( RDFNode value ); 217 218 224 public CardinalityRestriction convertToCardinalityRestriction( int cardinality ); 225 226 232 public MinCardinalityRestriction convertToMinCardinalityRestriction( int cardinality ); 233 234 240 public MaxCardinalityRestriction convertToMaxCardinalityRestriction( int cardinality ); 241 242 } 243 244 245 274 275 | Popular Tags |