1 19 20 package com.hp.hpl.jena.ontology; 23 24 25 26 27 import com.hp.hpl.jena.rdf.model.*; 30 import com.hp.hpl.jena.util.iterator.ExtendedIterator; 31 32 33 42 public interface OntClass 43 extends OntResource 44 { 45 48 49 52 54 56 62 public void setSuperClass( Resource cls ); 63 64 69 public void addSuperClass( Resource cls ); 70 71 79 public OntClass getSuperClass(); 80 81 87 public ExtendedIterator listSuperClasses(); 88 89 102 public ExtendedIterator listSuperClasses( boolean direct ); 103 104 110 public boolean hasSuperClass( Resource cls ); 111 112 118 public boolean hasSuperClass(); 119 120 131 public boolean hasSuperClass( Resource cls, boolean direct ); 132 133 139 public void removeSuperClass( Resource cls); 140 141 142 148 public void setSubClass( Resource cls ); 149 150 155 public void addSubClass( Resource cls ); 156 157 165 public OntClass getSubClass(); 166 167 173 public ExtendedIterator listSubClasses(); 174 175 221 public ExtendedIterator listSubClasses( boolean direct ); 222 223 229 public boolean hasSubClass( Resource cls ); 230 231 237 public boolean hasSubClass(); 238 239 250 public boolean hasSubClass( Resource cls, boolean direct ); 251 252 258 public void removeSubClass( Resource cls ); 259 260 261 263 269 public void setEquivalentClass( Resource cls ); 270 271 276 public void addEquivalentClass( Resource cls ); 277 278 284 public OntClass getEquivalentClass(); 285 286 292 public ExtendedIterator listEquivalentClasses(); 293 294 300 public boolean hasEquivalentClass( Resource cls ); 301 302 309 public void removeEquivalentClass( Resource cls ); 310 311 312 314 320 public void setDisjointWith( Resource cls ); 321 322 327 public void addDisjointWith( Resource cls ); 328 329 335 public OntClass getDisjointWith(); 336 337 343 public ExtendedIterator listDisjointWith(); 344 345 351 public boolean isDisjointWith( Resource cls ); 352 353 360 public void removeDisjointWith( Resource cls ); 361 362 363 365 377 public ExtendedIterator listDeclaredProperties(); 378 379 380 393 public ExtendedIterator listDeclaredProperties( boolean direct ); 394 395 396 405 public boolean hasDeclaredProperty( Property p, boolean direct ); 406 407 408 415 public ExtendedIterator listInstances(); 416 417 418 422 public Individual createIndividual(); 423 424 425 430 public Individual createIndividual( String uri ); 431 432 433 441 public boolean isHierarchyRoot(); 442 443 444 446 452 public EnumeratedClass asEnumeratedClass(); 453 454 460 public UnionClass asUnionClass(); 461 462 468 public IntersectionClass asIntersectionClass(); 469 470 476 public ComplementClass asComplementClass(); 477 478 484 public Restriction asRestriction(); 485 486 488 492 public boolean isEnumeratedClass(); 493 494 498 public boolean isUnionClass(); 499 500 504 public boolean isIntersectionClass(); 505 506 510 public boolean isComplementClass(); 511 512 516 public boolean isRestriction(); 517 518 519 521 527 public EnumeratedClass convertToEnumeratedClass( RDFList individuals ); 528 529 534 public IntersectionClass convertToIntersectionClass( RDFList classes ); 535 536 541 public UnionClass convertToUnionClass( RDFList classes ); 542 543 548 public ComplementClass convertToComplementClass( Resource cls ); 549 550 555 public Restriction convertToRestriction( Property prop ); 556 557 558 } 559 560 561 590 591 | Popular Tags |