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 TripleObjectFiller 43 implements Map1 44 { 45 48 51 54 private Node m_predicate; 55 private Node m_subject; 56 57 60 64 public TripleObjectFiller( Resource subject, Property predicate ) { 65 this( subject.asNode(), predicate.asNode() ); 66 } 67 68 69 73 public TripleObjectFiller( Node subject, Node predicate ) { 74 m_predicate = predicate; 75 m_subject = subject; 76 } 77 78 79 82 public Object map1( Object x ) { 83 return new Triple( m_subject, m_predicate, (Node) x ); 84 } 85 86 87 88 91 95 } 96 97 98 124 | Popular Tags |