Strabon

changeset 813:32e6314a2c4b temporals

removed execution from pom because it caused build errors. validTime datatype is deprecated
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Mon Dec 17 16:24:48 2012 +0200 (2012-12-17)
parents d6259e17e93d
children 5f0ed03631ee
files runtime/pom.xml runtime/src/main/java/eu/earthobservatory/runtime/generaldb/NQuadsParser.java runtime/src/main/java/eu/earthobservatory/runtime/generaldb/QuadRDFHandler.java
line diff
     1.1 --- a/runtime/pom.xml	Sat Dec 08 20:35:21 2012 +0200
     1.2 +++ b/runtime/pom.xml	Mon Dec 17 16:24:48 2012 +0200
     1.3 @@ -415,18 +415,7 @@
     1.4  				<artifactId>maven-antrun-plugin</artifactId>
     1.5  				<version>1.6</version>
     1.6  				<executions>
     1.7 -					<execution>
     1.8 -						<id>process-classes</id>
     1.9 -						<phase>process-classes</phase>
    1.10 -						<configuration>
    1.11 -							<target>
    1.12 -								<chmod file="target/classes/pg_restart_clear_caches.sh" perm="777" />
    1.13 -							</target>
    1.14 -						</configuration>
    1.15 -						<goals>
    1.16 -							<goal>run</goal>
    1.17 -						</goals>
    1.18 -					</execution>
    1.19 +					
    1.20  				</executions>
    1.21  			</plugin>
    1.22  		</plugins>
     2.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/NQuadsParser.java	Sat Dec 08 20:35:21 2012 +0200
     2.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/NQuadsParser.java	Mon Dec 17 16:24:48 2012 +0200
     2.3 @@ -202,10 +202,12 @@
     2.4      public Resource createValidTimeURI(String sb) throws ParseException, RDFParseException
     2.5      {
     2.6      	String strdf = "http://strdf.di.uoa.gr/ontology#validTime";
     2.7 +    	String period = "http://strdf.di.uoa.gr/ontology#period";
     2.8      	validTimeLiteral=sb;
     2.9      	int i2=0; 
    2.10      	
    2.11 -    	if(sb.toString().contains("^^<http://strdf.di.uoa.gr/ontology#validTime>"))
    2.12 +    	if(sb.toString().contains("^^<http://strdf.di.uoa.gr/ontology#validTime>")||
    2.13 +    			sb.toString().contains("^^<http://strdf.di.uoa.gr/ontology#period>"))
    2.14       	{	
    2.15      	
    2.16       	String[] splits = sb.toString().split(",");
     3.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/QuadRDFHandler.java	Sat Dec 08 20:35:21 2012 +0200
     3.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/QuadRDFHandler.java	Mon Dec 17 16:24:48 2012 +0200
     3.3 @@ -49,7 +49,8 @@
     3.4  	        @Override
     3.5  	        public void handleStatement(Statement st) {
     3.6  	            //super.handleStatement(st);
     3.7 -	            if(st.getContext().toString().contains("^^<http://strdf.di.uoa.gr/ontology#validTime>"))
     3.8 +	            if(st.getContext().toString().contains("^^<http://strdf.di.uoa.gr/ontology#validTime>")||
     3.9 +	        			st.toString().contains("^^<http://strdf.di.uoa.gr/ontology#period>"))
    3.10  	         	{	
    3.11  	         	    NQuadsParser parser = new NQuadsParser();
    3.12  	         		try {
    3.13 @@ -60,7 +61,7 @@
    3.14  							 int i = context.indexOf('"')+1;
    3.15  							 int j = context.lastIndexOf('"');
    3.16  							 validPeriod = "\"[" + context.substring(i,j)+","+context.substring(i,j) + "]\"^^<http://strdf.di.uoa.gr/ontology#validTime>"; 
    3.17 -
    3.18 +							 //validPeriod = "\"[" + context.substring(i,j)+","+context.substring(i,j) + "]\"^^<http://strdf.di.uoa.gr/ontology#validTime>";
    3.19  							// validPeriod = context.replace("]",","+context.substring(i, j)+"]");
    3.20  						 }
    3.21  					 Resource graph = parser.createValidTimeURI(validPeriod);