Author: alexdma
Date: Tue Jul 19 17:02:04 2011
New Revision: 1148447

URL: http://svn.apache.org/viewvc?rev=1148447&view=rev
Log:
Applying patches by Alberto Musetti:
- Remove old unused templates in the META-INF dirs of KReS Web modules. 
Resolves STANBOL-294.
- Add Apache License header to ontologymanager, reasoners and rules web 
scripts. Resolves STANBOL-280 STANBOL-281 STANBOL-282

Removed:
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/jit-yc.js
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/jit.js
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/jquery-1.4.2.js
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/jquery.rdfquery.core-1.0.js
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/jsonToTurtle.js
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/kres.js
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/prettify/kres.css
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/prettify/prettify.css
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/prettify/prettify.js
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/scout.js
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/scripts/tinybox.js
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/style/fise.css
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/style/kres.css
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/static/style/kress.css
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/ajax/contentitem.ftl
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/imports/common.ftl
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/imports/contentitem.ftl
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/imports/entities.ftl
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/imports/kres.ftl
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/imports/sparql.ftl
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/org/apache/stanbol/ontologymanager/web/resource/DocumentationResource/index.ftl
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/org/apache/stanbol/ontologymanager/web/resource/RESTfulResource/index.ftl
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/org/apache/stanbol/ontologymanager/web/resource/RootResource/index.ftl
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/org/apache/stanbol/ontologymanager/web/resource/SemionReengineerResource/index.ftl
    
incubator/stanbol/trunk/ontologymanager/web/src/main/resources/META-INF/templates/org/apache/stanbol/ontologymanager/web/resource/SemionRefactorerResource/index.ftl
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/static/scripts/jit-yc.js
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/static/scripts/jit.js
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/static/scripts/jquery-1.4.2.js
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/static/scripts/jquery.rdfquery.core-1.0.js
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/static/scripts/jsonToTurtle.js
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/static/scripts/kres.js
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/static/scripts/prettify/kres.css
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/static/scripts/prettify/prettify.css
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/static/scripts/prettify/prettify.js
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/static/scripts/scout.js
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/static/scripts/tinybox.js
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/static/style/fise.css
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/static/style/kres.css
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/static/style/kress.css
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/templates/ajax/contentitem.ftl
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/templates/imports/common.ftl
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/templates/imports/contentitem.ftl
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/templates/imports/entities.ftl
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/templates/imports/kres.ftl
    
incubator/stanbol/trunk/reasoners/web/src/main/resources/META-INF/templates/imports/sparql.ftl
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/static/scripts/jit-yc.js
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/static/scripts/jit.js
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/static/scripts/jquery-1.4.2.js
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/static/scripts/jquery.rdfquery.core-1.0.js
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/static/scripts/jsonToTurtle.js
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/static/scripts/kres.js
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/static/scripts/prettify/kres.css
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/static/scripts/prettify/prettify.css
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/static/scripts/prettify/prettify.js
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/static/scripts/scout.js
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/static/scripts/tinybox.js
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/static/style/fise.css
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/static/style/kres.css
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/static/style/kress.css
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/templates/ajax/contentitem.ftl
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/templates/imports/common.ftl
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/templates/imports/contentitem.ftl
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/templates/imports/entities.ftl
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/templates/imports/kres.ftl
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/META-INF/templates/imports/sparql.ftl
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/static/scripts/jit-yc.js
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/static/scripts/jit.js
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/static/scripts/jquery-1.4.2.js
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/static/scripts/jquery.rdfquery.core-1.0.js
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/static/scripts/jsonToTurtle.js
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/static/scripts/kres.js
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/static/scripts/prettify/kres.css
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/static/scripts/prettify/prettify.css
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/static/scripts/prettify/prettify.js
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/static/scripts/scout.js
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/static/scripts/tinybox.js
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/static/style/fise.css
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/static/style/kres.css
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/static/style/kress.css
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/templates/ajax/contentitem.ftl
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/templates/imports/common.ftl
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/templates/imports/contentitem.ftl
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/templates/imports/entities.ftl
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/templates/imports/kres.ftl
    
incubator/stanbol/trunk/rules/web/src/main/resources/META-INF/templates/imports/sparql.ftl
Modified:
    incubator/stanbol/trunk/reengineer/web/pom.xml
    
incubator/stanbol/trunk/reengineer/web/src/main/java/org/apache/stanbol/reengineer/web/ReengineerFragment.java
    
incubator/stanbol/trunk/reengineer/web/src/main/java/org/apache/stanbol/reengineer/web/resources/ReengineerResource.java
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/static/actions/actions.js
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/static/css/reengineer.css
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/templates/imports/reengineerDescription.ftl
    
incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/templates/org/apache/stanbol/reengineer/web/resources/ReengineerResource/index.ftl
    
incubator/stanbol/trunk/rules/web/src/main/java/org/apache/stanbol/rules/web/resources/RuleResource.java

Modified: incubator/stanbol/trunk/reengineer/web/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/trunk/reengineer/web/pom.xml?rev=1148447&r1=1148446&r2=1148447&view=diff
==============================================================================
--- incubator/stanbol/trunk/reengineer/web/pom.xml (original)
+++ incubator/stanbol/trunk/reengineer/web/pom.xml Tue Jul 19 17:02:04 2011
@@ -206,6 +206,10 @@
       <groupId>org.apache.stanbol</groupId>
       <artifactId>org.apache.stanbol.owl</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.apache.stanbol</groupId>
+      <artifactId>org.apache.stanbol.ontologymanager.ontonet</artifactId>
+    </dependency>
                
                <!-- Testing deps -->
                <dependency>

Modified: 
incubator/stanbol/trunk/reengineer/web/src/main/java/org/apache/stanbol/reengineer/web/ReengineerFragment.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/trunk/reengineer/web/src/main/java/org/apache/stanbol/reengineer/web/ReengineerFragment.java?rev=1148447&r1=1148446&r2=1148447&view=diff
==============================================================================
--- 
incubator/stanbol/trunk/reengineer/web/src/main/java/org/apache/stanbol/reengineer/web/ReengineerFragment.java
 (original)
+++ 
incubator/stanbol/trunk/reengineer/web/src/main/java/org/apache/stanbol/reengineer/web/ReengineerFragment.java
 Tue Jul 19 17:02:04 2011
@@ -1,3 +1,20 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.apache.stanbol.reengineer.web;
 
 import java.util.ArrayList;
@@ -15,7 +32,6 @@ import org.apache.stanbol.commons.web.ba
 import org.apache.stanbol.commons.web.base.NavigationLink;
 import org.apache.stanbol.commons.web.base.ScriptResource;
 import org.apache.stanbol.commons.web.base.WebFragment;
-import 
org.apache.stanbol.ontologymanager.ontonet.impl.io.ClerezzaOntologyStorage;
 import org.apache.stanbol.reengineer.base.api.ReengineerManager;
 import org.apache.stanbol.reengineer.web.resources.ReengineerResource;
 import org.osgi.framework.BundleContext;

Modified: 
incubator/stanbol/trunk/reengineer/web/src/main/java/org/apache/stanbol/reengineer/web/resources/ReengineerResource.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/trunk/reengineer/web/src/main/java/org/apache/stanbol/reengineer/web/resources/ReengineerResource.java?rev=1148447&r1=1148446&r2=1148447&view=diff
==============================================================================
--- 
incubator/stanbol/trunk/reengineer/web/src/main/java/org/apache/stanbol/reengineer/web/resources/ReengineerResource.java
 (original)
+++ 
incubator/stanbol/trunk/reengineer/web/src/main/java/org/apache/stanbol/reengineer/web/resources/ReengineerResource.java
 Tue Jul 19 17:02:04 2011
@@ -1,3 +1,20 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.apache.stanbol.reengineer.web.resources;
 
 import static javax.ws.rs.core.MediaType.TEXT_HTML;

Modified: 
incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/static/actions/actions.js
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/static/actions/actions.js?rev=1148447&r1=1148446&r2=1148447&view=diff
==============================================================================
--- 
incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/static/actions/actions.js
 (original)
+++ 
incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/static/actions/actions.js
 Tue Jul 19 17:02:04 2011
