1 19 20 package com.hp.hpl.jena.ontology; 23 24 25 import com.hp.hpl.jena.rdf.model.*; 28 import com.hp.hpl.jena.util.iterator.ExtendedIterator; 29 30 31 32 42 public interface OntResource 43 extends Resource 44 { 45 48 49 50 53 61 public Profile getProfile(); 62 63 70 public boolean isOntLanguageTerm(); 71 72 73 75 81 public void setSameAs( Resource res ); 82 83 88 public void addSameAs( Resource res ); 89 90 96 public OntResource getSameAs(); 97 98 104 public ExtendedIterator listSameAs(); 105 106 112 public boolean isSameAs( Resource res ); 113 114 119 public void removeSameAs( Resource res ); 120 121 123 129 public void setDifferentFrom( Resource res ); 130 131 136 public void addDifferentFrom( Resource res ); 137 138 144 public OntResource getDifferentFrom(); 145 146 152 public ExtendedIterator listDifferentFrom(); 153 154 159 public boolean isDifferentFrom( Resource res ); 160 161 166 public void removeDifferentFrom( Resource res ); 167 168 170 175 public void setSeeAlso( Resource res ); 176 177 182 public void addSeeAlso( Resource res ); 183 184 190 public Resource getSeeAlso(); 191 192 198 public ExtendedIterator listSeeAlso(); 199 200 205 public boolean hasSeeAlso( Resource res ); 206 207 213 public void removeSeeAlso( Resource res ); 214 215 217 223 public void setIsDefinedBy( Resource res ); 224 225 230 public void addIsDefinedBy( Resource res ); 231 232 238 public Resource getIsDefinedBy(); 239 240 246 public ExtendedIterator listIsDefinedBy(); 247 248 253 public boolean isDefinedBy( Resource res ); 254 255 260 public void removeDefinedBy( Resource res ); 261 262 264 270 public void setVersionInfo( String info ); 271 272 277 public void addVersionInfo( String info ); 278 279 285 public String getVersionInfo(); 286 287 292 public ExtendedIterator listVersionInfo(); 293 294 299 public boolean hasVersionInfo( String info ); 300 301 307 public void removeVersionInfo( String info ); 308 309 311 318 public void setLabel( String label, String lang ); 319 320 326 public void addLabel( String label, String lang ); 327 328 333 public void addLabel( Literal label ); 334 335 343 public String getLabel( String lang ); 344 345 351 public ExtendedIterator listLabels( String lang ); 352 353 359 public boolean hasLabel( String label, String lang ); 360 361 366 public boolean hasLabel( Literal label ); 367 368 375 public void removeLabel( String label, String lang ); 376 377 383 public void removeLabel( Literal label ); 384 385 387 394 public void setComment( String comment, String lang ); 395 396 402 public void addComment( String comment, String lang ); 403 404 409 public void addComment( Literal comment ); 410 411 419 public String getComment( String lang ); 420 421 427 public ExtendedIterator listComments( String lang ); 428 429 435 public boolean hasComment( String comment, String lang ); 436 437 442 public boolean hasComment( Literal comment ); 443 444 451 public void removeComment( String comment, String lang ); 452 453 459 public void removeComment( Literal comment ); 460 461 462 464 472 public void setRDFType( Resource cls ); 473 474 479 public void addRDFType( Resource cls ); 480 481 492 public Resource getRDFType(); 493 494 507 public Resource getRDFType( boolean direct ); 508 509 521 public ExtendedIterator listRDFTypes( boolean direct ); 522 523 534 public boolean hasRDFType( Resource ontClass, boolean direct ); 535 536 548 public boolean hasRDFType( Resource ontClass ); 549 550 555 public void removeRDFType( Resource cls ); 556 557 565 public boolean hasRDFType( String uri ); 566 567 568 569 571 578 public int getCardinality( Property p ); 579 580 593 public void setPropertyValue( Property property, RDFNode value ); 594 595 596 605 public RDFNode getPropertyValue( Property property ); 606 607 608 615 public NodeIterator listPropertyValues( Property property ); 616 617 633 public void remove(); 634 635 636 642 public void removeProperty( Property property, RDFNode value ); 643 644 645 647 652 public OntProperty asProperty(); 653 654 659 public AnnotationProperty asAnnotationProperty(); 660 661 666 public ObjectProperty asObjectProperty(); 667 668 673 public DatatypeProperty asDatatypeProperty(); 674 675 680 public Individual asIndividual(); 681 682 687 public OntClass asClass(); 688 689 694 public Ontology asOntology(); 695 696 701 public DataRange asDataRange(); 702 703 708 public AllDifferent asAllDifferent(); 709 710 711 713 717 public boolean isProperty(); 718 719 723 public boolean isAnnotationProperty(); 724 725 729 public boolean isObjectProperty(); 730 731 735 public boolean isDatatypeProperty(); 736 737 741 public boolean isIndividual(); 742 743 747 public boolean isClass(); 748 749 753 public boolean isOntology(); 754 755 759 public boolean isDataRange(); 760 761 765 public boolean isAllDifferent(); 766 767 768 } 769 770 771 800 | Popular Tags |