1 6 7 package com.hp.hpl.jena.graph.query; 8 9 import com.hp.hpl.jena.graph.Triple; 10 import com.hp.hpl.jena.util.CollectionFactory; 11 12 import java.util.*; 13 14 20 public class NamedTripleBunches 21 { 22 private Map triples = CollectionFactory.createHashedMap(); 23 24 27 public static final String anon = "<this>"; 28 29 32 public NamedTripleBunches() 33 {} 34 35 40 public void add( String name, Triple pattern ) 41 { triples.put( name, SimpleQueryEngine.cons( pattern, triples.get( name ) ) ); } 42 43 47 public Iterator entrySetIterator() 48 { return triples.entrySet().iterator(); } 49 } 50 51 80 | Popular Tags |