@@ -1,3 +1,20 @@
+/**
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 var tutorialPage = 0;
 var totalPages = 5;
 

Modified: 
incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/static/css/reengineer.css
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/static/css/reengineer.css?rev=1148447&r1=1148446&r2=1148447&view=diff
==============================================================================
--- 
incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/static/css/reengineer.css
 (original)
+++ 
incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/static/css/reengineer.css
 Tue Jul 19 17:02:04 2011
@@ -1,6 +1,22 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 div.indent {
        margin-left: 20px;
-       display: none; 
 }
 
 input.hide-button{

Modified: 
incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/templates/imports/reengineerDescription.ftl
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/templates/imports/reengineerDescription.ftl?rev=1148447&r1=1148446&r2=1148447&view=diff
==============================================================================
--- 
incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/templates/imports/reengineerDescription.ftl
 (original)
+++ 
incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/templates/imports/reengineerDescription.ftl
 Tue Jul 19 17:02:04 2011
@@ -1 +1 @@
-<#macro view>This is a the implementation of Stanbol Reengineer</#macro>
\ No newline at end of file
+<#--  Licensed to the Apache Software Foundation (ASF) under one or more  
contributor license agreements.  See the NOTICE file distributed with  this 
work for additional information regarding copyright ownership.  The ASF 
licenses this file to You under the Apache License, Version 2.0  (the 
"License"); you may not use this file except in compliance with  the License.  
You may obtain a copy of the License at      
http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law 
or agreed to in writing, software  distributed under the License is distributed 
on an "AS IS" BASIS,  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 
express or implied.  See the License for the specific language governing 
permissions and  limitations under the License.--><#macro view>This is a the 
implementation of Stanbol Reengineer</#macro>
\ No newline at end of file

Modified: 
incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/templates/org/apache/stanbol/reengineer/web/resources/ReengineerResource/index.ftl
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/templates/org/apache/stanbol/reengineer/web/resources/ReengineerResource/index.ftl?rev=1148447&r1=1148446&r2=1148447&view=diff
==============================================================================
--- 
incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/templates/org/apache/stanbol/reengineer/web/resources/ReengineerResource/index.ftl
 (original)
+++ 
incubator/stanbol/trunk/reengineer/web/src/main/resources/org/apache/stanbol/reengineer/web/templates/org/apache/stanbol/reengineer/web/resources/ReengineerResource/index.ftl
 Tue Jul 19 17:02:04 2011
@@ -1 +1 @@
-<#import "/imports/common.ftl" as common><#import 
"/imports/reengineerDescription.ftl" as reengineerDescription><#escape x as 
x?html><@common.page title="Apache Stanbol Reengineer" hasrestapi=false> 
<@reengineerDescription.view /> </@common.page></#escape>
\ No newline at end of file
+<#--  Licensed to the Apache Software Foundation (ASF) under one or more  
contributor license agreements.  See the NOTICE file distributed with  this 
work for additional information regarding copyright ownership.  The ASF 
licenses this file to You under the Apache License, Version 2.0  (the 
"License"); you may not use this file except in compliance with  the License.  
You may obtain a copy of the License at      
http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law 
or agreed to in writing, software  distributed under the License is distributed 
on an "AS IS" BASIS,  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 
express or implied.  See the License for the specific language governing 
permissions and  limitations under the License.--><#import 
"/imports/common.ftl" as common><#import "/imports/reengineerDescription.ftl" 
as reengineerDescription><#escape x as x?html><@common.page title="Apache 
Stanbol Reengineer" hasrestapi=false> <@reengineerDescri
 ption.view /> </@common.page></#escape>
\ No newline at end of file

Modified: 
incubator/stanbol/trunk/rules/web/src/main/java/org/apache/stanbol/rules/web/resources/RuleResource.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/web/src/main/java/org/apache/stanbol/rules/web/resources/RuleResource.java?rev=1148447&r1=1148446&r2=1148447&view=diff
==============================================================================
--- 
incubator/stanbol/trunk/rules/web/src/main/java/org/apache/stanbol/rules/web/resources/RuleResource.java
 (original)
+++ 
incubator/stanbol/trunk/rules/web/src/main/java/org/apache/stanbol/rules/web/resources/RuleResource.java
 Tue Jul 19 17:02:04 2011
@@ -252,13 +252,13 @@ public class RuleResource extends BaseSt
                                        .encode(
                                                        
"http://kres.iks-project.eu/ontology/meta/rmi_config.owl#MyRecipeA";,
                                                        "UTF-8");
-                       System.out.println("RECIPE : "+recipeURIEnc);
+                       log.debug("Recipe: "+recipeURIEnc);
                } catch (UnsupportedEncodingException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                }
-       
-       System.out.println("RECIPE IRI : "+IRI.create(recipeURI).toString());
+               
+               log.debug("Recipe IRI: "+IRI.create(recipeURI));
                OWLOntology ontology = kReSGetRule.getAllRulesOfARecipe(IRI
                                .create(recipeURI));
                
@@ -371,6 +371,7 @@ public class RuleResource extends BaseSt
             AddRule inrule = new AddRule(kresRuleStore);
             boolean ok = inrule.addRule(IRI.create(rule), kres_syntax, 
description);
             if(!ok){
+                log.error("Problem to add: "+rule);
                 System.err.println("PROBLEM TO ADD: "+rule);
                 return Response.status(Status.CONFLICT).build();
             }
@@ -378,7 +379,6 @@ public class RuleResource extends BaseSt
             //Get the recipe
             GetRecipe getrecipe = new GetRecipe(kresRuleStore);
             this.map = getrecipe.getRecipe(IRI.create(recipe));
-            System.out.println("RECIPE FOR RULE: "+recipe);
             if(map!=null){
                 this.desc = getrecipe.getDescription(IRI.create(recipe));
                


Reply via email to