1 19 20 package com.hp.hpl.jena.ontology; 23 24 25 import com.hp.hpl.jena.graph.query.BindingQueryPlan; 28 import com.hp.hpl.jena.ontology.event.OntEventManager; 29 import com.hp.hpl.jena.rdf.model.*; 30 import com.hp.hpl.jena.util.iterator.ExtendedIterator; 31 32 import java.io.*; 33 import java.util.*; 34 35 36 37 75 public interface OntModel 76 extends InfModel 77 { 78 81 82 85 99 public ExtendedIterator listOntologies(); 100 101 102 117 public ExtendedIterator listOntProperties(); 118 119 120 135 public ExtendedIterator listObjectProperties(); 136 137 138 153 public ExtendedIterator listDatatypeProperties(); 154 155 156 171 public ExtendedIterator listFunctionalProperties(); 172 173 174 187 public ExtendedIterator listTransitiveProperties(); 188 189 190 203 public ExtendedIterator listSymmetricProperties(); 204 205 206 219 public ExtendedIterator listInverseFunctionalProperties(); 220 221 222 231 public ExtendedIterator listIndividuals(); 232 233 234 244 public ExtendedIterator listClasses(); 245 246 247 255 public ExtendedIterator listHierarchyRootClasses(); 256 257 258 268 public ExtendedIterator listEnumeratedClasses(); 269 270 271 281 public ExtendedIterator listUnionClasses(); 282 283 284 294 public ExtendedIterator listComplementClasses(); 295 296 297 307 public ExtendedIterator listIntersectionClasses(); 308 309 310 319 public ExtendedIterator listNamedClasses(); 320 321 322 332 public ExtendedIterator listRestrictions(); 333 334 335 345 public ExtendedIterator listAnnotationProperties(); 346 347 348 356 public ExtendedIterator listAllDifferent(); 357 358 359 364 public ExtendedIterator listDataRanges(); 365 366 367 378 public Ontology getOntology( String uri ); 379 380 381 391 public Individual getIndividual( String uri ); 392 393 394 404 public OntProperty getOntProperty( String uri ); 405 406 407 417 public ObjectProperty getObjectProperty( String uri ); 418 419 420 427 public TransitiveProperty getTransitiveProperty( String uri ); 428 429 430 437 public SymmetricProperty getSymmetricProperty( String uri ); 438 439 440 447 public InverseFunctionalProperty getInverseFunctionalProperty( String uri ); 448 449 450 460 public DatatypeProperty getDatatypeProperty( String uri ); 461 462 463 473 public AnnotationProperty getAnnotationProperty( String uri ); 474 475 481 public OntResource getOntResource( String uri ); 482 483 490 public OntResource getOntResource( Resource res ); 491 492 502 public OntClass getOntClass( String uri ); 503 504 505 512 public ComplementClass getComplementClass( String uri ); 513 514 515 522 public EnumeratedClass getEnumeratedClass( String uri ); 523 524 525 532 public UnionClass getUnionClass( String uri ); 533 534 535 542 public IntersectionClass getIntersectionClass( String uri ); 543 544 545 555 public Restriction getRestriction( String uri ); 556 557 558 567 public HasValueRestriction getHasValueRestriction( String uri ); 568 569 570 579 public SomeValuesFromRestriction getSomeValuesFromRestriction( String uri ); 580 581 582 591 public AllValuesFromRestriction getAllValuesFromRestriction( String uri ); 592 593 594 603 public CardinalityRestriction getCardinalityRestriction( String uri ); 604 605 606 615 public MinCardinalityRestriction getMinCardinalityRestriction( String uri ); 616 617 618 627 public MaxCardinalityRestriction getMaxCardinalityRestriction( String uri ); 628 629 630 640 public QualifiedRestriction getQualifiedRestriction( String uri ); 641 642 643 653 public CardinalityQRestriction getCardinalityQRestriction( String uri ); 654 655 656 666 public MinCardinalityQRestriction getMinCardinalityQRestriction( String uri ); 667 668 669 679 public MaxCardinalityQRestriction getMaxCardinalityQRestriction( String uri ); 680 681 682 693 public Ontology createOntology( String uri ); 694 695 696 705 public Individual createIndividual( Resource cls ); 706 707 708 719 public Individual createIndividual( String uri, Resource cls ); 720 721 722 733 public OntProperty createOntProperty( String uri ); 734 735 736 746 public ObjectProperty createObjectProperty( String uri ); 747 748 749 763 public ObjectProperty createObjectProperty( String uri, boolean functional ); 764 765 766 772 public TransitiveProperty createTransitiveProperty( String uri ); 773 774 775 784 public TransitiveProperty createTransitiveProperty( String uri, boolean functional ); 785 786 787 793 public SymmetricProperty createSymmetricProperty( String uri ); 794 795 796 803 public SymmetricProperty createSymmetricProperty( String uri, boolean functional ); 804 805 806 812 public InverseFunctionalProperty createInverseFunctionalProperty( String uri ); 813 814 815 822 public InverseFunctionalProperty createInverseFunctionalProperty( String uri, boolean functional ); 823 824 834 public DatatypeProperty createDatatypeProperty( String uri ); 835 836 837 851 public DatatypeProperty createDatatypeProperty( String uri, boolean functional ); 852 853 854 864 public AnnotationProperty createAnnotationProperty( String uri ); 865 866 867 876 public OntClass createClass(); 877 878 879 889 public OntClass createClass( String uri ); 890 891 892 898 public ComplementClass createComplementClass( String uri, Resource cls ); 899 900 901 907 public EnumeratedClass createEnumeratedClass( String uri, RDFList members ); 908 909 910 916 public UnionClass createUnionClass( String uri, RDFList members ); 917 918 919 925 public IntersectionClass createIntersectionClass( String uri, RDFList members ); 926 927 928 937 public Restriction createRestriction( Property p ); 938 939 940 951 public Restriction createRestriction( String uri, Property p ); 952 953 954 964 public HasValueRestriction createHasValueRestriction( String uri, Property prop, RDFNode value ); 965 966 967 977 public SomeValuesFromRestriction createSomeValuesFromRestriction( String uri, Property prop, Resource cls ); 978 979 980 990 public AllValuesFromRestriction createAllValuesFromRestriction( String uri, Property prop, Resource cls ); 991 992 993 1003 public CardinalityRestriction createCardinalityRestriction( String uri, Property prop, int cardinality ); 1004 1005 1006 1016 public MinCardinalityRestriction createMinCardinalityRestriction( String uri, Property prop, int cardinality ); 1017 1018 1019 1029 public MaxCardinalityRestriction createMaxCardinalityRestriction( String uri, Property prop, int cardinality ); 1030 1031 1032 1044 public MaxCardinalityQRestriction createMaxCardinalityQRestriction( String uri, Property prop, int cardinality, OntClass cls ); 1045 1046 1047 1059 public MinCardinalityQRestriction createMinCardinalityQRestriction( String uri, Property prop, int cardinality, OntClass cls ); 1060 1061 1062 1074 public CardinalityQRestriction createCardinalityQRestriction( String uri, Property prop, int cardinality, OntClass cls ); 1075 1076 1077 1085 public DataRange createDataRange( RDFList literals ); 1086 1087 1088 1098 public AllDifferent createAllDifferent(); 1099 1100 1101 1111 public AllDifferent createAllDifferent( RDFList differentMembers ); 1112 1113 1114 1137 public OntResource createOntResource( Class javaClass, Resource rdfType, String uri ); 1138 1139 1145 public OntResource createOntResource( String uri ); 1146 1147 1159 public Set listImportedOntologyURIs(); 1160 1161 1162 1176 public Set listImportedOntologyURIs( boolean closure ); 1177 1178 1179 1190 public boolean hasLoadedImport( String uri ); 1191 1192 1193 1201 public void addLoadedImport( String uri ); 1202 1203 1204 1212 public void removeLoadedImport( String uri ); 1213 1214 1215 1223 public Profile getProfile(); 1224 1225 1226 1236 public ModelMaker getModelMaker(); 1237 1238 1246 public ModelMaker getImportModelMaker(); 1247 1248 1256 public List getSubGraphs(); 1257 1258 1259 1267 public ExtendedIterator listImportedModels(); 1268 1269 1270 1279 public OntModel getImportedModel( String uri ); 1280 1281 1282 1293 public Model getBaseModel(); 1294 1295 1296 1306 public void addSubModel( Model model ); 1307 1308 1309 1318 public void addSubModel( Model model, boolean rebind ); 1319 1320 1321 1331 public void removeSubModel( Model model ); 1332 1333 1334 1343 public void removeSubModel( Model model, boolean rebind ); 1344 1345 1346 1354 public boolean isInBaseModel( RDFNode node ); 1355 1356 1357 1365 public boolean isInBaseModel( Statement stmt ); 1366 1367 1368 1379 public boolean strictMode(); 1380 1381 1382 1390 public void setStrictMode( boolean strict ); 1391 1392 1393 1401 public void setDynamicImports( boolean dynamic ); 1402 1403 1404 1409 public boolean getDynamicImports(); 1410 1411 1412 1422 public OntDocumentManager getDocumentManager(); 1423 1424 1425 1429 public OntModelSpec getSpecification(); 1430 1431 1432 1446 public ExtendedIterator queryFor( BindingQueryPlan query, List altQueries, Class asKey ); 1447 1448 1449 1485 public Resource getOWLLanguageLevel( List problems ); 1486 1487 1488 1490 1503 public Model write( Writer writer ) ; 1504 1505 1522 public Model write( Writer writer, String lang ) ; 1523 1524 1543 public Model write( Writer writer, String lang, String base ); 1544 1545 1559 public Model write( OutputStream out ); 1560 1561 1576 public Model write( OutputStream out, String lang ); 1577 1578 1595 public Model write( OutputStream out, String lang, String base ); 1596 1597 1615 public Model writeAll( Writer writer, String lang, String base ); 1616 1617 1633 public Model writeAll( OutputStream out, String lang, String base ); 1634 1635 1636 1640 public OntEventManager getEventManager(); 1641} 1642 1643 1644 1673 1674 | Popular Tags |