Strabon

changeset 1014:608f58bfb469

disable GeoSPARQL entailment for the time being (breaks tests)
author Babis Nikolaou <charnik@di.uoa.gr>
date Mon Apr 08 15:59:48 2013 +0300 (2013-04-08)
parents 298fb2032149
children f2f0cc6cff02
files runtime/src/main/java/eu/earthobservatory/runtime/generaldb/GeosparqlRDFHandlerBase.java
line diff
     1.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/GeosparqlRDFHandlerBase.java	Mon Apr 08 15:50:56 2013 +0300
     1.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/GeosparqlRDFHandlerBase.java	Mon Apr 08 15:59:48 2013 +0300
     1.3 @@ -30,6 +30,8 @@
     1.4  	
     1.5  	//private static final Logger logger = LoggerFactory.getLogger(eu.earthobservatory.runtime.generaldb.GeosparqlRDFHandlerBase.class);
     1.6  	
     1.7 +	private static final boolean ENABLE_INFERENCE = false;
     1.8 +	
     1.9  	private static String TYPE 		= RDF.TYPE.stringValue();
    1.10  	private static String CLASS 	= RDFS.CLASS.stringValue();
    1.11  	private static String SUBCLASS 	= RDFS.SUBCLASSOF.stringValue();
    1.12 @@ -52,8 +54,10 @@
    1.13  	
    1.14  	@Override
    1.15  	public void startRDF() {
    1.16 -		insertGeoSPARQLClassHierarchy();
    1.17 -		insertSimpleFeaturesClassHierarchy();
    1.18 +		if (ENABLE_INFERENCE) {
    1.19 +			insertGeoSPARQLClassHierarchy();
    1.20 +			insertSimpleFeaturesClassHierarchy();
    1.21 +		}
    1.22  	}
    1.23  	
    1.24  	@Override
    1.25 @@ -63,6 +67,10 @@
    1.26  		String pred = st.getPredicate().toString();
    1.27  		String obj = st.getObject().toString();
    1.28  		
    1.29 +		if (!ENABLE_INFERENCE) {
    1.30 +			return ;
    1.31 +		}
    1.32 +			
    1.33  		/* Infer
    1.34  		 * 		subj rdf:type geo:SpatialObject
    1.35  		 * 		obj  rdf:type geo:SpatialObject