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

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


    public static TestSuite suite()
        { return new TestSuite( TestPrefixMapping.class ); }

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


 
  @Test
  public void test_param_string_constructor_8()
  {
    //Test constructors with predefined prefixes
    PrefixMappingImpl prefixes = new PrefixMappingImpl();
    prefixes.setNsPrefix("ex", "http://example.org");
    ParameterizedSparqlString query = new ParameterizedSparqlString("", prefixes);
   
    Assert.assertEquals(prefixes.getNsPrefixURI("ex"), query.getNsPrefixURI("ex"));
  }
View Full Code Here

 
  @Test
  public void test_param_string_constructor_9()
  {
    //Test constructors with predefined prefixes - variant of constructor that does not require command text
    PrefixMappingImpl prefixes = new PrefixMappingImpl();
    prefixes.setNsPrefix("ex", "http://example.org");
    ParameterizedSparqlString query = new ParameterizedSparqlString(prefixes);
   
    Assert.assertEquals(prefixes.getNsPrefixURI("ex"), query.getNsPrefixURI("ex"));
  }
View Full Code Here

    {
        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

    {
        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

 
  @Test
  public void test_param_string_constructor_8()
  {
    //Test constructors with predefined prefixes
    PrefixMappingImpl prefixes = new PrefixMappingImpl();
    prefixes.setNsPrefix("ex", "http://example.org");
    ParameterizedSparqlString query = new ParameterizedSparqlString("", prefixes);
   
    Assert.assertEquals(prefixes.getNsPrefixURI("ex"), query.getNsPrefixURI("ex"));
  }
View Full Code Here

 
  @Test
  public void test_param_string_constructor_9()
  {
    //Test constructors with predefined prefixes - variant of constructor that does not require command text
    PrefixMappingImpl prefixes = new PrefixMappingImpl();
    prefixes.setNsPrefix("ex", "http://example.org");
    ParameterizedSparqlString query = new ParameterizedSparqlString(prefixes);
   
    Assert.assertEquals(prefixes.getNsPrefixURI("ex"), query.getNsPrefixURI("ex"));
  }
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

    public static TestSuite suite()
        { return new TestSuite( TestPrefixMapping.class ); }

    @Override
    protected PrefixMapping getMapping()
        { 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

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.