Changu Kang, Hyeonmin Park, Seongbin Park (2019), Serendipity Evaluation Model (TBD)
The main procedure is in SerendipityEvaluation.java
. The argument should fit to the following form:
- args[0]: The name of ttl file (ex.
HistoricalData.ttl
) - args[1]: The name of target node (ex.
:Kyujanggak
)
Prerequisite: Java 8+ is needed.
This is an Eclipse project, so you can import the whole project and run SerendipityEvaluation
with described arguments. Arguments can be set in 'Run Configuration' menu, into 'Program arguments'. (NOT 'VM arguments')
Since this project is set to Java-11, if you want to use other version then you should change the JDK Compliance version. This can be configured in 'Project Properties' > 'Java Compiler'.
If you are not familiar with Eclipse or just want to run without any IDE, you can run in the shell. We assume that you have Java and can use java
command without any problem in the shell. That is, if you are using Windows, you should configure environment variables like 'PATH'.
Following commands are for evaluating all examples:
javac -classpath "libs/*" -sourcepath "src" src/kr/ckhp/SerendipityEvaluationModel/SerendipityEvaluation.java
java -classpath "src;libs/*" kr.ckhp.SerendipityEvaluationModel.SerendipityEvaluation "ExampleData/Data1.ttl" "dbr:Description_Logic"
java -classpath "src;libs/*" kr.ckhp.SerendipityEvaluationModel.SerendipityEvaluation "ExampleData/Data2.ttl" "dbr:Description_Logic"
java -classpath "src;libs/*" kr.ckhp.SerendipityEvaluationModel.SerendipityEvaluation "ExampleData/HistoricalHeritage.ttl" ":Kyujanggak"
mv "ExampleData/HistoricalHeritage.xlsx" "ExampleData/HistoricalHeritage-Kyujanggak.xlsx"
java -classpath "src;libs/*" kr.ckhp.SerendipityEvaluationModel.SerendipityEvaluation "ExampleData/HistoricalHeritage.ttl" ":Gyeongbokgung"
mv "ExampleData/HistoricalHeritage.xlsx" "ExampleData/HistoricalHeritage-Gyeongbokgung.xlsx"
java -classpath "src;libs/*" kr.ckhp.SerendipityEvaluationModel.SerendipityEvaluation "ExampleData/IllustrativeExample.ttl" ":NodeA4"
One should explicitly denote the level of each node.
Given format for this is as follows:
@prefix : <http://example.com/> .
########################
########1-Level#########
########################
:Eastern_world
:SubField :Eastern_Asia ;
:SubField :Western_Asia .
:Western_world
:SubField :Southern_Europe ;
:SubField :Western_Europe .
########################
########2-Level#########
########################
:Eastern_Asia :SubTopic :Korea ;
:SubTopic :Japan .
:Western_Asia :SubTopic :Israel .
:Southern_Europe :SubTopic :Italy .
:Western_Europe :SubTopic :United_Kingdom ;
:SubTopic :France .
########################
########3-Level#########
########################
:Korea :SubTopic :Gyeongbokgung ; #palalce
:SubTopic :Kyujanggak ;
:SubTopic :Tripitaka_Koreana ;
:SubTopic :Cheomseongdae ;
:SubTopic :Gyeonghoeru ; #palalce
:SubTopic :Kyujanggak ;
:SubTopic :Changdeokgung ;
:SubTopic :Joseon ;
:SubTopic :Taejong ;
:SubTopic :Sejong ;
:SubTopic :Seoul;
:SubTopic :Hanyang .
:Japan :SubTopic :Kyoto_Imperial_Palace ; #palalce
:SubTopic :Itsukushima_Shrine ;
:SubTopic :Sensō-ji ;
:SubTopic :Kenreimon .
:Israel :SubTopic :Old_City ;
:SubTopic :Western_Wall ;
...(skip)...