Package com.hp.hpl.jena.shared.impl

Examples of com.hp.hpl.jena.shared.impl.PrefixMappingImpl


            // 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 );
View Full Code Here


   */
  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);
  }
View Full Code Here

    }

    @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 ;
    }
View Full Code Here

  public MergeDataSource(DataSource... sources) {
    this(Arrays.asList(sources));
  }
 
  public MergeDataSource(Collection<DataSource> sources) {
    this(sources, new PrefixMappingImpl());
  }
View Full Code Here

    imageProperties = getProperties(CONF.imageProperty);
    if (imageProperties.isEmpty()) {
      imageProperties.add(FOAF.depiction);
    }

    prefixes = new PrefixMappingImpl();
    if (hasProperty(CONF.usePrefixesFrom)) {
      for (String iri: getIRIs(CONF.usePrefixesFrom)) {
        prefixes.setNsPrefixes(FileManager.get().loadModel(iri));
      }
    } else {
View Full Code Here

   * Returns a prefix mapping containing all prefixes from the input model
   * and from the configuration, with the configuration taking precedence.
   */
  private PrefixMapping getPrefixes() {
    if (prefixes == null) {
      prefixes = new PrefixMappingImpl();
      prefixes.setNsPrefixes(model);
      for (String prefix: config.getPrefixes().getNsPrefixMap().keySet()) {
        prefixes.setNsPrefix(prefix, config.getPrefixes().getNsPrefixURI(prefix));
      }
    }
View Full Code Here

            // 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 );
View Full Code Here

    }
   
    private static void print(BasicPattern bgp) {
        IndentedWriter out = IndentedWriter.stdout;
       
        PrefixMapping pmap = new PrefixMappingImpl() ;
        pmap.setNsPrefixes(SSE.defaultPrefixMapWrite) ;
//        pmap.setNsPrefix("ppi", "http://landregistry.data.gov.uk/def/ppi/") ;
//        pmap.setNsPrefix("common", "http://landregistry.data.gov.uk/def/common/") ;
       
        SerializationContext sCxt = SSE.sCxt(pmap) ;
       
View Full Code Here

//    protected String baseURI = null ;

    protected PrefixMapping prefixMap = null ;
    protected IRIResolver resolver = null ;
   
    public Prologue() { prefixMap = new PrefixMappingImpl() ; }
View Full Code Here

        this.resolver = other.resolver ;
    }

    public Prologue copy()
    {
        PrefixMapping prefixMap = new PrefixMappingImpl() ;
        prefixMap.setNsPrefixes(this.prefixMap) ;
        return new Prologue(prefixMap, resolver.getBaseIRI()) ;
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.shared.impl.PrefixMappingImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.