1 5 6 package com.hp.hpl.jena.db.impl; 7 8 import com.hp.hpl.jena.graph.*; 9 import com.hp.hpl.jena.util.iterator.ExtendedIterator; 10 import com.hp.hpl.jena.vocabulary.DB; 11 12 30 public class DBPropPrefix extends DBProp { 31 32 public static Node_URI prefixValue = (Node_URI)DB.prefixValue.getNode(); 33 public static Node_URI prefixURI = (Node_URI)DB.prefixURI.getNode(); 34 35 public DBPropPrefix( SpecializedGraph g, String value, String uri) { 36 super( g, Node.createAnon()); 37 putPropString(prefixValue, value); 38 putPropString(prefixURI, uri); 39 } 40 41 public DBPropPrefix( SpecializedGraph g, Node n) { 42 super(g,n); 43 } 44 45 public String getValue() { return getPropString( prefixValue); } 46 public String getURI() { return getPropString( prefixURI); } 47 48 49 public ExtendedIterator listTriples() { 50 return DBProp.listTriples(graph, self); 51 } 52 public String toString() 53 { return "<[" + getValue() + "=" + getURI() + "]>" ; } 54 } 55 56 | Popular Tags |