Wednesday, November 30, 2005

photo annotation

potential customer:
Newspaper and other media editors


key technology:
Semantic web
Face recognition
search engine

Thursday, November 24, 2005

What is the expected type of semantic web applications?

a tool or service that assists users in manipulating semantically enriched resources based on shared ontology.

Manipulation includes:
  • Model - determine resource models by selecting shared ontology
  • Edit - change
  • Import/Export - Format interpobability
  • Publish - obtain annotated and semantically enriched resources
  • Reuse - Reasoning, search, representation and visualisation

Key features includes:

  • Distributed - the semantic data should be ideally located in different places
  • Inteprobable - if it is a web service, it must follow WS-I.

Key issues includes:

  • Storage
  • Modular and reusable resource processing - e.g., namespace driven resource consumer auto-loading
  • Provenance





Tuesday, November 22, 2005

MCV - Model, Controller and View

Model, View, Controller(MVC) is a a software architecture that separates an application’s data model, user interface, and control logic into three distinct components.

Model: ontology, semantics data such as OWL and RDF triples

Controller: Ruby
http://wiki.rubyonrails.com/rails shows a description of the Rails MCV

View: RHTML - is a set of html with ruby code embedded.

Wednesday, November 16, 2005

Group activity management

meeting schedualer,

agenda management

minutes

sugguesting upcoming conferences and paper commitments

allow follow-up sugguestions and comments

Sunday, November 13, 2005

what might be the interesting resources in PIM?

grocery shopping list: collebrate on the list before weekly shoppings, fully personalised, increasingly efficient with historic items selection and checkboxs, sms or synchronise with mobile, email. post-in printing facility.

bookmark: tagging using topic map

research activity management:

Debt management:

course management:

Proverbs

Friday, November 11, 2005

make a web service client using axis

java org.apache.axis.wsdl.WSDL2Java SimilarSearch.wsdl

will generate a set of helper classes according to the wsdl definition.

then make a client java as below:

