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

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


    }

    @Override
    protected PrefixMapping createPrefixMapping()
    {
        return new PrefixMappingImpl() ;
    }
View Full Code Here


        { throw new ARQException("IOExeption: "+filename, ex) ; }
        finally { IO.close(in) ; }
    }
   
    /** Parse a string and obtain an SSE item expression (no additional prefix mappings)*/
    public static Item parseRaw(String str) { return parse(str, new PrefixMappingImpl()) ; }
View Full Code Here

            pm = createPrefixMapping() ;
        return pm;
    }

    protected PrefixMapping pm = null ;
    protected PrefixMapping createPrefixMapping() { return new PrefixMappingImpl() ; }
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

    // mapping only updates if there are map entries to add.  Since this gets called
    // when we are doing deep triple checks while writing we need to attempt the
    // update only if there are new updates to add.
   
    PrefixMapping m = holder.getBaseItem();
    PrefixMappingImpl pm = new PrefixMappingImpl();
    for ( Entry<String, String> e : map.getNsPrefixMap().entrySet())
    {
      if (m.getNsPrefixURI(e.getKey()) == null && m.getNsURIPrefix(e.getValue()) == null )
      {
        pm.setNsPrefix( e.getKey(), e.getValue() );
      }
    }
    if ( !pm.getNsPrefixMap().isEmpty())
    {
      checkUpdate();
      holder.getBaseItem().withDefaultMappings(pm);
    }
    return holder.getSecuredItem();
View Full Code Here

  }

  @Test
  public void testWithDefaultMappings()
  {
    PrefixMapping pm = new PrefixMappingImpl();
    pm.setNsPrefix( "example", "http://example.com");
    try
    {
      // make sure that it must update
      securedMapping.withDefaultMappings(pm);
      if (!securityEvaluator.evaluate(Action.Update,
View Full Code Here

  }
 
  @Test
  public void testWithDefaultMappingsNoAdd()
  {
    PrefixMapping pm = new PrefixMappingImpl();
    try
    {
      // make sure that it must update
      securedMapping.withDefaultMappings(pm);
//      if (!securityEvaluator.evaluate(Action.Update,
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) ;
        String baseURI = null ;
        if ( resolver != null)
            baseURI = resolver.getBaseIRIasString() ;
       
        return new Prologue(prefixMap, baseURI) ;
View Full Code Here

        graphData = ConfigTest.getTestingDataRoot()+"/data.ttl" ;
        graph = TDBFactory.createDatasetGraph().getDefaultGraph() ;
        Model m = ModelFactory.createModelForGraph(graph) ;
        FileManager.get().readModel(m, graphData) ;

        pmap = new PrefixMappingImpl() ;
        pmap.setNsPrefix("", "http://example/") ;
       
    }
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.