1 6 7 package com.hp.hpl.jena.graph; 8 9 import com.hp.hpl.jena.graph.impl.GraphBase; 10 import com.hp.hpl.jena.graph.query.*; 11 import com.hp.hpl.jena.shared.*; 12 import com.hp.hpl.jena.util.iterator.*; 13 14 25 public interface Graph extends GraphAdd 26 { 27 30 public static final Graph emptyGraph = new GraphBase() 31 { public ExtendedIterator graphBaseFind( TripleMatch tm ) { return NullIterator.instance; } }; 32 33 41 boolean dependsOn( Graph other ); 42 43 44 QueryHandler queryHandler(); 45 46 47 TransactionHandler getTransactionHandler(); 48 49 50 BulkUpdateHandler getBulkUpdateHandler(); 51 52 53 Capabilities getCapabilities(); 54 55 58 GraphEventManager getEventManager(); 59 60 64 Reifier getReifier(); 65 66 70 PrefixMapping getPrefixMapping(); 71 72 78 void delete(Triple t) throws DeleteDeniedException; 79 80 86 ExtendedIterator find(TripleMatch m); 87 88 90 ExtendedIterator find(Node s,Node p,Node o); 91 92 101 boolean isIsomorphicWith(Graph g); 102 103 108 boolean contains( Node s, Node p, Node o ); 109 110 114 boolean contains( Triple t ); 115 116 118 void close(); 119 120 125 boolean isEmpty(); 126 127 132 int size(); 133 134 } 135 136 165 | Popular Tags |