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 47 public class DIGQueryAllConceptsTranslator 48 extends DIGQueryTranslator 49 { 50 51 54 57 60 63 68 public DIGQueryAllConceptsTranslator( String predicate, String object ) { 69 super( ALL, predicate, object ); 70 } 71 72 73 76 77 83 public ExtendedIterator find( TriplePattern pattern, DIGAdapter da ) { 84 return WrappedIterator.create( da.getKnownConcepts().iterator() ) 85 .mapWith( new DIGValueToNodeMapper() ) 86 .mapWith( new TripleSubjectFiller( pattern.getPredicate(), pattern.getObject() ) ); 87 } 88 89 90 public Document translatePattern( TriplePattern pattern, DIGAdapter da ) { 91 return null; 93 } 94 95 96 public Document translatePattern( TriplePattern pattern, DIGAdapter da, Model premises ) { 97 return null; 99 } 100 101 public ExtendedIterator translateResponseHook( Document response, TriplePattern query, DIGAdapter da ) { 102 return null; 104 } 105 106 107 110 114 } 115 116 117 143 | Popular Tags |