1 31 32 package com.hp.hpl.jena.rdf.model; 33 34 import java.util.Calendar ; 35 36 import com.hp.hpl.jena.graph.Node; 37 38 39 62 public interface ModelCon { 63 64 74 Resource getResource(String uri, ResourceF f) ; 75 76 85 Property getProperty(String uri) ; 86 87 96 Bag getBag(String uri) ; 97 98 110 Bag getBag(Resource r) ; 111 112 121 Alt getAlt(String uri) ; 122 123 135 Alt getAlt(Resource r) ; 136 145 Seq getSeq(String uri) ; 146 147 159 Seq getSeq(Resource r) ; 160 161 170 public Resource createResource(Resource type) ; 171 172 183 public RDFNode getRDFNode( Node n ); 184 185 195 public Resource createResource(String uri, Resource type); 196 197 205 public Resource createResource(ResourceF f) ; 206 207 216 public Resource createResource(String uri, ResourceF f) ; 217 218 226 public Property createProperty(String uri) ; 227 228 235 public Literal createLiteral(boolean v) ; 236 241 public Literal createLiteral(long v) ; 242 247 public Literal createLiteral(char v) ; 248 253 public Literal createLiteral(float v) ; 254 259 public Literal createLiteral(double v) ; 260 261 266 public Literal createLiteral(String v) ; 267 268 274 public Literal createLiteral(Object v) ; 275 276 283 public Literal createTypedLiteral(boolean v) ; 284 285 290 public Literal createTypedLiteral(int v) ; 291 292 297 public Literal createTypedLiteral(long v) ; 298 299 302 public Literal createTypedLiteral(Calendar d); 303 304 309 public Literal createTypedLiteral(char v) ; 310 311 316 public Literal createTypedLiteral(float v) ; 317 318 323 public Literal createTypedLiteral(double v) ; 324 325 330 public Literal createTypedLiteral(String v) ; 331 332 337 public Literal createTypedLiteral(Object v) ; 338 339 354 public Literal createTypedLiteral(String lex, String typeURI) ; 355 356 368 public Literal createTypedLiteral(Object value, String typeURI); 369 370 383 public Statement createStatement(Resource s, Property p, boolean o) ; 384 385 398 public Statement createStatement(Resource s, Property p, long o) ; 399 400 413 public Statement createStatement(Resource s, Property p, char o) ; 414 415 428 public Statement createStatement(Resource s, Property p, float o) ; 429 430 443 public Statement createStatement(Resource s, Property p, double o) ; 444 445 458 public Statement createStatement(Resource s, Property p, String o) ; 459 460 474 public Statement createStatement(Resource s, Property p, String o, String l) ; 475 476 490 public Statement createStatement(Resource s, Property p, String o, 491 boolean wellFormed) ; 492 493 508 public Statement createStatement(Resource s, Property p, String o, String l, 509 boolean wellFormed) ; 510 511 524 public Statement createStatement(Resource s, Property p, Object o) ; 525 526 534 public Bag createBag() ; 535 536 545 public Bag createBag(String uri) ; 546 547 555 public Alt createAlt() ; 556 557 566 public Alt createAlt(String uri) ; 567 568 576 public Seq createSeq() ; 577 578 587 public Seq createSeq(String uri) ; 588 589 595 Model add(Resource s, Property p, RDFNode o) ; 596 597 604 Model add(Resource s, Property p, boolean o) ; 605 606 614 Model add(Resource s, Property p, long o) ; 615 616 624 Model add(Resource s, Property p, char o) ; 625 626 634 Model add(Resource s, Property p, float o) ; 635 643 Model add(Resource s, Property p, double o) ; 644 645 653 Model add(Resource s, Property p, String o) ; 654 655 664 Model add(Resource s, Property p, String o, boolean wellFormed) 665 ; 666 667 676 Model add(Resource s, Property p, String o, String l) ; 677 678 693 Model add(Resource s, Property p, String o, String l, boolean wellFormed) 694 ; 695 696 704 Model add(Resource s, Property p, Object o) ; 705 706 711 Model remove(StmtIterator iter) ; 712 713 718 Model remove(Model m) ; 719 720 727 Model remove( Model m, boolean suppressReifications ); 728 729 742 StmtIterator listStatements(Resource subject, 743 Property predicate, 744 boolean object) 745 ; 746 747 760 StmtIterator listStatements(Resource subject, 761 Property predicate, 762 long object) 763 ; 764 765 778 StmtIterator listStatements(Resource subject, 779 Property predicate, 780 char object) 781 ; 782 783 796 StmtIterator listStatements(Resource subject, 797 Property predicate, 798 float object) 799 ; 800 801 814 StmtIterator listStatements(Resource subject, 815 Property predicate, 816 double object) 817 ; 818 819 832 StmtIterator listStatements(Resource subject, 833 Property predicate, 834 String object) 835 ; 836 837 851 StmtIterator listStatements(Resource subject, 852 Property predicate, 853 String object, 854 String lang) 855 ; 856 857 863 ResIterator listSubjectsWithProperty(Property p, boolean o) 864 ; 865 866 872 ResIterator listSubjectsWithProperty(Property p, long o) 873 ; 874 875 881 ResIterator listSubjectsWithProperty(Property p, char o) 882 ; 883 884 890 ResIterator listSubjectsWithProperty(Property p, float o) 891 ; 892 898 ResIterator listSubjectsWithProperty(Property p, double o) 899 ; 900 906 ResIterator listSubjectsWithProperty(Property p, String o) 907 ; 908 915 ResIterator listSubjectsWithProperty(Property p, String o, String l) 916 ; 917 918 924 ResIterator listSubjectsWithProperty(Property p, Object o) 925 ; 926 927 935 boolean contains(Resource s, Property p, boolean o) ; 936 937 945 boolean contains(Resource s, Property p, long o) ; 946 947 955 boolean contains(Resource s, Property p, char o) ; 956 957 965 boolean contains(Resource s, Property p, float o) ; 966 967 975 boolean contains(Resource s, Property p, double o) ; 976 977 985 boolean contains(Resource s, Property p, String o) ; 986 987 996 boolean contains(Resource s, Property p, String o, String l) 997 ; 998 999 1007 boolean contains(Resource s, Property p, Object o) ; 1008} | Popular Tags |