Changeset 1018:88e2bc9da9cd


Ignore:
Timestamp:
04/09/13 00:48:38 (6 years ago)
Author:
Babis Nikolaou <charnik@…>
Branch:
default
Message:

changed GeosparqlRDFHandlerBase to extend RDFInserter instead of RDFHandlerBase

Location:
runtime/src/main/java/eu/earthobservatory/runtime/generaldb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • runtime/src/main/java/eu/earthobservatory/runtime/generaldb/GeosparqlRDFHandlerBase.java

    r1014 r1018  
    1515import org.openrdf.model.vocabulary.RDF; 
    1616import org.openrdf.model.vocabulary.RDFS; 
     17import org.openrdf.repository.RepositoryConnection; 
     18import org.openrdf.repository.util.RDFInserter; 
    1719import org.openrdf.rio.helpers.RDFHandlerBase; 
    1820import org.openrdf.rio.ntriples.NTriplesParser; 
     
    2729 * @author Konstantina Bereta <konstantina.bereta@di.uoa.gr> 
    2830 */ 
    29 public class GeosparqlRDFHandlerBase extends RDFHandlerBase { 
     31public class GeosparqlRDFHandlerBase extends RDFInserter { 
    3032         
    3133        //private static final Logger logger = LoggerFactory.getLogger(eu.earthobservatory.runtime.generaldb.GeosparqlRDFHandlerBase.class); 
    3234         
     35        public GeosparqlRDFHandlerBase(RepositoryConnection con) { 
     36                super(con); 
     37        } 
     38 
    3339        private static final boolean ENABLE_INFERENCE = false; 
    3440         
     
    486492                StringReader reader = new StringReader(gmltext); 
    487493 
    488                 GeosparqlRDFHandlerBase handler = new GeosparqlRDFHandlerBase(); 
     494                GeosparqlRDFHandlerBase handler = new GeosparqlRDFHandlerBase(null); 
    489495 
    490496                handler.startRDF(); 
  • runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java

    r1017 r1018  
    129129                 
    130130                //our repository 
    131                 //repo1 = new SailRepository(db_store); 
    132131                repo = new GeneralDBSailRepository(db_store); 
    133132 
     
    388387                RDFParser parser = Rio.createParser(format); 
    389388 
    390                 GeosparqlRDFHandlerBase handler = new GeosparqlRDFHandlerBase(); 
     389                GeosparqlRDFHandlerBase handler = new GeosparqlRDFHandlerBase(con); 
    391390 
    392391                parser.setRDFHandler(handler); 
     
    430429                RDFParser parser = Rio.createParser(format); 
    431430 
    432                 GeosparqlRDFHandlerBase handler = new GeosparqlRDFHandlerBase(); 
     431                GeosparqlRDFHandlerBase handler = new GeosparqlRDFHandlerBase(con); 
    433432 
    434433                parser.setRDFHandler(handler); 
Note: See TracChangeset for help on using the changeset viewer.