/*
* Created on 08-Nov-05
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/

/**
* @author ft
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/

package SimilarSearch;

import java.rmi.RemoteException;

import javax.xml.rpc.ServiceException;

public class similarSearchClientTester {

public static void main(String[] args) {

// create an instance of our service locator
SimilarSearchServiceLocator locator = new SimilarSearchServiceLocator();

// create an instance or our SoapBindingStub
SimilarSearchBindingStub stub=null;
try {
stub = (SimilarSearchBindingStub) locator.getSimilarSearchPort();
} catch (ServiceException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}

SimilarSearchIn in = new SimilarSearchIn();
in.setNumber("ct01003");

// make a call to a method we created in our web service
try {
System.out.println("read to similar search");
SimilarSearchOut out = stub.doSearch(in);
System.out.println("result:"+out.toString());

} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}
}

Wednesday, November 02, 2005

useful commands and tips

% java org.apache.axis.client.AdminClient list


deploy a web service:
% java org.apache.axis.client.AdminClient deploy.wsdd
Done processing

display an environment parameter
% echo %classpath%

a new command prompt needs to be reopened each time the "myComputer"->property->"enviroment setting" is changed.

testing a web service from browser:
http://localhost:8080/axis/services/SimilarSearch?method=doSearch&number=ct01001

Friday, October 28, 2005

web service step by step

install apache, axis, see the happy axis page okay. use axis user guide for installation.

Java JDK/JRE 1.5.0_04 (mind that jdk 1.4 may have some Axis_Fault problems)
Tomcat 5.5.9
Axis 1.2

set environment by configure myComputer->property->system env. as follows:

JAVA_HOME C:\Java\jdk1.5.0_04

AXIS_HOME D:\api\axis

AXIS_LIB %AXIS_HOME%\lib

JENA_HOME D:\api\Jena-2.3


AXISCLASSPATH %AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery-0.2.jar; %AXIS_LIB%\commons-logging-1.0.4.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar

CLASSPATH .;%JENA_HOME%\lib\antlr.jar;%JENA_HOME%\lib\concurrent.jar;%JENA_HOME%\lib\commons-logging.jar;%JENA_HOME%\lib\icu4j.jar;%JENA_HOME%\lib\jakarta-oro-2.0.5.jar;%JENA_HOME%\lib\jena.jar;%JENA_HOME%\lib\junit.jar;%JENA_HOME%\lib\log4j-1.2.7.jar;%JENA_HOME%\lib\xercesImpl.jar;%JENA_HOME%\lib\xml-apis.jar;%AXISCLASSPATH%;%JAVA_HOME%\lib\tools.jar;C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\axis.jar;%AXIS_LIB%\wsdl4j-1.5.1.jar;D:\api\jaf-1.0.2\activation.jar;D:\api\javamail-1.3.3_01\mail.jar;D:\api\xml-security-1_3_0\libs\xmlsec-1.3.0.jar

PATH C:\Program Files\SSH Communications Security\SSH Secure Shell;C:\Program Files\CVSNT\;C:\java\jdk1.5.0_04\bin

Integrate axis into tomcat: copy D:\api\axis\webapps\axis to C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps

check axis happy-page on http://localhost:8080/axis/happyaxis.jsp

following the directions on the happy-axis page, get
activation.jar (jaf-1.0.2), http://java.sun.com/products/javabeans/glasgow/jaf.html
mail.jar (javamail-1.3.3_01), http://java.sun.com/products/javamail/downloads/index.html
xmlsec.jar etc(xml-security-1_3_0/lib), http://xml.apache.org/security/dist/java-library/

and put them in classpath. (as shown in the last three items in the classpath above)

stop and restart tomcat server, refresh happy-axis page, which should be error free by now.


then we start with a simple service java file:

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.*;
import java.util.regex.*;
import java.lang.*;

public class WebServiceTest{

public String doTest(String in) throws RemoteException
{

return "input is "+in;
}

}


compile it and copy the result WebServiceTest.class to
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\classes


manually edit deploy.wsdd, as follows:










make sure Tomcat webserver is runing.

Deploy the webservice:
java org.apache.axis.client.AdminClient deploy.wsdd
this will register the class in the axis engine so that they are exposed properly as a web service.
***** make sure you have compiled the WS.java and copy the result WS.class to
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\classes ***.

go to http://localhost:8080/axis/servlet/AxisServlet
the web service should have already been registered there.

so far, the server side is done.
next we need to make a client that calls the web service:

get the web services's WDSL link from http://localhost:8080/axis/servlet/AxisServlet

run java org.apache.axis.wsdl.WSDL2Java , and this will generate a set of helper classes. **** make sure, the wsdl4j.jar is in the classpath, otherwise, WSDL2Java complains Exception in thread "main" java.lang.NoClassDefFoundError: javax.wsdl.Definition

As it seems that the WSDL2Java does not generate a handy proxy file. yet althought IBM websphere developer does generate the proxy java file, its other helpper java files uses ibm's own jars, which is not good. For these, we now need to make good use of both:
1. run IBM Websphere developer 5.1.2. new->web project; new->other->web service client; give it the WSDL link. and follow the wizard, it will generate all helpper java files including a proxy java file. Copy (drag and drop) all the WSDL2java generated helper files to IBM Websphere java source to replace IBM Websphere generated helper java files. change moderate on the packages name, etc.

2. create a tester java file that call the web service by using the proxy java class object:

package localhost;

public class Tester
{
public static void main (String [] args) throws Exception{

//make a service
WSProxy service= new WSProxy();

System.out.println(service.doTest("2222"));

//

}}


Done!

Thursday, May 19, 2005

EleGI exhbition in EC

2005-05-17, EleGI has been chosen and invited by the Europe Commission to the eLearning Conference - Towards a Learning Society which will take place the 19th and 20th of May 2005 in Brussels.

University of Southampton (UoS) is one of the partners in ELEGI to present the exhbition.