1 19 20 package com.hp.hpl.jena.reasoner.dig; 23 24 import org.w3c.dom.Document ; 25 26 import com.hp.hpl.jena.rdf.model.Model; 27 import com.hp.hpl.jena.reasoner.TriplePattern; 28 import com.hp.hpl.jena.util.iterator.*; 29 import com.hp.hpl.jena.util.iterator.ExtendedIterator; 30 31 32 35 42 public class DIGQueryAllIndividualsTranslator 43 extends DIGQueryTranslator 44 { 45 46 49 52 55 58 63 public DIGQueryAllIndividualsTranslator( String predicate, String object ) { 64 super( ALL, predicate, object ); 65 } 66 67 68 71 72 78 public ExtendedIterator find( TriplePattern pattern, DIGAdapter da ) { 79 return WrappedIterator.create( da.getKnownIndividuals().iterator() ) 80 .mapWith( new DIGValueToNodeMapper() ) 81 .mapWith( new TripleSubjectFiller( pattern.getPredicate(), pattern.getObject() ) ); 82 } 83 84 85 public Document translatePattern( TriplePattern pattern, DIGAdapter da ) { 86 return null; 88 } 89 90 91 public Document translatePattern( TriplePattern pattern, DIGAdapter da, Model premises ) { 92 return null; 94 } 95 96 97 public ExtendedIterator translateResponseHook( Document response, TriplePattern query, DIGAdapter da ) { 98 return null; 100 } 101 102 105 109 } 110 111 112 138 | Popular Tags |