@Override protected PrefixMapping createPrefixMapping() { // TODO Unsatisfactory - need PrefixMap support by DSGs then PrefixMap -> PrefixMapping return new PrefixMappingImpl() ; }
public PrefixMapping2(PrefixMapping globalMapping) { this(globalMapping, new PrefixMappingImpl()) ; }
public PrefixMapping2(PrefixMapping globalMapping) { this(globalMapping, new PrefixMappingImpl()) ; }
{ public static PrefixMapping create() { return new PrefixMappingImpl(); } }
public Prologue() { prefixMap = new PrefixMappingImpl() ; }
protected PrefixMapping createPrefixMapping() { return new PrefixMappingImpl() ; }
public Prologue() { prefixMap = new PrefixMappingImpl() ; }
public static PrefixMapping build(Item elt) { PrefixMapping pmap = new PrefixMappingImpl() ; build(pmap, elt) ; return pmap ; }
public static PrefixMapping build(Item elt) { PrefixMapping pmap = new PrefixMappingImpl() ; build(pmap, elt) ; return pmap ; }
/** Parse a string and obtain an SSE item expression (no additional prefix mappings)*/ public static Item parseRaw(String str) { return parse(str, new PrefixMappingImpl()) ; }
/** Parse a string and obtain an SSE item expression (no additional prefix mappings)*/ public static Item parseRaw(String str) { return parse(str, new PrefixMappingImpl()) ; }
/** * Creates a new parameterized string * * @param command * Raw Command Text * @param map * Initial Parameters to inject * @param base * Base URI * @param prefixes * Prefix Mapping */ public ParameterizedSparqlString(String command, QuerySolutionMap map, String base, PrefixMapping prefixes) { if (command != null) this.cmd.append(command); this.setParams(map); this.baseUri = (base != null && !base.equals("") ? base : null); this.prefixes = new PrefixMappingImpl(); if (prefixes != null) this.prefixes.setNsPrefixes(prefixes); }
public Prologue copy() { PrefixMapping prefixMap = new PrefixMappingImpl() ; prefixMap.setNsPrefixes(this.prefixMap) ; return new Prologue(prefixMap, resolver.getBaseIRI()) ; }
static public PrefixMapping used(Op op, PrefixMapping pmap) { PrefixMapping pmap2 = new PrefixMappingImpl() ; PrefixFinder finder = new PrefixFinder(pmap2, pmap.getNsPrefixMap()) ; OpWalker.walk(op, finder) ; return pmap2 ; }
static public PrefixMapping used(Op op, PrefixMapping pmap) { PrefixMapping pmap2 = new PrefixMappingImpl() ; PrefixFinder finder = new PrefixFinder(pmap2, pmap.getNsPrefixMap()) ; OpWalker.walk(op, finder) ; return pmap2 ; }
public Prologue copy() { PrefixMapping prefixMap = new PrefixMappingImpl() ; prefixMap.setNsPrefixes(this.prefixMap) ; return new Prologue(prefixMap, resolver.getBaseIRI()) ; }
@Override protected PrefixMapping createPrefixMapping() { PrefixMapping pmap = new PrefixMappingImpl() ; for ( Node gn : graphs ) { if ( ! gn.isURI() ) continue ; Graph g = dataset.getGraph(gn) ; PrefixMapping pmapNamedGraph = g.getPrefixMapping() ; pmap.setNsPrefixes(pmapNamedGraph) ; } return pmap ; }
/** * <p>Reset all state in this document manager back to the default * values it would have had when the object was created. Optionally * reload the profile metadata from the search path. <strong>Note</strong> * that the metadata search path is not changed by this reset.</p> * @param reload If true, reload the configuration file from the * search path. */ public void reset( boolean reload ) { // first check if we are using the global file manager, or a local one if (m_usingGlobalFileMgr) { // we can do a general reset by throwing away the old FM and creating a new one setFileManager(); } else { // not using the global default FM, so we reset to best effort getFileManager().resetCache(); } m_ignoreImports.clear(); m_prefixMap = new PrefixMappingImpl(); setDefaults(); if (reload) { initialiseMetadata( m_searchPath ); } }
@BeforeClass static public void beforeClass() { graph = TDBFactory.createGraph() ; Model m = ModelFactory.createModelForGraph(graph) ; FileManager.get().readModel(m, graphData) ; pmap = new PrefixMappingImpl() ; pmap.setNsPrefix("", "http://example/") ; }