LUBM (Lehigh University Benchmark) tutorial

Source: Internet
Author: User
Tags benchmark

This little tutorial teaches your step by step and use LUBM to benchmark your system.

1. The official site of lubm:http://swat.cse.lehigh.edu/projects/lubm/

2. Download files as follows:

-The Univ-ben benchmark Ontology:http://swat.cse.lehigh.edu/onto/univ-bench.owl

-The Data Generator (UBA) v1.7:http://swat.cse.lehigh.edu/projects/lubm/uba1.7.zip

-The tester (UBT) V1.1:http://swat.cse.lehigh.edu/projects/lubm/ubt1.1.zip

3. What LUBM does was that it provide a small ontology of college departments, classes and professors. A data generater generates arbitrary large abox statements. Different queries is provided in SPARQL 1.0 to test the system response time.

4. If you is using Linux, you need to download a fix for UBA data generator:http://swat.cse.lehigh.edu/projects/lubm/g Eneratorlinuxfix.zip

This fix makes sure the Generator works with Linux paths.

The reason is because UBA generates path with a ' \ ', but Linux uses '/' in the path.

You unzip this fix patch, it's called "Generator.java" as well.

You unzip the UBA v1.7, and go to Src/edu/lehigh/swat/bench/uba directory, to replace the original Generator.java with Thi S fix Generator.java

If You don't use the fix, it'll generate the data in the path like this:

/home/rui/desktop\university0_18.daml generated

But when you go to Desktop, it's not there. That's because Linux path doesn ' t support "\".

5. You need to compile the Java file.

My unzipped UBA v1.7 files are In/home/rui/desktop/uba1.7/src/edu/lehigh/swat/bench/uba directory

Yes, there is also a class directory in/home/rui/desktop/uba1.7/classes ..., but we aren't going to use it.

I Go To/home/rui/desktop/uba1.7/src/edu/lehigh/swat/bench/uba,

Then type the compile command:

javac-d/home/rui/desktop *.java

This command would compile all the Java file, and the compiled class would be stored in/home/rui/desktop.

After this, you go to Desktop, and you'll see a folder called "Edu".

You open this folder and you'll see that it's actually edu/lehigh/swat/bench/uba/*.class, these class files is what we Want.

6. Now we can run the data generator

You is now in Desktop directory, and run the command:

Java edu.lehigh.swat.bench.uba.generator-univ <value>-index <value>-seed <value>-daml <value >-onto <value>

Options
-univ number of universities to generate; 1 By default
-index starting index of the universities; 0 by default
-seed seed used for random data generation; 0 by default
-daml generate Daml+oil data; OWL data by default
-onto URL of the Univ-bench ontology (http://swat.cse.lehigh.edu/onto/univ-bench.owl) (http://www.lehigh.edu/~zhp2/ 2004/0401/univ-bench.owl [Easier for query Test])

7. You'll have the generated data then.

8. There is SPARQL 1.0 queries provided Here:http://swat.cse.lehigh.edu/projects/lubm/queries-sparql.txt

LUBM (Lehigh University benchmark) tutorial

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.