1 19 20 package com.hp.hpl.jena.reasoner.dig; 23 24 25 26 import com.hp.hpl.jena.graph.*; 29 import com.hp.hpl.jena.rdf.model.*; 30 import com.hp.hpl.jena.util.iterator.Map1; 31 32 33 34 42 public class TripleSubjectFiller 43 implements Map1 44 { 45 48 51 54 private Node m_predicate; 55 private Node m_object; 56 57 60 64 public TripleSubjectFiller( Resource predicate, Resource object ) { 65 this( predicate.asNode(), object.asNode() ); 66 } 67 68 69 73 public TripleSubjectFiller( Node predicate, Node object ) { 74 m_predicate = predicate; 75 m_object = object; 76 } 77 78 79 82 public Object map1( Object x ) { 83 return new Triple( (Node) x, m_predicate, m_object ); 84 } 85 86 87 88 91 95 } 96 97 98 124 | Popular Tags |