@Override protected int graphBaseSize() { return (int)hdt.getTriples().getNumberOfElements(); }
@Override protected ExtendedIterator<Triple> graphBaseFind(Triple jenaTriple) { TripleID triplePatID = nodeDictionary.getTriplePatID(jenaTriple); // System.out.println("Triple Pattern: "+jenaTriple+" as IDs: "+triplePatID); IteratorTripleID hdtIterator = hdt.getTriples().search( triplePatID ); numSearches++; return new HDTJenaIterator(nodeDictionary, hdtIterator); }
System.out.println("Total Triples: "+hdt.getTriples().getNumberOfElements()); System.out.println("Different subjects: "+hdt.getDictionary().getNsubjects()); System.out.println("Different predicates: "+hdt.getDictionary().getNpredicates());
this.triples = graph.getHDT().getTriples(); this.prefixMap = NodeDictionary.getMapping(execCxt); this.numSharedSO = graph.getHDT().getDictionary().getNshared();
if(patternID.isEmpty()) { count = hdtg.getHDT().getTriples().getNumberOfElements(); } else if(!patternID.isNoMatch()) { IteratorTripleID it = hdtg.getHDT().getTriples().search(patternID); if(it.numResultEstimation()==ResultEstimationType.EXACT) { count = it.estimatedNumResults();
@Override public long getStatistic(Node subject, Node predicate, Node object) { try { final BitmapTriples triples = (BitmapTriples) hdt.getTriples();